2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for syncevolution 1.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='syncevolution'
728 PACKAGE_TARNAME='syncevolution'
729 PACKAGE_VERSION='1.1'
730 PACKAGE_STRING='syncevolution 1.1'
733 # Factoring default headers for most tests.
734 ac_includes_default="\
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
746 # ifdef HAVE_STDLIB_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
778 program_transform_name
821 INSTALL_STRIP_PROGRAM
851 ENABLE_UNIT_TESTS_TRUE
852 ENABLE_UNIT_TESTS_FALSE
865 ENABLE_BLUETOOTH_TRUE
866 ENABLE_BLUETOOTH_FALSE
892 INTLTOOL_DESKTOP_RULE
893 INTLTOOL_DIRECTORY_RULE
900 INTLTOOL_SOUNDLIST_RULE
905 INTLTOOL_XML_NOMERGE_RULE
907 INTLTOOL_SCHEMAS_RULE
909 INTLTOOL_SERVICE_RULE
940 SYNCEVOLUTION_LOCALEDIR
956 COND_HTML_README_TRUE
957 COND_HTML_README_FALSE
963 SYNTHESIS_SUBDIR_INCLUDES
971 GNOMEBLUETOOTH_CFLAGS
974 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
975 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
988 LIBICAL_AVAILABLE_CFLAGS
989 LIBICAL_AVAILABLE_LIBS
1046 ENABLE_MODULES_FALSE
1048 SYNCEVOLUTION_CXXFLAGS
1049 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
1050 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
1056 ac_precious_vars='build_alias
1082 MX_GTK_0_99_1_CFLAGS
1095 GNOMEBLUETOOTH_CFLAGS
1103 LIBICAL_AVAILABLE_CFLAGS
1104 LIBICAL_AVAILABLE_LIBS
1131 # Initialize some variables set by options.
1133 ac_init_version=false
1134 # The variables have the same names as the options, with
1135 # dashes changed to underlines.
1136 cache_file=/dev/null
1143 program_transform_name=s,x,x,
1151 # Installation directory options.
1152 # These are left unexpanded so users can "make install exec_prefix=/foo"
1153 # and all the variables that are supposed to be based on exec_prefix
1154 # by default will actually change.
1155 # Use braces instead of parens because sh, perl, etc. also accept them.
1156 # (The list follows the same order as the GNU Coding Standards.)
1157 bindir='${exec_prefix}/bin'
1158 sbindir='${exec_prefix}/sbin'
1159 libexecdir='${exec_prefix}/libexec'
1160 datarootdir='${prefix}/share'
1161 datadir='${datarootdir}'
1162 sysconfdir='${prefix}/etc'
1163 sharedstatedir='${prefix}/com'
1164 localstatedir='${prefix}/var'
1165 includedir='${prefix}/include'
1166 oldincludedir='/usr/include'
1167 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1168 infodir='${datarootdir}/info'
1173 libdir='${exec_prefix}/lib'
1174 localedir='${datarootdir}/locale'
1175 mandir='${datarootdir}/man'
1181 # If the previous option needs an argument, assign it.
1182 if test -n "$ac_prev"; then
1183 eval $ac_prev=\$ac_option
1189 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1193 # Accept the important Cygnus configure options, so we can diagnose typos.
1195 case $ac_dashdash$ac_option in
1199 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1201 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1202 bindir=$ac_optarg ;;
1204 -build | --build | --buil | --bui | --bu)
1205 ac_prev=build_alias ;;
1206 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1207 build_alias=$ac_optarg ;;
1209 -cache-file | --cache-file | --cache-fil | --cache-fi \
1210 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1211 ac_prev=cache_file ;;
1212 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1213 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1214 cache_file=$ac_optarg ;;
1216 --config-cache | -C)
1217 cache_file=config.cache ;;
1219 -datadir | --datadir | --datadi | --datad)
1221 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1222 datadir=$ac_optarg ;;
1224 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1225 | --dataroo | --dataro | --datar)
1226 ac_prev=datarootdir ;;
1227 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1228 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1229 datarootdir=$ac_optarg ;;
1231 -disable-* | --disable-*)
1232 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1238 eval enable_$ac_feature=no ;;
1240 -docdir | --docdir | --docdi | --doc | --do)
1242 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1243 docdir=$ac_optarg ;;
1245 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1247 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1248 dvidir=$ac_optarg ;;
1250 -enable-* | --enable-*)
1251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1257 eval enable_$ac_feature=\$ac_optarg ;;
1259 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1260 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1261 | --exec | --exe | --ex)
1262 ac_prev=exec_prefix ;;
1263 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1264 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1265 | --exec=* | --exe=* | --ex=*)
1266 exec_prefix=$ac_optarg ;;
1268 -gas | --gas | --ga | --g)
1269 # Obsolete; use --with-gas.
1272 -help | --help | --hel | --he | -h)
1273 ac_init_help=long ;;
1274 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1275 ac_init_help=recursive ;;
1276 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1277 ac_init_help=short ;;
1279 -host | --host | --hos | --ho)
1280 ac_prev=host_alias ;;
1281 -host=* | --host=* | --hos=* | --ho=*)
1282 host_alias=$ac_optarg ;;
1284 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1286 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1288 htmldir=$ac_optarg ;;
1290 -includedir | --includedir | --includedi | --included | --include \
1291 | --includ | --inclu | --incl | --inc)
1292 ac_prev=includedir ;;
1293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1294 | --includ=* | --inclu=* | --incl=* | --inc=*)
1295 includedir=$ac_optarg ;;
1297 -infodir | --infodir | --infodi | --infod | --info | --inf)
1299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1300 infodir=$ac_optarg ;;
1302 -libdir | --libdir | --libdi | --libd)
1304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1305 libdir=$ac_optarg ;;
1307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1308 | --libexe | --libex | --libe)
1309 ac_prev=libexecdir ;;
1310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1311 | --libexe=* | --libex=* | --libe=*)
1312 libexecdir=$ac_optarg ;;
1314 -localedir | --localedir | --localedi | --localed | --locale)
1315 ac_prev=localedir ;;
1316 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1317 localedir=$ac_optarg ;;
1319 -localstatedir | --localstatedir | --localstatedi | --localstated \
1320 | --localstate | --localstat | --localsta | --localst | --locals)
1321 ac_prev=localstatedir ;;
1322 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1323 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1324 localstatedir=$ac_optarg ;;
1326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1329 mandir=$ac_optarg ;;
1331 -nfp | --nfp | --nf)
1332 # Obsolete; use --without-fp.
1335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1336 | --no-cr | --no-c | -n)
1339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1345 | --oldin | --oldi | --old | --ol | --o)
1346 ac_prev=oldincludedir ;;
1347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1350 oldincludedir=$ac_optarg ;;
1352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1355 prefix=$ac_optarg ;;
1357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1358 | --program-pre | --program-pr | --program-p)
1359 ac_prev=program_prefix ;;
1360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1362 program_prefix=$ac_optarg ;;
1364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1365 | --program-suf | --program-su | --program-s)
1366 ac_prev=program_suffix ;;
1367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1369 program_suffix=$ac_optarg ;;
1371 -program-transform-name | --program-transform-name \
1372 | --program-transform-nam | --program-transform-na \
1373 | --program-transform-n | --program-transform- \
1374 | --program-transform | --program-transfor \
1375 | --program-transfo | --program-transf \
1376 | --program-trans | --program-tran \
1377 | --progr-tra | --program-tr | --program-t)
1378 ac_prev=program_transform_name ;;
1379 -program-transform-name=* | --program-transform-name=* \
1380 | --program-transform-nam=* | --program-transform-na=* \
1381 | --program-transform-n=* | --program-transform-=* \
1382 | --program-transform=* | --program-transfor=* \
1383 | --program-transfo=* | --program-transf=* \
1384 | --program-trans=* | --program-tran=* \
1385 | --progr-tra=* | --program-tr=* | --program-t=*)
1386 program_transform_name=$ac_optarg ;;
1388 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1390 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1391 pdfdir=$ac_optarg ;;
1393 -psdir | --psdir | --psdi | --psd | --ps)
1395 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399 | -silent | --silent | --silen | --sile | --sil)
1402 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1404 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1406 sbindir=$ac_optarg ;;
1408 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410 | --sharedst | --shareds | --shared | --share | --shar \
1412 ac_prev=sharedstatedir ;;
1413 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1417 sharedstatedir=$ac_optarg ;;
1419 -site | --site | --sit)
1421 -site=* | --site=* | --sit=*)
1424 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1426 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427 srcdir=$ac_optarg ;;
1429 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430 | --syscon | --sysco | --sysc | --sys | --sy)
1431 ac_prev=sysconfdir ;;
1432 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434 sysconfdir=$ac_optarg ;;
1436 -target | --target | --targe | --targ | --tar | --ta | --t)
1437 ac_prev=target_alias ;;
1438 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439 target_alias=$ac_optarg ;;
1441 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1444 -version | --version | --versio | --versi | --vers | -V)
1445 ac_init_version=: ;;
1448 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449 # Reject names that are not valid shell variable names.
1450 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1451 { echo "$as_me: error: invalid package name: $ac_package" >&2
1452 { (exit 1); exit 1; }; }
1453 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1454 eval with_$ac_package=\$ac_optarg ;;
1456 -without-* | --without-*)
1457 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1458 # Reject names that are not valid shell variable names.
1459 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1460 { echo "$as_me: error: invalid package name: $ac_package" >&2
1461 { (exit 1); exit 1; }; }
1462 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1463 eval with_$ac_package=no ;;
1466 # Obsolete; use --with-x.
1469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1470 | --x-incl | --x-inc | --x-in | --x-i)
1471 ac_prev=x_includes ;;
1472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1474 x_includes=$ac_optarg ;;
1476 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1478 ac_prev=x_libraries ;;
1479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1481 x_libraries=$ac_optarg ;;
1483 -*) { echo "$as_me: error: unrecognized option: $ac_option
1484 Try \`$0 --help' for more information." >&2
1485 { (exit 1); exit 1; }; }
1489 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1490 # Reject names that are not valid shell variable names.
1491 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1492 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1493 { (exit 1); exit 1; }; }
1494 eval $ac_envvar=\$ac_optarg
1495 export $ac_envvar ;;
1498 # FIXME: should be removed in autoconf 3.0.
1499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1508 if test -n "$ac_prev"; then
1509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1510 { echo "$as_me: error: missing argument to $ac_option" >&2
1511 { (exit 1); exit 1; }; }
1514 # Be sure to have absolute directory names.
1515 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1516 datadir sysconfdir sharedstatedir localstatedir includedir \
1517 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1518 libdir localedir mandir
1520 eval ac_val=\$$ac_var
1522 [\\/$]* | ?:[\\/]* ) continue;;
1523 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1525 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1526 { (exit 1); exit 1; }; }
1529 # There might be people who depend on the old broken behavior: `$host'
1530 # used to hold the argument of --host etc.
1531 # FIXME: To remove some day.
1534 target=$target_alias
1536 # FIXME: To remove some day.
1537 if test "x$host_alias" != x; then
1538 if test "x$build_alias" = x; then
1539 cross_compiling=maybe
1540 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1541 If a cross compiler is detected then cross compile mode will be used." >&2
1542 elif test "x$build_alias" != "x$host_alias"; then
1548 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1550 test "$silent" = yes && exec 6>/dev/null
1553 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1554 ac_ls_di=`ls -di .` &&
1555 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1556 { echo "$as_me: error: Working directory cannot be determined" >&2
1557 { (exit 1); exit 1; }; }
1558 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1559 { echo "$as_me: error: pwd does not report name of working directory" >&2
1560 { (exit 1); exit 1; }; }
1563 # Find the source files, if location was not specified.
1564 if test -z "$srcdir"; then
1565 ac_srcdir_defaulted=yes
1566 # Try the directory containing this script, then the parent directory.
1567 ac_confdir=`$as_dirname -- "$0" ||
1568 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1569 X"$0" : 'X\(//\)[^/]' \| \
1570 X"$0" : 'X\(//\)$' \| \
1571 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1591 if test ! -r "$srcdir/$ac_unique_file"; then
1595 ac_srcdir_defaulted=no
1597 if test ! -r "$srcdir/$ac_unique_file"; then
1598 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1599 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1600 { (exit 1); exit 1; }; }
1602 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1604 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1605 { (exit 1); exit 1; }; }
1607 # When building in place, set srcdir=.
1608 if test "$ac_abs_confdir" = "$ac_pwd"; then
1611 # Remove unnecessary trailing slashes from srcdir.
1612 # Double slashes in file names in object file debugging info
1613 # mess up M-x gdb in Emacs.
1615 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1617 for ac_var in $ac_precious_vars; do
1618 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1619 eval ac_env_${ac_var}_value=\$${ac_var}
1620 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1621 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1625 # Report the --help message.
1627 if test "$ac_init_help" = "long"; then
1628 # Omit some internal or obsolete options to make the list less imposing.
1629 # This message is too long to be a string in the A/UX 3.1 sh.
1631 \`configure' configures syncevolution 1.1 to adapt to many kinds of systems.
1633 Usage: $0 [OPTION]... [VAR=VALUE]...
1635 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1636 VAR=VALUE. See below for descriptions of some of the useful variables.
1638 Defaults for the options are specified in brackets.
1641 -h, --help display this help and exit
1642 --help=short display options specific to this package
1643 --help=recursive display the short help of all the included packages
1644 -V, --version display version information and exit
1645 -q, --quiet, --silent do not print \`checking...' messages
1646 --cache-file=FILE cache test results in FILE [disabled]
1647 -C, --config-cache alias for \`--cache-file=config.cache'
1648 -n, --no-create do not create output files
1649 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1651 Installation directories:
1652 --prefix=PREFIX install architecture-independent files in PREFIX
1653 [$ac_default_prefix]
1654 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1657 By default, \`make install' will install all the files in
1658 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1659 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1660 for instance \`--prefix=\$HOME'.
1662 For better control, use the options below.
1664 Fine tuning of the installation directories:
1665 --bindir=DIR user executables [EPREFIX/bin]
1666 --sbindir=DIR system admin executables [EPREFIX/sbin]
1667 --libexecdir=DIR program executables [EPREFIX/libexec]
1668 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1669 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1670 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1671 --libdir=DIR object code libraries [EPREFIX/lib]
1672 --includedir=DIR C header files [PREFIX/include]
1673 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1674 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1675 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1676 --infodir=DIR info documentation [DATAROOTDIR/info]
1677 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1678 --mandir=DIR man documentation [DATAROOTDIR/man]
1679 --docdir=DIR documentation root [DATAROOTDIR/doc/syncevolution]
1680 --htmldir=DIR html documentation [DOCDIR]
1681 --dvidir=DIR dvi documentation [DOCDIR]
1682 --pdfdir=DIR pdf documentation [DOCDIR]
1683 --psdir=DIR ps documentation [DOCDIR]
1689 --program-prefix=PREFIX prepend PREFIX to installed program names
1690 --program-suffix=SUFFIX append SUFFIX to installed program names
1691 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1694 --build=BUILD configure for building on BUILD [guessed]
1695 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1699 if test -n "$ac_init_help"; then
1700 case $ac_init_help in
1701 short | recursive ) echo "Configuration of syncevolution 1.1:";;
1706 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1707 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1708 --enable-shared build backends as dynamically loadable modules
1709 --enable-static build backends also as static libraries
1710 --enable-unit-tests enables tests embedded in the source code of the
1711 library (changes content of executable)
1712 --enable-integration-tests
1713 enables tests outside of the library (can be used
1714 together with normal builds of the library)
1715 --enable-static-cxx build executables which contain libstdc++ instead of
1716 requiring suitable libstdc++.so to run
1717 --enable-evolution-compatibility
1718 build executables which only call Evolution via
1719 dlopen/dlsym: this avoids all hard dependencies on
1720 EDS shared objects, but might lead to crashes when
1722 --enable-developer-mode The dynamic loadble backend libraries is loaded from
1723 current build directory instead of the standard
1725 --enable-maemo enables some hacks which work around problems with
1726 the Maemo 2.0 until at least 3.0 EDS-Dbus
1727 --disable-dependency-tracking speeds up one-time build
1728 --enable-dependency-tracking do not reject slow dependency extractors
1729 --enable-libcurl enable libcurl as transport layer
1730 --enable-libsoup enable libsoup as transport layer
1731 --enable-bluetooth enable bluetooth transport support
1732 --disable-ssl-certificate-check
1733 Disable SSL certificate checking in all server
1734 *templates*. Users can still choose to enable or
1735 disable it in their configuration. This is necessary
1736 on platforms where the transport library has
1737 problems verifying the server's certificate (libsoup
1739 http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1740 --enable-gui=gui type enables building the GTK+ UI that uses the
1741 SyncEvolution DBus API. Options: gtk, moblin, all
1742 (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1743 default for --enable-gui without type. No GUI is
1744 built when --enable-gui is not used.
1745 --enable-core enables building the core SyncEvolution (library,
1747 --enable-dbus-service enables building the dbus service executable and all
1748 related features (the DBus wrapper library, command
1749 line usage of server, etc).
1750 --enable-gnome-keyring enables or disables support for the GNOME keyring;
1751 default is on if development files are available
1752 --enable-notify send notifications for automatic sync events
1753 --disable-nls do not use Native Language Support
1754 --enable-gnome-bluetooth-panel-plugin
1755 GNOME Bluetooth panel plugin adding a "sync" button
1756 for paired devices (off by default)
1757 --enable-doc generate backend and DBus API documentation
1758 --enable-addressbook enable access to Mac OS X address book (default off)
1759 --disable-ebook disable access to Evolution addressbooks (must be
1760 used to compile without it)
1761 --disable-ecal disable access to Evolution calendars and tasks
1762 (must be used to compile without it)
1763 --disable-file disable file-based backend which stores items in
1764 separate files in a fixed directory (default on)
1765 --enable-kcalextended enable support for Maemo's KCalExtended storage
1766 --enable-maemo-calendar enable access to PIM data stored in Maemo 5 calendar
1767 application (default off)
1768 --enable-qtcontacts enable support for QtMobility's QtContacts storage
1769 --enable-sqlite enable access to PIM data stored in SQLite files
1770 (experimental, default off)
1771 --enable-xmlrpc enable XMLRPC-based backend which stores items on a
1772 central web service (default off)
1773 --enable-shared[=PKGS] build shared libraries [default=yes]
1774 --enable-static[=PKGS] build static libraries [default=yes]
1775 --enable-fast-install[=PKGS]
1776 optimize for fast installation [default=yes]
1777 --disable-libtool-lock avoid locking (might break parallel builds)
1778 --enable-dbus-timeout-hack
1779 Enables code which overrides the default timeout in
1780 dbus_connection_send_with_reply() so that the method
1781 call never times out. Needed for libecal/ebook >=
1782 2.30, so enabled by default if either of these is
1786 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1787 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1788 --with-synthesis-src=<base directory|svn URL|git URL>
1789 Specifies location of the Synthesis root directory.
1790 Use this when the Synthesis library is to be
1791 compiled as part of the SyncEvolution compilation.
1792 In release versions of SyncEvolution, a copy of the
1793 Synthesis code is bundled under 'src/synthesis' and
1794 compiled unless something else is specified.
1795 --with-synthesis-src can be given a path to sources
1796 checked out already, a Subversion repository URL or
1797 a git repository URL. When given a repository URL,
1798 then the configure script will checkout the sources
1799 into 'src/synthesis-workdir' or update that working
1800 copy if the directory already exists. Default:
1801 bundled source in src/synthesis (in released
1802 SyncEvolution sources), otherwise.
1803 --with-syncml-engines=client|server|both
1804 Determines which kind of support for SyncML is
1805 compiled and linked into SyncEvolution. Default is
1806 both. Currently has no effect.
1807 --with-synthesis-username=<svn username>
1808 username to use when checking out
1809 --with-synthesis-src sources from Subversion,
1811 --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
1812 Identifies which source revision to use from
1813 --with-synthesis-src repository, empty string stands
1814 for latest. Default for default --synthesis-src:
1816 --with-ca-certificates=<colon separated list of files>
1817 Specifies location of one or more CA certificate
1818 files. This sets the default value for the
1819 SSLServerCertificates option. Default: empty when
1820 using libcurl (because it has its own default), a
1821 list of paths known to work for Debian and Red Hat
1823 --with-boost[=DIR] use boost (default is yes) - it is possible to
1824 specify the root directory for boost (optional)
1825 --with-boost-libdir=LIB_DIR
1826 Force given directory for boost libraries. Note that
1827 this will overwrite library path detection, so use
1828 this parameter only if default library detection
1829 fails and you know exactly where your boost
1830 libraries are located.
1831 --with-rst2man=<path to reStructuredText to man converter>
1832 Specifies an explicit path to the utility if not
1833 found in PATH. An explicit --without-rst2man or not
1834 having it installed turn off building of man pages.
1835 --with-rst2html=<path to reStructuredText to HTML converter>
1836 Specifies an explicit path to the utility if not
1837 found in PATH. An explicit --without-rst2html or not
1838 having it installed turn off building of README in
1840 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1841 --with-pic try to use only PIC/non-PIC objects [default=use
1843 --with-tags[=TAGS] include additional configurations [automatic]
1844 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1846 Some influential environment variables:
1847 CC C compiler command
1848 CFLAGS C compiler flags
1849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1850 nonstandard directory <lib dir>
1851 LIBS libraries to pass to the linker, e.g. -l<library>
1852 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1853 you have headers in a nonstandard directory <include dir>
1855 PKG_CONFIG path to pkg-config utility
1857 C compiler flags for LIBSOUP, overriding pkg-config
1859 linker flags for LIBSOUP, overriding pkg-config
1861 C compiler flags for LIBOPENOBEX, overriding pkg-config
1863 linker flags for LIBOPENOBEX, overriding pkg-config
1865 C compiler flags for BLUEZ, overriding pkg-config
1866 BLUEZ_LIBS linker flags for BLUEZ, overriding pkg-config
1868 C compiler flags for KEYRING, overriding pkg-config
1870 linker flags for KEYRING, overriding pkg-config
1872 C compiler flags for KEYRING_2_20, overriding pkg-config
1874 linker flags for KEYRING_2_20, overriding pkg-config
1875 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1876 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1878 C compiler flags for LIBNOTIFY, overriding pkg-config
1880 linker flags for LIBNOTIFY, overriding pkg-config
1882 C compiler flags for DBUS_GLIB, overriding pkg-config
1884 linker flags for DBUS_GLIB, overriding pkg-config
1885 MX_GTK_0_99_1_CFLAGS
1886 C compiler flags for MX_GTK_0_99_1, overriding pkg-config
1888 linker flags for MX_GTK_0_99_1, overriding pkg-config
1890 C compiler flags for UNIQUE, overriding pkg-config
1891 UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
1893 C compiler flags for GTK_2_18, overriding pkg-config
1895 linker flags for GTK_2_18, overriding pkg-config
1896 GUI_CFLAGS C compiler flags for GUI, overriding pkg-config
1897 GUI_LIBS linker flags for GUI, overriding pkg-config
1898 CXX C++ compiler command
1899 CXXFLAGS C++ compiler flags
1901 C compiler flags for SYNTHESIS, overriding pkg-config
1903 linker flags for SYNTHESIS, overriding pkg-config
1904 GNOMEBLUETOOTH_CFLAGS
1905 C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
1907 linker flags for GNOMEBLUETOOTH, overriding pkg-config
1909 C compiler flags for EPACKAGE, overriding pkg-config
1911 linker flags for EPACKAGE, overriding pkg-config
1912 ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
1913 ECAL_LIBS linker flags for ECAL, overriding pkg-config
1915 C compiler flags for EBOOK, overriding pkg-config
1916 EBOOK_LIBS linker flags for EBOOK, overriding pkg-config
1917 LIBICAL_AVAILABLE_CFLAGS
1918 C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
1919 LIBICAL_AVAILABLE_LIBS
1920 linker flags for LIBICAL_AVAILABLE, overriding pkg-config
1922 C compiler flags for KCALEXTENDED, overriding pkg-config
1924 linker flags for KCALEXTENDED, overriding pkg-config
1926 C compiler flags for MCALB, overriding pkg-config
1927 MCALB_LIBS linker flags for MCALB, overriding pkg-config
1929 C compiler flags for SQLITE, overriding pkg-config
1930 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1931 CXXCPP C++ preprocessor
1932 F77 Fortran 77 compiler command
1933 FFLAGS Fortran 77 compiler flags
1934 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1935 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1937 C compiler flags for GTHREAD, overriding pkg-config
1939 linker flags for GTHREAD, overriding pkg-config
1941 C compiler flags for GOBJECT, overriding pkg-config
1943 linker flags for GOBJECT, overriding pkg-config
1944 QT_PATH Path to the Qt installation
1945 QMAKE Qt Makefile generator command
1946 MOC Qt Meta Object Compiler command
1947 UIC Qt User Interface Compiler command
1948 RCC Qt Resource Compiler command
1950 C compiler flags for GLIB216, overriding pkg-config
1952 linker flags for GLIB216, overriding pkg-config
1953 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1954 NSS_LIBS linker flags for NSS, overriding pkg-config
1956 Use these variables to override the choices made by `configure' or to help
1957 it to find libraries and programs with nonstandard names/locations.
1963 if test "$ac_init_help" = "recursive"; then
1964 # If there are subdirs, report their specific --help.
1965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966 test -d "$ac_dir" || continue
1970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1973 # A ".." for each directory in $ac_dir_suffix.
1974 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1975 case $ac_top_builddir_sub in
1976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1980 ac_abs_top_builddir=$ac_pwd
1981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1982 # for backward compatibility:
1983 ac_top_builddir=$ac_top_build_prefix
1986 .) # We are building in place.
1988 ac_top_srcdir=$ac_top_builddir_sub
1989 ac_abs_top_srcdir=$ac_pwd ;;
1990 [\\/]* | ?:[\\/]* ) # Absolute name.
1991 ac_srcdir=$srcdir$ac_dir_suffix;
1992 ac_top_srcdir=$srcdir
1993 ac_abs_top_srcdir=$srcdir ;;
1995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1996 ac_top_srcdir=$ac_top_build_prefix$srcdir
1997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2001 cd "$ac_dir" || { ac_status=$?; continue; }
2002 # Check for guested configure.
2003 if test -f "$ac_srcdir/configure.gnu"; then
2005 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2006 elif test -f "$ac_srcdir/configure"; then
2008 $SHELL "$ac_srcdir/configure" --help=recursive
2010 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2012 cd "$ac_pwd" || { ac_status=$?; break; }
2016 test -n "$ac_init_help" && exit $ac_status
2017 if $ac_init_version; then
2019 syncevolution configure 1.1
2020 generated by GNU Autoconf 2.61
2022 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2023 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2024 This configure script is free software; the Free Software Foundation
2025 gives unlimited permission to copy, distribute and modify it.
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2033 It was created by syncevolution $as_me 1.1, which was
2034 generated by GNU Autoconf 2.61. Invocation command line was
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2056 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2059 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2060 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2061 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 echo "PATH: $as_dir"
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2094 ac_must_keep_next=false
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2105 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2110 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 -* ) ac_must_keep_next=true ;;
2126 ac_configure_args="$ac_configure_args '$ac_arg'"
2131 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2132 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log. We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140 # Save into config.log some information that might help in debugging.
2145 ## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##
2150 # The following way of writing the cache mishandles newlines in values,
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2157 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2158 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2161 _ | IFS | as_nl) ;; #(
2162 *) $as_unset $ac_var ;;
2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168 *${as_nl}ac_space=\ *)
2170 "s/'\''/'\''\\\\'\'''\''/g;
2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2187 for ac_var in $ac_subst_vars
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 echo "$ac_var='\''$ac_val'\''"
2197 if test -n "$ac_subst_files"; then
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2204 for ac_var in $ac_subst_files
2206 eval ac_val=\$$ac_var
2208 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 echo "$ac_var='\''$ac_val'\''"
2215 if test -s confdefs.h; then
2225 test "$ac_signal" != 0 &&
2226 echo "$as_me: caught signal $ac_signal"
2227 echo "$as_me: exit $exit_status"
2229 rm -f core *.core core.conftest.* &&
2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2233 for ac_signal in 1 2 13 15; do
2234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2241 # Predefined preprocessor variables.
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271 set x "$CONFIG_SITE"
2272 elif test "x$prefix" != xNONE; then
2273 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2275 set x "$ac_default_prefix/share/config.site" \
2276 "$ac_default_prefix/etc/config.site"
2281 if test -r "$ac_site_file"; then
2282 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2283 echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2289 if test -r "$cache_file"; then
2290 # Some versions of bash will fail to source /dev/null (special
2291 # files actually), so we avoid doing that.
2292 if test -f "$cache_file"; then
2293 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2294 echo "$as_me: loading cache $cache_file" >&6;}
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2301 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2302 echo "$as_me: creating cache $cache_file" >&6;}
2306 # Check that the precious variables saved in the cache have kept the same
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2329 echo "$as_me: former value: $ac_old_val" >&2;}
2330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2331 echo "$as_me: current value: $ac_new_val" >&2;}
2332 ac_cache_corrupted=:
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2338 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2347 if $ac_cache_corrupted; then
2348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2352 { (exit 1); exit 1; }; }
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 # STABLE_VERSION=1.0.1+
2389 am__api_version='1.10'
2392 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2393 if test -f "$ac_dir/install-sh"; then
2395 ac_install_sh="$ac_aux_dir/install-sh -c"
2397 elif test -f "$ac_dir/install.sh"; then
2399 ac_install_sh="$ac_aux_dir/install.sh -c"
2401 elif test -f "$ac_dir/shtool"; then
2403 ac_install_sh="$ac_aux_dir/shtool install -c"
2407 if test -z "$ac_aux_dir"; then
2408 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2409 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2410 { (exit 1); exit 1; }; }
2413 # These three variables are undocumented and unsupported,
2414 # and are intended to be withdrawn in a future Autoconf release.
2415 # They can cause serious problems if a builder's source tree is in a directory
2416 # whose full name contains unusual characters.
2417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2419 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2422 # Find a good install program. We prefer a C program (faster),
2423 # so one script is as good as another. But avoid the broken or
2424 # incompatible versions:
2425 # SysV /etc/install, /usr/sbin/install
2426 # SunOS /usr/etc/install
2427 # IRIX /sbin/install
2429 # AmigaOS /C/install, which installs bootblocks on floppy discs
2430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433 # OS/2's system install, which has a completely different semantic
2434 # ./install, which can be erroneously created by make from ./install.sh.
2435 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2436 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2437 if test -z "$INSTALL"; then
2438 if test "${ac_cv_path_install+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 # Account for people who put trailing slashes in PATH elements.
2448 ./ | .// | /cC/* | \
2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2453 # OSF1 and SCO ODT 3.0 have their own names for install.
2454 # Don't use installbsd from OSF since it installs stuff as root
2456 for ac_prog in ginstall scoinst install; do
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459 if test $ac_prog = install &&
2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2463 elif test $ac_prog = install &&
2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # program-specific install script used by HP pwplus--don't use.
2468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 if test "${ac_cv_path_install+set}" = set; then
2482 INSTALL=$ac_cv_path_install
2484 # As a last resort, use the slow shell script. Don't cache a
2485 # value for INSTALL within a source directory, because that will
2486 # break other packages using the cache if that directory is
2487 # removed, or if the value is a relative name.
2488 INSTALL=$ac_install_sh
2491 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2492 echo "${ECHO_T}$INSTALL" >&6; }
2494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2495 # It thinks the first close brace ends the variable substitution.
2496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2500 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2502 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2503 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2506 echo timestamp > conftest.file
2507 # Do `set' in a subshell so we don't clobber the current shell's
2508 # arguments. Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2513 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2514 if test "$*" = "X"; then
2516 set X `ls -t $srcdir/configure conftest.file`
2519 if test "$*" != "X $srcdir/configure conftest.file" \
2520 && test "$*" != "X conftest.file $srcdir/configure"; then
2522 # If neither matched, then we have a broken ls. This can happen
2523 # if, for instance, CONFIG_SHELL is bash and it inherits a
2524 # broken ls alias from the environment. This has actually
2525 # happened. Such a system could not be considered "sane".
2526 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2527 alias in your environment" >&5
2528 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2529 alias in your environment" >&2;}
2530 { (exit 1); exit 1; }; }
2533 test "$2" = conftest.file
2539 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2540 Check your system clock" >&5
2541 echo "$as_me: error: newly created file is older than distributed files!
2542 Check your system clock" >&2;}
2543 { (exit 1); exit 1; }; }
2545 { echo "$as_me:$LINENO: result: yes" >&5
2546 echo "${ECHO_T}yes" >&6; }
2547 test "$program_prefix" != NONE &&
2548 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2549 # Use a double $ so make ignores it.
2550 test "$program_suffix" != NONE &&
2551 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2552 # Double any \ or $. echo might interpret backslashes.
2553 # By default was `s,x,x', remove it if useless.
2554 cat <<\_ACEOF >conftest.sed
2555 s/[\\$]/&&/g;s/;s,x,x,$//
2557 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2560 # expand $ac_aux_dir to an absolute path
2561 am_aux_dir=`cd $ac_aux_dir && pwd`
2563 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2564 # Use eval to expand $SHELL
2565 if eval "$MISSING --run true"; then
2566 am_missing_run="$MISSING --run "
2569 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2570 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2573 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2574 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2575 if test -z "$MKDIR_P"; then
2576 if test "${ac_cv_path_mkdir+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in mkdir gmkdir; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2587 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2588 'mkdir (GNU coreutils) '* | \
2589 'mkdir (coreutils) '* | \
2590 'mkdir (fileutils) '4.1*)
2591 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2601 if test "${ac_cv_path_mkdir+set}" = set; then
2602 MKDIR_P="$ac_cv_path_mkdir -p"
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for MKDIR_P within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 test -d ./--version && rmdir ./--version
2609 MKDIR_P="$ac_install_sh -d"
2612 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2613 echo "${ECHO_T}$MKDIR_P" >&6; }
2617 [\\/$]* | ?:[\\/]*) ;;
2618 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2621 for ac_prog in gawk mawk nawk awk
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_AWK+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 if test -n "$AWK"; then
2631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_AWK="$ac_prog"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 if test -n "$AWK"; then
2652 { echo "$as_me:$LINENO: result: $AWK" >&5
2653 echo "${ECHO_T}$AWK" >&6; }
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2660 test -n "$AWK" && break
2663 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2664 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2665 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2666 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 cat >conftest.make <<\_ACEOF
2672 @echo '@@@%%%=$(MAKE)=@@@%%%'
2674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2675 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2677 eval ac_cv_prog_make_${ac_make}_set=yes;;
2679 eval ac_cv_prog_make_${ac_make}_set=no;;
2683 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2684 { echo "$as_me:$LINENO: result: yes" >&5
2685 echo "${ECHO_T}yes" >&6; }
2688 { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2690 SET_MAKE="MAKE=${MAKE-make}"
2693 rm -rf .tst 2>/dev/null
2694 mkdir .tst 2>/dev/null
2695 if test -d .tst; then
2700 rmdir .tst 2>/dev/null
2702 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2703 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2704 # is not polluted with repeated "-I."
2705 am__isrc=' -I$(srcdir)'
2706 # test to see if srcdir already configured
2707 if test -f $srcdir/config.status; then
2708 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2709 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2710 { (exit 1); exit 1; }; }
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716 if (cygpath --version) >/dev/null 2>/dev/null; then
2717 CYGPATH_W='cygpath -w'
2724 # Define the identity of the package.
2725 PACKAGE='syncevolution'
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE "$PACKAGE"
2734 cat >>confdefs.h <<_ACEOF
2735 #define VERSION "$VERSION"
2738 # Some tools Automake needs.
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2754 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2756 # Installed binaries are usually stripped using `strip' when the user
2757 # run `make install-strip'. However `strip' might not be the right
2758 # tool to use in cross-compilation environments, therefore Automake
2759 # will honor the `STRIP' environment variable to overrule this program.
2760 if test "$cross_compiling" != no; then
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}strip; ac_word=$2
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_STRIP+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$STRIP"; then
2770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 STRIP=$ac_cv_prog_STRIP
2790 if test -n "$STRIP"; then
2791 { echo "$as_me:$LINENO: result: $STRIP" >&5
2792 echo "${ECHO_T}$STRIP" >&6; }
2794 { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2800 if test -z "$ac_cv_prog_STRIP"; then
2802 # Extract the first word of "strip", so it can be a program name with args.
2803 set dummy strip; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 if test -n "$ac_ct_STRIP"; then
2810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_STRIP="strip"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2830 if test -n "$ac_ct_STRIP"; then
2831 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2832 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2838 if test "x$ac_ct_STRIP" = x; then
2841 case $cross_compiling:$ac_tool_warned in
2843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2844 whose name does not start with the host triplet. If you think this
2845 configuration is useful to you, please write to autoconf@gnu.org." >&5
2846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2847 whose name does not start with the host triplet. If you think this
2848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2849 ac_tool_warned=yes ;;
2854 STRIP="$ac_cv_prog_STRIP"
2858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860 # We need awk for the "check" target. The system "awk" is bad on
2862 # Always define AMTAR for backward compatibility.
2864 AMTAR=${AMTAR-"${am_missing_run}tar"}
2867 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2868 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2869 # Loop over all known methods to create a tar archive until one works.
2870 _am_tools='gnutar plaintar pax cpio none'
2871 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2872 # Do not fold the above two line into one, because Tru64 sh and
2873 # Solaris sh will not grok spaces in the rhs of `-'.
2874 for _am_tool in $_am_tools
2878 for _am_tar in tar gnutar gtar;
2880 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2881 ($_am_tar --version) >&5 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && break
2886 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2887 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2888 am__untar="$_am_tar -xf -"
2891 # Must skip GNU tar: if it does not support --format= it doesn't create
2892 # ustar tarball either.
2893 (tar --version) >/dev/null 2>&1 && continue
2894 am__tar='tar chf - "$$tardir"'
2895 am__tar_='tar chf - "$tardir"'
2896 am__untar='tar xf -'
2899 am__tar='pax -L -x ustar -w "$$tardir"'
2900 am__tar_='pax -L -x ustar -w "$tardir"'
2904 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2905 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2906 am__untar='cpio -i -H ustar -d'
2915 # If the value was cached, stop now. We just wanted to have am__tar
2916 # and am__untar set.
2917 test -n "${am_cv_prog_tar_ustar}" && break
2919 # tar/untar a dummy directory, and stop if the command works
2922 echo GrepMe > conftest.dir/file
2923 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2924 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2929 if test -s conftest.tar; then
2930 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2931 ($am__untar <conftest.tar) >&5 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2940 if test "${am_cv_prog_tar_ustar+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 am_cv_prog_tar_ustar=$_am_tool
2946 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2947 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2956 ac_config_headers="$ac_config_headers config.h"
2961 DEVICE_TYPE=workstation
2964 # Check whether --with-synthesis-src was given.
2965 if test "${with_synthesis_src+set}" = set; then
2966 withval=$with_synthesis_src; SYNTHESISSRC="$withval"
2967 test "$SYNTHESISSRC" != "yes" || { { echo "$as_me:$LINENO: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&5
2968 echo "$as_me: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&2;}
2969 { (exit 1); exit 1; }; }
2971 SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
2976 # Check whether --with-syncml-engines was given.
2977 if test "${with_syncml_engines+set}" = set; then
2978 withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
2984 case $SYNCML_ENGINES in both|client)
2985 cat >>confdefs.h <<\_ACEOF
2986 #define ENABLE_SYNCML_CLIENT 1
2989 case $SYNCML_ENGINES in both|server)
2990 cat >>confdefs.h <<\_ACEOF
2991 #define ENABLE_SYNCML_SERVER 1
2994 case $SYNCML_ENGINES in both|server|client) true;; *) { { echo "$as_me:$LINENO: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&5
2995 echo "$as_me: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&2;}
2996 { (exit 1); exit 1; }; };; esac
2999 # Check whether --with-synthesis-username was given.
3000 if test "${with_synthesis_username+set}" = set; then
3001 withval=$with_synthesis_username; USERNAME="$withval"
3008 # Check whether --with-synthesis-revision was given.
3009 if test "${with_synthesis_revision+set}" = set; then
3010 withval=$with_synthesis_revision; REVISION="$withval"
3014 # Check whether --enable-shared was given.
3015 if test "${enable_shared+set}" = set; then
3016 enableval=$enable_shared; enable_shared="$enableval"
3022 # Check whether --enable-static was given.
3023 if test "${enable_static+set}" = set; then
3024 enableval=$enable_static; enable_static="$enableval"
3030 # Check whether --enable-unit-tests was given.
3031 if test "${enable_unit_tests+set}" = set; then
3032 enableval=$enable_unit_tests; enable_unit_tests="$enableval"
3034 enable_unit_tests="no"
3037 # Check whether --enable-integration-tests was given.
3038 if test "${enable_integration_tests+set}" = set; then
3039 enableval=$enable_integration_tests; enable_integration_tests="$enableval"
3041 enable_integration_tests="no"
3045 # Check whether --enable-static-cxx was given.
3046 if test "${enable_static_cxx+set}" = set; then
3047 enableval=$enable_static_cxx; enable_static_cxx="$enableval"
3049 enable_static_cxx="no"
3053 # Check whether --enable-evolution-compatibility was given.
3054 if test "${enable_evolution_compatibility+set}" = set; then
3055 enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
3057 enable_evolution_compatibility="no"
3061 # Check whether --enable-developer-mode was given.
3062 if test "${enable_developer_mode+set}" = set; then
3063 enableval=$enable_developer_mode; enable_developer_mode="$enableval"
3065 enable_developer_mode="no"
3070 # - wrap e_book_from_string() to fix invalid parameter
3071 # - don't use UTF-8 encoding in Perl script
3072 # Check whether --enable-maemo was given.
3073 if test "${enable_maemo+set}" = set; then
3074 enableval=$enable_maemo;
3075 cat >>confdefs.h <<\_ACEOF
3076 #define ENABLE_MAEMO 1
3080 MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
3085 DEPDIR="${am__leading_dot}deps"
3087 ac_config_commands="$ac_config_commands depfiles"
3090 am_make=${MAKE-make}
3091 cat > confinc << 'END'
3096 # If we don't find an include directive, just comment out the code.
3097 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3098 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3102 # First try GNU make style include.
3103 echo "include confinc" > confmf
3104 # We grep out `Entering directory' and `Leaving directory'
3105 # messages which can occur if `w' ends up in MAKEFLAGS.
3106 # In particular we don't look at `^make:' because GNU make might
3107 # be invoked under some other name (usually "gmake"), in which
3108 # case it prints its new name instead of `make'.
3109 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3114 # Now try BSD make style include.
3115 if test "$am__include" = "#"; then
3116 echo '.include "confinc"' > confmf
3117 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3118 am__include=.include
3125 { echo "$as_me:$LINENO: result: $_am_result" >&5
3126 echo "${ECHO_T}$_am_result" >&6; }
3127 rm -f confinc confmf
3129 # Check whether --enable-dependency-tracking was given.
3130 if test "${enable_dependency_tracking+set}" = set; then
3131 enableval=$enable_dependency_tracking;
3134 if test "x$enable_dependency_tracking" != xno; then
3135 am_depcomp="$ac_aux_dir/depcomp"
3138 if test "x$enable_dependency_tracking" != xno; then
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 if test -n "$ac_tool_prefix"; then
3153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 if test -n "$CC"; then
3182 { echo "$as_me:$LINENO: result: $CC" >&5
3183 echo "${ECHO_T}$CC" >&6; }
3185 { echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6; }
3191 if test -z "$ac_cv_prog_CC"; then
3193 # Extract the first word of "gcc", so it can be a program name with args.
3194 set dummy gcc; ac_word=$2
3195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_ac_ct_CC="gcc"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3223 echo "${ECHO_T}$ac_ct_CC" >&6; }
3225 { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3229 if test "x$ac_ct_CC" = x; then
3232 case $cross_compiling:$ac_tool_warned in
3234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3235 whose name does not start with the host triplet. If you think this
3236 configuration is useful to you, please write to autoconf@gnu.org." >&5
3237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3238 whose name does not start with the host triplet. If you think this
3239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3240 ac_tool_warned=yes ;;
3248 if test -z "$CC"; then
3249 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3251 set dummy ${ac_tool_prefix}cc; ac_word=$2
3252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267 ac_cv_prog_CC="${ac_tool_prefix}cc"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 if test -n "$CC"; then
3279 { echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6; }
3282 { echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6; }
3289 if test -z "$CC"; then
3290 # Extract the first word of "cc", so it can be a program name with args.
3291 set dummy cc; ac_word=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_CC+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3309 ac_prog_rejected=yes
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test $ac_prog_rejected = yes; then
3321 # We found a bogon in the path, so make sure we never use it.
3322 set dummy $ac_cv_prog_CC
3324 if test $# != 0; then
3325 # We chose a different compiler from the bogus one.
3326 # However, it has the same basename, so the bogon will be chosen
3327 # first if we set CC to just the basename; use the full file name.
3329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3335 if test -n "$CC"; then
3336 { echo "$as_me:$LINENO: result: $CC" >&5
3337 echo "${ECHO_T}$CC" >&6; }
3339 { echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6; }
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 for ac_prog in cl.exe
3349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 if test -n "$CC"; then
3378 { echo "$as_me:$LINENO: result: $CC" >&5
3379 echo "${ECHO_T}$CC" >&6; }
3381 { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3386 test -n "$CC" && break
3389 if test -z "$CC"; then
3391 for ac_prog in cl.exe
3393 # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$ac_ct_CC"; then
3401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_ac_ct_CC="$ac_prog"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423 echo "${ECHO_T}$ac_ct_CC" >&6; }
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3430 test -n "$ac_ct_CC" && break
3433 if test "x$ac_ct_CC" = x; then
3436 case $cross_compiling:$ac_tool_warned in
3438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3439 whose name does not start with the host triplet. If you think this
3440 configuration is useful to you, please write to autoconf@gnu.org." >&5
3441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3442 whose name does not start with the host triplet. If you think this
3443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3444 ac_tool_warned=yes ;;
3453 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details." >&2;}
3457 { (exit 1); exit 1; }; }
3459 # Provide some information about the compiler.
3460 echo "$as_me:$LINENO: checking for C compiler version" >&5
3461 ac_compiler=`set X $ac_compile; echo $2`
3462 { (ac_try="$ac_compiler --version >&5"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_compiler --version >&5") 2>&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }
3472 { (ac_try="$ac_compiler -v >&5"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_compiler -v >&5") 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }
3482 { (ac_try="$ac_compiler -V >&5"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compiler -V >&5") 2>&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3508 ac_clean_files_save=$ac_clean_files
3509 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3510 # Try to create an executable without -o first, disregard a.out.
3511 # It will help us diagnose broken compilers, and finding out an intuition
3513 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3514 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517 # List of possible output files, starting from the most likely.
3518 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3519 # only as a last resort. b.out is created by i960 compilers.
3520 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3522 # The IRIX 6 linker writes into existing files which may not be
3523 # executable, retaining their permissions. Remove them first so a
3524 # subsequent execution test works.
3526 for ac_file in $ac_files
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3535 if { (ac_try="$ac_link_default"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_link_default") 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; then
3545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3547 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3548 # so that the user can short-circuit this test for compilers unknown to
3550 for ac_file in $ac_files ''
3552 test -f "$ac_file" || continue
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3557 # We found the default executable, but exeext='' is most
3561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 # We set ac_cv_exeext here because the later test for it is not
3566 # safe: cross compilers may not add the suffix if given an `-o'
3567 # argument, so we may need to know it at that point already.
3568 # Even if this section looks crufty: it has the advantage of
3575 test "$ac_cv_exeext" = no && ac_cv_exeext=
3581 { echo "$as_me:$LINENO: result: $ac_file" >&5
3582 echo "${ECHO_T}$ac_file" >&6; }
3583 if test -z "$ac_file"; then
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3588 See \`config.log' for more details." >&5
3589 echo "$as_me: error: C compiler cannot create executables
3590 See \`config.log' for more details." >&2;}
3591 { (exit 77); exit 77; }; }
3594 ac_exeext=$ac_cv_exeext
3596 # Check that the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3601 # If not cross compiling, check that we can run a simple program.
3602 if test "$cross_compiling" != yes; then
3603 if { ac_try='./$ac_file'
3604 { (case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_try") 2>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3615 if test "$cross_compiling" = maybe; then
3618 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3619 If you meant to cross compile, use \`--host'.
3620 See \`config.log' for more details." >&5
3621 echo "$as_me: error: cannot run C compiled programs.
3622 If you meant to cross compile, use \`--host'.
3623 See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
3628 { echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6; }
3631 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3632 ac_clean_files=$ac_clean_files_save
3633 # Check that the compiler produces executables we can run. If not, either
3634 # the compiler is broken, or we cross compile.
3635 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3636 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3637 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3638 echo "${ECHO_T}$cross_compiling" >&6; }
3640 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3641 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3642 if { (ac_try="$ac_link"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_link") 2>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; then
3652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3654 # work properly (i.e., refer to `conftest.exe'), while it won't with
3656 for ac_file in conftest.exe conftest conftest.*; do
3657 test -f "$ac_file" || continue
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3666 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details." >&2;}
3670 { (exit 1); exit 1; }; }
3673 rm -f conftest$ac_cv_exeext
3674 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3675 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3677 rm -f conftest.$ac_ext
3678 EXEEXT=$ac_cv_exeext
3680 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3681 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3682 if test "${ac_cv_objext+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3700 rm -f conftest.o conftest.obj
3701 if { (ac_try="$ac_compile"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_compile") 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; then
3711 for ac_file in conftest.o conftest.obj conftest.*; do
3712 test -f "$ac_file" || continue;
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." >&5
3725 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&2;}
3727 { (exit 1); exit 1; }; }
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733 echo "${ECHO_T}$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3736 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_compile") 2>conftest.er1
3768 grep -v '^ *+' conftest.er1 >conftest.err
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest.$ac_objext; then
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3788 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3790 GCC=`test $ac_compiler_gnu = yes && echo yes`
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3795 if test "${ac_cv_prog_cc_g+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 ac_save_c_werror_flag=$ac_c_werror_flag
3799 ac_c_werror_flag=yes
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_c_werror_flag=$ac_save_c_werror_flag
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_c_werror_flag=$ac_save_c_werror_flag
3928 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3929 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3930 if test "$ac_test_CFLAGS" = set; then
3931 CFLAGS=$ac_save_CFLAGS
3932 elif test $ac_cv_prog_cc_g = yes; then
3933 if test "$GCC" = yes; then
3939 if test "$GCC" = yes; then
3945 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3946 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3947 if test "${ac_cv_prog_cc_c89+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 ac_cv_prog_cc_c89=no
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3976 s = g (p, va_arg (v,int));
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 CC="$ac_save_CC $ac_arg"
4013 rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4022 grep -v '^ *+' conftest.er1 >conftest.err
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4030 ac_cv_prog_cc_c89=$ac_arg
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4038 rm -f core conftest.err conftest.$ac_objext
4039 test "x$ac_cv_prog_cc_c89" != "xno" && break
4041 rm -f conftest.$ac_ext
4046 case "x$ac_cv_prog_cc_c89" in
4048 { echo "$as_me:$LINENO: result: none needed" >&5
4049 echo "${ECHO_T}none needed" >&6; } ;;
4051 { echo "$as_me:$LINENO: result: unsupported" >&5
4052 echo "${ECHO_T}unsupported" >&6; } ;;
4054 CC="$CC $ac_cv_prog_cc_c89"
4055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4056 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 depcc="$CC" am_compiler_list=
4068 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4069 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4070 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4074 # We make a subdir and do the tests there. Otherwise we can end up
4075 # making bogus files that we don't know about and never remove. For
4076 # instance it was reported that on HP-UX the gcc test will end up
4077 # making a dummy file named `D' -- because `-MD' means `put the output
4080 # Copy depcomp to subdir because otherwise we won't find it if we're
4081 # using a relative directory.
4082 cp "$am_depcomp" conftest.dir
4084 # We will build objects and dependencies in a subdirectory because
4085 # it helps to detect inapplicable dependency modes. For instance
4086 # both Tru64's cc and ICC support -MD to output dependencies as a
4087 # side effect of compilation, but ICC will put the dependencies in
4088 # the current directory while Tru64 will put them in the object
4092 am_cv_CC_dependencies_compiler_type=none
4093 if test "$am_compiler_list" = ""; then
4094 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4096 for depmode in $am_compiler_list; do
4097 # Setup a source with many dependencies, because some compilers
4098 # like to wrap large dependency lists on column 80 (with \), and
4099 # we should not choose a depcomp mode which is confused by this.
4101 # We need to recreate these files for each test, as the compiler may
4102 # overwrite some of them when testing with obscure command lines.
4103 # This happens at least with the AIX C compiler.
4105 for i in 1 2 3 4 5 6; do
4106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4107 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4108 # Solaris 8's {/usr,}/bin/sh.
4109 touch sub/conftst$i.h
4111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4115 # after this tag, mechanisms are not by side-effect, so they'll
4116 # only be used when explicitly requested
4117 if test "x$enable_dependency_tracking" = xyes; then
4125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4126 # mode. It turns out that the SunPro C++ compiler does not properly
4127 # handle `-M -o', and we need to detect this.
4128 if depmode=$depmode \
4129 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4131 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4132 >/dev/null 2>conftest.err &&
4133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4135 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4137 # icc doesn't choke on unknown options, it will just issue warnings
4138 # or remarks (even with -Werror). So we grep stderr for any message
4139 # that says an option was ignored or not supported.
4140 # When given -MP, icc 7.0 and 7.1 complain thusly:
4141 # icc: Command line warning: ignoring option '-M'; no argument required
4142 # The diagnosis changed in icc 8.0:
4143 # icc: Command line remark: option '-MP' not supported
4144 if (grep 'ignoring option' conftest.err ||
4145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4146 am_cv_CC_dependencies_compiler_type=$depmode
4155 am_cv_CC_dependencies_compiler_type=none
4159 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4160 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4161 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4164 test "x$enable_dependency_tracking" != xno \
4165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4167 am__fastdepCC_FALSE='#'
4169 am__fastdepCC_TRUE='#'
4170 am__fastdepCC_FALSE=
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4181 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4186 if test -z "$CPP"; then
4187 if test "${ac_cv_prog_CPP+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 # Double quotes because CPP needs to be expanded
4191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 for ac_c_preproc_warn_flag in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if { (ac_try="$ac_cpp conftest.$ac_ext"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } >/dev/null && {
4228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 # Broken: fails on valid input.
4240 rm -f conftest.err conftest.$ac_ext
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4252 if { (ac_try="$ac_cpp conftest.$ac_ext"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } >/dev/null && {
4265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4266 test ! -s conftest.err
4268 # Broken: success on invalid input.
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 # Passes both tests.
4279 rm -f conftest.err conftest.$ac_ext
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then
4296 { echo "$as_me:$LINENO: result: $CPP" >&5
4297 echo "${ECHO_T}$CPP" >&6; }
4299 for ac_c_preproc_warn_flag in '' yes
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
4305 # On the NeXT, cc -E runs the code through the compiler's parser,
4306 # not just through cpp. "Syntax error" is here to catch this case.
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 # include <limits.h>
4316 # include <assert.h>
4320 if { (ac_try="$ac_cpp conftest.$ac_ext"
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4328 grep -v '^ *+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null && {
4333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 # Broken: fails on valid input.
4345 rm -f conftest.err conftest.$ac_ext
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <ac_nonexistent.h>
4357 if { (ac_try="$ac_cpp conftest.$ac_ext"
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4365 grep -v '^ *+' conftest.er1 >conftest.err
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } >/dev/null && {
4370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4371 test ! -s conftest.err
4373 # Broken: success on invalid input.
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 # Passes both tests.
4384 rm -f conftest.err conftest.$ac_ext
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then
4392 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4393 See \`config.log' for more details." >&5
4394 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details." >&2;}
4396 { (exit 1); exit 1; }; }
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4407 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4408 if test "${ac_cv_path_GREP+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 # Extract the first word of "grep ggrep" to use in msg output
4412 if test -z "$GREP"; then
4413 set dummy grep ggrep; ac_prog_name=$2
4414 if test "${ac_cv_path_GREP+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 ac_path_GREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in grep ggrep; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4427 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4428 # Check for GNU ac_path_GREP and select it if it is found.
4429 # Check for GNU $ac_path_GREP
4430 case `"$ac_path_GREP" --version 2>&1` in
4432 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4435 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 echo 'GREP' >> "conftest.nl"
4442 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 ac_count=`expr $ac_count + 1`
4445 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_GREP="$ac_path_GREP"
4448 ac_path_GREP_max=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 $ac_path_GREP_found && break 3
4467 GREP="$ac_cv_path_GREP"
4468 if test -z "$GREP"; then
4469 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4470 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4471 { (exit 1); exit 1; }; }
4475 ac_cv_path_GREP=$GREP
4480 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4481 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4482 GREP="$ac_cv_path_GREP"
4485 { echo "$as_me:$LINENO: checking for egrep" >&5
4486 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4487 if test "${ac_cv_path_EGREP+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4491 then ac_cv_path_EGREP="$GREP -E"
4493 # Extract the first word of "egrep" to use in msg output
4494 if test -z "$EGREP"; then
4495 set dummy egrep; ac_prog_name=$2
4496 if test "${ac_cv_path_EGREP+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 ac_path_EGREP_found=false
4500 # Loop through the user's path and test for each of PROGNAME-LIST
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505 test -z "$as_dir" && as_dir=.
4506 for ac_prog in egrep; do
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4509 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4510 # Check for GNU ac_path_EGREP and select it if it is found.
4511 # Check for GNU $ac_path_EGREP
4512 case `"$ac_path_EGREP" --version 2>&1` in
4514 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4517 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4520 cat "conftest.in" "conftest.in" >"conftest.tmp"
4521 mv "conftest.tmp" "conftest.in"
4522 cp "conftest.in" "conftest.nl"
4523 echo 'EGREP' >> "conftest.nl"
4524 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4526 ac_count=`expr $ac_count + 1`
4527 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4528 # Best one so far, save it but keep looking for a better one
4529 ac_cv_path_EGREP="$ac_path_EGREP"
4530 ac_path_EGREP_max=$ac_count
4532 # 10*(2^10) chars as input seems more than enough
4533 test $ac_count -gt 10 && break
4535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539 $ac_path_EGREP_found && break 3
4549 EGREP="$ac_cv_path_EGREP"
4550 if test -z "$EGREP"; then
4551 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4552 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4553 { (exit 1); exit 1; }; }
4557 ac_cv_path_EGREP=$EGREP
4563 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4564 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4570 if test "${ac_cv_header_stdc+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } && {
4606 test -z "$ac_c_werror_flag" ||
4607 test ! -s conftest.err
4608 } && test -s conftest.$ac_objext; then
4609 ac_cv_header_stdc=yes
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 ac_cv_header_stdc=no
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 if test $ac_cv_header_stdc = yes; then
4620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "memchr" >/dev/null 2>&1; then
4634 ac_cv_header_stdc=no
4640 if test $ac_cv_header_stdc = yes; then
4641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "free" >/dev/null 2>&1; then
4655 ac_cv_header_stdc=no
4661 if test $ac_cv_header_stdc = yes; then
4662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663 if test "$cross_compiling" = yes; then
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4674 #if ((' ' & 0x0FF) == 0x020)
4675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4678 # define ISLOWER(c) \
4679 (('a' <= (c) && (c) <= 'i') \
4680 || ('j' <= (c) && (c) <= 'r') \
4681 || ('s' <= (c) && (c) <= 'z'))
4682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4690 for (i = 0; i < 256; i++)
4691 if (XOR (islower (i), ISLOWER (i))
4692 || toupper (i) != TOUPPER (i))
4697 rm -f conftest$ac_exeext
4698 if { (ac_try="$ac_link"
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_link") 2>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_try") 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4719 echo "$as_me: program exited with status $ac_status" >&5
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4724 ac_cv_header_stdc=no
4726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4734 if test $ac_cv_header_stdc = yes; then
4736 cat >>confdefs.h <<\_ACEOF
4737 #define STDC_HEADERS 1
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.$ac_ext <<_ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 $ac_includes_default
4769 #include <$ac_header>
4771 rm -f conftest.$ac_objext
4772 if { (ac_try="$ac_compile"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778 (eval "$ac_compile") 2>conftest.er1
4780 grep -v '^ *+' conftest.er1 >conftest.err
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } && {
4785 test -z "$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4787 } && test -s conftest.$ac_objext; then
4788 eval "$as_ac_Header=yes"
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4793 eval "$as_ac_Header=no"
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_res=`eval echo '${'$as_ac_Header'}'`
4799 { echo "$as_me:$LINENO: result: $ac_res" >&5
4800 echo "${ECHO_T}$ac_res" >&6; }
4801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4802 cat >>confdefs.h <<_ACEOF
4803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4813 for ac_header in signal.h dlfcn.h
4815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 ac_res=`eval echo '${'$as_ac_Header'}'`
4823 { echo "$as_me:$LINENO: result: $ac_res" >&5
4824 echo "${ECHO_T}$ac_res" >&6; }
4826 # Is the header compilable?
4827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 $ac_includes_default
4836 #include <$ac_header>
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4855 ac_header_compiler=yes
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_header_compiler=no
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4865 echo "${ECHO_T}$ac_header_compiler" >&6; }
4867 # Is the header present?
4868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <$ac_header>
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null && {
4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4894 ac_header_preproc=yes
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 ac_header_preproc=no
4902 rm -f conftest.err conftest.$ac_ext
4903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4904 echo "${ECHO_T}$ac_header_preproc" >&6; }
4906 # So? What about this header?
4907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4913 ac_header_preproc=yes
4916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 eval "$as_ac_Header=\$ac_header_preproc"
4938 ac_res=`eval echo '${'$as_ac_Header'}'`
4939 { echo "$as_me:$LINENO: result: $ac_res" >&5
4940 echo "${ECHO_T}$ac_res" >&6; }
4943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944 cat >>confdefs.h <<_ACEOF
4945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
4955 CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
4956 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
4957 { (exit 1); exit 1; }; }
4958 CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
4959 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
4960 { (exit 1); exit 1; }; }
4965 if test "$enable_unit_tests" = "yes"; then
4967 cat >>confdefs.h <<\_ACEOF
4968 #define ENABLE_UNIT_TESTS 1
4972 if test "$enable_integration_tests" = "yes"; then
4974 cat >>confdefs.h <<\_ACEOF
4975 #define ENABLE_INTEGRATION_TESTS 1
4979 if test "$enable_unit_tests" = "yes"; then
4980 ENABLE_UNIT_TESTS_TRUE=
4981 ENABLE_UNIT_TESTS_FALSE='#'
4983 ENABLE_UNIT_TESTS_TRUE='#'
4984 ENABLE_UNIT_TESTS_FALSE=
4987 if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
4988 ENABLE_TESTING_TRUE=
4989 ENABLE_TESTING_FALSE='#'
4991 ENABLE_TESTING_TRUE='#'
4992 ENABLE_TESTING_FALSE=
4996 if test $enable_static_cxx == "yes"; then
4998 CORE_LDADD_DEP=libstdc++.a
5002 # Check for transport layer.
5003 # Both curl and libsoup can be enabled and disabled explicitly.
5004 # The default is to use libsoup if available, otherwise curl.
5006 { echo "$as_me:$LINENO: checking for libcurl" >&5
5007 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
5008 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
5009 LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
5010 { echo "$as_me:$LINENO: result: yes" >&5
5011 echo "${ECHO_T}yes" >&6; }
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5021 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5022 if test -n "$ac_tool_prefix"; then
5023 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5024 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5054 if test -n "$PKG_CONFIG"; then
5055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5056 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5058 { echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6; }
5064 if test -z "$ac_cv_path_PKG_CONFIG"; then
5065 ac_pt_PKG_CONFIG=$PKG_CONFIG
5066 # Extract the first word of "pkg-config", so it can be a program name with args.
5067 set dummy pkg-config; ac_word=$2
5068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5070 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 case $ac_pt_PKG_CONFIG in
5075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5097 if test -n "$ac_pt_PKG_CONFIG"; then
5098 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5099 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5105 if test "x$ac_pt_PKG_CONFIG" = x; then
5108 case $cross_compiling:$ac_tool_warned in
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned=yes ;;
5118 PKG_CONFIG=$ac_pt_PKG_CONFIG
5121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5125 if test -n "$PKG_CONFIG"; then
5126 _pkg_min_version=0.9.0
5127 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5128 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5130 { echo "$as_me:$LINENO: result: yes" >&5
5131 echo "${ECHO_T}yes" >&6; }
5133 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5141 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5142 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5144 if test -n "$PKG_CONFIG"; then
5145 if test -n "$LIBSOUP_CFLAGS"; then
5146 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5148 if test -n "$PKG_CONFIG" && \
5149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
5150 ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; then
5154 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
5162 if test -n "$PKG_CONFIG"; then
5163 if test -n "$LIBSOUP_LIBS"; then
5164 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5166 if test -n "$PKG_CONFIG" && \
5167 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
5168 ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; then
5172 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
5183 if test $pkg_failed = yes; then
5185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5186 _pkg_short_errors_supported=yes
5188 _pkg_short_errors_supported=no
5190 if test $_pkg_short_errors_supported = yes; then
5191 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5193 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5195 # Put the nasty error message in config.log where it belongs
5196 echo "$LIBSOUP_PKG_ERRORS" >&5
5198 { echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6; }
5202 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5203 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5205 if test -n "$PKG_CONFIG"; then
5206 if test -n "$LIBSOUP_CFLAGS"; then
5207 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5209 if test -n "$PKG_CONFIG" && \
5210 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5211 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; then
5215 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5223 if test -n "$PKG_CONFIG"; then
5224 if test -n "$LIBSOUP_LIBS"; then
5225 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5227 if test -n "$PKG_CONFIG" && \
5228 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5229 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; then
5233 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5244 if test $pkg_failed = yes; then
5246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5247 _pkg_short_errors_supported=yes
5249 _pkg_short_errors_supported=no
5251 if test $_pkg_short_errors_supported = yes; then
5252 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5254 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5256 # Put the nasty error message in config.log where it belongs
5257 echo "$LIBSOUP_PKG_ERRORS" >&5
5259 { echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6; }
5262 elif test $pkg_failed = untried; then
5265 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5266 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5267 { echo "$as_me:$LINENO: result: yes" >&5
5268 echo "${ECHO_T}yes" >&6; }
5271 elif test $pkg_failed = untried; then
5274 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5275 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5277 if test -n "$PKG_CONFIG"; then
5278 if test -n "$LIBSOUP_CFLAGS"; then
5279 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5281 if test -n "$PKG_CONFIG" && \
5282 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5283 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; then
5287 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5295 if test -n "$PKG_CONFIG"; then
5296 if test -n "$LIBSOUP_LIBS"; then
5297 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5299 if test -n "$PKG_CONFIG" && \
5300 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5301 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; then
5305 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5316 if test $pkg_failed = yes; then
5318 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5319 _pkg_short_errors_supported=yes
5321 _pkg_short_errors_supported=no
5323 if test $_pkg_short_errors_supported = yes; then
5324 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5326 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5328 # Put the nasty error message in config.log where it belongs
5329 echo "$LIBSOUP_PKG_ERRORS" >&5
5331 { echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6; }
5334 elif test $pkg_failed = untried; then
5337 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5338 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5339 { echo "$as_me:$LINENO: result: yes" >&5
5340 echo "${ECHO_T}yes" >&6; }
5344 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5345 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5346 { echo "$as_me:$LINENO: result: yes" >&5
5347 echo "${ECHO_T}yes" >&6; }
5350 cat >>confdefs.h <<\_ACEOF
5351 #define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1
5358 { echo "$as_me:$LINENO: checking for LIBOPENOBEX" >&5
5359 echo $ECHO_N "checking for LIBOPENOBEX... $ECHO_C" >&6; }
5361 if test -n "$PKG_CONFIG"; then
5362 if test -n "$LIBOPENOBEX_CFLAGS"; then
5363 pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
5365 if test -n "$PKG_CONFIG" && \
5366 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5367 ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; then
5371 pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
5379 if test -n "$PKG_CONFIG"; then
5380 if test -n "$LIBOPENOBEX_LIBS"; then
5381 pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
5383 if test -n "$PKG_CONFIG" && \
5384 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5385 ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; then
5389 pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
5400 if test $pkg_failed = yes; then
5402 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5403 _pkg_short_errors_supported=yes
5405 _pkg_short_errors_supported=no
5407 if test $_pkg_short_errors_supported = yes; then
5408 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openobex"`
5410 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openobex"`
5412 # Put the nasty error message in config.log where it belongs
5413 echo "$LIBOPENOBEX_PKG_ERRORS" >&5
5415 { echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6; }
5418 elif test $pkg_failed = untried; then
5421 LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
5422 LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
5423 { echo "$as_me:$LINENO: result: yes" >&5
5424 echo "${ECHO_T}yes" >&6; }
5428 if test $have_obex = "yes"; then
5431 { echo "$as_me:$LINENO: checking for BLUEZ" >&5
5432 echo $ECHO_N "checking for BLUEZ... $ECHO_C" >&6; }
5434 if test -n "$PKG_CONFIG"; then
5435 if test -n "$BLUEZ_CFLAGS"; then
5436 pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
5438 if test -n "$PKG_CONFIG" && \
5439 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5440 ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; then
5444 pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
5452 if test -n "$PKG_CONFIG"; then
5453 if test -n "$BLUEZ_LIBS"; then
5454 pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
5456 if test -n "$PKG_CONFIG" && \
5457 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5458 ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; then
5462 pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
5473 if test $pkg_failed = yes; then
5475 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5476 _pkg_short_errors_supported=yes
5478 _pkg_short_errors_supported=no
5480 if test $_pkg_short_errors_supported = yes; then
5481 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bluez"`
5483 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bluez"`
5485 # Put the nasty error message in config.log where it belongs
5486 echo "$BLUEZ_PKG_ERRORS" >&5
5488 { echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6; }
5491 elif test $pkg_failed = untried; then
5494 BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
5495 BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
5496 { echo "$as_me:$LINENO: result: yes" >&5
5497 echo "${ECHO_T}yes" >&6; }
5500 if test $have_bluez = "yes"; then
5501 have_bluetooth="yes"
5514 # Check whether --with-ca-certificates was given.
5515 if test "${with_ca_certificates+set}" = set; then
5516 withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
5521 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
5522 if test "$have_libsoup" = "yes"; then
5523 default_http_transport="libsoup"
5524 elif test "$have_libcurl" = "yes"; then
5525 default_http_transport="libcurl"
5528 # Check whether --enable-libcurl was given.
5529 if test "${enable_libcurl+set}" = set; then
5530 enableval=$enable_libcurl; if test "$enableval" = "yes"; then
5531 test "$have_libcurl" = "yes" || { { echo "$as_me:$LINENO: error: libcurl not found" >&5
5532 echo "$as_me: error: libcurl not found" >&2;}
5533 { (exit 1); exit 1; }; }
5534 TRANSPORT="$TRANSPORT libcurl"
5535 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5536 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5538 cat >>confdefs.h <<\_ACEOF
5539 #define ENABLE_LIBCURL 1
5543 libcurl_disabled="yes"
5546 if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
5547 TRANSPORT="$TRANSPORT libcurl"
5548 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5549 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5551 cat >>confdefs.h <<\_ACEOF
5552 #define ENABLE_LIBCURL 1
5559 # Check whether --enable-libsoup was given.
5560 if test "${enable_libsoup+set}" = set; then
5561 enableval=$enable_libsoup; if test "$enableval" = "yes"; then
5562 test "$have_libsoup" = "yes" || { { echo "$as_me:$LINENO: error: libsoup not found" >&5
5563 echo "$as_me: error: libsoup not found" >&2;}
5564 { (exit 1); exit 1; }; }
5565 TRANSPORT="$TRANSPORT libsoup"
5566 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5567 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5569 cat >>confdefs.h <<\_ACEOF
5570 #define ENABLE_LIBSOUP 1
5574 libsoup_disabled="yes"
5577 if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
5578 TRANSPORT="$TRANSPORT libsoup"
5579 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5580 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5582 cat >>confdefs.h <<\_ACEOF
5583 #define ENABLE_LIBSOUP 1
5590 # SoupTransportAgent depends on glib
5591 case "$TRANSPORT" in *libsoup*) need_glib=yes;; esac
5593 bluetooth_disabled=no
5594 # Check whether --enable-bluetooth was given.
5595 if test "${enable_bluetooth+set}" = set; then
5596 enableval=$enable_bluetooth; enable_bluetooth="$enableval"
5597 if test "$enableval" = "no"; then
5598 bluetooth_disabled=yes
5602 enable_bluetooth="$have_bluetooth"
5606 if test "$enable_bluetooth" = "yes"; then
5607 # currently we need Bluetooth and OBEX support
5608 test "$have_bluetooth" = "yes" || { { echo "$as_me:$LINENO: error: openobex or bluez not found" >&5
5609 echo "$as_me: error: openobex or bluez not found" >&2;}
5610 { (exit 1); exit 1; }; }
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5618 CFLAGS_old="$CFLAGS"
5619 CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
5620 # test in this order:
5621 # - recent libbluetooth (no _safe variant, base function has bufsize)
5622 # - intermediate with _safe
5623 # - else assume old-style (no bufsize, no _safe)
5625 # The source code checks the signature both by via pointer assignment and calling
5626 # it (better safe than sorry). One these should fail if the signature is not right.
5627 cat >conftest.$ac_ext <<_ACEOF
5628 #include <bluetooth/sdp.h>
5629 #include <bluetooth/sdp_lib.h>
5630 sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
5633 uint8_t *pdata = NULL;
5635 sdp_extract_pdu(pdata, 100, &scanned);
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compile") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && {
5653 test -z "$ac_c_werror_flag" ||
5654 test ! -s conftest.err
5655 } && test -s conftest.$ac_objext; then
5657 cat >>confdefs.h <<\_ACEOF
5658 #define HAVE_BLUEZ_BUFSIZE 1
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #include <bluetooth/sdp.h>
5667 #include <bluetooth/sdp_lib.h>
5668 sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
5669 sdp_extract_pdu_safe;
5671 uint8_t *pdata = NULL;
5673 sdp_extract_pdu_safe(pdata, 100, &scanned);
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5695 cat >>confdefs.h <<\_ACEOF
5696 #define HAVE_BLUEZ_SAFE 1
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 CFLAGS="$CFLAGS_old"
5712 if test "$have_obex" = "yes"; then
5714 cat >>confdefs.h <<\_ACEOF
5715 #define ENABLE_OBEX 1
5719 if test "$have_bluez" = "yes"; then
5721 cat >>confdefs.h <<\_ACEOF
5722 #define ENABLE_BLUETOOTH 1
5727 if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
5729 ENABLE_OBEX_FALSE='#'
5731 ENABLE_OBEX_TRUE='#'
5735 if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
5736 ENABLE_BLUETOOTH_TRUE=
5737 ENABLE_BLUETOOTH_FALSE='#'
5739 ENABLE_BLUETOOTH_TRUE='#'
5740 ENABLE_BLUETOOTH_FALSE=
5744 if test ! "$TRANSPORT" &&
5745 test "$libsoup_disabled" != "yes" &&
5746 test "$libcurl_disabled" != "yes" &&
5747 test "$bluetooth_disabled" != "yes" &&
5748 test "$have_bluetooth" != "yes" ; then
5749 { { echo "$as_me:$LINENO: error: no transport library found, configure with --disable-libcurl --disable-libsoup --disable-bluetooth to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&5
5750 echo "$as_me: error: no transport library found, configure with --disable-libcurl --disable-libsoup --disable-bluetooth to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&2;}
5751 { (exit 1); exit 1; }; }
5754 # for libsoup we must specify the SSL certificate file outself
5755 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
5756 # Debian and Red Hat paths
5757 CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
5760 cat >>confdefs.h <<_ACEOF
5761 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
5768 # Check whether --enable-ssl-certificate-check was given.
5769 if test "${enable_ssl_certificate_check+set}" = set; then
5770 enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
5772 enable_ssl_certificate_check="yes"
5775 if test "$enable_ssl_certificate_check" = "yes"; then
5777 cat >>confdefs.h <<\_ACEOF
5778 #define ENABLE_SSL_CERTIFICATE_CHECK 1
5783 # for dbus interface file mangling
5784 # Extract the first word of "xsltproc", so it can be a program name with args.
5785 set dummy xsltproc; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_XSLT+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 XSLT=$ac_cv_path_XSLT
5815 if test -n "$XSLT"; then
5816 { echo "$as_me:$LINENO: result: $XSLT" >&5
5817 echo "${ECHO_T}$XSLT" >&6; }
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5825 # Check whether --enable-gui was given.
5826 if test "${enable_gui+set}" = set; then
5827 enableval=$enable_gui; if test "$enableval" = "gtk" ; then
5829 elif test "$enableval" = "yes" ; then
5831 elif test "$enableval" = "moblin" ; then
5833 elif test "$enableval" = "no" ; then
5835 elif test "$enableval" = "all" ; then
5838 { { echo "$as_me:$LINENO: error: Unknown gui type: '$enableval'" >&5
5839 echo "$as_me: error: Unknown gui type: '$enableval'" >&2;}
5840 { (exit 1); exit 1; }; }
5848 if test "$enable_gui" != "no"; then
5857 # Check whether --enable-core was given.
5858 if test "${enable_core+set}" = set; then
5859 enableval=$enable_core; enable_core="$enableval"
5864 if test "$enable_core" = "yes"; then
5873 # Check whether --enable-dbus-service was given.
5874 if test "${enable_dbus_service+set}" = set; then
5875 enableval=$enable_dbus_service; enable_dbus_service="$enableval"
5877 if test $enable_gui == "no"; then
5878 enable_dbus_service="no"
5880 enable_dbus_service="yes"
5884 if test "$enable_dbus_service" = "yes"; then
5895 { echo "$as_me:$LINENO: checking for KEYRING" >&5
5896 echo $ECHO_N "checking for KEYRING... $ECHO_C" >&6; }
5898 if test -n "$PKG_CONFIG"; then
5899 if test -n "$KEYRING_CFLAGS"; then
5900 pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
5902 if test -n "$PKG_CONFIG" && \
5903 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5904 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; then
5908 pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
5916 if test -n "$PKG_CONFIG"; then
5917 if test -n "$KEYRING_LIBS"; then
5918 pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
5920 if test -n "$PKG_CONFIG" && \
5921 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5922 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; then
5926 pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
5937 if test $pkg_failed = yes; then
5939 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5940 _pkg_short_errors_supported=yes
5942 _pkg_short_errors_supported=no
5944 if test $_pkg_short_errors_supported = yes; then
5945 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1"`
5947 KEYRING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1"`
5949 # Put the nasty error message in config.log where it belongs
5950 echo "$KEYRING_PKG_ERRORS" >&5
5952 { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5955 elif test $pkg_failed = untried; then
5958 KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
5959 KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
5960 { echo "$as_me:$LINENO: result: yes" >&5
5961 echo "${ECHO_T}yes" >&6; }
5964 # Check whether --enable-gnome-keyring was given.
5965 if test "${enable_gnome_keyring+set}" = set; then
5966 enableval=$enable_gnome_keyring; enable_gnome_keyring="$enableval"
5967 test "$enable_gnome_keyring" = "yes" || test "$enable_gnome_keyring" = "no" || { { echo "$as_me:$LINENO: error: invalid value for --enable-gnome-keyring: $enable_gnome_keyring" >&5
5968 echo "$as_me: error: invalid value for --enable-gnome-keyring: $enable_gnome_keyring" >&2;}
5969 { (exit 1); exit 1; }; }
5970 test "$enable_gnome_keyring" = "no" || test "$HAVE_KEYRING" = "yes" || { { echo "$as_me:$LINENO: error: gnome-keyring-1 pkg not found, needed for --enable-gnome-keyring" >&5
5971 echo "$as_me: error: gnome-keyring-1 pkg not found, needed for --enable-gnome-keyring" >&2;}
5972 { (exit 1); exit 1; }; }
5974 enable_gnome_keyring="$HAVE_KEYRING"
5977 if test $enable_gnome_keyring == "yes"; then
5979 cat >>confdefs.h <<\_ACEOF
5980 #define USE_GNOME_KEYRING 1
5985 { echo "$as_me:$LINENO: checking for KEYRING_2_20" >&5
5986 echo $ECHO_N "checking for KEYRING_2_20... $ECHO_C" >&6; }
5988 if test -n "$PKG_CONFIG"; then
5989 if test -n "$KEYRING_2_20_CFLAGS"; then
5990 pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
5992 if test -n "$PKG_CONFIG" && \
5993 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5994 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; then
5998 pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
6006 if test -n "$PKG_CONFIG"; then
6007 if test -n "$KEYRING_2_20_LIBS"; then
6008 pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
6010 if test -n "$PKG_CONFIG" && \
6011 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
6012 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; then
6016 pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
6027 if test $pkg_failed = yes; then
6029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6030 _pkg_short_errors_supported=yes
6032 _pkg_short_errors_supported=no
6034 if test $_pkg_short_errors_supported = yes; then
6035 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
6037 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
6039 # Put the nasty error message in config.log where it belongs
6040 echo "$KEYRING_2_20_PKG_ERRORS" >&5
6042 { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6045 elif test $pkg_failed = untried; then
6048 KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
6049 KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
6050 { echo "$as_me:$LINENO: result: yes" >&5
6051 echo "${ECHO_T}yes" >&6; }
6054 if test $KEYRING220 == "yes"; then
6056 cat >>confdefs.h <<\_ACEOF
6057 #define GNOME_KEYRING_220 1
6063 if test $enable_dbus_service == "yes"; then
6064 if test -z "$XSLT"; then
6065 { { echo "$as_me:$LINENO: error: xsltproc not found, is required for D-Bus service" >&5
6066 echo "$as_me: error: xsltproc not found, is required for D-Bus service" >&2;}
6067 { (exit 1); exit 1; }; }
6071 { echo "$as_me:$LINENO: checking for DBUS" >&5
6072 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
6074 if test -n "$PKG_CONFIG"; then
6075 if test -n "$DBUS_CFLAGS"; then
6076 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
6078 if test -n "$PKG_CONFIG" && \
6079 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
6080 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; then
6084 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
6092 if test -n "$PKG_CONFIG"; then
6093 if test -n "$DBUS_LIBS"; then
6094 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
6096 if test -n "$PKG_CONFIG" && \
6097 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
6098 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; then
6102 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
6113 if test $pkg_failed = yes; then
6115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6116 _pkg_short_errors_supported=yes
6118 _pkg_short_errors_supported=no
6120 if test $_pkg_short_errors_supported = yes; then
6121 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
6123 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
6125 # Put the nasty error message in config.log where it belongs
6126 echo "$DBUS_PKG_ERRORS" >&5
6128 { echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6; }
6130 { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6131 echo "$as_me: error: libdbus-1 is required" >&2;}
6132 { (exit 1); exit 1; }; }
6133 elif test $pkg_failed = untried; then
6134 { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6135 echo "$as_me: error: libdbus-1 is required" >&2;}
6136 { (exit 1); exit 1; }; }
6138 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
6139 DBUS_LIBS=$pkg_cv_DBUS_LIBS
6140 { echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6; }
6144 { echo "$as_me:$LINENO: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
6145 echo $ECHO_N "checking for dbus_watch_get_unix_fd in -ldbus-1... $ECHO_C" >&6; }
6146 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 ac_check_lib_save_LIBS=$LIBS
6150 LIBS="-ldbus-1 $LIBS"
6151 cat >conftest.$ac_ext <<_ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6158 /* Override any GCC internal prototype to avoid an error.
6159 Use char because int might match the return type of a GCC
6160 builtin and then its argument prototype would still apply. */
6164 char dbus_watch_get_unix_fd ();
6168 return dbus_watch_get_unix_fd ();
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_link") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext &&
6190 $as_test_x conftest$ac_exeext; then
6191 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200 conftest$ac_exeext conftest.$ac_ext
6201 LIBS=$ac_check_lib_save_LIBS
6203 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
6204 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
6205 if test $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd = yes; then
6209 cat >>confdefs.h <<\_ACEOF
6210 #define NEED_DBUS_WATCH_GET_UNIX_FD 1
6216 # Recent libnotify releases work with gtk+-2.0 and gtk+-3.0. We
6217 # pick gtk+-2.0 here, to be compatible with old libnotify releases
6218 # which had that hard-cored and because sync-ui also depends on
6222 { echo "$as_me:$LINENO: checking for LIBNOTIFY" >&5
6223 echo $ECHO_N "checking for LIBNOTIFY... $ECHO_C" >&6; }
6225 if test -n "$PKG_CONFIG"; then
6226 if test -n "$LIBNOTIFY_CFLAGS"; then
6227 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
6229 if test -n "$PKG_CONFIG" && \
6230 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify gtk+-2.0\"") >&5
6231 ($PKG_CONFIG --exists --print-errors "libnotify gtk+-2.0") 2>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; then
6235 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify gtk+-2.0" 2>/dev/null`
6243 if test -n "$PKG_CONFIG"; then
6244 if test -n "$LIBNOTIFY_LIBS"; then
6245 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
6247 if test -n "$PKG_CONFIG" && \
6248 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify gtk+-2.0\"") >&5
6249 ($PKG_CONFIG --exists --print-errors "libnotify gtk+-2.0") 2>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; then
6253 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify gtk+-2.0" 2>/dev/null`
6264 if test $pkg_failed = yes; then
6266 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6267 _pkg_short_errors_supported=yes
6269 _pkg_short_errors_supported=no
6271 if test $_pkg_short_errors_supported = yes; then
6272 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify gtk+-2.0"`
6274 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify gtk+-2.0"`
6276 # Put the nasty error message in config.log where it belongs
6277 echo "$LIBNOTIFY_PKG_ERRORS" >&5
6279 { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6282 elif test $pkg_failed = untried; then
6285 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
6286 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
6287 { echo "$as_me:$LINENO: result: yes" >&5
6288 echo "${ECHO_T}yes" >&6; }
6291 # Check whether --enable-notify was given.
6292 if test "${enable_notify+set}" = set; then
6293 enableval=$enable_notify; test "$enableval" = "no" || test $HAVE_LIBNOTIFY = "yes" || { { echo "$as_me:$LINENO: error: required libnotify package not found" >&5
6294 echo "$as_me: error: required libnotify package not found" >&2;}
6295 { (exit 1); exit 1; }; }
6297 test $HAVE_LIBNOTIFY = "yes" || { { echo "$as_me:$LINENO: error: required libnotify package not found, use --disable-notify to compile without notifications" >&5
6298 echo "$as_me: error: required libnotify package not found, use --disable-notify to compile without notifications" >&2;}
6299 { (exit 1); exit 1; }; }
6302 if test $HAVE_LIBNOTIFY == "yes"; then
6304 cat >>confdefs.h <<\_ACEOF
6305 #define HAS_NOTIFY 1
6310 cat >>confdefs.h <<\_ACEOF
6311 #define DBUS_SERVICE 1
6325 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
6328 cat >>confdefs.h <<_ACEOF
6329 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
6333 if test $enable_gui != "no" || test $enable_dbus_service == "yes"; then
6335 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6336 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6337 # Check whether --enable-nls was given.
6338 if test "${enable_nls+set}" = set; then
6339 enableval=$enable_nls; USE_NLS=$enableval
6344 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6345 echo "${ECHO_T}$USE_NLS" >&6; }
6350 case "$am__api_version" in
6352 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
6353 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
6354 { (exit 1); exit 1; }; }
6360 if test -n "0.37.1"; then
6361 { echo "$as_me:$LINENO: checking for intltool >= 0.37.1" >&5
6362 echo $ECHO_N "checking for intltool >= 0.37.1... $ECHO_C" >&6; }
6364 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6365 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6366 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6368 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6369 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
6370 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6371 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.37.1 or later." >&5
6372 echo "$as_me: error: Your intltool is too old. You need intltool 0.37.1 or later." >&2;}
6373 { (exit 1); exit 1; }; }
6376 # Extract the first word of "intltool-update", so it can be a program name with args.
6377 set dummy intltool-update; ac_word=$2
6378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6380 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 case $INTLTOOL_UPDATE in
6385 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6407 if test -n "$INTLTOOL_UPDATE"; then
6408 { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
6409 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6416 # Extract the first word of "intltool-merge", so it can be a program name with args.
6417 set dummy intltool-merge; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 case $INTLTOOL_MERGE in
6425 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6447 if test -n "$INTLTOOL_MERGE"; then
6448 { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
6449 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6456 # Extract the first word of "intltool-extract", so it can be a program name with args.
6457 set dummy intltool-extract; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 case $INTLTOOL_EXTRACT in
6465 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6487 if test -n "$INTLTOOL_EXTRACT"; then
6488 { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
6489 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6496 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6497 { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
6498 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
6499 { (exit 1); exit 1; }; }
6502 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 $< $@'
6503 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 $< $@'
6504 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 $< $@'
6505 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 $< $@'
6506 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
6507 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 $< $@'
6508 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 $< $@'
6509 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 $< $@'
6510 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 $< $@'
6511 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 $< $@'
6512 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 $< $@'
6513 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
6514 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 $< $@'
6515 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 $< $@'
6516 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 $< $@'
6517 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 $< $@'
6518 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 $< $@'
6519 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 $< $@'
6520 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 $< $@'
6618 # Check the gettext tools to make sure they are GNU
6619 # Extract the first word of "xgettext", so it can be a program name with args.
6620 set dummy xgettext; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 XGETTEXT=$ac_cv_path_XGETTEXT
6650 if test -n "$XGETTEXT"; then
6651 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6652 echo "${ECHO_T}$XGETTEXT" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6659 # Extract the first word of "msgmerge", so it can be a program name with args.
6660 set dummy msgmerge; ac_word=$2
6661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 MSGMERGE=$ac_cv_path_MSGMERGE
6690 if test -n "$MSGMERGE"; then
6691 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6692 echo "${ECHO_T}$MSGMERGE" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6699 # Extract the first word of "msgfmt", so it can be a program name with args.
6700 set dummy msgfmt; ac_word=$2
6701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703 if test "${ac_cv_path_MSGFMT+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 MSGFMT=$ac_cv_path_MSGFMT
6730 if test -n "$MSGFMT"; then
6731 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6732 echo "${ECHO_T}$MSGFMT" >&6; }
6734 { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6739 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6740 set dummy gmsgfmt; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6770 GMSGFMT=$ac_cv_path_GMSGFMT
6771 if test -n "$GMSGFMT"; then
6772 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6773 echo "${ECHO_T}$GMSGFMT" >&6; }
6775 { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6780 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6781 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6782 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6783 { (exit 1); exit 1; }; }
6785 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6786 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6787 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6788 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6789 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6790 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6791 { (exit 1); exit 1; }; }
6794 # Extract the first word of "perl", so it can be a program name with args.
6795 set dummy perl; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 case $INTLTOOL_PERL in
6803 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6825 if test -n "$INTLTOOL_PERL"; then
6826 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6827 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6834 if test -z "$INTLTOOL_PERL"; then
6835 { { echo "$as_me:$LINENO: error: perl not found" >&5
6836 echo "$as_me: error: perl not found" >&2;}
6837 { (exit 1); exit 1; }; }
6839 { echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
6840 echo $ECHO_N "checking for perl >= 5.8.1... $ECHO_C" >&6; }
6841 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6842 if test $? -ne 0; then
6843 { { echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
6844 echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
6845 { (exit 1); exit 1; }; }
6847 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
6848 { echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
6849 echo "${ECHO_T}$IT_PERL_VERSION" >&6; }
6851 if test "x" != "xno-xml"; then
6852 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
6853 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
6854 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6855 { echo "$as_me:$LINENO: result: ok" >&5
6856 echo "${ECHO_T}ok" >&6; }
6858 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
6859 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
6860 { (exit 1); exit 1; }; }
6864 # Substitute ALL_LINGUAS so we can use it in po/Makefile
6867 # Set DATADIRNAME correctly if it is not set yet
6868 # (copied from glib-gettext.m4)
6869 if test -z "$DATADIRNAME"; then
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6880 extern int _nl_msg_cat_cntr;
6881 return _nl_msg_cat_cntr
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_link") 2>conftest.er1
6895 grep -v '^ *+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest$ac_exeext &&
6903 $as_test_x conftest$ac_exeext; then
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6911 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6912 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6913 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6924 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char bind_textdomain_codeset (); below.
6928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929 <limits.h> exists even on freestanding compilers. */
6932 # include <limits.h>
6934 # include <assert.h>
6937 #undef bind_textdomain_codeset
6939 /* Override any GCC internal prototype to avoid an error.
6940 Use char because int might match the return type of a GCC
6941 builtin and then its argument prototype would still apply. */
6945 char bind_textdomain_codeset ();
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6956 return bind_textdomain_codeset ();
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_link") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest$ac_exeext &&
6978 $as_test_x conftest$ac_exeext; then
6979 ac_cv_func_bind_textdomain_codeset=yes
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 ac_cv_func_bind_textdomain_codeset=no
6987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6988 conftest$ac_exeext conftest.$ac_ext
6990 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6991 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
6992 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7006 conftest$ac_exeext conftest.$ac_ext
7013 GETTEXT_PACKAGE=syncevolution
7015 cat >>confdefs.h <<_ACEOF
7016 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7021 for ac_header in locale.h
7023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 ac_res=`eval echo '${'$as_ac_Header'}'`
7031 { echo "$as_me:$LINENO: result: $ac_res" >&5
7032 echo "${ECHO_T}$ac_res" >&6; }
7034 # Is the header compilable?
7035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 $ac_includes_default
7044 #include <$ac_header>
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.$ac_objext; then
7063 ac_header_compiler=yes
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_header_compiler=no
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7073 echo "${ECHO_T}$ac_header_compiler" >&6; }
7075 # Is the header present?
7076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 #include <$ac_header>
7086 if { (ac_try="$ac_cpp conftest.$ac_ext"
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7094 grep -v '^ *+' conftest.er1 >conftest.err
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } >/dev/null && {
7099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7100 test ! -s conftest.err
7102 ac_header_preproc=yes
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 ac_header_preproc=no
7110 rm -f conftest.err conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7112 echo "${ECHO_T}$ac_header_preproc" >&6; }
7114 # So? What about this header?
7115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7121 ac_header_preproc=yes
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 eval "$as_ac_Header=\$ac_header_preproc"
7146 ac_res=`eval echo '${'$as_ac_Header'}'`
7147 { echo "$as_me:$LINENO: result: $ac_res" >&5
7148 echo "${ECHO_T}$ac_res" >&6; }
7151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7152 cat >>confdefs.h <<_ACEOF
7153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7160 if test $ac_cv_header_locale_h = yes; then
7161 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7162 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
7163 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (ac_try="$ac_link"
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188 (eval "$ac_link") 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest$ac_exeext &&
7198 $as_test_x conftest$ac_exeext; then
7199 am_cv_val_LC_MESSAGES=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 am_cv_val_LC_MESSAGES=no
7207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7208 conftest$ac_exeext conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7211 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
7212 if test $am_cv_val_LC_MESSAGES = yes; then
7214 cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_LC_MESSAGES 1
7223 gt_cv_have_gettext=no
7229 if test "${ac_cv_header_libintl_h+set}" = set; then
7230 { echo "$as_me:$LINENO: checking for libintl.h" >&5
7231 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7232 if test "${ac_cv_header_libintl_h+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7236 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7238 # Is the header compilable?
7239 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
7240 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7248 #include <libintl.h>
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7259 grep -v '^ *+' conftest.er1 >conftest.err
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 ac_header_compiler=yes
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 ac_header_compiler=no
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7277 echo "${ECHO_T}$ac_header_compiler" >&6; }
7279 # Is the header present?
7280 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
7281 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 #include <libintl.h>
7290 if { (ac_try="$ac_cpp conftest.$ac_ext"
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7298 grep -v '^ *+' conftest.er1 >conftest.err
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } >/dev/null && {
7303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7306 ac_header_preproc=yes
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 ac_header_preproc=no
7314 rm -f conftest.err conftest.$ac_ext
7315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7316 echo "${ECHO_T}$ac_header_preproc" >&6; }
7318 # So? What about this header?
7319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7321 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7322 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7324 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7325 ac_header_preproc=yes
7328 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7329 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7331 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7333 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7334 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7335 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7336 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7337 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7338 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7339 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7343 { echo "$as_me:$LINENO: checking for libintl.h" >&5
7344 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7345 if test "${ac_cv_header_libintl_h+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_cv_header_libintl_h=$ac_header_preproc
7350 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7351 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7354 if test $ac_cv_header_libintl_h = yes; then
7355 gt_cv_func_dgettext_libintl="no"
7356 libintl_extra_libs=""
7359 # First check in libc
7361 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
7362 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
7363 if test "${gt_cv_func_ngettext_libc+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7373 #include <libintl.h>
7378 return !ngettext ("","", 1)
7383 rm -f conftest.$ac_objext conftest$ac_exeext
7384 if { (ac_try="$ac_link"
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_link") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest$ac_exeext &&
7400 $as_test_x conftest$ac_exeext; then
7401 gt_cv_func_ngettext_libc=yes
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 gt_cv_func_ngettext_libc=no
7409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410 conftest$ac_exeext conftest.$ac_ext
7413 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
7414 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
7416 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7417 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7418 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
7419 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7429 #include <libintl.h>
7434 return !dgettext ("","")
7439 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>conftest.er1
7448 grep -v '^ *+' conftest.er1 >conftest.err
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest$ac_exeext &&
7456 $as_test_x conftest$ac_exeext; then
7457 gt_cv_func_dgettext_libc=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 gt_cv_func_dgettext_libc=no
7465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7466 conftest$ac_exeext conftest.$ac_ext
7469 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7470 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
7473 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7475 for ac_func in bind_textdomain_codeset
7477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7491 #define $ac_func innocuous_$ac_func
7493 /* System header to define __stub macros and hopefully few prototypes,
7494 which can conflict with char $ac_func (); below.
7495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496 <limits.h> exists even on freestanding compilers. */
7499 # include <limits.h>
7501 # include <assert.h>
7506 /* Override any GCC internal prototype to avoid an error.
7507 Use char because int might match the return type of a GCC
7508 builtin and then its argument prototype would still apply. */
7513 /* The GNU C library defines this for functions which it implements
7514 to always fail with ENOSYS. Some functions are actually named
7515 something starting with __ and the normal name is an alias. */
7516 #if defined __stub_$ac_func || defined __stub___$ac_func
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (ac_try="$ac_link"
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_link") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest$ac_exeext &&
7545 $as_test_x conftest$ac_exeext; then
7546 eval "$as_ac_var=yes"
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 eval "$as_ac_var=no"
7554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7555 conftest$ac_exeext conftest.$ac_ext
7557 ac_res=`eval echo '${'$as_ac_var'}'`
7558 { echo "$as_me:$LINENO: result: $ac_res" >&5
7559 echo "${ECHO_T}$ac_res" >&6; }
7560 if test `eval echo '${'$as_ac_var'}'` = yes; then
7561 cat >>confdefs.h <<_ACEOF
7562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7571 # If we don't have everything we want, check in libintl
7573 if test "$gt_cv_func_dgettext_libc" != "yes" \
7574 || test "$gt_cv_func_ngettext_libc" != "yes" \
7575 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7577 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7578 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
7579 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_check_lib_save_LIBS=$LIBS
7584 cat >conftest.$ac_ext <<_ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7591 /* Override any GCC internal prototype to avoid an error.
7592 Use char because int might match the return type of a GCC
7593 builtin and then its argument prototype would still apply. */
7597 char bindtextdomain ();
7601 return bindtextdomain ();
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (ac_try="$ac_link"
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_link") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest$ac_exeext &&
7623 $as_test_x conftest$ac_exeext; then
7624 ac_cv_lib_intl_bindtextdomain=yes
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_cv_lib_intl_bindtextdomain=no
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7633 conftest$ac_exeext conftest.$ac_ext
7634 LIBS=$ac_check_lib_save_LIBS
7636 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7637 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
7638 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7639 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7640 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7641 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 ac_check_lib_save_LIBS=$LIBS
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7653 /* Override any GCC internal prototype to avoid an error.
7654 Use char because int might match the return type of a GCC
7655 builtin and then its argument prototype would still apply. */
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_link") 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest$ac_exeext &&
7685 $as_test_x conftest$ac_exeext; then
7686 ac_cv_lib_intl_ngettext=yes
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 ac_cv_lib_intl_ngettext=no
7694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7695 conftest$ac_exeext conftest.$ac_ext
7696 LIBS=$ac_check_lib_save_LIBS
7698 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7699 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7700 if test $ac_cv_lib_intl_ngettext = yes; then
7701 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7702 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
7703 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 ac_check_lib_save_LIBS=$LIBS
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7715 /* Override any GCC internal prototype to avoid an error.
7716 Use char because int might match the return type of a GCC
7717 builtin and then its argument prototype would still apply. */
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (ac_try="$ac_link"
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_link") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest$ac_exeext &&
7747 $as_test_x conftest$ac_exeext; then
7748 ac_cv_lib_intl_dgettext=yes
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_cv_lib_intl_dgettext=no
7756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7757 conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7760 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7761 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
7762 if test $ac_cv_lib_intl_dgettext = yes; then
7763 gt_cv_func_dgettext_libintl=yes
7771 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7772 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7773 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
7774 { echo "$as_me:$LINENO: result: " >&5
7775 echo "${ECHO_T}" >&6; }
7776 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7777 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7778 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_check_lib_save_LIBS=$LIBS
7782 LIBS="-lintl -liconv $LIBS"
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7790 /* Override any GCC internal prototype to avoid an error.
7791 Use char because int might match the return type of a GCC
7792 builtin and then its argument prototype would still apply. */
7805 rm -f conftest.$ac_objext conftest$ac_exeext
7806 if { (ac_try="$ac_link"
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_link") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest$ac_exeext &&
7822 $as_test_x conftest$ac_exeext; then
7823 ac_cv_lib_intl_ngettext=yes
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 ac_cv_lib_intl_ngettext=no
7831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7832 conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_lib_save_LIBS
7835 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7836 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7837 if test $ac_cv_lib_intl_ngettext = yes; then
7838 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7839 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
7840 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lintl -liconv $LIBS"
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7852 /* Override any GCC internal prototype to avoid an error.
7853 Use char because int might match the return type of a GCC
7854 builtin and then its argument prototype would still apply. */
7862 return dcgettext ();
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest$ac_exeext &&
7884 $as_test_x conftest$ac_exeext; then
7885 ac_cv_lib_intl_dcgettext=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_lib_intl_dcgettext=no
7893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LIBS=$ac_check_lib_save_LIBS
7897 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7898 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7899 if test $ac_cv_lib_intl_dcgettext = yes; then
7900 gt_cv_func_dgettext_libintl=yes
7901 libintl_extra_libs=-liconv
7913 # If we found libintl, then check in it for bind_textdomain_codeset();
7914 # we'll prefer libc if neither have bind_textdomain_codeset(),
7915 # and both have dgettext and ngettext
7917 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7918 glib_save_LIBS="$LIBS"
7919 LIBS="$LIBS -lintl $libintl_extra_libs"
7920 unset ac_cv_func_bind_textdomain_codeset
7922 for ac_func in bind_textdomain_codeset
7924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7938 #define $ac_func innocuous_$ac_func
7940 /* System header to define __stub macros and hopefully few prototypes,
7941 which can conflict with char $ac_func (); below.
7942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7943 <limits.h> exists even on freestanding compilers. */
7946 # include <limits.h>
7948 # include <assert.h>
7953 /* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply. */
7960 /* The GNU C library defines this for functions which it implements
7961 to always fail with ENOSYS. Some functions are actually named
7962 something starting with __ and the normal name is an alias. */
7963 #if defined __stub_$ac_func || defined __stub___$ac_func
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_link") 2>conftest.er1
7984 grep -v '^ *+' conftest.er1 >conftest.err
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest$ac_exeext &&
7992 $as_test_x conftest$ac_exeext; then
7993 eval "$as_ac_var=yes"
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 eval "$as_ac_var=no"
8001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002 conftest$ac_exeext conftest.$ac_ext
8004 ac_res=`eval echo '${'$as_ac_var'}'`
8005 { echo "$as_me:$LINENO: result: $ac_res" >&5
8006 echo "${ECHO_T}$ac_res" >&6; }
8007 if test `eval echo '${'$as_ac_var'}'` = yes; then
8008 cat >>confdefs.h <<_ACEOF
8009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8015 LIBS="$glib_save_LIBS"
8017 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8018 gt_cv_func_dgettext_libc=no
8020 if test "$gt_cv_func_dgettext_libc" = "yes" \
8021 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8022 gt_cv_func_dgettext_libintl=no
8028 if test "$gt_cv_func_dgettext_libc" = "yes" \
8029 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8030 gt_cv_have_gettext=yes
8033 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8034 INTLLIBS="-lintl $libintl_extra_libs"
8037 if test "$gt_cv_have_gettext" = "yes"; then
8039 cat >>confdefs.h <<\_ACEOF
8040 #define HAVE_GETTEXT 1
8043 # Extract the first word of "msgfmt", so it can be a program name with args.
8044 set dummy msgfmt; ac_word=$2
8045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8047 if test "${ac_cv_path_MSGFMT+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8056 for ac_dir in $PATH; do
8057 test -z "$ac_dir" && ac_dir=.
8058 if test -f $ac_dir/$ac_word; then
8059 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8060 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8066 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8070 MSGFMT="$ac_cv_path_MSGFMT"
8071 if test "$MSGFMT" != "no"; then
8072 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8073 echo "${ECHO_T}$MSGFMT" >&6; }
8075 { echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6; }
8078 if test "$MSGFMT" != "no"; then
8079 glib_save_LIBS="$LIBS"
8080 LIBS="$LIBS $INTLLIBS"
8082 for ac_func in dcgettext
8084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8098 #define $ac_func innocuous_$ac_func
8100 /* System header to define __stub macros and hopefully few prototypes,
8101 which can conflict with char $ac_func (); below.
8102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8103 <limits.h> exists even on freestanding compilers. */
8106 # include <limits.h>
8108 # include <assert.h>
8113 /* Override any GCC internal prototype to avoid an error.
8114 Use char because int might match the return type of a GCC
8115 builtin and then its argument prototype would still apply. */
8120 /* The GNU C library defines this for functions which it implements
8121 to always fail with ENOSYS. Some functions are actually named
8122 something starting with __ and the normal name is an alias. */
8123 #if defined __stub_$ac_func || defined __stub___$ac_func
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_link") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest$ac_exeext &&
8152 $as_test_x conftest$ac_exeext; then
8153 eval "$as_ac_var=yes"
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 eval "$as_ac_var=no"
8161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8162 conftest$ac_exeext conftest.$ac_ext
8164 ac_res=`eval echo '${'$as_ac_var'}'`
8165 { echo "$as_me:$LINENO: result: $ac_res" >&5
8166 echo "${ECHO_T}$ac_res" >&6; }
8167 if test `eval echo '${'$as_ac_var'}'` = yes; then
8168 cat >>confdefs.h <<_ACEOF
8169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8176 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
8177 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
8178 cat >conftest.foo <<_ACEOF
8182 "Content-Type: text/plain; charset=UTF-8\n"
8183 "Project-Id-Version: test 1.0\n"
8184 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8185 "Last-Translator: test <foo@bar.xx>\n"
8186 "Language-Team: C <LL@li.org>\n"
8187 "MIME-Version: 1.0\n"
8188 "Content-Transfer-Encoding: 8bit\n"
8191 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
8192 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; then
8196 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
8197 echo "${ECHO_T}yes" >&6; }
8198 else { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8200 echo "$as_me: failed input was:" >&5
8201 sed 's/^/| /' conftest.foo >&5
8204 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8205 set dummy gmsgfmt; ac_word=$2
8206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8208 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8235 GMSGFMT=$ac_cv_path_GMSGFMT
8236 if test -n "$GMSGFMT"; then
8237 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8238 echo "${ECHO_T}$GMSGFMT" >&6; }
8240 { echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6; }
8245 # Extract the first word of "xgettext", so it can be a program name with args.
8246 set dummy xgettext; ac_word=$2
8247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8249 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8258 for ac_dir in $PATH; do
8259 test -z "$ac_dir" && ac_dir=.
8260 if test -f $ac_dir/$ac_word; then
8261 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8262 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8268 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8272 XGETTEXT="$ac_cv_path_XGETTEXT"
8273 if test "$XGETTEXT" != ":"; then
8274 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8275 echo "${ECHO_T}$XGETTEXT" >&6; }
8277 { echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6; }
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8291 extern int _nl_msg_cat_cntr;
8292 return _nl_msg_cat_cntr
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (ac_try="$ac_link"
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_link") 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest$ac_exeext &&
8314 $as_test_x conftest$ac_exeext; then
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8323 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8324 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
8325 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8336 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8338 /* System header to define __stub macros and hopefully few prototypes,
8339 which can conflict with char bind_textdomain_codeset (); below.
8340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8341 <limits.h> exists even on freestanding compilers. */
8344 # include <limits.h>
8346 # include <assert.h>
8349 #undef bind_textdomain_codeset
8351 /* Override any GCC internal prototype to avoid an error.
8352 Use char because int might match the return type of a GCC
8353 builtin and then its argument prototype would still apply. */
8357 char bind_textdomain_codeset ();
8358 /* The GNU C library defines this for functions which it implements
8359 to always fail with ENOSYS. Some functions are actually named
8360 something starting with __ and the normal name is an alias. */
8361 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8368 return bind_textdomain_codeset ();
8373 rm -f conftest.$ac_objext conftest$ac_exeext
8374 if { (ac_try="$ac_link"
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_link") 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && {
8387 test -z "$ac_c_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest$ac_exeext &&
8390 $as_test_x conftest$ac_exeext; then
8391 ac_cv_func_bind_textdomain_codeset=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_cv_func_bind_textdomain_codeset=no
8399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8400 conftest$ac_exeext conftest.$ac_ext
8402 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8403 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
8404 if test $ac_cv_func_bind_textdomain_codeset = yes; then
8420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8421 conftest$ac_exeext conftest.$ac_ext
8422 LIBS="$glib_save_LIBS"
8425 gt_cv_have_gettext=no
8433 if test "$gt_cv_have_gettext" = "yes" ; then
8435 cat >>confdefs.h <<\_ACEOF
8436 #define ENABLE_NLS 1
8441 if test "$XGETTEXT" != ":"; then
8442 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8445 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8446 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8451 # We need to process the po/ directory.
8454 ac_config_commands="$ac_config_commands default-1"
8457 for lang in $ALL_LINGUAS; do
8458 GMOFILES="$GMOFILES $lang.gmo"
8459 POFILES="$POFILES $lang.po"
8474 if test "$gt_cv_have_gettext" = "yes"; then
8475 if test "x$ALL_LINGUAS" = "x"; then
8478 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8479 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8481 for presentlang in $ALL_LINGUAS; do
8483 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8484 desiredlanguages="$LINGUAS"
8486 desiredlanguages="$ALL_LINGUAS"
8488 for desiredlang in $desiredlanguages; do
8489 # Use the presentlang catalog if desiredlang is
8490 # a. equal to presentlang, or
8491 # b. a variant of presentlang (because in this case,
8492 # presentlang can be used as a fallback for messages
8493 # which are not translated in the desiredlang catalog).
8494 case "$desiredlang" in
8495 "$presentlang"*) useit=yes;;
8498 if test $useit = yes; then
8499 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8502 LINGUAS=$NEW_LINGUAS
8503 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8504 echo "${ECHO_T}$LINGUAS" >&6; }
8507 if test -n "$LINGUAS"; then
8508 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8513 if test -n "$ac_aux_dir"; then
8514 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8516 if test -z "$MKINSTALLDIRS"; then
8517 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8521 test -d po || mkdir po
8522 if test "x$srcdir" != "x."; then
8523 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8524 posrcprefix="$srcdir/"
8526 posrcprefix="../$srcdir/"
8532 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8533 < $srcdir/po/POTFILES.in > po/POTFILES
8535 SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
8538 # decide which sync-ui(s) we are building:
8539 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
8541 all) GUI_PROGRAMS='sync-ui-gtk${EXEEXT} sync-ui-moblin${EXEEXT}'; GUI_DESKTOP_FILES="sync-gtk.desktop sync-moblin.desktop";;
8542 gtk|moblin) GUI_PROGRAMS='sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="sync.desktop";;
8543 no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
8544 *) { { echo "$as_me:$LINENO: error: Unknown enable_gui type: '$enable_gui'" >&5
8545 echo "$as_me: error: Unknown enable_gui type: '$enable_gui'" >&2;}
8546 { (exit 1); exit 1; }; }
8549 if test $enable_gui != "no"; then
8552 { echo "$as_me:$LINENO: checking for DBUS_GLIB" >&5
8553 echo $ECHO_N "checking for DBUS_GLIB... $ECHO_C" >&6; }
8555 if test -n "$PKG_CONFIG"; then
8556 if test -n "$DBUS_GLIB_CFLAGS"; then
8557 pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
8559 if test -n "$PKG_CONFIG" && \
8560 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
8561 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; then
8565 pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
8573 if test -n "$PKG_CONFIG"; then
8574 if test -n "$DBUS_GLIB_LIBS"; then
8575 pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
8577 if test -n "$PKG_CONFIG" && \
8578 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
8579 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; then
8583 pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
8594 if test $pkg_failed = yes; then
8596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8597 _pkg_short_errors_supported=yes
8599 _pkg_short_errors_supported=no
8601 if test $_pkg_short_errors_supported = yes; then
8602 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
8604 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
8606 # Put the nasty error message in config.log where it belongs
8607 echo "$DBUS_GLIB_PKG_ERRORS" >&5
8609 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
8611 $DBUS_GLIB_PKG_ERRORS
8613 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8614 installed software in a non-standard prefix.
8616 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8617 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8618 See the pkg-config man page for more details.
8620 echo "$as_me: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
8622 $DBUS_GLIB_PKG_ERRORS
8624 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8625 installed software in a non-standard prefix.
8627 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8628 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8629 See the pkg-config man page for more details.
8631 { (exit 1); exit 1; }; }
8632 elif test $pkg_failed = untried; then
8633 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8634 is in your PATH or set the PKG_CONFIG environment variable to the full
8637 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8638 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8639 See the pkg-config man page for more details.
8641 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8642 See \`config.log' for more details." >&5
8643 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8644 is in your PATH or set the PKG_CONFIG environment variable to the full
8647 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8648 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8649 See the pkg-config man page for more details.
8651 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8652 See \`config.log' for more details." >&2;}
8653 { (exit 1); exit 1; }; }
8655 DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
8656 DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
8657 { echo "$as_me:$LINENO: result: yes" >&5
8658 echo "${ECHO_T}yes" >&6; }
8661 # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
8662 set dummy dbus-binding-tool; ac_word=$2
8663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8665 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 case $DBUS_BINDING_TOOL in
8670 ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
8681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
8692 if test -n "$DBUS_BINDING_TOOL"; then
8693 { echo "$as_me:$LINENO: result: $DBUS_BINDING_TOOL" >&5
8694 echo "${ECHO_T}$DBUS_BINDING_TOOL" >&6; }
8696 { echo "$as_me:$LINENO: result: no" >&5
8697 echo "${ECHO_T}no" >&6; }
8701 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
8702 set dummy glib-genmarshal; ac_word=$2
8703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8705 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 case $GLIB_GENMARSHAL in
8710 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
8721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
8732 if test -n "$GLIB_GENMARSHAL"; then
8733 { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
8734 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; }
8736 { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8742 gui_modules="glib-2.0 dbus-glib-1 >= 0.60 gtk+-2.0 libglade-2.0 gio-2.0"
8743 if test $enable_gui == "moblin"; then
8745 cat >>confdefs.h <<\_ACEOF
8746 #define USE_MOBLIN_UX 1
8750 if test $enable_gui == "moblin" -o $enable_gui == "all"; then
8751 gui_modules="$guimodules mx-gtk-1.0"
8755 { echo "$as_me:$LINENO: checking for MX_GTK_0_99_1" >&5
8756 echo $ECHO_N "checking for MX_GTK_0_99_1... $ECHO_C" >&6; }
8758 if test -n "$PKG_CONFIG"; then
8759 if test -n "$MX_GTK_0_99_1_CFLAGS"; then
8760 pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
8762 if test -n "$PKG_CONFIG" && \
8763 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\"") >&5
8764 ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; then
8768 pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
8776 if test -n "$PKG_CONFIG"; then
8777 if test -n "$MX_GTK_0_99_1_LIBS"; then
8778 pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
8780 if test -n "$PKG_CONFIG" && \
8781 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\"") >&5
8782 ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; then
8786 pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
8797 if test $pkg_failed = yes; then
8799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8800 _pkg_short_errors_supported=yes
8802 _pkg_short_errors_supported=no
8804 if test $_pkg_short_errors_supported = yes; then
8805 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
8807 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
8809 # Put the nasty error message in config.log where it belongs
8810 echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
8812 { echo "$as_me:$LINENO: result: no" >&5
8813 echo "${ECHO_T}no" >&6; }
8814 have_mx_gtk_0_99_1="no"
8815 elif test $pkg_failed = untried; then
8816 have_mx_gtk_0_99_1="no"
8818 MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
8819 MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
8820 { echo "$as_me:$LINENO: result: yes" >&5
8821 echo "${ECHO_T}yes" >&6; }
8822 have_mx_gtk_0_99_1="yes"
8824 if test $have_mx_gtk_0_99_1 == "yes"; then
8826 cat >>confdefs.h <<\_ACEOF
8827 #define MX_GTK_0_99_1 1
8835 { echo "$as_me:$LINENO: checking for UNIQUE" >&5
8836 echo $ECHO_N "checking for UNIQUE... $ECHO_C" >&6; }
8838 if test -n "$PKG_CONFIG"; then
8839 if test -n "$UNIQUE_CFLAGS"; then
8840 pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
8842 if test -n "$PKG_CONFIG" && \
8843 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
8844 ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; then
8848 pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
8856 if test -n "$PKG_CONFIG"; then
8857 if test -n "$UNIQUE_LIBS"; then
8858 pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
8860 if test -n "$PKG_CONFIG" && \
8861 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
8862 ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; then
8866 pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
8877 if test $pkg_failed = yes; then
8879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8880 _pkg_short_errors_supported=yes
8882 _pkg_short_errors_supported=no
8884 if test $_pkg_short_errors_supported = yes; then
8885 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "unique-1.0"`
8887 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "unique-1.0"`
8889 # Put the nasty error message in config.log where it belongs
8890 echo "$UNIQUE_PKG_ERRORS" >&5
8892 { echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6; }
8895 elif test $pkg_failed = untried; then
8898 UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
8899 UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
8900 { echo "$as_me:$LINENO: result: yes" >&5
8901 echo "${ECHO_T}yes" >&6; }
8904 if test $have_unique == "yes"; then
8905 gui_modules="$gui_modules unique-1.0"
8907 cat >>confdefs.h <<\_ACEOF
8908 #define ENABLE_UNIQUE 1
8915 { echo "$as_me:$LINENO: checking for GTK_2_18" >&5
8916 echo $ECHO_N "checking for GTK_2_18... $ECHO_C" >&6; }
8918 if test -n "$PKG_CONFIG"; then
8919 if test -n "$GTK_2_18_CFLAGS"; then
8920 pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
8922 if test -n "$PKG_CONFIG" && \
8923 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\"") >&5
8924 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; then
8928 pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
8936 if test -n "$PKG_CONFIG"; then
8937 if test -n "$GTK_2_18_LIBS"; then
8938 pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
8940 if test -n "$PKG_CONFIG" && \
8941 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\"") >&5
8942 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; then
8946 pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
8957 if test $pkg_failed = yes; then
8959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8960 _pkg_short_errors_supported=yes
8962 _pkg_short_errors_supported=no
8964 if test $_pkg_short_errors_supported = yes; then
8965 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
8967 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
8969 # Put the nasty error message in config.log where it belongs
8970 echo "$GTK_2_18_PKG_ERRORS" >&5
8972 { echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6; }
8975 elif test $pkg_failed = untried; then
8978 GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
8979 GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
8980 { echo "$as_me:$LINENO: result: yes" >&5
8981 echo "${ECHO_T}yes" >&6; }
8984 if test $have_gtk_2_18 == "yes"; then
8986 cat >>confdefs.h <<\_ACEOF
8994 { echo "$as_me:$LINENO: checking for GUI" >&5
8995 echo $ECHO_N "checking for GUI... $ECHO_C" >&6; }
8997 if test -n "$PKG_CONFIG"; then
8998 if test -n "$GUI_CFLAGS"; then
8999 pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
9001 if test -n "$PKG_CONFIG" && \
9002 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
9003 ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; then
9007 pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
9015 if test -n "$PKG_CONFIG"; then
9016 if test -n "$GUI_LIBS"; then
9017 pkg_cv_GUI_LIBS="$GUI_LIBS"
9019 if test -n "$PKG_CONFIG" && \
9020 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
9021 ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; then
9025 pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
9036 if test $pkg_failed = yes; then
9038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9039 _pkg_short_errors_supported=yes
9041 _pkg_short_errors_supported=no
9043 if test $_pkg_short_errors_supported = yes; then
9044 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gui_modules"`
9046 GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gui_modules"`
9048 # Put the nasty error message in config.log where it belongs
9049 echo "$GUI_PKG_ERRORS" >&5
9051 { { echo "$as_me:$LINENO: error: Package requirements ($gui_modules) were not met:
9055 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9056 installed software in a non-standard prefix.
9058 Alternatively, you may set the environment variables GUI_CFLAGS
9059 and GUI_LIBS to avoid the need to call pkg-config.
9060 See the pkg-config man page for more details.
9062 echo "$as_me: error: Package requirements ($gui_modules) were not met:
9066 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9067 installed software in a non-standard prefix.
9069 Alternatively, you may set the environment variables GUI_CFLAGS
9070 and GUI_LIBS to avoid the need to call pkg-config.
9071 See the pkg-config man page for more details.
9073 { (exit 1); exit 1; }; }
9074 elif test $pkg_failed = untried; then
9075 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9076 is in your PATH or set the PKG_CONFIG environment variable to the full
9079 Alternatively, you may set the environment variables GUI_CFLAGS
9080 and GUI_LIBS to avoid the need to call pkg-config.
9081 See the pkg-config man page for more details.
9083 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9084 See \`config.log' for more details." >&5
9085 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9086 is in your PATH or set the PKG_CONFIG environment variable to the full
9089 Alternatively, you may set the environment variables GUI_CFLAGS
9090 and GUI_LIBS to avoid the need to call pkg-config.
9091 See the pkg-config man page for more details.
9093 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9094 See \`config.log' for more details." >&2;}
9095 { (exit 1); exit 1; }; }
9097 GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
9098 GUI_LIBS=$pkg_cv_GUI_LIBS
9099 { echo "$as_me:$LINENO: result: yes" >&5
9100 echo "${ECHO_T}yes" >&6; }
9104 # Extract the first word of "gtk-builder-convert", so it can be a program name with args.
9105 set dummy gtk-builder-convert; ac_word=$2
9106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9108 if test "${ac_cv_path_GTK_BUILDER_CONV+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 case $GTK_BUILDER_CONV in
9113 ac_cv_path_GTK_BUILDER_CONV="$GTK_BUILDER_CONV" # Let the user override the test with a path.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_path_GTK_BUILDER_CONV="$as_dir/$ac_word$ac_exec_ext"
9124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 GTK_BUILDER_CONV=$ac_cv_path_GTK_BUILDER_CONV
9135 if test -n "$GTK_BUILDER_CONV"; then
9136 { echo "$as_me:$LINENO: result: $GTK_BUILDER_CONV" >&5
9137 echo "${ECHO_T}$GTK_BUILDER_CONV" >&6; }
9139 { echo "$as_me:$LINENO: result: no" >&5
9140 echo "${ECHO_T}no" >&6; }
9144 elif test "$enable_dbus_service" = "yes"; then
9145 # syncevo-dbus-server needs localization
9148 INTLTOOL_UPDATE="true"
9159 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
9160 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
9161 # as Debian Etch backport.
9163 ac_cpp='$CXXCPP $CPPFLAGS'
9164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9167 if test -z "$CXX"; then
9168 if test -n "$CCC"; then
9171 if test -n "$ac_tool_prefix"; then
9172 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9178 if test "${ac_cv_prog_CXX+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 if test -n "$CXX"; then
9182 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 if test -n "$CXX"; then
9203 { echo "$as_me:$LINENO: result: $CXX" >&5
9204 echo "${ECHO_T}$CXX" >&6; }
9206 { echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6; }
9211 test -n "$CXX" && break
9214 if test -z "$CXX"; then
9216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9218 # Extract the first word of "$ac_prog", so it can be a program name with args.
9219 set dummy $ac_prog; ac_word=$2
9220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9222 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 if test -n "$ac_ct_CXX"; then
9226 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235 ac_cv_prog_ac_ct_CXX="$ac_prog"
9236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9246 if test -n "$ac_ct_CXX"; then
9247 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9248 echo "${ECHO_T}$ac_ct_CXX" >&6; }
9250 { echo "$as_me:$LINENO: result: no" >&5
9251 echo "${ECHO_T}no" >&6; }
9255 test -n "$ac_ct_CXX" && break
9258 if test "x$ac_ct_CXX" = x; then
9261 case $cross_compiling:$ac_tool_warned in
9263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9264 whose name does not start with the host triplet. If you think this
9265 configuration is useful to you, please write to autoconf@gnu.org." >&5
9266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9267 whose name does not start with the host triplet. If you think this
9268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9269 ac_tool_warned=yes ;;
9277 # Provide some information about the compiler.
9278 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9279 ac_compiler=`set X $ac_compile; echo $2`
9280 { (ac_try="$ac_compiler --version >&5"
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_compiler --version >&5") 2>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }
9290 { (ac_try="$ac_compiler -v >&5"
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_compiler -v >&5") 2>&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }
9300 { (ac_try="$ac_compiler -V >&5"
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306 (eval "$ac_compiler -V >&5") 2>&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }
9311 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9312 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
9313 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_cxx_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9363 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9364 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
9365 GXX=`test $ac_compiler_gnu = yes && echo yes`
9366 ac_test_CXXFLAGS=${CXXFLAGS+set}
9367 ac_save_CXXFLAGS=$CXXFLAGS
9368 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9369 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
9370 if test "${ac_cv_prog_cxx_g+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9374 ac_cxx_werror_flag=yes
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9392 rm -f conftest.$ac_objext
9393 if { (ac_try="$ac_compile"
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_cxx_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9409 ac_cv_prog_cxx_g=yes
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9430 rm -f conftest.$ac_objext
9431 if { (ac_try="$ac_compile"
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_compile") 2>conftest.er1
9439 grep -v '^ *+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_cxx_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest.$ac_objext; then
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9454 cat >conftest.$ac_ext <<_ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
9478 grep -v '^ *+' conftest.er1 >conftest.err
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } && {
9483 test -z "$ac_cxx_werror_flag" ||
9484 test ! -s conftest.err
9485 } && test -s conftest.$ac_objext; then
9486 ac_cv_prog_cxx_g=yes
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9503 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
9505 if test "$ac_test_CXXFLAGS" = set; then
9506 CXXFLAGS=$ac_save_CXXFLAGS
9507 elif test $ac_cv_prog_cxx_g = yes; then
9508 if test "$GXX" = yes; then
9514 if test "$GXX" = yes; then
9521 ac_cpp='$CXXCPP $CPPFLAGS'
9522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9526 depcc="$CXX" am_compiler_list=
9528 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9529 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
9530 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9534 # We make a subdir and do the tests there. Otherwise we can end up
9535 # making bogus files that we don't know about and never remove. For
9536 # instance it was reported that on HP-UX the gcc test will end up
9537 # making a dummy file named `D' -- because `-MD' means `put the output
9540 # Copy depcomp to subdir because otherwise we won't find it if we're
9541 # using a relative directory.
9542 cp "$am_depcomp" conftest.dir
9544 # We will build objects and dependencies in a subdirectory because
9545 # it helps to detect inapplicable dependency modes. For instance
9546 # both Tru64's cc and ICC support -MD to output dependencies as a
9547 # side effect of compilation, but ICC will put the dependencies in
9548 # the current directory while Tru64 will put them in the object
9552 am_cv_CXX_dependencies_compiler_type=none
9553 if test "$am_compiler_list" = ""; then
9554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9556 for depmode in $am_compiler_list; do
9557 # Setup a source with many dependencies, because some compilers
9558 # like to wrap large dependency lists on column 80 (with \), and
9559 # we should not choose a depcomp mode which is confused by this.
9561 # We need to recreate these files for each test, as the compiler may
9562 # overwrite some of them when testing with obscure command lines.
9563 # This happens at least with the AIX C compiler.
9565 for i in 1 2 3 4 5 6; do
9566 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9568 # Solaris 8's {/usr,}/bin/sh.
9569 touch sub/conftst$i.h
9571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9575 # after this tag, mechanisms are not by side-effect, so they'll
9576 # only be used when explicitly requested
9577 if test "x$enable_dependency_tracking" = xyes; then
9585 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9586 # mode. It turns out that the SunPro C++ compiler does not properly
9587 # handle `-M -o', and we need to detect this.
9588 if depmode=$depmode \
9589 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9590 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9591 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9592 >/dev/null 2>conftest.err &&
9593 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9595 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9597 # icc doesn't choke on unknown options, it will just issue warnings
9598 # or remarks (even with -Werror). So we grep stderr for any message
9599 # that says an option was ignored or not supported.
9600 # When given -MP, icc 7.0 and 7.1 complain thusly:
9601 # icc: Command line warning: ignoring option '-M'; no argument required
9602 # The diagnosis changed in icc 8.0:
9603 # icc: Command line remark: option '-MP' not supported
9604 if (grep 'ignoring option' conftest.err ||
9605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9606 am_cv_CXX_dependencies_compiler_type=$depmode
9615 am_cv_CXX_dependencies_compiler_type=none
9619 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9620 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
9621 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9624 test "x$enable_dependency_tracking" != xno \
9625 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9626 am__fastdepCXX_TRUE=
9627 am__fastdepCXX_FALSE='#'
9629 am__fastdepCXX_TRUE='#'
9630 am__fastdepCXX_FALSE=
9637 # Check whether --with-boost was given.
9638 if test "${with_boost+set}" = set; then
9639 withval=$with_boost;
9640 if test "$withval" = "no"; then
9642 elif test "$withval" = "yes"; then
9647 ac_boost_path="$withval"
9657 # Check whether --with-boost-libdir was given.
9658 if test "${with_boost_libdir+set}" = set; then
9659 withval=$with_boost_libdir;
9662 ac_boost_lib_path="$withval"
9664 { { echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
9665 echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
9666 { (exit 1); exit 1; }; }
9670 ac_boost_lib_path=""
9675 if test "x$want_boost" = "xyes"; then
9676 boost_lib_version_req=1.34
9677 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
9678 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
9679 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
9680 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9681 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
9682 boost_lib_version_req_sub_minor="0"
9684 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
9685 { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
9686 echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
9689 if test "$ac_boost_path" != ""; then
9690 BOOST_LDFLAGS="-L$ac_boost_path/lib"
9691 BOOST_CPPFLAGS="-I$ac_boost_path/include"
9693 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
9694 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
9695 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
9696 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
9702 if test "$ac_boost_lib_path" != ""; then
9703 BOOST_LDFLAGS="-L$ac_boost_lib_path"
9706 CPPFLAGS_SAVED="$CPPFLAGS"
9707 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9710 LDFLAGS_SAVED="$LDFLAGS"
9711 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9715 ac_cpp='$CXXCPP $CPPFLAGS'
9716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9727 #include <boost/version.hpp>
9733 #if BOOST_VERSION >= $WANT_BOOST_VERSION
9734 // Everything is okay
9736 # error Boost version is too old
9743 rm -f conftest.$ac_objext
9744 if { (ac_try="$ac_compile"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_compile") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1 >conftest.err
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_cxx_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest.$ac_objext; then
9761 { echo "$as_me:$LINENO: result: yes" >&5
9762 echo "${ECHO_T}yes" >&6; }
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776 ac_cpp='$CPP $CPPFLAGS'
9777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9784 if test "x$succeeded" != "xyes"; then
9786 if test "$ac_boost_path" != ""; then
9787 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9788 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9789 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9790 V_CHECK=`expr $_version_tmp \> $_version`
9791 if test "$V_CHECK" = "1" ; then
9792 _version=$_version_tmp
9794 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9795 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
9799 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
9800 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9801 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9802 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9803 V_CHECK=`expr $_version_tmp \> $_version`
9804 if test "$V_CHECK" = "1" ; then
9805 _version=$_version_tmp
9806 best_path=$ac_boost_path
9812 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9813 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
9814 if test "$ac_boost_lib_path" = ""
9816 BOOST_LDFLAGS="-L$best_path/lib"
9819 if test "x$BOOST_ROOT" != "x"; then
9820 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
9821 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
9822 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
9823 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
9824 V_CHECK=`expr $stage_version_shorten \>\= $_version`
9825 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
9826 { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
9827 echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
9828 BOOST_CPPFLAGS="-I$BOOST_ROOT"
9829 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
9835 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9837 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9841 ac_cpp='$CXXCPP $CPPFLAGS'
9842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9846 cat >conftest.$ac_ext <<_ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9853 #include <boost/version.hpp>
9859 #if BOOST_VERSION >= $WANT_BOOST_VERSION
9860 // Everything is okay
9862 # error Boost version is too old
9869 rm -f conftest.$ac_objext
9870 if { (ac_try="$ac_compile"
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_compile") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1 >conftest.err
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } && {
9883 test -z "$ac_cxx_werror_flag" ||
9884 test ! -s conftest.err
9885 } && test -s conftest.$ac_objext; then
9887 { echo "$as_me:$LINENO: result: yes" >&5
9888 echo "${ECHO_T}yes" >&6; }
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902 ac_cpp='$CPP $CPPFLAGS'
9903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9909 if test "$succeeded" != "yes" ; then
9910 if test "$_version" = "0" ; then
9911 { { 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
9912 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;}
9913 { (exit 1); exit 1; }; }
9915 { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
9916 echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
9922 cat >>confdefs.h <<\_ACEOF
9928 CPPFLAGS="$CPPFLAGS_SAVED"
9929 LDFLAGS="$LDFLAGS_SAVED"
9934 # need rst2man for man pages
9936 # Check whether --with-rst2man was given.
9937 if test "${with_rst2man+set}" = set; then
9938 withval=$with_rst2man; RST2MAN=$withval
9939 if test "$RST2MAN" == "yes"; then
9940 # Extract the first word of "rst2man", so it can be a program name with args.
9941 set dummy rst2man; ac_word=$2
9942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9944 if test "${ac_cv_path_RST2MAN+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
9960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
9971 RST2MAN=$ac_cv_path_RST2MAN
9972 if test -n "$RST2MAN"; then
9973 { echo "$as_me:$LINENO: result: $RST2MAN" >&5
9974 echo "${ECHO_T}$RST2MAN" >&6; }
9976 { echo "$as_me:$LINENO: result: no" >&5
9977 echo "${ECHO_T}no" >&6; }
9982 test "$RST2MAN" == "no" || test -x "$RST2MAN" || { { echo "$as_me:$LINENO: error: --with-rst2man=$RST2MAN: tool not found" >&5
9983 echo "$as_me: error: --with-rst2man=$RST2MAN: tool not found" >&2;}
9984 { (exit 1); exit 1; }; }
9986 # Extract the first word of "rst2man", so it can be a program name with args.
9987 set dummy rst2man; ac_word=$2
9988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9990 if test "${ac_cv_path_RST2MAN+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005 ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
10006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
10017 RST2MAN=$ac_cv_path_RST2MAN
10018 if test -n "$RST2MAN"; then
10019 { echo "$as_me:$LINENO: result: $RST2MAN" >&5
10020 echo "${ECHO_T}$RST2MAN" >&6; }
10022 { echo "$as_me:$LINENO: result: no" >&5
10023 echo "${ECHO_T}no" >&6; }
10029 if test "$RST2MAN" != "no"; then
10030 COND_MAN_PAGES_TRUE=
10031 COND_MAN_PAGES_FALSE='#'
10033 COND_MAN_PAGES_TRUE='#'
10034 COND_MAN_PAGES_FALSE=
10038 # need rst2html for HTML version of README
10040 # Check whether --with-rst2html was given.
10041 if test "${with_rst2html+set}" = set; then
10042 withval=$with_rst2html; RST2HTML=$withval
10043 if test "$RST2HTML" == "yes"; then
10044 # Extract the first word of "rst2html", so it can be a program name with args.
10045 set dummy rst2html; ac_word=$2
10046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10048 if test "${ac_cv_path_RST2HTML+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10060 test -z "$as_dir" && as_dir=.
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10063 ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
10064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
10075 RST2HTML=$ac_cv_path_RST2HTML
10076 if test -n "$RST2HTML"; then
10077 { echo "$as_me:$LINENO: result: $RST2HTML" >&5
10078 echo "${ECHO_T}$RST2HTML" >&6; }
10080 { echo "$as_me:$LINENO: result: no" >&5
10081 echo "${ECHO_T}no" >&6; }
10086 test "$RST2HTML" == "no" || test -x "$RST2HTML" || { { echo "$as_me:$LINENO: error: --with-rst2html=$RST2HTML: tool not found" >&5
10087 echo "$as_me: error: --with-rst2html=$RST2HTML: tool not found" >&2;}
10088 { (exit 1); exit 1; }; }
10090 # Extract the first word of "rst2html", so it can be a program name with args.
10091 set dummy rst2html; ac_word=$2
10092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10094 if test "${ac_cv_path_RST2HTML+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109 ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
10110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
10121 RST2HTML=$ac_cv_path_RST2HTML
10122 if test -n "$RST2HTML"; then
10123 { echo "$as_me:$LINENO: result: $RST2HTML" >&5
10124 echo "${ECHO_T}$RST2HTML" >&6; }
10126 { echo "$as_me:$LINENO: result: no" >&5
10127 echo "${ECHO_T}no" >&6; }
10133 if test "$RST2HTML" != "no"; then
10134 COND_HTML_README_TRUE=
10135 COND_HTML_README_FALSE='#'
10137 COND_HTML_README_TRUE='#'
10138 COND_HTML_README_FALSE=
10142 # absolute patch to source of Synthesis client library
10143 SYNTHESIS_SRC=no-synthesis-source
10145 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
10146 # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
10147 CLEAN_CLIENT_SRC=synthesis-workdir
10148 SYNTHESIS_SRC=$PWD/src/synthesis-workdir
10150 { echo "$as_me:$LINENO: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
10151 echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
10152 case "$SYNTHESISSRC" in
10153 *.git) protocol=git;;
10154 *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
10155 *) protocol="file";;
10161 # use existing copy of the sources
10163 case "$SYNTHESISSRC" in
10164 /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
10165 *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
10169 SYNTHESISSRCREV="$SYNTHESISSRC"
10170 if test "$REVISION"; then
10171 revarg="-r $REVISION "
10172 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
10175 SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
10178 if test -d $SYNTHESIS_SRC ; then
10179 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
10180 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
10181 { (exit 1); exit 1; }; }
10183 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
10184 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
10185 { (exit 1); exit 1; }; }
10189 if test -d $SYNTHESIS_SRC ; then
10190 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
10191 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
10192 { (exit 1); exit 1; }; }
10194 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: cloning $SYNTHESISSRC failed" >&5
10195 echo "$as_me: error: cloning $SYNTHESISSRC failed" >&2;}
10196 { (exit 1); exit 1; }; }
10198 if test "$REVISION"; then
10199 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
10200 ( set -x; cd $SYNTHESIS_SRC &&
10201 (git checkout "$REVISION" ||
10202 git checkout "tags/$REVISION" ||
10203 git checkout "origin/$REVISION") ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
10204 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
10205 { (exit 1); exit 1; }; }
10209 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
10210 # use existing copy of the sources; beware of
10211 # out-of-tree compilation
10213 /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
10214 *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
10216 elif test "$enable_shared" = "no"; then
10217 # link against engine
10220 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
10221 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
10223 if test -n "$PKG_CONFIG"; then
10224 if test -n "$SYNTHESIS_CFLAGS"; then
10225 pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
10227 if test -n "$PKG_CONFIG" && \
10228 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10229 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; then
10233 pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
10241 if test -n "$PKG_CONFIG"; then
10242 if test -n "$SYNTHESIS_LIBS"; then
10243 pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
10245 if test -n "$PKG_CONFIG" && \
10246 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10247 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; then
10251 pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
10262 if test $pkg_failed = yes; then
10264 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10265 _pkg_short_errors_supported=yes
10267 _pkg_short_errors_supported=no
10269 if test $_pkg_short_errors_supported = yes; then
10270 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
10272 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
10274 # Put the nasty error message in config.log where it belongs
10275 echo "$SYNTHESIS_PKG_ERRORS" >&5
10277 { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
10279 $SYNTHESIS_PKG_ERRORS
10281 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10282 installed software in a non-standard prefix.
10284 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10285 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10286 See the pkg-config man page for more details.
10288 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
10290 $SYNTHESIS_PKG_ERRORS
10292 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10293 installed software in a non-standard prefix.
10295 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10296 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10297 See the pkg-config man page for more details.
10299 { (exit 1); exit 1; }; }
10300 elif test $pkg_failed = untried; then
10301 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10302 is in your PATH or set the PKG_CONFIG environment variable to the full
10303 path to pkg-config.
10305 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10306 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10307 See the pkg-config man page for more details.
10309 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10310 See \`config.log' for more details." >&5
10311 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10312 is in your PATH or set the PKG_CONFIG environment variable to the full
10313 path to pkg-config.
10315 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10316 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10317 See the pkg-config man page for more details.
10319 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10320 See \`config.log' for more details." >&2;}
10321 { (exit 1); exit 1; }; }
10323 SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
10324 SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
10325 { echo "$as_me:$LINENO: result: yes" >&5
10326 echo "${ECHO_T}yes" >&6; }
10329 SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis"
10331 # link against SDK alone, except in client-test
10332 #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
10333 #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
10335 # can't use the SDK alone because of sysync::SySyncDebugPuts()
10338 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
10339 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
10341 if test -n "$PKG_CONFIG"; then
10342 if test -n "$SYNTHESIS_CFLAGS"; then
10343 pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
10345 if test -n "$PKG_CONFIG" && \
10346 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10347 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; then
10351 pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
10359 if test -n "$PKG_CONFIG"; then
10360 if test -n "$SYNTHESIS_LIBS"; then
10361 pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
10363 if test -n "$PKG_CONFIG" && \
10364 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10365 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
10380 if test $pkg_failed = yes; then
10382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10383 _pkg_short_errors_supported=yes
10385 _pkg_short_errors_supported=no
10387 if test $_pkg_short_errors_supported = yes; then
10388 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
10390 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
10392 # Put the nasty error message in config.log where it belongs
10393 echo "$SYNTHESIS_PKG_ERRORS" >&5
10395 { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
10397 $SYNTHESIS_PKG_ERRORS
10399 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10400 installed software in a non-standard prefix.
10402 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10403 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10404 See the pkg-config man page for more details.
10406 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
10408 $SYNTHESIS_PKG_ERRORS
10410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10411 installed software in a non-standard prefix.
10413 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10414 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10415 See the pkg-config man page for more details.
10417 { (exit 1); exit 1; }; }
10418 elif test $pkg_failed = untried; then
10419 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10420 is in your PATH or set the PKG_CONFIG environment variable to the full
10421 path to pkg-config.
10423 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10424 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10425 See the pkg-config man page for more details.
10427 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10428 See \`config.log' for more details." >&5
10429 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10430 is in your PATH or set the PKG_CONFIG environment variable to the full
10431 path to pkg-config.
10433 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10434 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10435 See the pkg-config man page for more details.
10437 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10438 See \`config.log' for more details." >&2;}
10439 { (exit 1); exit 1; }; }
10441 SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
10442 SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
10443 { echo "$as_me:$LINENO: result: yes" >&5
10444 echo "${ECHO_T}yes" >&6; }
10447 SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
10450 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
10451 ( 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
10452 echo "$as_me: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&2;}
10453 { (exit 1); exit 1; }; }
10455 SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
10456 chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
10458 # use local copy of the sources, with dependencies
10459 # to trigger building the synthesis library
10460 SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
10461 SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
10462 SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la"
10464 if test "$enable_core" = "no" && test "$enable_gui" != "no"; then
10465 # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
10466 SYNTHESIS_SUBDIR_INCLUDES=synthesis-includes
10469 if test "$enable_shared" = "no"; then
10470 # link against the engines that were enabled
10471 case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la";; esac
10473 cat >>confdefs.h <<\_ACEOF
10474 #define ENABLE_SYNCML_LINKED 1
10478 # It would be nice if we could avoid linking against libsynthesis.la here.
10479 # This doesn't work at the moment because sysync::SySyncDebugPuts()
10480 # is called directly by the libsynthesissdk instead of going through
10481 # the normal C function pointer lookup.
10482 SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la"
10484 SYNTHESIS_DEP=$SYNTHESIS_LIBS
10486 # for linking client-test
10487 SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
10489 { echo "$as_me:$LINENO: configuring the Synthesis library " >&5
10490 echo "$as_me: configuring the Synthesis library " >&6;}
10491 if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
10492 { { echo "$as_me:$LINENO: error: configuring Synthesis library failed " >&5
10493 echo "$as_me: error: configuring Synthesis library failed " >&2;}
10494 { (exit 1); exit 1; }; }
10510 # AC_ARG_ENABLE_BACKEND(BACKEND, DIR, HELP-STRING, [ACTION-IF-GIVEN],
10511 # [ACTION-IF-NOT-GIVEN])
10513 # Same as AC_ARG_ENABLE(), but also tells configure that the
10516 # BACKEND = name of modules built in that dir as .la files without the
10517 # obligatory sync prefix, e.g. "ebook"
10518 # DIR = name of the directory inside src/backends, e.g., "evolution"
10523 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
10526 # GNOME Bluetooth Panel plugin
10529 { echo "$as_me:$LINENO: checking for GNOMEBLUETOOTH" >&5
10530 echo $ECHO_N "checking for GNOMEBLUETOOTH... $ECHO_C" >&6; }
10532 if test -n "$PKG_CONFIG"; then
10533 if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
10534 pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
10536 if test -n "$PKG_CONFIG" && \
10537 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\"") >&5
10538 ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; then
10542 pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
10550 if test -n "$PKG_CONFIG"; then
10551 if test -n "$GNOMEBLUETOOTH_LIBS"; then
10552 pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
10554 if test -n "$PKG_CONFIG" && \
10555 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\"") >&5
10556 ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; then
10560 pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
10571 if test $pkg_failed = yes; then
10573 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10574 _pkg_short_errors_supported=yes
10576 _pkg_short_errors_supported=no
10578 if test $_pkg_short_errors_supported = yes; then
10579 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
10581 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
10583 # Put the nasty error message in config.log where it belongs
10584 echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
10586 { echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6; }
10589 elif test $pkg_failed = untried; then
10592 GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
10593 GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
10594 { echo "$as_me:$LINENO: result: yes" >&5
10595 echo "${ECHO_T}yes" >&6; }
10597 GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
10602 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
10603 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then
10604 enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
10606 enable_gnome_bluetooth_panel="no"
10610 if test "$enable_gnome_bluetooth_panel" = "yes"; then
10611 test "$have_gbt" = "yes" || { { echo "$as_me:$LINENO: error: --enable-gnome-bluetooth-panel requires
10612 pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" >&5
10613 echo "$as_me: error: --enable-gnome-bluetooth-panel requires
10614 pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" >&2;}
10615 { (exit 1); exit 1; }; }
10617 ac_config_files="$ac_config_files src/gnome-bluetooth/Makefile"
10619 if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
10620 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
10621 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
10623 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
10624 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
10628 # Check whether --enable-doc was given.
10629 if test "${enable_doc+set}" = set; then
10630 enableval=$enable_doc; enable_doc="$enableval"
10636 if test "$enable_doc" != "no"; then
10645 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
10647 ADDRESSBOOK_CFLAGS=
10649 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
10652 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
10655 # Check whether --enable-addressbook was given.
10656 if test "${enable_addressbook+set}" = set; then
10657 enableval=$enable_addressbook; enable_addressbook="$enableval"
10659 enable_addressbook="no"
10662 BACKENDS="$BACKENDS addressbook"
10663 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo addressbook | tr a-z A-Z`"
10664 for source in addressbook; do
10665 SYNCSOURCES="$SYNCSOURCES backends/addressbook/syncaddressbook.la"
10669 if test "$enable_addressbook" = "yes"; then
10671 cat >>confdefs.h <<\_ACEOF
10672 #define ENABLE_ADDRESSBOOK 1
10675 DEVICE_TYPE=MacOS_X
10681 ac_config_files="$ac_config_files src/backends/addressbook/Makefile"
10683 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
10685 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
10687 pkg_emodules_10="libedataserver-1.0"
10688 pkg_emodules_11="libedataserver-1.1"
10689 pkg_emodules_12="libedataserver-1.2"
10690 pkg_ebook_10="libebook-1.0"
10691 pkg_ebook_11="libebook-1.1"
10692 pkg_ebook_12="libebook-1.2"
10693 pkg_ecal_10="libecal-1.0"
10694 pkg_ecal_11="libecal-1.1"
10695 pkg_ecal_12="libecal-1.2"
10698 Please install the development packages of Evolution and/or
10699 set the PKG_CONFIG_PATH variable so that it points towards
10700 the .pc files of libedataserver, libecal and libebook (the
10701 latter two are optional).
10703 You can check that these packages are available by running
10704 pkg-config --list-all."
10706 evomissing="No compatible evolution-data-server was found.
10711 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10712 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10714 if test -n "$PKG_CONFIG"; then
10715 if test -n "$EPACKAGE_CFLAGS"; then
10716 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10718 if test -n "$PKG_CONFIG" && \
10719 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
10720 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; then
10724 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_12" 2>/dev/null`
10732 if test -n "$PKG_CONFIG"; then
10733 if test -n "$EPACKAGE_LIBS"; then
10734 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10736 if test -n "$PKG_CONFIG" && \
10737 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
10738 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; then
10742 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_12" 2>/dev/null`
10753 if test $pkg_failed = yes; then
10755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10756 _pkg_short_errors_supported=yes
10758 _pkg_short_errors_supported=no
10760 if test $_pkg_short_errors_supported = yes; then
10761 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_12"`
10763 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_12"`
10765 # Put the nasty error message in config.log where it belongs
10766 echo "$EPACKAGE_PKG_ERRORS" >&5
10768 { echo "$as_me:$LINENO: result: no" >&5
10769 echo "${ECHO_T}no" >&6; }
10771 elif test $pkg_failed = untried; then
10774 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10775 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10776 { echo "$as_me:$LINENO: result: yes" >&5
10777 echo "${ECHO_T}yes" >&6; }
10780 if test "x${EDSFOUND}" = "xno"; then
10783 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10784 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10786 if test -n "$PKG_CONFIG"; then
10787 if test -n "$EPACKAGE_CFLAGS"; then
10788 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10790 if test -n "$PKG_CONFIG" && \
10791 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
10792 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; then
10796 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_11" 2>/dev/null`
10804 if test -n "$PKG_CONFIG"; then
10805 if test -n "$EPACKAGE_LIBS"; then
10806 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10808 if test -n "$PKG_CONFIG" && \
10809 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
10810 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; then
10814 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_11" 2>/dev/null`
10825 if test $pkg_failed = yes; then
10827 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10828 _pkg_short_errors_supported=yes
10830 _pkg_short_errors_supported=no
10832 if test $_pkg_short_errors_supported = yes; then
10833 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_11"`
10835 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_11"`
10837 # Put the nasty error message in config.log where it belongs
10838 echo "$EPACKAGE_PKG_ERRORS" >&5
10840 { echo "$as_me:$LINENO: result: no" >&5
10841 echo "${ECHO_T}no" >&6; }
10843 elif test $pkg_failed = untried; then
10846 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10847 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10848 { echo "$as_me:$LINENO: result: yes" >&5
10849 echo "${ECHO_T}yes" >&6; }
10852 if test "x${EDSFOUND}" = "xno"; then
10855 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10856 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10858 if test -n "$PKG_CONFIG"; then
10859 if test -n "$EPACKAGE_CFLAGS"; then
10860 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10862 if test -n "$PKG_CONFIG" && \
10863 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
10864 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; then
10868 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_10" 2>/dev/null`
10876 if test -n "$PKG_CONFIG"; then
10877 if test -n "$EPACKAGE_LIBS"; then
10878 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10880 if test -n "$PKG_CONFIG" && \
10881 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
10882 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; then
10886 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_10" 2>/dev/null`
10897 if test $pkg_failed = yes; then
10899 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10900 _pkg_short_errors_supported=yes
10902 _pkg_short_errors_supported=no
10904 if test $_pkg_short_errors_supported = yes; then
10905 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_10"`
10907 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_10"`
10909 # Put the nasty error message in config.log where it belongs
10910 echo "$EPACKAGE_PKG_ERRORS" >&5
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10915 elif test $pkg_failed = untried; then
10918 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10919 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10920 { echo "$as_me:$LINENO: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6; }
10929 { echo "$as_me:$LINENO: checking for ECAL" >&5
10930 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10932 if test -n "$PKG_CONFIG"; then
10933 if test -n "$ECAL_CFLAGS"; then
10934 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10936 if test -n "$PKG_CONFIG" && \
10937 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10938 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; then
10942 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_12" 2>/dev/null`
10950 if test -n "$PKG_CONFIG"; then
10951 if test -n "$ECAL_LIBS"; then
10952 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10954 if test -n "$PKG_CONFIG" && \
10955 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10956 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; then
10960 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_12" 2>/dev/null`
10971 if test $pkg_failed = yes; then
10973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10974 _pkg_short_errors_supported=yes
10976 _pkg_short_errors_supported=no
10978 if test $_pkg_short_errors_supported = yes; then
10979 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_12"`
10981 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_12"`
10983 # Put the nasty error message in config.log where it belongs
10984 echo "$ECAL_PKG_ERRORS" >&5
10986 { echo "$as_me:$LINENO: result: no" >&5
10987 echo "${ECHO_T}no" >&6; }
10989 elif test $pkg_failed = untried; then
10992 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10993 ECAL_LIBS=$pkg_cv_ECAL_LIBS
10994 { echo "$as_me:$LINENO: result: yes" >&5
10995 echo "${ECHO_T}yes" >&6; }
10998 if test "x${ECALFOUND}" = "xno"; then
11001 { echo "$as_me:$LINENO: checking for ECAL" >&5
11002 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
11004 if test -n "$PKG_CONFIG"; then
11005 if test -n "$ECAL_CFLAGS"; then
11006 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
11008 if test -n "$PKG_CONFIG" && \
11009 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
11010 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; then
11014 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_11" 2>/dev/null`
11022 if test -n "$PKG_CONFIG"; then
11023 if test -n "$ECAL_LIBS"; then
11024 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
11026 if test -n "$PKG_CONFIG" && \
11027 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
11028 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; then
11032 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_11" 2>/dev/null`
11043 if test $pkg_failed = yes; then
11045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11046 _pkg_short_errors_supported=yes
11048 _pkg_short_errors_supported=no
11050 if test $_pkg_short_errors_supported = yes; then
11051 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_11"`
11053 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_11"`
11055 # Put the nasty error message in config.log where it belongs
11056 echo "$ECAL_PKG_ERRORS" >&5
11058 { echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6; }
11061 elif test $pkg_failed = untried; then
11064 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
11065 ECAL_LIBS=$pkg_cv_ECAL_LIBS
11066 { echo "$as_me:$LINENO: result: yes" >&5
11067 echo "${ECHO_T}yes" >&6; }
11070 if test "x${ECALFOUND}" = "xno"; then
11073 { echo "$as_me:$LINENO: checking for ECAL" >&5
11074 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
11076 if test -n "$PKG_CONFIG"; then
11077 if test -n "$ECAL_CFLAGS"; then
11078 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
11080 if test -n "$PKG_CONFIG" && \
11081 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
11082 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; then
11086 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_10" 2>/dev/null`
11094 if test -n "$PKG_CONFIG"; then
11095 if test -n "$ECAL_LIBS"; then
11096 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
11098 if test -n "$PKG_CONFIG" && \
11099 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
11100 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; then
11104 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_10" 2>/dev/null`
11115 if test $pkg_failed = yes; then
11117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11118 _pkg_short_errors_supported=yes
11120 _pkg_short_errors_supported=no
11122 if test $_pkg_short_errors_supported = yes; then
11123 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_10"`
11125 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_10"`
11127 # Put the nasty error message in config.log where it belongs
11128 echo "$ECAL_PKG_ERRORS" >&5
11130 { echo "$as_me:$LINENO: result: no" >&5
11131 echo "${ECHO_T}no" >&6; }
11133 elif test $pkg_failed = untried; then
11136 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
11137 ECAL_LIBS=$pkg_cv_ECAL_LIBS
11138 { echo "$as_me:$LINENO: result: yes" >&5
11139 echo "${ECHO_T}yes" >&6; }
11147 { echo "$as_me:$LINENO: checking for EBOOK" >&5
11148 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
11150 if test -n "$PKG_CONFIG"; then
11151 if test -n "$EBOOK_CFLAGS"; then
11152 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
11154 if test -n "$PKG_CONFIG" && \
11155 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
11156 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; then
11160 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_12" 2>/dev/null`
11168 if test -n "$PKG_CONFIG"; then
11169 if test -n "$EBOOK_LIBS"; then
11170 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
11172 if test -n "$PKG_CONFIG" && \
11173 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
11174 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; then
11178 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_12" 2>/dev/null`
11189 if test $pkg_failed = yes; then
11191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11192 _pkg_short_errors_supported=yes
11194 _pkg_short_errors_supported=no
11196 if test $_pkg_short_errors_supported = yes; then
11197 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_12"`
11199 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_12"`
11201 # Put the nasty error message in config.log where it belongs
11202 echo "$EBOOK_PKG_ERRORS" >&5
11204 { echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6; }
11207 elif test $pkg_failed = untried; then
11210 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
11211 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
11212 { echo "$as_me:$LINENO: result: yes" >&5
11213 echo "${ECHO_T}yes" >&6; }
11216 if test "x${EBOOKFOUND}" = "xno"; then
11219 { echo "$as_me:$LINENO: checking for EBOOK" >&5
11220 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
11222 if test -n "$PKG_CONFIG"; then
11223 if test -n "$EBOOK_CFLAGS"; then
11224 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
11226 if test -n "$PKG_CONFIG" && \
11227 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
11228 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; then
11232 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_11" 2>/dev/null`
11240 if test -n "$PKG_CONFIG"; then
11241 if test -n "$EBOOK_LIBS"; then
11242 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
11244 if test -n "$PKG_CONFIG" && \
11245 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
11246 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; then
11250 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_11" 2>/dev/null`
11261 if test $pkg_failed = yes; then
11263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11264 _pkg_short_errors_supported=yes
11266 _pkg_short_errors_supported=no
11268 if test $_pkg_short_errors_supported = yes; then
11269 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_11"`
11271 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_11"`
11273 # Put the nasty error message in config.log where it belongs
11274 echo "$EBOOK_PKG_ERRORS" >&5
11276 { echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6; }
11279 elif test $pkg_failed = untried; then
11282 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
11283 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
11284 { echo "$as_me:$LINENO: result: yes" >&5
11285 echo "${ECHO_T}yes" >&6; }
11288 if test "x${EBOOKFOUND}" = "xno"; then
11291 { echo "$as_me:$LINENO: checking for EBOOK" >&5
11292 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
11294 if test -n "$PKG_CONFIG"; then
11295 if test -n "$EBOOK_CFLAGS"; then
11296 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
11298 if test -n "$PKG_CONFIG" && \
11299 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
11300 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; then
11304 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_10" 2>/dev/null`
11312 if test -n "$PKG_CONFIG"; then
11313 if test -n "$EBOOK_LIBS"; then
11314 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
11316 if test -n "$PKG_CONFIG" && \
11317 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
11318 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; then
11322 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_10" 2>/dev/null`
11333 if test $pkg_failed = yes; then
11335 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11336 _pkg_short_errors_supported=yes
11338 _pkg_short_errors_supported=no
11340 if test $_pkg_short_errors_supported = yes; then
11341 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_10"`
11343 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_10"`
11345 # Put the nasty error message in config.log where it belongs
11346 echo "$EBOOK_PKG_ERRORS" >&5
11348 { echo "$as_me:$LINENO: result: no" >&5
11349 echo "${ECHO_T}no" >&6; }
11351 elif test $pkg_failed = untried; then
11354 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
11355 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
11356 { echo "$as_me:$LINENO: result: yes" >&5
11357 echo "${ECHO_T}yes" >&6; }
11364 # Check whether --enable-ebook was given.
11365 if test "${enable_ebook+set}" = set; then
11366 enableval=$enable_ebook; enable_ebook="$enableval"
11368 test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
11369 { { echo "$as_me:$LINENO: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&5
11370 echo "$as_me: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&2;}
11371 { (exit 1); exit 1; }; }
11374 BACKENDS="$BACKENDS ebook"
11375 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ebook | tr a-z A-Z`"
11376 for source in evolution; do
11377 SYNCSOURCES="$SYNCSOURCES backends/evolution/syncebook.la"
11381 # Check whether --enable-ecal was given.
11382 if test "${enable_ecal+set}" = set; then
11383 enableval=$enable_ecal; enable_ecal="$enableval"
11385 test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
11386 { { echo "$as_me:$LINENO: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&5
11387 echo "$as_me: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&2;}
11388 { (exit 1); exit 1; }; }
11391 BACKENDS="$BACKENDS ecal"
11392 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ecal | tr a-z A-Z`"
11393 for source in evolution; do
11394 SYNCSOURCES="$SYNCSOURCES backends/evolution/syncecal.la"
11399 if test "$enable_ebook" = "yes"; then
11400 test "x${EBOOKFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&5
11401 echo "$as_me: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&2;}
11402 { (exit 1); exit 1; }; }
11404 cat >>confdefs.h <<\_ACEOF
11405 #define ENABLE_EBOOK 1
11414 if test "$enable_ecal" == "yes"; then
11416 ENABLE_ECAL_FALSE='#'
11418 ENABLE_ECAL_TRUE='#'
11422 if test "$enable_ecal" = "yes"; then
11423 test "x${ECALFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&5
11424 echo "$as_me: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&2;}
11425 { (exit 1); exit 1; }; }
11427 cat >>confdefs.h <<\_ACEOF
11428 #define ENABLE_ECAL 1
11439 { echo "$as_me:$LINENO: checking for LIBICAL_AVAILABLE" >&5
11440 echo $ECHO_N "checking for LIBICAL_AVAILABLE... $ECHO_C" >&6; }
11442 if test -n "$PKG_CONFIG"; then
11443 if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
11444 pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
11446 if test -n "$PKG_CONFIG" && \
11447 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\"") >&5
11448 ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; then
11452 pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
11460 if test -n "$PKG_CONFIG"; then
11461 if test -n "$LIBICAL_AVAILABLE_LIBS"; then
11462 pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
11464 if test -n "$PKG_CONFIG" && \
11465 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\"") >&5
11466 ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; then
11470 pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
11481 if test $pkg_failed = yes; then
11483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11484 _pkg_short_errors_supported=yes
11486 _pkg_short_errors_supported=no
11488 if test $_pkg_short_errors_supported = yes; then
11489 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical >= 0.43"`
11491 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical >= 0.43"`
11493 # Put the nasty error message in config.log where it belongs
11494 echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
11496 { echo "$as_me:$LINENO: result: no" >&5
11497 echo "${ECHO_T}no" >&6; }
11499 elif test $pkg_failed = untried; then
11502 LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
11503 LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
11504 { echo "$as_me:$LINENO: result: yes" >&5
11505 echo "${ECHO_T}yes" >&6; }
11507 cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_LIBICAL_R 1
11513 if test "$enable_evo" = "yes"; then
11515 if test "$EDSFOUND" = "yes"; then
11517 cat >>confdefs.h <<\_ACEOF
11522 { { echo "$as_me:$LINENO: error: $evomissing" >&5
11523 echo "$as_me: error: $evomissing" >&2;}
11524 { (exit 1); exit 1; }; }
11531 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS"
11532 ac_config_files="$ac_config_files src/backends/evolution/Makefile"
11534 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
11536 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
11544 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
11547 # Check whether --enable-file was given.
11548 if test "${enable_file+set}" = set; then
11549 enableval=$enable_file; enable_file="$enableval"
11555 BACKENDS="$BACKENDS file"
11556 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo file | tr a-z A-Z`"
11557 for source in file; do
11558 SYNCSOURCES="$SYNCSOURCES backends/file/syncfile.la"
11562 if test "$enable_file" = "yes"; then
11564 cat >>confdefs.h <<\_ACEOF
11565 #define ENABLE_FILE 1
11569 ac_config_files="$ac_config_files src/backends/file/Makefile"
11571 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
11573 # vvvvvvvvvvvvvv src/backends/kcalextended/configure-sub.in vvvvvvvvvvvvvv
11575 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
11578 # Check whether --enable-kcalextended was given.
11579 if test "${enable_kcalextended+set}" = set; then
11580 enableval=$enable_kcalextended; enable_kcalextended="$enableval"
11582 enable_kcalextended="no"
11586 BACKENDS="$BACKENDS kcalextended"
11587 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo kcalextended | tr a-z A-Z`"
11588 for source in kcalextended; do
11589 SYNCSOURCES="$SYNCSOURCES backends/kcalextended/synckcalextended.la"
11593 if test "$enable_kcalextended" = "yes"; then
11595 cat >>confdefs.h <<\_ACEOF
11596 #define ENABLE_KCALEXTENDED 1
11601 { echo "$as_me:$LINENO: checking for KCALEXTENDED" >&5
11602 echo $ECHO_N "checking for KCALEXTENDED... $ECHO_C" >&6; }
11604 if test -n "$PKG_CONFIG"; then
11605 if test -n "$KCALEXTENDED_CFLAGS"; then
11606 pkg_cv_KCALEXTENDED_CFLAGS="$KCALEXTENDED_CFLAGS"
11608 if test -n "$PKG_CONFIG" && \
11609 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\"") >&5
11610 ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; then
11614 pkg_cv_KCALEXTENDED_CFLAGS=`$PKG_CONFIG --cflags "libmkcal libkcalcoren" 2>/dev/null`
11622 if test -n "$PKG_CONFIG"; then
11623 if test -n "$KCALEXTENDED_LIBS"; then
11624 pkg_cv_KCALEXTENDED_LIBS="$KCALEXTENDED_LIBS"
11626 if test -n "$PKG_CONFIG" && \
11627 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\"") >&5
11628 ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; then
11632 pkg_cv_KCALEXTENDED_LIBS=`$PKG_CONFIG --libs "libmkcal libkcalcoren" 2>/dev/null`
11643 if test $pkg_failed = yes; then
11645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11646 _pkg_short_errors_supported=yes
11648 _pkg_short_errors_supported=no
11650 if test $_pkg_short_errors_supported = yes; then
11651 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmkcal libkcalcoren"`
11653 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmkcal libkcalcoren"`
11655 # Put the nasty error message in config.log where it belongs
11656 echo "$KCALEXTENDED_PKG_ERRORS" >&5
11658 { { echo "$as_me:$LINENO: error: Package requirements (libmkcal libkcalcoren) were not met:
11660 $KCALEXTENDED_PKG_ERRORS
11662 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11663 installed software in a non-standard prefix.
11665 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11666 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11667 See the pkg-config man page for more details.
11669 echo "$as_me: error: Package requirements (libmkcal libkcalcoren) were not met:
11671 $KCALEXTENDED_PKG_ERRORS
11673 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11674 installed software in a non-standard prefix.
11676 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11677 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11678 See the pkg-config man page for more details.
11680 { (exit 1); exit 1; }; }
11681 elif test $pkg_failed = untried; then
11682 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11683 is in your PATH or set the PKG_CONFIG environment variable to the full
11684 path to pkg-config.
11686 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11687 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11688 See the pkg-config man page for more details.
11690 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11691 See \`config.log' for more details." >&5
11692 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11693 is in your PATH or set the PKG_CONFIG environment variable to the full
11694 path to pkg-config.
11696 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11697 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11698 See the pkg-config man page for more details.
11700 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11701 See \`config.log' for more details." >&2;}
11702 { (exit 1); exit 1; }; }
11704 KCALEXTENDED_CFLAGS=$pkg_cv_KCALEXTENDED_CFLAGS
11705 KCALEXTENDED_LIBS=$pkg_cv_KCALEXTENDED_LIBS
11706 { echo "$as_me:$LINENO: result: yes" >&5
11707 echo "${ECHO_T}yes" >&6; }
11711 ac_config_files="$ac_config_files src/backends/kcalextended/Makefile"
11713 # ^^^^^^^^^^^^^^ src/backends/kcalextended/configure-sub.in ^^^^^^^^^^^^^^
11715 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
11719 { echo "$as_me:$LINENO: checking for MCALB" >&5
11720 echo $ECHO_N "checking for MCALB... $ECHO_C" >&6; }
11722 if test -n "$PKG_CONFIG"; then
11723 if test -n "$MCALB_CFLAGS"; then
11724 pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
11726 if test -n "$PKG_CONFIG" && \
11727 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"calendar-backend\"") >&5
11728 ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; then
11732 pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
11740 if test -n "$PKG_CONFIG"; then
11741 if test -n "$MCALB_LIBS"; then
11742 pkg_cv_MCALB_LIBS="$MCALB_LIBS"
11744 if test -n "$PKG_CONFIG" && \
11745 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"calendar-backend\"") >&5
11746 ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; then
11750 pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
11761 if test $pkg_failed = yes; then
11763 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11764 _pkg_short_errors_supported=yes
11766 _pkg_short_errors_supported=no
11768 if test $_pkg_short_errors_supported = yes; then
11769 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "calendar-backend"`
11771 MCALB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "calendar-backend"`
11773 # Put the nasty error message in config.log where it belongs
11774 echo "$MCALB_PKG_ERRORS" >&5
11776 { echo "$as_me:$LINENO: result: no" >&5
11777 echo "${ECHO_T}no" >&6; }
11779 elif test $pkg_failed = untried; then
11782 MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
11783 MCALB_LIBS=$pkg_cv_MCALB_LIBS
11784 { echo "$as_me:$LINENO: result: yes" >&5
11785 echo "${ECHO_T}yes" >&6; }
11790 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
11793 # Check whether --enable-maemocal was given.
11794 if test "${enable_maemocal+set}" = set; then
11795 enableval=$enable_maemocal; enable_maemocal="$enableval"
11797 enable_maemocal="no"
11800 BACKENDS="$BACKENDS maemocal"
11801 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo maemocal | tr a-z A-Z`"
11802 for source in maemo; do
11803 SYNCSOURCES="$SYNCSOURCES backends/maemo/syncmaemocal.la"
11807 if test "$enable_maemocal" = "yes"; then
11808 test "x${MCALBFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-maemo-calendar requires pkg-config information for calendar-backend, which was not found" >&5
11809 echo "$as_me: error: --enable-maemo-calendar requires pkg-config information for calendar-backend, which was not found" >&2;}
11810 { (exit 1); exit 1; }; }
11812 cat >>confdefs.h <<\_ACEOF
11813 #define ENABLE_MAEMO_CALENDAR 1
11817 ac_config_files="$ac_config_files src/backends/maemo/Makefile"
11819 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
11821 # vvvvvvvvvvvvvv src/backends/qtcontacts/configure-sub.in vvvvvvvvvvvvvv
11823 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
11826 # Check whether --enable-qtcontacts was given.
11827 if test "${enable_qtcontacts+set}" = set; then
11828 enableval=$enable_qtcontacts; enable_qtcontacts="$enableval"
11830 enable_qtcontacts="no"
11834 BACKENDS="$BACKENDS qtcontacts"
11835 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo qtcontacts | tr a-z A-Z`"
11836 for source in qtcontacts; do
11837 SYNCSOURCES="$SYNCSOURCES backends/qtcontacts/syncqtcontacts.la"
11841 if test "$enable_qtcontacts" = "yes"; then
11843 cat >>confdefs.h <<\_ACEOF
11844 #define ENABLE_QTCONTACTS 1
11847 # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
11848 # setting QT_* flags.
11849 need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
11850 qt_config="$qt_config +mobility"
11852 MOBILITY += contacts versit"
11855 ac_config_files="$ac_config_files src/backends/qtcontacts/Makefile"
11857 # ^^^^^^^^^^^^^^ src/backends/qtcontacts/configure-sub.in ^^^^^^^^^^^^^^
11859 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
11863 { echo "$as_me:$LINENO: checking for SQLITE" >&5
11864 echo $ECHO_N "checking for SQLITE... $ECHO_C" >&6; }
11866 if test -n "$PKG_CONFIG"; then
11867 if test -n "$SQLITE_CFLAGS"; then
11868 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
11870 if test -n "$PKG_CONFIG" && \
11871 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
11872 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; then
11876 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
11884 if test -n "$PKG_CONFIG"; then
11885 if test -n "$SQLITE_LIBS"; then
11886 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
11888 if test -n "$PKG_CONFIG" && \
11889 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
11890 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; then
11894 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
11905 if test $pkg_failed = yes; then
11907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11908 _pkg_short_errors_supported=yes
11910 _pkg_short_errors_supported=no
11912 if test $_pkg_short_errors_supported = yes; then
11913 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
11915 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
11917 # Put the nasty error message in config.log where it belongs
11918 echo "$SQLITE_PKG_ERRORS" >&5
11920 { echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6; }
11923 elif test $pkg_failed = untried; then
11926 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
11927 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
11928 { echo "$as_me:$LINENO: result: yes" >&5
11929 echo "${ECHO_T}yes" >&6; }
11934 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
11937 # Check whether --enable-sqlite was given.
11938 if test "${enable_sqlite+set}" = set; then
11939 enableval=$enable_sqlite; enable_sqlite="$enableval"
11944 BACKENDS="$BACKENDS sqlite"
11945 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo sqlite | tr a-z A-Z`"
11946 for source in sqlite; do
11947 SYNCSOURCES="$SYNCSOURCES backends/sqlite/syncsqlite.la"
11951 if test "$enable_sqlite" = "yes"; then
11952 test "x${SQLITEFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&5
11953 echo "$as_me: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&2;}
11954 { (exit 1); exit 1; }; }
11956 cat >>confdefs.h <<\_ACEOF
11957 #define ENABLE_SQLITE 1
11961 # avoid linking against it if not needed
11965 ac_config_files="$ac_config_files src/backends/sqlite/Makefile"
11967 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
11969 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
11974 # Check whether --enable-xmlrpc was given.
11975 if test "${enable_xmlrpc+set}" = set; then
11976 enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
11982 BACKENDS="$BACKENDS xmlrpc"
11983 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo xmlrpc | tr a-z A-Z`"
11984 for source in xmlrpc; do
11985 SYNCSOURCES="$SYNCSOURCES backends/xmlrpc/syncxmlrpc.la"
11989 if test "$enable_xmlrpc" = "yes"; then
11991 test -e /usr/bin/xmlrpc-c-config || { { echo "$as_me:$LINENO: error: --enable-xmlrpc requires xmlrpc-c-config, which was not found" >&5
11992 echo "$as_me: error: --enable-xmlrpc requires xmlrpc-c-config, which was not found" >&2;}
11993 { (exit 1); exit 1; }; }
11995 XMLRPC_CFLAGS=`/usr/bin/xmlrpc-c-config c++2 client --cflags`
11996 XMLRPC_LIBS=`/usr/bin/xmlrpc-c-config c++2 client --libs`
12000 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
12003 cat >>confdefs.h <<\_ACEOF
12004 #define ENABLE_XMLRPC 1
12008 ac_config_files="$ac_config_files src/backends/xmlrpc/Makefile"
12010 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
12016 backend_is_enabled () {
12017 eval echo \${enable_${1}}
12019 for backend in $BACKENDS; do
12020 if test `backend_is_enabled $backend` == "yes"; then
12022 SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
12026 if test "$enable_any" = "no"; then
12027 { { echo "$as_me:$LINENO: error: no backend enabled - refusing to continue: $anymissing" >&5
12028 echo "$as_me: error: no backend enabled - refusing to continue: $anymissing" >&2;}
12029 { (exit 1); exit 1; }; }
12033 ac_cpp='$CXXCPP $CPPFLAGS'
12034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12037 if test -z "$CXX"; then
12038 if test -n "$CCC"; then
12041 if test -n "$ac_tool_prefix"; then
12042 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12048 if test "${ac_cv_prog_CXX+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 if test -n "$CXX"; then
12052 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 CXX=$ac_cv_prog_CXX
12072 if test -n "$CXX"; then
12073 { echo "$as_me:$LINENO: result: $CXX" >&5
12074 echo "${ECHO_T}$CXX" >&6; }
12076 { echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6; }
12081 test -n "$CXX" && break
12084 if test -z "$CXX"; then
12086 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12088 # Extract the first word of "$ac_prog", so it can be a program name with args.
12089 set dummy $ac_prog; ac_word=$2
12090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12092 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 if test -n "$ac_ct_CXX"; then
12096 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105 ac_cv_prog_ac_ct_CXX="$ac_prog"
12106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12116 if test -n "$ac_ct_CXX"; then
12117 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12118 echo "${ECHO_T}$ac_ct_CXX" >&6; }
12120 { echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6; }
12125 test -n "$ac_ct_CXX" && break
12128 if test "x$ac_ct_CXX" = x; then
12131 case $cross_compiling:$ac_tool_warned in
12133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12134 whose name does not start with the host triplet. If you think this
12135 configuration is useful to you, please write to autoconf@gnu.org." >&5
12136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12137 whose name does not start with the host triplet. If you think this
12138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12139 ac_tool_warned=yes ;;
12147 # Provide some information about the compiler.
12148 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12149 ac_compiler=`set X $ac_compile; echo $2`
12150 { (ac_try="$ac_compiler --version >&5"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_compiler --version >&5") 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }
12160 { (ac_try="$ac_compiler -v >&5"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_compiler -v >&5") 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }
12170 { (ac_try="$ac_compiler -V >&5"
12171 case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_compiler -V >&5") 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }
12181 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12182 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12183 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 cat >conftest.$ac_ext <<_ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12204 rm -f conftest.$ac_objext
12205 if { (ac_try="$ac_compile"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_compile") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_cxx_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest.$ac_objext; then
12221 ac_compiler_gnu=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12233 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12234 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12235 GXX=`test $ac_compiler_gnu = yes && echo yes`
12236 ac_test_CXXFLAGS=${CXXFLAGS+set}
12237 ac_save_CXXFLAGS=$CXXFLAGS
12238 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12239 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12240 if test "${ac_cv_prog_cxx_g+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12244 ac_cxx_werror_flag=yes
12245 ac_cv_prog_cxx_g=no
12247 cat >conftest.$ac_ext <<_ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12262 rm -f conftest.$ac_objext
12263 if { (ac_try="$ac_compile"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_compile") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_cxx_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest.$ac_objext; then
12279 ac_cv_prog_cxx_g=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12285 cat >conftest.$ac_ext <<_ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12300 rm -f conftest.$ac_objext
12301 if { (ac_try="$ac_compile"
12302 case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_compile") 2>conftest.er1
12309 grep -v '^ *+' conftest.er1 >conftest.err
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && {
12314 test -z "$ac_cxx_werror_flag" ||
12315 test ! -s conftest.err
12316 } && test -s conftest.$ac_objext; then
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12339 rm -f conftest.$ac_objext
12340 if { (ac_try="$ac_compile"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compile") 2>conftest.er1
12348 grep -v '^ *+' conftest.er1 >conftest.err
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && {
12353 test -z "$ac_cxx_werror_flag" ||
12354 test ! -s conftest.err
12355 } && test -s conftest.$ac_objext; then
12356 ac_cv_prog_cxx_g=yes
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12373 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12374 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12375 if test "$ac_test_CXXFLAGS" = set; then
12376 CXXFLAGS=$ac_save_CXXFLAGS
12377 elif test $ac_cv_prog_cxx_g = yes; then
12378 if test "$GXX" = yes; then
12384 if test "$GXX" = yes; then
12391 ac_cpp='$CPP $CPPFLAGS'
12392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12396 depcc="$CXX" am_compiler_list=
12398 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12399 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12400 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12404 # We make a subdir and do the tests there. Otherwise we can end up
12405 # making bogus files that we don't know about and never remove. For
12406 # instance it was reported that on HP-UX the gcc test will end up
12407 # making a dummy file named `D' -- because `-MD' means `put the output
12410 # Copy depcomp to subdir because otherwise we won't find it if we're
12411 # using a relative directory.
12412 cp "$am_depcomp" conftest.dir
12414 # We will build objects and dependencies in a subdirectory because
12415 # it helps to detect inapplicable dependency modes. For instance
12416 # both Tru64's cc and ICC support -MD to output dependencies as a
12417 # side effect of compilation, but ICC will put the dependencies in
12418 # the current directory while Tru64 will put them in the object
12422 am_cv_CXX_dependencies_compiler_type=none
12423 if test "$am_compiler_list" = ""; then
12424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12426 for depmode in $am_compiler_list; do
12427 # Setup a source with many dependencies, because some compilers
12428 # like to wrap large dependency lists on column 80 (with \), and
12429 # we should not choose a depcomp mode which is confused by this.
12431 # We need to recreate these files for each test, as the compiler may
12432 # overwrite some of them when testing with obscure command lines.
12433 # This happens at least with the AIX C compiler.
12435 for i in 1 2 3 4 5 6; do
12436 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12437 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12438 # Solaris 8's {/usr,}/bin/sh.
12439 touch sub/conftst$i.h
12441 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12445 # after this tag, mechanisms are not by side-effect, so they'll
12446 # only be used when explicitly requested
12447 if test "x$enable_dependency_tracking" = xyes; then
12455 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12456 # mode. It turns out that the SunPro C++ compiler does not properly
12457 # handle `-M -o', and we need to detect this.
12458 if depmode=$depmode \
12459 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12460 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12461 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12462 >/dev/null 2>conftest.err &&
12463 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12465 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12467 # icc doesn't choke on unknown options, it will just issue warnings
12468 # or remarks (even with -Werror). So we grep stderr for any message
12469 # that says an option was ignored or not supported.
12470 # When given -MP, icc 7.0 and 7.1 complain thusly:
12471 # icc: Command line warning: ignoring option '-M'; no argument required
12472 # The diagnosis changed in icc 8.0:
12473 # icc: Command line remark: option '-MP' not supported
12474 if (grep 'ignoring option' conftest.err ||
12475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12476 am_cv_CXX_dependencies_compiler_type=$depmode
12483 rm -rf conftest.dir
12485 am_cv_CXX_dependencies_compiler_type=none
12489 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12490 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
12491 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12494 test "x$enable_dependency_tracking" != xno \
12495 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12496 am__fastdepCXX_TRUE=
12497 am__fastdepCXX_FALSE='#'
12499 am__fastdepCXX_TRUE='#'
12500 am__fastdepCXX_FALSE=
12504 # Check whether --enable-shared was given.
12505 if test "${enable_shared+set}" = set; then
12506 enableval=$enable_shared; p=${PACKAGE-default}
12508 yes) enable_shared=yes ;;
12509 no) enable_shared=no ;;
12512 # Look at the argument we got. We use all the common list separators.
12513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12514 for pkg in $enableval; do
12516 if test "X$pkg" = "X$p"; then
12528 # Check whether --enable-static was given.
12529 if test "${enable_static+set}" = set; then
12530 enableval=$enable_static; p=${PACKAGE-default}
12532 yes) enable_static=yes ;;
12533 no) enable_static=no ;;
12536 # Look at the argument we got. We use all the common list separators.
12537 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12538 for pkg in $enableval; do
12540 if test "X$pkg" = "X$p"; then
12552 # Check whether --enable-fast-install was given.
12553 if test "${enable_fast_install+set}" = set; then
12554 enableval=$enable_fast_install; p=${PACKAGE-default}
12556 yes) enable_fast_install=yes ;;
12557 no) enable_fast_install=no ;;
12559 enable_fast_install=no
12560 # Look at the argument we got. We use all the common list separators.
12561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12562 for pkg in $enableval; do
12564 if test "X$pkg" = "X$p"; then
12565 enable_fast_install=yes
12572 enable_fast_install=yes
12576 # Make sure we can run config.sub.
12577 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12578 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
12579 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
12580 { (exit 1); exit 1; }; }
12582 { echo "$as_me:$LINENO: checking build system type" >&5
12583 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
12584 if test "${ac_cv_build+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 ac_build_alias=$build_alias
12588 test "x$ac_build_alias" = x &&
12589 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
12590 test "x$ac_build_alias" = x &&
12591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
12592 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
12593 { (exit 1); exit 1; }; }
12594 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12595 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
12596 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
12597 { (exit 1); exit 1; }; }
12600 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
12601 echo "${ECHO_T}$ac_cv_build" >&6; }
12602 case $ac_cv_build in
12604 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
12605 echo "$as_me: error: invalid value of canonical build" >&2;}
12606 { (exit 1); exit 1; }; };;
12609 ac_save_IFS=$IFS; IFS='-'
12615 # Remember, the first character of IFS is used to create $*,
12616 # except with old shells:
12619 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
12622 { echo "$as_me:$LINENO: checking host system type" >&5
12623 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
12624 if test "${ac_cv_host+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 if test "x$host_alias" = x; then
12628 ac_cv_host=$ac_cv_build
12630 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12631 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12632 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12633 { (exit 1); exit 1; }; }
12637 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12638 echo "${ECHO_T}$ac_cv_host" >&6; }
12639 case $ac_cv_host in
12641 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12642 echo "$as_me: error: invalid value of canonical host" >&2;}
12643 { (exit 1); exit 1; }; };;
12646 ac_save_IFS=$IFS; IFS='-'
12652 # Remember, the first character of IFS is used to create $*,
12653 # except with old shells:
12656 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12659 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12660 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12661 if test "${lt_cv_path_SED+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 # Loop through the user's path and test for sed and gsed.
12665 # Then use that list of sed's as ones to test for truncation.
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12670 test -z "$as_dir" && as_dir=.
12671 for lt_ac_prog in sed gsed; do
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
12674 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12682 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12683 # along with /bin/sed that truncates output.
12684 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12685 test ! -f $lt_ac_sed && continue
12686 cat /dev/null > conftest.in
12688 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12689 # Check for GNU sed and select it if it is found.
12690 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12691 lt_cv_path_SED=$lt_ac_sed
12695 cat conftest.in conftest.in >conftest.tmp
12696 mv conftest.tmp conftest.in
12697 cp conftest.in conftest.nl
12699 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12700 cmp -s conftest.out conftest.nl || break
12701 # 10000 chars as input seems more than enough
12702 test $lt_ac_count -gt 10 && break
12703 lt_ac_count=`expr $lt_ac_count + 1`
12704 if test $lt_ac_count -gt $lt_ac_max; then
12705 lt_ac_max=$lt_ac_count
12706 lt_cv_path_SED=$lt_ac_sed
12713 SED=$lt_cv_path_SED
12715 { echo "$as_me:$LINENO: result: $SED" >&5
12716 echo "${ECHO_T}$SED" >&6; }
12719 # Check whether --with-gnu-ld was given.
12720 if test "${with_gnu_ld+set}" = set; then
12721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12727 if test "$GCC" = yes; then
12728 # Check if gcc -print-prog-name=ld gives a path.
12729 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12730 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12733 # gcc leaves a trailing carriage return which upsets mingw
12734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12739 # Accept absolute paths.
12741 re_direlt='/[^/][^/]*/\.\./'
12742 # Canonicalize the pathname of ld
12743 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12745 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12747 test -z "$LD" && LD="$ac_prog"
12750 # If it fails, then pretend we aren't using GCC.
12754 # If it is relative, then search for the first ld in PATH.
12755 with_gnu_ld=unknown
12758 elif test "$with_gnu_ld" = yes; then
12759 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12760 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12762 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12763 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12765 if test "${lt_cv_path_LD+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 if test -z "$LD"; then
12769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12770 for ac_dir in $PATH; do
12772 test -z "$ac_dir" && ac_dir=.
12773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12774 lt_cv_path_LD="$ac_dir/$ac_prog"
12775 # Check to see if the program is GNU ld. I'd rather use --version,
12776 # but apparently some variants of GNU ld only accept -v.
12777 # Break only if it was the GNU/non-GNU ld that we prefer.
12778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12779 *GNU* | *'with BFD'*)
12780 test "$with_gnu_ld" != no && break
12783 test "$with_gnu_ld" != yes && break
12790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12794 LD="$lt_cv_path_LD"
12795 if test -n "$LD"; then
12796 { echo "$as_me:$LINENO: result: $LD" >&5
12797 echo "${ECHO_T}$LD" >&6; }
12799 { echo "$as_me:$LINENO: result: no" >&5
12800 echo "${ECHO_T}no" >&6; }
12802 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12803 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12804 { (exit 1); exit 1; }; }
12805 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12806 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12807 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12811 case `$LD -v 2>&1 </dev/null` in
12812 *GNU* | *'with BFD'*)
12813 lt_cv_prog_gnu_ld=yes
12816 lt_cv_prog_gnu_ld=no
12820 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12821 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12822 with_gnu_ld=$lt_cv_prog_gnu_ld
12825 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12826 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12827 if test "${lt_cv_ld_reload_flag+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 lt_cv_ld_reload_flag='-r'
12832 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12833 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12834 reload_flag=$lt_cv_ld_reload_flag
12835 case $reload_flag in
12837 *) reload_flag=" $reload_flag" ;;
12839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12842 if test "$GCC" = yes; then
12843 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12850 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12851 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12852 if test "${lt_cv_path_NM+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 if test -n "$NM"; then
12856 # Let the user override the test.
12857 lt_cv_path_NM="$NM"
12859 lt_nm_to_check="${ac_tool_prefix}nm"
12860 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12861 lt_nm_to_check="$lt_nm_to_check nm"
12863 for lt_tmp_nm in $lt_nm_to_check; do
12864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12865 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12867 test -z "$ac_dir" && ac_dir=.
12868 tmp_nm="$ac_dir/$lt_tmp_nm"
12869 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12870 # Check to see if the nm accepts a BSD-compat flag.
12871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12872 # nm: unknown option "B" ignored
12873 # Tru64's nm complains that /dev/null is an invalid object file
12874 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12875 */dev/null* | *'Invalid file or object type'*)
12876 lt_cv_path_NM="$tmp_nm -B"
12880 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12882 lt_cv_path_NM="$tmp_nm -p"
12886 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12887 continue # so that we can try to find one that supports BSD flags
12896 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12899 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12900 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12901 NM="$lt_cv_path_NM"
12903 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
12904 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
12906 if test "$LN_S" = "ln -s"; then
12907 { echo "$as_me:$LINENO: result: yes" >&5
12908 echo "${ECHO_T}yes" >&6; }
12910 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12911 echo "${ECHO_T}no, using $LN_S" >&6; }
12914 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12915 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
12916 if test "${lt_cv_deplibs_check_method+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 lt_cv_file_magic_cmd='$MAGIC_CMD'
12920 lt_cv_file_magic_test_file=
12921 lt_cv_deplibs_check_method='unknown'
12922 # Need to set the preceding variable on all platforms that support
12923 # interlibrary dependencies.
12924 # 'none' -- dependencies not supported.
12925 # `unknown' -- same as none, but documents that we really don't know.
12926 # 'pass_all' -- all dependencies passed with no checks.
12927 # 'test_compile' -- check by making test program.
12928 # 'file_magic [[regex]]' -- check by looking for files in library path
12929 # which responds to the $file_magic_cmd with a given extended regex.
12930 # If you have `file' or equivalent on your system and you're not sure
12931 # whether `pass_all' will *always* work, you probably want this one.
12935 lt_cv_deplibs_check_method=pass_all
12939 lt_cv_deplibs_check_method=pass_all
12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12944 lt_cv_file_magic_cmd='/usr/bin/file -L'
12945 lt_cv_file_magic_test_file=/shlib/libc.so
12949 # func_win32_libid is a shell function defined in ltmain.sh
12950 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12951 lt_cv_file_magic_cmd='func_win32_libid'
12955 # Base MSYS/MinGW do not provide the 'file' command needed by
12956 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12957 # unless we find 'file', for example because we are cross-compiling.
12958 if ( file / ) >/dev/null 2>&1; then
12959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12960 lt_cv_file_magic_cmd='func_win32_libid'
12962 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12963 lt_cv_file_magic_cmd='$OBJDUMP -f'
12967 darwin* | rhapsody*)
12968 lt_cv_deplibs_check_method=pass_all
12971 freebsd* | dragonfly*)
12972 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12975 # Not sure whether the presence of OpenBSD here was a mistake.
12976 # Let's accept both of them until this is cleared up.
12977 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12978 lt_cv_file_magic_cmd=/usr/bin/file
12979 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12983 lt_cv_deplibs_check_method=pass_all
12988 lt_cv_deplibs_check_method=pass_all
12991 hpux10.20* | hpux11*)
12992 lt_cv_file_magic_cmd=/usr/bin/file
12995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12996 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12999 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]'
13000 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13004 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13010 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13014 irix5* | irix6* | nonstopux*)
13016 *-32|*"-32 ") libmagic=32-bit;;
13017 *-n32|*"-n32 ") libmagic=N32;;
13018 *-64|*"-64 ") libmagic=64-bit;;
13019 *) libmagic=never-match;;
13021 lt_cv_deplibs_check_method=pass_all
13024 # This must be Linux ELF.
13025 linux* | k*bsd*-gnu)
13026 lt_cv_deplibs_check_method=pass_all
13029 netbsd* | netbsdelf*-gnu)
13030 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13039 lt_cv_file_magic_cmd=/usr/bin/file
13040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13044 lt_cv_deplibs_check_method=unknown
13048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13055 osf3* | osf4* | osf5*)
13056 lt_cv_deplibs_check_method=pass_all
13060 lt_cv_deplibs_check_method=pass_all
13064 lt_cv_deplibs_check_method=pass_all
13068 case $host_vendor in
13070 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]'
13071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13074 lt_cv_deplibs_check_method=pass_all
13077 lt_cv_file_magic_cmd='/bin/file'
13078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13081 lt_cv_file_magic_cmd='/bin/file'
13082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13083 lt_cv_file_magic_test_file=/lib/libc.so
13086 lt_cv_deplibs_check_method=pass_all
13089 lt_cv_deplibs_check_method=pass_all
13094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13095 lt_cv_deplibs_check_method=pass_all
13100 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13101 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13102 file_magic_cmd=$lt_cv_file_magic_cmd
13103 deplibs_check_method=$lt_cv_deplibs_check_method
13104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13109 # If no C compiler was specified, use CC.
13112 # If no C compiler flags were specified, use CFLAGS.
13113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13115 # Allow CC to be a program name with arguments.
13118 # Check whether --enable-libtool-lock was given.
13119 if test "${enable_libtool_lock+set}" = set; then
13120 enableval=$enable_libtool_lock;
13123 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13125 # Some flags need to be propagated to the compiler or linker for good
13129 # Find out which ABI we are using.
13130 echo 'int i;' > conftest.$ac_ext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; then
13136 case `/usr/bin/file conftest.$ac_objext` in
13138 HPUX_IA64_MODE="32"
13141 HPUX_IA64_MODE="64"
13148 # Find out which ABI we are using.
13149 echo '#line 13149 "configure"' > conftest.$ac_ext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; then
13155 if test "$lt_cv_prog_gnu_ld" = yes; then
13156 case `/usr/bin/file conftest.$ac_objext` in
13158 LD="${LD-ld} -melf32bsmip"
13161 LD="${LD-ld} -melf32bmipn32"
13164 LD="${LD-ld} -melf64bmip"
13168 case `/usr/bin/file conftest.$ac_objext` in
13184 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13185 s390*-*linux*|sparc*-*linux*)
13186 # Find out which ABI we are using.
13187 echo 'int i;' > conftest.$ac_ext
13188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189 (eval $ac_compile) 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; then
13193 case `/usr/bin/file conftest.o` in
13196 x86_64-*kfreebsd*-gnu)
13197 LD="${LD-ld} -m elf_i386_fbsd"
13200 LD="${LD-ld} -m elf_i386"
13202 ppc64-*linux*|powerpc64-*linux*)
13203 LD="${LD-ld} -m elf32ppclinux"
13206 LD="${LD-ld} -m elf_s390"
13209 LD="${LD-ld} -m elf32_sparc"
13215 x86_64-*kfreebsd*-gnu)
13216 LD="${LD-ld} -m elf_x86_64_fbsd"
13219 LD="${LD-ld} -m elf_x86_64"
13221 ppc*-*linux*|powerpc*-*linux*)
13222 LD="${LD-ld} -m elf64ppc"
13225 LD="${LD-ld} -m elf64_s390"
13228 LD="${LD-ld} -m elf64_sparc"
13238 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13239 SAVE_CFLAGS="$CFLAGS"
13240 CFLAGS="$CFLAGS -belf"
13241 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13242 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13243 if test "${lt_cv_cc_needs_belf+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 ac_cpp='$CPP $CPPFLAGS'
13248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_link") 2>conftest.er1
13276 grep -v '^ *+' conftest.er1 >conftest.err
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest$ac_exeext &&
13284 $as_test_x conftest$ac_exeext; then
13285 lt_cv_cc_needs_belf=yes
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 lt_cv_cc_needs_belf=no
13293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13294 conftest$ac_exeext conftest.$ac_ext
13296 ac_cpp='$CPP $CPPFLAGS'
13297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13302 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13303 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13304 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13305 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13306 CFLAGS="$SAVE_CFLAGS"
13310 # Find out which ABI we are using.
13311 echo 'int i;' > conftest.$ac_ext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; then
13317 case `/usr/bin/file conftest.o` in
13319 case $lt_cv_prog_gnu_ld in
13320 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13322 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13336 need_locks="$enable_libtool_lock"
13340 for ac_header in dlfcn.h
13342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 ac_res=`eval echo '${'$as_ac_Header'}'`
13350 { echo "$as_me:$LINENO: result: $ac_res" >&5
13351 echo "${ECHO_T}$ac_res" >&6; }
13353 # Is the header compilable?
13354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 $ac_includes_default
13363 #include <$ac_header>
13365 rm -f conftest.$ac_objext
13366 if { (ac_try="$ac_compile"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_compile") 2>conftest.er1
13374 grep -v '^ *+' conftest.er1 >conftest.err
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && {
13379 test -z "$ac_c_werror_flag" ||
13380 test ! -s conftest.err
13381 } && test -s conftest.$ac_objext; then
13382 ac_header_compiler=yes
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_header_compiler=no
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13392 echo "${ECHO_T}$ac_header_compiler" >&6; }
13394 # Is the header present?
13395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13397 cat >conftest.$ac_ext <<_ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13403 #include <$ac_header>
13405 if { (ac_try="$ac_cpp conftest.$ac_ext"
13406 case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13413 grep -v '^ *+' conftest.er1 >conftest.err
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } >/dev/null && {
13418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13419 test ! -s conftest.err
13421 ac_header_preproc=yes
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_header_preproc=no
13429 rm -f conftest.err conftest.$ac_ext
13430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13431 echo "${ECHO_T}$ac_header_preproc" >&6; }
13433 # So? What about this header?
13434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13440 ac_header_preproc=yes
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 eval "$as_ac_Header=\$ac_header_preproc"
13465 ac_res=`eval echo '${'$as_ac_Header'}'`
13466 { echo "$as_me:$LINENO: result: $ac_res" >&5
13467 echo "${ECHO_T}$ac_res" >&6; }
13470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13471 cat >>confdefs.h <<_ACEOF
13472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13481 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13482 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13483 (test "X$CXX" != "Xg++"))) ; then
13485 ac_cpp='$CXXCPP $CPPFLAGS'
13486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13489 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13490 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13491 if test -z "$CXXCPP"; then
13492 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 # Double quotes because CXXCPP needs to be expanded
13496 for CXXCPP in "$CXX -E" "/lib/cpp"
13498 ac_preproc_ok=false
13499 for ac_cxx_preproc_warn_flag in '' yes
13501 # Use a header file that comes with gcc, so configuring glibc
13502 # with a fresh cross-compiler works.
13503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13504 # <limits.h> exists even on freestanding compilers.
13505 # On the NeXT, cc -E runs the code through the compiler's parser,
13506 # not just through cpp. "Syntax error" is here to catch this case.
13507 cat >conftest.$ac_ext <<_ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13514 # include <limits.h>
13516 # include <assert.h>
13520 if { (ac_try="$ac_cpp conftest.$ac_ext"
13521 case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13528 grep -v '^ *+' conftest.er1 >conftest.err
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } >/dev/null && {
13533 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13534 test ! -s conftest.err
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 # Broken: fails on valid input.
13545 rm -f conftest.err conftest.$ac_ext
13547 # OK, works on sane cases. Now check whether nonexistent headers
13548 # can be detected and how.
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <ac_nonexistent.h>
13557 if { (ac_try="$ac_cpp conftest.$ac_ext"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } >/dev/null && {
13570 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13571 test ! -s conftest.err
13573 # Broken: success on invalid input.
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 # Passes both tests.
13584 rm -f conftest.err conftest.$ac_ext
13587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13588 rm -f conftest.err conftest.$ac_ext
13589 if $ac_preproc_ok; then
13594 ac_cv_prog_CXXCPP=$CXXCPP
13597 CXXCPP=$ac_cv_prog_CXXCPP
13599 ac_cv_prog_CXXCPP=$CXXCPP
13601 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13602 echo "${ECHO_T}$CXXCPP" >&6; }
13603 ac_preproc_ok=false
13604 for ac_cxx_preproc_warn_flag in '' yes
13606 # Use a header file that comes with gcc, so configuring glibc
13607 # with a fresh cross-compiler works.
13608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13609 # <limits.h> exists even on freestanding compilers.
13610 # On the NeXT, cc -E runs the code through the compiler's parser,
13611 # not just through cpp. "Syntax error" is here to catch this case.
13612 cat >conftest.$ac_ext <<_ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13619 # include <limits.h>
13621 # include <assert.h>
13625 if { (ac_try="$ac_cpp conftest.$ac_ext"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13633 grep -v '^ *+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } >/dev/null && {
13638 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13639 test ! -s conftest.err
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 # Broken: fails on valid input.
13650 rm -f conftest.err conftest.$ac_ext
13652 # OK, works on sane cases. Now check whether nonexistent headers
13653 # can be detected and how.
13654 cat >conftest.$ac_ext <<_ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h. */
13660 #include <ac_nonexistent.h>
13662 if { (ac_try="$ac_cpp conftest.$ac_ext"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } >/dev/null && {
13675 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13676 test ! -s conftest.err
13678 # Broken: success on invalid input.
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 # Passes both tests.
13689 rm -f conftest.err conftest.$ac_ext
13692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13693 rm -f conftest.err conftest.$ac_ext
13694 if $ac_preproc_ok; then
13697 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13700 See \`config.log' for more details." >&2;}
13701 { (exit 1); exit 1; }; }
13705 ac_cpp='$CXXCPP $CPPFLAGS'
13706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13713 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13714 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13716 if test -n "$ac_tool_prefix"; then
13717 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
13719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13723 if test "${ac_cv_prog_F77+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 if test -n "$F77"; then
13727 ac_cv_prog_F77="$F77" # Let the user override the test.
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13736 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13746 F77=$ac_cv_prog_F77
13747 if test -n "$F77"; then
13748 { echo "$as_me:$LINENO: result: $F77" >&5
13749 echo "${ECHO_T}$F77" >&6; }
13751 { echo "$as_me:$LINENO: result: no" >&5
13752 echo "${ECHO_T}no" >&6; }
13756 test -n "$F77" && break
13759 if test -z "$F77"; then
13761 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
13763 # Extract the first word of "$ac_prog", so it can be a program name with args.
13764 set dummy $ac_prog; ac_word=$2
13765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13767 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 if test -n "$ac_ct_F77"; then
13771 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13777 test -z "$as_dir" && as_dir=.
13778 for ac_exec_ext in '' $ac_executable_extensions; do
13779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13780 ac_cv_prog_ac_ct_F77="$ac_prog"
13781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13790 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13791 if test -n "$ac_ct_F77"; then
13792 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13793 echo "${ECHO_T}$ac_ct_F77" >&6; }
13795 { echo "$as_me:$LINENO: result: no" >&5
13796 echo "${ECHO_T}no" >&6; }
13800 test -n "$ac_ct_F77" && break
13803 if test "x$ac_ct_F77" = x; then
13806 case $cross_compiling:$ac_tool_warned in
13808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13809 whose name does not start with the host triplet. If you think this
13810 configuration is useful to you, please write to autoconf@gnu.org." >&5
13811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13812 whose name does not start with the host triplet. If you think this
13813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13814 ac_tool_warned=yes ;;
13821 # Provide some information about the compiler.
13822 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13823 ac_compiler=`set X $ac_compile; echo $2`
13824 { (ac_try="$ac_compiler --version >&5"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_compiler --version >&5") 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }
13834 { (ac_try="$ac_compiler -v >&5"
13835 case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_compiler -v >&5") 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }
13844 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }
13856 # If we don't use `.F' as extension, the preprocessor is not run on the
13857 # input file. (Note that this only needs to work for GNU compilers.)
13858 ac_save_ext=$ac_ext
13860 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13861 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13862 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_f77_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest.$ac_objext; then
13890 ac_compiler_gnu=yes
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13902 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13903 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13904 ac_ext=$ac_save_ext
13905 ac_test_FFLAGS=${FFLAGS+set}
13906 ac_save_FFLAGS=$FFLAGS
13908 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13909 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13910 if test "${ac_cv_prog_f77_g+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 cat >conftest.$ac_ext <<_ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_compile") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_f77_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest.$ac_objext; then
13936 ac_cv_prog_f77_g=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_cv_prog_f77_g=no
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13948 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13949 if test "$ac_test_FFLAGS" = set; then
13950 FFLAGS=$ac_save_FFLAGS
13951 elif test $ac_cv_prog_f77_g = yes; then
13952 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13958 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13965 G77=`test $ac_compiler_gnu = yes && echo yes`
13967 ac_cpp='$CPP $CPPFLAGS'
13968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13974 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13975 # find the maximum length of command line arguments
13976 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13977 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13978 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 # On DJGPP, this test can blow up pretty badly due to problems in libc
13987 # (any single argument exceeding 2000 bytes causes a buffer overrun
13988 # during glob expansion). Even if it were fixed, the result of this
13989 # check would be larger than it should be.
13990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13994 # Under GNU Hurd, this test is not required because there is
13995 # no limit to the length of command line arguments.
13996 # Libtool will interpret -1 as no limit whatsoever
13997 lt_cv_sys_max_cmd_len=-1;
14001 # On Win9x/ME, this test blows up -- it succeeds, but takes
14002 # about 5 minutes as the teststring grows exponentially.
14003 # Worse, since 9x/ME are not pre-emptively multitasking,
14004 # you end up with a "frozen" computer, even though with patience
14005 # the test eventually succeeds (with a max line length of 256k).
14006 # Instead, let's just punt: use the minimum linelength reported by
14007 # all of the supported platforms: 8192 (on NT/2K/XP).
14008 lt_cv_sys_max_cmd_len=8192;
14012 # On AmigaOS with pdksh, this test takes hours, literally.
14013 # So we just punt and use a minimum line length of 8192.
14014 lt_cv_sys_max_cmd_len=8192;
14017 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14018 # This has been around since 386BSD, at least. Likely further.
14019 if test -x /sbin/sysctl; then
14020 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14021 elif test -x /usr/sbin/sysctl; then
14022 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14024 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14026 # And add a safety zone
14027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14032 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14033 lt_cv_sys_max_cmd_len=196608
14037 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14038 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14039 # nice to cause kernel panics so lets avoid the loop below.
14040 # First set a reasonable default.
14041 lt_cv_sys_max_cmd_len=16384
14043 if test -x /sbin/sysconfig; then
14044 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14045 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14050 lt_cv_sys_max_cmd_len=102400
14052 sysv5* | sco5v6* | sysv4.2uw2*)
14053 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14054 if test -n "$kargmax"; then
14055 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14057 lt_cv_sys_max_cmd_len=32768
14061 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14062 if test -n "$lt_cv_sys_max_cmd_len"; then
14063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14066 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14067 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14068 = "XX$teststring") >/dev/null 2>&1 &&
14069 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14070 lt_cv_sys_max_cmd_len=$new_result &&
14071 test $i != 17 # 1/2 MB should be enough
14074 teststring=$teststring$teststring
14077 # Add a significant safety factor because C++ compilers can tack on massive
14078 # amounts of additional arguments before passing them to the linker.
14079 # It appears as though 1/2 is a usable value.
14080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14087 if test -n $lt_cv_sys_max_cmd_len ; then
14088 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14089 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14091 { echo "$as_me:$LINENO: result: none" >&5
14092 echo "${ECHO_T}none" >&6; }
14099 # Check for command to grab the raw symbol name followed by C symbol from nm.
14100 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14101 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14102 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 # These are sane defaults that work on at least a few old systems.
14107 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14109 # Character class describing NM global symbol codes.
14110 symcode='[BCDEGRST]'
14112 # Regexp to match symbols that can be accessed directly from C.
14113 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14115 # Transform an extracted symbol line into a proper C declaration
14116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14118 # Transform an extracted symbol line into symbol name and symbol address
14119 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'"
14121 # Define system-specific variables.
14126 cygwin* | mingw* | pw32*)
14127 symcode='[ABCDGISTW]'
14129 hpux*) # Its linker distinguishes data from code symbols
14130 if test "$host_cpu" = ia64; then
14131 symcode='[ABCDEGRST]'
14133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14134 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'"
14136 linux* | k*bsd*-gnu)
14137 if test "$host_cpu" = ia64; then
14138 symcode='[ABCDGIRSTW]'
14139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14140 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'"
14143 irix* | nonstopux*)
14144 symcode='[BCDEGRST]'
14147 symcode='[BCDEGQRST]'
14158 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14166 # Handle CRLF in mingw tool chain
14170 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14174 # If we're using GNU nm, then use its standard symbol codes.
14175 case `$NM -V 2>&1` in
14176 *GNU* | *'with BFD'*)
14177 symcode='[ABCDGIRSTW]' ;;
14180 # Try without a prefix undercore, then with it.
14181 for ac_symprfx in "" "_"; do
14183 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14184 symxfrm="\\1 $ac_symprfx\\2 \\2"
14186 # Write the raw and C identifiers.
14187 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14189 # Check to see that the pipe works correctly.
14193 cat > conftest.$ac_ext <<EOF
14198 void nm_test_func(){}
14202 int main(){nm_test_var='a';nm_test_func();return(0);}
14205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206 (eval $ac_compile) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; then
14210 # Now try to grab the symbols.
14212 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14213 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } && test -s "$nlist"; then
14217 # Try sorting and uniquifying the output.
14218 if sort "$nlist" | uniq > "$nlist"T; then
14219 mv -f "$nlist"T "$nlist"
14224 # Make sure that we snagged all the symbols we need.
14225 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14226 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14227 cat <<EOF > conftest.$ac_ext
14233 # Now generate the symbol file.
14234 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14236 cat <<EOF >> conftest.$ac_ext
14237 #if defined (__STDC__) && __STDC__
14238 # define lt_ptr_t void *
14240 # define lt_ptr_t char *
14244 /* The mapping between symbol names and symbols. */
14249 lt_preloaded_symbols[] =
14252 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14253 cat <<\EOF >> conftest.$ac_ext
14261 # Now try linking the two files.
14262 mv conftest.$ac_objext conftstm.$ac_objext
14263 lt_save_LIBS="$LIBS"
14264 lt_save_CFLAGS="$CFLAGS"
14265 LIBS="conftstm.$ac_objext"
14266 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14274 LIBS="$lt_save_LIBS"
14275 CFLAGS="$lt_save_CFLAGS"
14277 echo "cannot find nm_test_func in $nlist" >&5
14280 echo "cannot find nm_test_var in $nlist" >&5
14283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14286 echo "$progname: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14289 rm -rf conftest* conftst*
14291 # Do not use the global_symbol_pipe unless it works.
14292 if test "$pipe_works" = yes; then
14295 lt_cv_sys_global_symbol_pipe=
14301 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14302 lt_cv_sys_global_symbol_to_cdecl=
14304 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14305 { echo "$as_me:$LINENO: result: failed" >&5
14306 echo "${ECHO_T}failed" >&6; }
14308 { echo "$as_me:$LINENO: result: ok" >&5
14309 echo "${ECHO_T}ok" >&6; }
14312 { echo "$as_me:$LINENO: checking for objdir" >&5
14313 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14314 if test "${lt_cv_objdir+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 rm -f .libs 2>/dev/null
14318 mkdir .libs 2>/dev/null
14319 if test -d .libs; then
14322 # MS-DOS does not allow filenames that begin with a dot.
14325 rmdir .libs 2>/dev/null
14327 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14328 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14329 objdir=$lt_cv_objdir
14337 # AIX sometimes has problems with the GCC collect2 program. For some
14338 # reason, if we set the COLLECT_NAMES environment variable, the problems
14339 # vanish in a puff of smoke.
14340 if test "X${COLLECT_NAMES+set}" != Xset; then
14342 export COLLECT_NAMES
14347 # Sed substitution that helps us do robust quoting. It backslashifies
14348 # metacharacters that are still active within double-quoted strings.
14349 Xsed='sed -e 1s/^X//'
14350 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14352 # Same as above, but do not quote variable references.
14353 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14355 # Sed substitution to delay expansion of an escaped shell variable in a
14356 # double_quote_subst'ed string.
14357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14359 # Sed substitution to avoid accidental globbing in evaled expressions
14360 no_glob_subst='s/\*/\\\*/g'
14365 # Global variables:
14366 default_ofile=libtool
14367 can_build_shared=yes
14369 # All known linkers require a `.a' archive for static linking (except MSVC,
14370 # which needs '.lib').
14372 ltmain="$ac_aux_dir/ltmain.sh"
14373 ofile="$default_ofile"
14374 with_gnu_ld="$lt_cv_prog_gnu_ld"
14376 if test -n "$ac_tool_prefix"; then
14377 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14378 set dummy ${ac_tool_prefix}ar; ac_word=$2
14379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14381 if test "${ac_cv_prog_AR+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 if test -n "$AR"; then
14385 ac_cv_prog_AR="$AR" # Let the user override the test.
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14394 ac_cv_prog_AR="${ac_tool_prefix}ar"
14395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14405 if test -n "$AR"; then
14406 { echo "$as_me:$LINENO: result: $AR" >&5
14407 echo "${ECHO_T}$AR" >&6; }
14409 { echo "$as_me:$LINENO: result: no" >&5
14410 echo "${ECHO_T}no" >&6; }
14415 if test -z "$ac_cv_prog_AR"; then
14417 # Extract the first word of "ar", so it can be a program name with args.
14418 set dummy ar; ac_word=$2
14419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14421 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 if test -n "$ac_ct_AR"; then
14425 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428 for as_dir in $PATH
14431 test -z "$as_dir" && as_dir=.
14432 for ac_exec_ext in '' $ac_executable_extensions; do
14433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14434 ac_cv_prog_ac_ct_AR="ar"
14435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14445 if test -n "$ac_ct_AR"; then
14446 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14447 echo "${ECHO_T}$ac_ct_AR" >&6; }
14449 { echo "$as_me:$LINENO: result: no" >&5
14450 echo "${ECHO_T}no" >&6; }
14453 if test "x$ac_ct_AR" = x; then
14456 case $cross_compiling:$ac_tool_warned in
14458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14459 whose name does not start with the host triplet. If you think this
14460 configuration is useful to you, please write to autoconf@gnu.org." >&5
14461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14462 whose name does not start with the host triplet. If you think this
14463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14464 ac_tool_warned=yes ;;
14469 AR="$ac_cv_prog_AR"
14472 if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14477 if test "${ac_cv_prog_RANLIB+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 if test -n "$RANLIB"; then
14481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14500 RANLIB=$ac_cv_prog_RANLIB
14501 if test -n "$RANLIB"; then
14502 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14503 echo "${ECHO_T}$RANLIB" >&6; }
14505 { echo "$as_me:$LINENO: result: no" >&5
14506 echo "${ECHO_T}no" >&6; }
14511 if test -z "$ac_cv_prog_RANLIB"; then
14512 ac_ct_RANLIB=$RANLIB
14513 # Extract the first word of "ranlib", so it can be a program name with args.
14514 set dummy ranlib; ac_word=$2
14515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 if test -n "$ac_ct_RANLIB"; then
14521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
14529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14530 ac_cv_prog_ac_ct_RANLIB="ranlib"
14531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14541 if test -n "$ac_ct_RANLIB"; then
14542 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14545 { echo "$as_me:$LINENO: result: no" >&5
14546 echo "${ECHO_T}no" >&6; }
14549 if test "x$ac_ct_RANLIB" = x; then
14552 case $cross_compiling:$ac_tool_warned in
14554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14555 whose name does not start with the host triplet. If you think this
14556 configuration is useful to you, please write to autoconf@gnu.org." >&5
14557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14558 whose name does not start with the host triplet. If you think this
14559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14560 ac_tool_warned=yes ;;
14562 RANLIB=$ac_ct_RANLIB
14565 RANLIB="$ac_cv_prog_RANLIB"
14568 if test -n "$ac_tool_prefix"; then
14569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14570 set dummy ${ac_tool_prefix}strip; ac_word=$2
14571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14573 if test "${ac_cv_prog_STRIP+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 if test -n "$STRIP"; then
14577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580 for as_dir in $PATH
14583 test -z "$as_dir" && as_dir=.
14584 for ac_exec_ext in '' $ac_executable_extensions; do
14585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14596 STRIP=$ac_cv_prog_STRIP
14597 if test -n "$STRIP"; then
14598 { echo "$as_me:$LINENO: result: $STRIP" >&5
14599 echo "${ECHO_T}$STRIP" >&6; }
14601 { echo "$as_me:$LINENO: result: no" >&5
14602 echo "${ECHO_T}no" >&6; }
14607 if test -z "$ac_cv_prog_STRIP"; then
14609 # Extract the first word of "strip", so it can be a program name with args.
14610 set dummy strip; ac_word=$2
14611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14613 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 if test -n "$ac_ct_STRIP"; then
14617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620 for as_dir in $PATH
14623 test -z "$as_dir" && as_dir=.
14624 for ac_exec_ext in '' $ac_executable_extensions; do
14625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14626 ac_cv_prog_ac_ct_STRIP="strip"
14627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14637 if test -n "$ac_ct_STRIP"; then
14638 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14639 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14641 { echo "$as_me:$LINENO: result: no" >&5
14642 echo "${ECHO_T}no" >&6; }
14645 if test "x$ac_ct_STRIP" = x; then
14648 case $cross_compiling:$ac_tool_warned in
14650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14651 whose name does not start with the host triplet. If you think this
14652 configuration is useful to you, please write to autoconf@gnu.org." >&5
14653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14654 whose name does not start with the host triplet. If you think this
14655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14656 ac_tool_warned=yes ;;
14661 STRIP="$ac_cv_prog_STRIP"
14666 old_CFLAGS="$CFLAGS"
14668 # Set sane defaults for various variables
14669 test -z "$AR" && AR=ar
14670 test -z "$AR_FLAGS" && AR_FLAGS=cru
14671 test -z "$AS" && AS=as
14672 test -z "$CC" && CC=cc
14673 test -z "$LTCC" && LTCC=$CC
14674 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14675 test -z "$DLLTOOL" && DLLTOOL=dlltool
14676 test -z "$LD" && LD=ld
14677 test -z "$LN_S" && LN_S="ln -s"
14678 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14679 test -z "$NM" && NM=nm
14680 test -z "$SED" && SED=sed
14681 test -z "$OBJDUMP" && OBJDUMP=objdump
14682 test -z "$RANLIB" && RANLIB=:
14683 test -z "$STRIP" && STRIP=:
14684 test -z "$ac_objext" && ac_objext=o
14686 # Determine commands to create old-style static archives.
14687 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14688 old_postinstall_cmds='chmod 644 $oldlib'
14689 old_postuninstall_cmds=
14691 if test -n "$RANLIB"; then
14694 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14700 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14703 for cc_temp in $compiler""; do
14705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14714 # Only perform the check for file, if the check method requires it
14715 case $deplibs_check_method in
14717 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14718 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14719 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14720 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14728 lt_save_MAGIC_CMD="$MAGIC_CMD"
14729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14730 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14731 for ac_dir in $ac_dummy; do
14733 test -z "$ac_dir" && ac_dir=.
14734 if test -f $ac_dir/${ac_tool_prefix}file; then
14735 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14736 if test -n "$file_magic_test_file"; then
14737 case $deplibs_check_method in
14739 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14742 $EGREP "$file_magic_regex" > /dev/null; then
14747 *** Warning: the command libtool uses to detect shared libraries,
14748 *** $file_magic_cmd, produces output that libtool cannot recognize.
14749 *** The result is that libtool may fail to recognize shared libraries
14750 *** as such. This will affect the creation of libtool libraries that
14751 *** depend on shared libraries, but programs linked with such libtool
14752 *** libraries will work regardless of this problem. Nevertheless, you
14753 *** may want to report the problem to your system manager and/or to
14754 *** bug-libtool@gnu.org
14764 MAGIC_CMD="$lt_save_MAGIC_CMD"
14769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14770 if test -n "$MAGIC_CMD"; then
14771 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14772 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14774 { echo "$as_me:$LINENO: result: no" >&5
14775 echo "${ECHO_T}no" >&6; }
14778 if test -z "$lt_cv_path_MAGIC_CMD"; then
14779 if test -n "$ac_tool_prefix"; then
14780 { echo "$as_me:$LINENO: checking for file" >&5
14781 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14782 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14790 lt_save_MAGIC_CMD="$MAGIC_CMD"
14791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14792 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14793 for ac_dir in $ac_dummy; do
14795 test -z "$ac_dir" && ac_dir=.
14796 if test -f $ac_dir/file; then
14797 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14798 if test -n "$file_magic_test_file"; then
14799 case $deplibs_check_method in
14801 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14803 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14804 $EGREP "$file_magic_regex" > /dev/null; then
14809 *** Warning: the command libtool uses to detect shared libraries,
14810 *** $file_magic_cmd, produces output that libtool cannot recognize.
14811 *** The result is that libtool may fail to recognize shared libraries
14812 *** as such. This will affect the creation of libtool libraries that
14813 *** depend on shared libraries, but programs linked with such libtool
14814 *** libraries will work regardless of this problem. Nevertheless, you
14815 *** may want to report the problem to your system manager and/or to
14816 *** bug-libtool@gnu.org
14826 MAGIC_CMD="$lt_save_MAGIC_CMD"
14831 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14832 if test -n "$MAGIC_CMD"; then
14833 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14834 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14836 { echo "$as_me:$LINENO: result: no" >&5
14837 echo "${ECHO_T}no" >&6; }
14851 rhapsody* | darwin*)
14852 if test -n "$ac_tool_prefix"; then
14853 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14854 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14857 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 if test -n "$DSYMUTIL"; then
14861 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14864 for as_dir in $PATH
14867 test -z "$as_dir" && as_dir=.
14868 for ac_exec_ext in '' $ac_executable_extensions; do
14869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14870 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14880 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14881 if test -n "$DSYMUTIL"; then
14882 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
14883 echo "${ECHO_T}$DSYMUTIL" >&6; }
14885 { echo "$as_me:$LINENO: result: no" >&5
14886 echo "${ECHO_T}no" >&6; }
14891 if test -z "$ac_cv_prog_DSYMUTIL"; then
14892 ac_ct_DSYMUTIL=$DSYMUTIL
14893 # Extract the first word of "dsymutil", so it can be a program name with args.
14894 set dummy dsymutil; ac_word=$2
14895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14897 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 if test -n "$ac_ct_DSYMUTIL"; then
14901 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904 for as_dir in $PATH
14907 test -z "$as_dir" && as_dir=.
14908 for ac_exec_ext in '' $ac_executable_extensions; do
14909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14910 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14920 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14921 if test -n "$ac_ct_DSYMUTIL"; then
14922 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
14923 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
14925 { echo "$as_me:$LINENO: result: no" >&5
14926 echo "${ECHO_T}no" >&6; }
14929 if test "x$ac_ct_DSYMUTIL" = x; then
14932 case $cross_compiling:$ac_tool_warned in
14934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14935 whose name does not start with the host triplet. If you think this
14936 configuration is useful to you, please write to autoconf@gnu.org." >&5
14937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14938 whose name does not start with the host triplet. If you think this
14939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14940 ac_tool_warned=yes ;;
14942 DSYMUTIL=$ac_ct_DSYMUTIL
14945 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14948 if test -n "$ac_tool_prefix"; then
14949 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14950 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14953 if test "${ac_cv_prog_NMEDIT+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 if test -n "$NMEDIT"; then
14957 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 for as_dir in $PATH
14963 test -z "$as_dir" && as_dir=.
14964 for ac_exec_ext in '' $ac_executable_extensions; do
14965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14966 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14976 NMEDIT=$ac_cv_prog_NMEDIT
14977 if test -n "$NMEDIT"; then
14978 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
14979 echo "${ECHO_T}$NMEDIT" >&6; }
14981 { echo "$as_me:$LINENO: result: no" >&5
14982 echo "${ECHO_T}no" >&6; }
14987 if test -z "$ac_cv_prog_NMEDIT"; then
14988 ac_ct_NMEDIT=$NMEDIT
14989 # Extract the first word of "nmedit", so it can be a program name with args.
14990 set dummy nmedit; ac_word=$2
14991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14993 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 if test -n "$ac_ct_NMEDIT"; then
14997 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15006 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15016 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15017 if test -n "$ac_ct_NMEDIT"; then
15018 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
15019 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
15021 { echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6; }
15025 if test "x$ac_ct_NMEDIT" = x; then
15028 case $cross_compiling:$ac_tool_warned in
15030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15031 whose name does not start with the host triplet. If you think this
15032 configuration is useful to you, please write to autoconf@gnu.org." >&5
15033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15034 whose name does not start with the host triplet. If you think this
15035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15036 ac_tool_warned=yes ;;
15038 NMEDIT=$ac_ct_NMEDIT
15041 NMEDIT="$ac_cv_prog_NMEDIT"
15045 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
15046 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
15047 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 lt_cv_apple_cc_single_mod=no
15051 if test -z "${LT_MULTI_MODULE}"; then
15052 # By default we will add the -single_module flag. You can override
15053 # by either setting the environment variable LT_MULTI_MODULE
15054 # non-empty at configure time, or by adding -multi_module to the
15056 echo "int foo(void){return 1;}" > conftest.c
15057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15058 -dynamiclib ${wl}-single_module conftest.c
15059 if test -f libconftest.dylib; then
15060 lt_cv_apple_cc_single_mod=yes
15061 rm -rf libconftest.dylib*
15066 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
15067 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
15068 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
15069 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
15070 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 lt_cv_ld_exported_symbols_list=no
15074 save_LDFLAGS=$LDFLAGS
15075 echo "_main" > conftest.sym
15076 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (ac_try="$ac_link"
15094 case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_link") 2>conftest.er1
15101 grep -v '^ *+' conftest.er1 >conftest.err
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest$ac_exeext &&
15109 $as_test_x conftest$ac_exeext; then
15110 lt_cv_ld_exported_symbols_list=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 lt_cv_ld_exported_symbols_list=no
15118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15119 conftest$ac_exeext conftest.$ac_ext
15120 LDFLAGS="$save_LDFLAGS"
15123 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
15124 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
15126 rhapsody* | darwin1.[0123])
15127 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15131 # if running on 10.5 or later, the deployment target defaults
15132 # to the OS version, if on x86, and 10.4, the deployment
15133 # target defaults to 10.4. Don't you love it?
15134 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15135 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15136 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15138 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15140 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15144 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15145 _lt_dar_single_mod='$single_module'
15147 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15148 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15150 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
15152 if test "$DSYMUTIL" != ":"; then
15153 _lt_dsymutil="~$DSYMUTIL \$lib || :"
15162 enable_win32_dll=no
15164 # Check whether --enable-libtool-lock was given.
15165 if test "${enable_libtool_lock+set}" = set; then
15166 enableval=$enable_libtool_lock;
15169 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15172 # Check whether --with-pic was given.
15173 if test "${with_pic+set}" = set; then
15174 withval=$with_pic; pic_mode="$withval"
15179 test -z "$pic_mode" && pic_mode=default
15181 # Use C for the default configuration in the libtool script
15185 ac_cpp='$CPP $CPPFLAGS'
15186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15191 # Source file extension for C test sources.
15194 # Object file extension for compiled C test sources.
15198 # Code to be used in simple compile tests
15199 lt_simple_compile_test_code="int some_variable = 0;"
15201 # Code to be used in simple link tests
15202 lt_simple_link_test_code='int main(){return(0);}'
15205 # If no C compiler was specified, use CC.
15208 # If no C compiler flags were specified, use CFLAGS.
15209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15211 # Allow CC to be a program name with arguments.
15215 # save warnings/boilerplate of simple test code
15216 ac_outfile=conftest.$ac_objext
15217 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15219 _lt_compiler_boilerplate=`cat conftest.err`
15222 ac_outfile=conftest.$ac_objext
15223 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15225 _lt_linker_boilerplate=`cat conftest.err`
15230 lt_prog_compiler_no_builtin_flag=
15232 if test "$GCC" = yes; then
15233 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15236 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15237 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15238 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 lt_cv_prog_compiler_rtti_exceptions=no
15242 ac_outfile=conftest.$ac_objext
15243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15244 lt_compiler_flag="-fno-rtti -fno-exceptions"
15245 # Insert the option either (1) after the last *FLAGS variable, or
15246 # (2) before a word containing "conftest.", or (3) at the end.
15247 # Note that $ac_compile itself does not contain backslashes and begins
15248 # with a dollar sign (not a hyphen), so the echo should work correctly.
15249 # The option is referenced via a variable to avoid confusing sed.
15250 lt_compile=`echo "$ac_compile" | $SED \
15251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15253 -e 's:$: $lt_compiler_flag:'`
15254 (eval echo "\"\$as_me:15254: $lt_compile\"" >&5)
15255 (eval "$lt_compile" 2>conftest.err)
15257 cat conftest.err >&5
15258 echo "$as_me:15258: \$? = $ac_status" >&5
15259 if (exit $ac_status) && test -s "$ac_outfile"; then
15260 # The compiler can only warn and ignore the option if not recognized
15261 # So say no if there are warnings other than the usual output.
15262 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15265 lt_cv_prog_compiler_rtti_exceptions=yes
15271 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15272 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15274 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15275 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15282 lt_prog_compiler_wl=
15283 lt_prog_compiler_pic=
15284 lt_prog_compiler_static=
15286 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15289 if test "$GCC" = yes; then
15290 lt_prog_compiler_wl='-Wl,'
15291 lt_prog_compiler_static='-static'
15295 # All AIX code is PIC.
15296 if test "$host_cpu" = ia64; then
15297 # AIX 5 now supports IA64 processor
15298 lt_prog_compiler_static='-Bstatic'
15303 # FIXME: we need at least 68020 code to build shared libraries, but
15304 # adding the `-m68020' flag to GCC prevents building anything better,
15306 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15309 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15310 # PIC is the default for these OSes.
15313 mingw* | cygwin* | pw32* | os2*)
15314 # This hack is so that the source file can tell whether it is being
15315 # built for inclusion in a dll (and should export symbols for example).
15316 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15317 # (--disable-auto-import) libraries
15318 lt_prog_compiler_pic='-DDLL_EXPORT'
15321 darwin* | rhapsody*)
15322 # PIC is the default on this platform
15323 # Common symbols not allowed in MH_DYLIB files
15324 lt_prog_compiler_pic='-fno-common'
15328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15329 # Instead, we relocate shared libraries at runtime.
15333 # Just because we use GCC doesn't mean we suddenly get shared libraries
15334 # on systems that don't support them.
15335 lt_prog_compiler_can_build_shared=no
15340 if test -d /usr/nec; then
15341 lt_prog_compiler_pic=-Kconform_pic
15346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15347 # not for PA HP-UX.
15353 lt_prog_compiler_pic='-fPIC'
15359 lt_prog_compiler_pic='-fPIC'
15363 # PORTME Check for flag to pass linker flags through the system compiler.
15366 lt_prog_compiler_wl='-Wl,'
15367 if test "$host_cpu" = ia64; then
15368 # AIX 5 now supports IA64 processor
15369 lt_prog_compiler_static='-Bstatic'
15371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15375 # PIC is the default on this platform
15376 # Common symbols not allowed in MH_DYLIB files
15377 case $cc_basename in
15379 lt_prog_compiler_pic='-qnocommon'
15380 lt_prog_compiler_wl='-Wl,'
15385 mingw* | cygwin* | pw32* | os2*)
15386 # This hack is so that the source file can tell whether it is being
15387 # built for inclusion in a dll (and should export symbols for example).
15388 lt_prog_compiler_pic='-DDLL_EXPORT'
15391 hpux9* | hpux10* | hpux11*)
15392 lt_prog_compiler_wl='-Wl,'
15393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15394 # not for PA HP-UX.
15400 lt_prog_compiler_pic='+Z'
15403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15404 lt_prog_compiler_static='${wl}-a ${wl}archive'
15407 irix5* | irix6* | nonstopux*)
15408 lt_prog_compiler_wl='-Wl,'
15409 # PIC (with -KPIC) is the default.
15410 lt_prog_compiler_static='-non_shared'
15414 lt_prog_compiler_pic='-KPIC'
15415 lt_prog_compiler_static='-Bstatic'
15418 linux* | k*bsd*-gnu)
15419 case $cc_basename in
15421 lt_prog_compiler_wl='-Wl,'
15422 lt_prog_compiler_pic='-KPIC'
15423 lt_prog_compiler_static='-static'
15425 pgcc* | pgf77* | pgf90* | pgf95*)
15426 # Portland Group compilers (*not* the Pentium gcc compiler,
15427 # which looks to be a dead project)
15428 lt_prog_compiler_wl='-Wl,'
15429 lt_prog_compiler_pic='-fpic'
15430 lt_prog_compiler_static='-Bstatic'
15433 lt_prog_compiler_wl='-Wl,'
15434 # All Alpha code is PIC.
15435 lt_prog_compiler_static='-non_shared'
15438 case `$CC -V 2>&1 | sed 5q` in
15441 lt_prog_compiler_pic='-KPIC'
15442 lt_prog_compiler_static='-Bstatic'
15443 lt_prog_compiler_wl='-Wl,'
15446 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15447 lt_prog_compiler_pic='-KPIC'
15448 lt_prog_compiler_static='-Bstatic'
15449 lt_prog_compiler_wl=''
15456 osf3* | osf4* | osf5*)
15457 lt_prog_compiler_wl='-Wl,'
15458 # All OSF/1 code is PIC.
15459 lt_prog_compiler_static='-non_shared'
15463 lt_prog_compiler_static='-non_shared'
15467 lt_prog_compiler_pic='-KPIC'
15468 lt_prog_compiler_static='-Bstatic'
15469 case $cc_basename in
15470 f77* | f90* | f95*)
15471 lt_prog_compiler_wl='-Qoption ld ';;
15473 lt_prog_compiler_wl='-Wl,';;
15478 lt_prog_compiler_wl='-Qoption ld '
15479 lt_prog_compiler_pic='-PIC'
15480 lt_prog_compiler_static='-Bstatic'
15483 sysv4 | sysv4.2uw2* | sysv4.3*)
15484 lt_prog_compiler_wl='-Wl,'
15485 lt_prog_compiler_pic='-KPIC'
15486 lt_prog_compiler_static='-Bstatic'
15490 if test -d /usr/nec ;then
15491 lt_prog_compiler_pic='-Kconform_pic'
15492 lt_prog_compiler_static='-Bstatic'
15496 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15497 lt_prog_compiler_wl='-Wl,'
15498 lt_prog_compiler_pic='-KPIC'
15499 lt_prog_compiler_static='-Bstatic'
15503 lt_prog_compiler_wl='-Wl,'
15504 lt_prog_compiler_can_build_shared=no
15508 lt_prog_compiler_pic='-pic'
15509 lt_prog_compiler_static='-Bstatic'
15513 lt_prog_compiler_can_build_shared=no
15518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15519 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15522 # Check to make sure the PIC flag actually works.
15524 if test -n "$lt_prog_compiler_pic"; then
15526 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15527 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15528 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 lt_cv_prog_compiler_pic_works=no
15532 ac_outfile=conftest.$ac_objext
15533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15534 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15535 # Insert the option either (1) after the last *FLAGS variable, or
15536 # (2) before a word containing "conftest.", or (3) at the end.
15537 # Note that $ac_compile itself does not contain backslashes and begins
15538 # with a dollar sign (not a hyphen), so the echo should work correctly.
15539 # The option is referenced via a variable to avoid confusing sed.
15540 lt_compile=`echo "$ac_compile" | $SED \
15541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543 -e 's:$: $lt_compiler_flag:'`
15544 (eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
15545 (eval "$lt_compile" 2>conftest.err)
15547 cat conftest.err >&5
15548 echo "$as_me:15548: \$? = $ac_status" >&5
15549 if (exit $ac_status) && test -s "$ac_outfile"; then
15550 # The compiler can only warn and ignore the option if not recognized
15551 # So say no if there are warnings other than the usual output.
15552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15555 lt_cv_prog_compiler_pic_works=yes
15561 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
15562 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
15564 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15565 case $lt_prog_compiler_pic in
15567 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15570 lt_prog_compiler_pic=
15571 lt_prog_compiler_can_build_shared=no
15576 # For platforms which do not support PIC, -DPIC is meaningless:
15578 lt_prog_compiler_pic=
15581 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15586 # Check to make sure the static flag actually works.
15588 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15589 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15590 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15591 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 lt_cv_prog_compiler_static_works=no
15595 save_LDFLAGS="$LDFLAGS"
15596 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15597 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15598 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15599 # The linker can only warn and ignore the option if not recognized
15600 # So say no if there are warnings
15601 if test -s conftest.err; then
15602 # Append any errors to the config.log.
15603 cat conftest.err 1>&5
15604 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15606 if diff conftest.exp conftest.er2 >/dev/null; then
15607 lt_cv_prog_compiler_static_works=yes
15610 lt_cv_prog_compiler_static_works=yes
15614 LDFLAGS="$save_LDFLAGS"
15617 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
15618 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
15620 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15623 lt_prog_compiler_static=
15627 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15628 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 lt_cv_prog_compiler_c_o=no
15633 $rm -r conftest 2>/dev/null
15637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15639 lt_compiler_flag="-o out/conftest2.$ac_objext"
15640 # Insert the option either (1) after the last *FLAGS variable, or
15641 # (2) before a word containing "conftest.", or (3) at the end.
15642 # Note that $ac_compile itself does not contain backslashes and begins
15643 # with a dollar sign (not a hyphen), so the echo should work correctly.
15644 lt_compile=`echo "$ac_compile" | $SED \
15645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15647 -e 's:$: $lt_compiler_flag:'`
15648 (eval echo "\"\$as_me:15648: $lt_compile\"" >&5)
15649 (eval "$lt_compile" 2>out/conftest.err)
15651 cat out/conftest.err >&5
15652 echo "$as_me:15652: \$? = $ac_status" >&5
15653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15655 # The compiler can only warn and ignore the option if not recognized
15656 # So say no if there are warnings
15657 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15660 lt_cv_prog_compiler_c_o=yes
15665 # SGI C++ compiler will create directory out/ii_files/ for
15666 # template instantiation
15667 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15668 $rm out/* && rmdir out
15674 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15675 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15678 hard_links="nottested"
15679 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15680 # do not overwrite the value of need_locks provided by the user
15681 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15682 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15687 ln conftest.a conftest.b 2>&5 || hard_links=no
15688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15689 { echo "$as_me:$LINENO: result: $hard_links" >&5
15690 echo "${ECHO_T}$hard_links" >&6; }
15691 if test "$hard_links" = no; then
15692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15693 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15700 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15701 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15704 allow_undefined_flag=
15705 enable_shared_with_static_runtimes=no
15707 archive_expsym_cmds=
15708 old_archive_From_new_cmds=
15709 old_archive_from_expsyms_cmds=
15710 export_dynamic_flag_spec=
15711 whole_archive_flag_spec=
15712 thread_safe_flag_spec=
15713 hardcode_libdir_flag_spec=
15714 hardcode_libdir_flag_spec_ld=
15715 hardcode_libdir_separator=
15717 hardcode_minus_L=no
15718 hardcode_shlibpath_var=unsupported
15719 link_all_deplibs=unknown
15720 hardcode_automatic=no
15722 module_expsym_cmds=
15723 always_export_symbols=no
15724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15725 # include_expsyms should be a list of space-separated symbols to be *always*
15726 # included in the symbol list
15728 # exclude_expsyms can be an extended regexp of symbols to exclude
15729 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15730 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15731 # as well as any symbol that contains `d'.
15732 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15733 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15734 # platforms (ab)use it in PIC code, but their linkers get confused if
15735 # the symbol is explicitly referenced. Since portable code cannot
15736 # rely on this symbol name, it's probably fine to never include it in
15737 # preloaded symbol tables.
15738 # Exclude shared library initialization/finalization symbols.
15739 extract_expsyms_cmds=
15740 # Just being paranoid about ensuring that cc_basename is set.
15741 for cc_temp in $compiler""; do
15743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15749 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15752 cygwin* | mingw* | pw32*)
15753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15754 # When not using gcc, we currently assume that we are using
15755 # Microsoft Visual C++.
15756 if test "$GCC" != yes; then
15761 # we just hope/assume this is gcc and not c89 (= MSVC++)
15770 if test "$with_gnu_ld" = yes; then
15771 # If archive_cmds runs LD, not CC, wlarc should be empty
15774 # Set some defaults for GNU ld with shared library support. These
15775 # are reset later if shared libraries are not supported. Putting them
15776 # here allows them to be overridden if necessary.
15777 runpath_var=LD_RUN_PATH
15778 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15779 export_dynamic_flag_spec='${wl}--export-dynamic'
15780 # ancient GNU ld didn't support --whole-archive et. al.
15781 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15784 whole_archive_flag_spec=
15786 supports_anon_versioning=no
15787 case `$LD -v 2>/dev/null` in
15788 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15789 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15790 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15791 *\ 2.11.*) ;; # other 2.11 versions
15792 *) supports_anon_versioning=yes ;;
15795 # See if GNU ld supports shared libraries.
15798 # On AIX/PPC, the GNU linker is very broken
15799 if test "$host_cpu" != ia64; then
15803 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15804 *** to be unable to reliably create shared libraries on AIX.
15805 *** Therefore, libtool is disabling shared libraries support. If you
15806 *** really care for shared libraries, you may want to modify your PATH
15807 *** so that a non-GNU linker is found, and then restart.
15814 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)'
15815 hardcode_libdir_flag_spec='-L$libdir'
15816 hardcode_minus_L=yes
15818 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15819 # that the semantics of dynamic libraries on AmigaOS, at least up
15820 # to version 4, is to share data among multiple programs linked
15821 # with the same dynamic library. Since this doesn't match the
15822 # behavior of shared libraries on other platforms, we can't use
15828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15829 allow_undefined_flag=unsupported
15830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15831 # support --undefined. This deserves some investigation. FIXME
15832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15838 cygwin* | mingw* | pw32*)
15839 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15840 # as there is no search path for DLLs.
15841 hardcode_libdir_flag_spec='-L$libdir'
15842 allow_undefined_flag=unsupported
15843 always_export_symbols=no
15844 enable_shared_with_static_runtimes=yes
15845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15847 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15849 # If the export-symbols file already is a .def file (1st line
15850 # is EXPORTS), use it as is; otherwise, prepend...
15851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15852 cp $export_symbols $output_objdir/$soname.def;
15854 echo EXPORTS > $output_objdir/$soname.def;
15855 cat $export_symbols >> $output_objdir/$soname.def;
15857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15865 hardcode_shlibpath_var=no
15866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15867 export_dynamic_flag_spec='${wl}-E'
15868 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15869 # Instead, shared libraries are loaded at an image base (0x10000000 by
15870 # default) and relocated if they conflict, which is a slow very memory
15871 # consuming and fragmenting process. To avoid this, we pick a random,
15872 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15873 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15875 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'
15878 gnu* | linux* | k*bsd*-gnu)
15879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15881 case $cc_basename,$host_cpu in
15882 pgcc*) # Portland Group C compiler
15883 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'
15884 tmp_addflag=' $pic_flag'
15886 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15887 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'
15888 tmp_addflag=' $pic_flag -Mnomain' ;;
15889 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15890 tmp_addflag=' -i_dynamic' ;;
15891 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15892 tmp_addflag=' -i_dynamic -nofor_main' ;;
15893 ifc* | ifort*) # Intel Fortran compiler
15894 tmp_addflag=' -nofor_main' ;;
15896 case `$CC -V 2>&1 | sed 5q` in
15897 *Sun\ C*) # Sun C 5.9
15898 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'
15899 tmp_sharedflag='-G' ;;
15900 *Sun\ F*) # Sun Fortran 8.3
15901 tmp_sharedflag='-G' ;;
15903 tmp_sharedflag='-shared' ;;
15905 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15907 if test $supports_anon_versioning = yes; then
15908 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15910 $echo "local: *; };" >> $output_objdir/$libname.ver~
15911 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15913 link_all_deplibs=no
15919 netbsd* | netbsdelf*-gnu)
15920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15921 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15930 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15934 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15935 *** create shared libraries on Solaris systems. Therefore, libtool
15936 *** is disabling shared libraries support. We urge you to upgrade GNU
15937 *** binutils to release 2.9.1 or newer. Another option is to modify
15938 *** your PATH or compiler configuration so that the native linker is
15939 *** used, and then restart.
15942 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15951 case `$LD -v 2>&1` in
15952 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15956 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15957 *** reliably create shared libraries on SCO systems. Therefore, libtool
15958 *** is disabling shared libraries support. We urge you to upgrade GNU
15959 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15960 *** your PATH or compiler configuration so that the native linker is
15961 *** used, and then restart.
15966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15967 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15978 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct=yes
15981 hardcode_shlibpath_var=no
15985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15994 if test "$ld_shlibs" = no; then
15996 hardcode_libdir_flag_spec=
15997 export_dynamic_flag_spec=
15998 whole_archive_flag_spec=
16001 # PORTME fill in a description of your system's linker (not GNU ld)
16004 allow_undefined_flag=unsupported
16005 always_export_symbols=yes
16006 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'
16007 # Note: this linker hardcodes the directories in LIBPATH if there
16008 # are no directories specified by -L.
16009 hardcode_minus_L=yes
16010 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16011 # Neither direct hardcoding nor static linking is supported with a
16013 hardcode_direct=unsupported
16018 if test "$host_cpu" = ia64; then
16019 # On IA64, the linker does run time linking by default, so we don't
16020 # have to do anything special.
16021 aix_use_runtimelinking=no
16022 exp_sym_flag='-Bexport'
16025 # If we're using GNU nm, then we don't want the "-C" option.
16026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16027 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16028 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'
16030 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'
16032 aix_use_runtimelinking=no
16034 # Test if we are trying to use run time linking or normal
16035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16036 # need to do runtime linking.
16037 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16038 for ld_flag in $LDFLAGS; do
16039 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16040 aix_use_runtimelinking=yes
16047 exp_sym_flag='-bexport'
16048 no_entry_flag='-bnoentry'
16051 # When large executables or shared objects are built, AIX ld can
16052 # have problems creating the table of contents. If linking a library
16053 # or program results in "error TOC overflow" add -mminimal-toc to
16054 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16055 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16058 hardcode_direct=yes
16059 hardcode_libdir_separator=':'
16060 link_all_deplibs=yes
16062 if test "$GCC" = yes; then
16063 case $host_os in aix4.[012]|aix4.[012].*)
16064 # We only want to do this on AIX 4.2 and lower, the check
16065 # below for broken collect2 doesn't work under 4.3+
16066 collect2name=`${CC} -print-prog-name=collect2`
16067 if test -f "$collect2name" && \
16068 strings "$collect2name" | grep resolve_lib_name >/dev/null
16070 # We have reworked collect2
16073 # We have old collect2
16074 hardcode_direct=unsupported
16075 # It fails to find uninstalled libraries when the uninstalled
16076 # path is not listed in the libpath. Setting hardcode_minus_L
16077 # to unsupported forces relinking
16078 hardcode_minus_L=yes
16079 hardcode_libdir_flag_spec='-L$libdir'
16080 hardcode_libdir_separator=
16084 shared_flag='-shared'
16085 if test "$aix_use_runtimelinking" = yes; then
16086 shared_flag="$shared_flag "'${wl}-G'
16090 if test "$host_cpu" = ia64; then
16091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16092 # chokes on -Wl,-G. The following line is correct:
16095 if test "$aix_use_runtimelinking" = yes; then
16096 shared_flag='${wl}-G'
16098 shared_flag='${wl}-bM:SRE'
16103 # It seems that -bexpall does not export symbols beginning with
16104 # underscore (_), so it is better to generate a list of symbols to export.
16105 always_export_symbols=yes
16106 if test "$aix_use_runtimelinking" = yes; then
16107 # Warning - without using the other runtime loading flags (-brtl),
16108 # -berok will link without error, but may produce a broken library.
16109 allow_undefined_flag='-berok'
16110 # Determine the default libpath from the value encoded in an empty executable.
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_link") 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext &&
16143 $as_test_x conftest$ac_exeext; then
16145 lt_aix_libpath_sed='
16146 /Import File Strings/,/^$/ {
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16153 # Check for a 64-bit object if we didn't find anything.
16154 if test -z "$aix_libpath"; then
16155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16168 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16169 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"
16171 if test "$host_cpu" = ia64; then
16172 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16173 allow_undefined_flag="-z nodefs"
16174 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"
16176 # Determine the default libpath from the value encoded in an empty executable.
16177 cat >conftest.$ac_ext <<_ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (ac_try="$ac_link"
16194 case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_link") 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } && {
16206 test -z "$ac_c_werror_flag" ||
16207 test ! -s conftest.err
16208 } && test -s conftest$ac_exeext &&
16209 $as_test_x conftest$ac_exeext; then
16211 lt_aix_libpath_sed='
16212 /Import File Strings/,/^$/ {
16218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16219 # Check for a 64-bit object if we didn't find anything.
16220 if test -z "$aix_libpath"; then
16221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16231 conftest$ac_exeext conftest.$ac_ext
16232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16235 # Warning - without using the other run time loading flags,
16236 # -berok will link without error, but may produce a broken library.
16237 no_undefined_flag=' ${wl}-bernotok'
16238 allow_undefined_flag=' ${wl}-berok'
16239 # Exported symbols can be pulled into shared objects from archives
16240 whole_archive_flag_spec='$convenience'
16241 archive_cmds_need_lc=yes
16242 # This is similar to how AIX traditionally builds its shared libraries.
16243 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'
16249 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)'
16250 hardcode_libdir_flag_spec='-L$libdir'
16251 hardcode_minus_L=yes
16252 # see comment about different semantics on the GNU ld section
16257 export_dynamic_flag_spec=-rdynamic
16260 cygwin* | mingw* | pw32*)
16261 # When not using gcc, we currently assume that we are using
16262 # Microsoft Visual C++.
16263 # hardcode_libdir_flag_spec is actually meaningless, as there is
16264 # no search path for DLLs.
16265 hardcode_libdir_flag_spec=' '
16266 allow_undefined_flag=unsupported
16267 # Tell ltmain to make .lib files, not .a files.
16269 # Tell ltmain to make .dll files, not .so files.
16271 # FIXME: Setting linknames here is a bad hack.
16272 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16273 # The linker will automatically build a .lib file if we build a DLL.
16274 old_archive_From_new_cmds='true'
16275 # FIXME: Should let the user specify the lib program.
16276 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16277 fix_srcfile_path='`cygpath -w "$srcfile"`'
16278 enable_shared_with_static_runtimes=yes
16281 darwin* | rhapsody*)
16283 rhapsody* | darwin1.[012])
16284 allow_undefined_flag='${wl}-undefined ${wl}suppress'
16287 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16288 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16290 case ${MACOSX_DEPLOYMENT_TARGET} in
16292 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16295 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16301 archive_cmds_need_lc=no
16303 hardcode_automatic=yes
16304 hardcode_shlibpath_var=unsupported
16305 whole_archive_flag_spec=''
16306 link_all_deplibs=yes
16307 if test "$GCC" = yes ; then
16308 output_verbose_link_cmd='echo'
16309 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16310 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16311 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}"
16312 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}"
16314 case $cc_basename in
16316 output_verbose_link_cmd='echo'
16317 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16318 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16319 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16320 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}'
16321 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}'
16331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332 hardcode_libdir_flag_spec='-L$libdir'
16333 hardcode_shlibpath_var=no
16340 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16341 # support. Future versions do this automatically, but an explicit c++rt0.o
16342 # does not break anything, and helps significantly (at the cost of a little
16345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16346 hardcode_libdir_flag_spec='-R$libdir'
16347 hardcode_direct=yes
16348 hardcode_shlibpath_var=no
16351 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_direct=yes
16355 hardcode_minus_L=yes
16356 hardcode_shlibpath_var=no
16359 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16360 freebsd* | dragonfly*)
16361 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16362 hardcode_libdir_flag_spec='-R$libdir'
16363 hardcode_direct=yes
16364 hardcode_shlibpath_var=no
16368 if test "$GCC" = yes; then
16369 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'
16371 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'
16373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16374 hardcode_libdir_separator=:
16375 hardcode_direct=yes
16377 # hardcode_minus_L: Not really in the search PATH,
16378 # but as the default location of the library.
16379 hardcode_minus_L=yes
16380 export_dynamic_flag_spec='${wl}-E'
16384 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16387 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16389 if test "$with_gnu_ld" = no; then
16390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16391 hardcode_libdir_separator=:
16393 hardcode_direct=yes
16394 export_dynamic_flag_spec='${wl}-E'
16396 # hardcode_minus_L: Not really in the search PATH,
16397 # but as the default location of the library.
16398 hardcode_minus_L=yes
16403 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16409 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16418 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16428 if test "$with_gnu_ld" = no; then
16429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16430 hardcode_libdir_separator=:
16434 hardcode_libdir_flag_spec_ld='+b $libdir'
16436 hardcode_shlibpath_var=no
16439 hardcode_direct=yes
16440 export_dynamic_flag_spec='${wl}-E'
16442 # hardcode_minus_L: Not really in the search PATH,
16443 # but as the default location of the library.
16444 hardcode_minus_L=yes
16450 irix5* | irix6* | nonstopux*)
16451 if test "$GCC" = yes; then
16452 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'
16454 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'
16455 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16458 hardcode_libdir_separator=:
16459 link_all_deplibs=yes
16462 netbsd* | netbsdelf*-gnu)
16463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16466 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16468 hardcode_libdir_flag_spec='-R$libdir'
16469 hardcode_direct=yes
16470 hardcode_shlibpath_var=no
16474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475 hardcode_direct=yes
16476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16477 hardcode_libdir_separator=:
16478 hardcode_shlibpath_var=no
16482 if test -f /usr/libexec/ld.so; then
16483 hardcode_direct=yes
16484 hardcode_shlibpath_var=no
16485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16487 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16489 export_dynamic_flag_spec='${wl}-E'
16492 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_libdir_flag_spec='-R$libdir'
16497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16508 hardcode_libdir_flag_spec='-L$libdir'
16509 hardcode_minus_L=yes
16510 allow_undefined_flag=unsupported
16511 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'
16512 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16516 if test "$GCC" = yes; then
16517 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16518 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'
16520 allow_undefined_flag=' -expect_unresolved \*'
16521 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'
16523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16524 hardcode_libdir_separator=:
16527 osf4* | osf5*) # as osf3* with the addition of -msym flag
16528 if test "$GCC" = yes; then
16529 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16530 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'
16531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16533 allow_undefined_flag=' -expect_unresolved \*'
16534 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'
16535 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16536 $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'
16538 # Both c and cxx compiler support -rpath directly
16539 hardcode_libdir_flag_spec='-rpath $libdir'
16541 hardcode_libdir_separator=:
16545 no_undefined_flag=' -z text'
16546 if test "$GCC" = yes; then
16548 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16549 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16550 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16553 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16555 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16557 hardcode_libdir_flag_spec='-R$libdir'
16558 hardcode_shlibpath_var=no
16560 solaris2.[0-5] | solaris2.[0-5].*) ;;
16562 # The compiler driver will combine and reorder linker options,
16563 # but understands `-z linker_flag'. GCC discards it without `$wl',
16564 # but is careful enough not to reorder.
16565 # Supported since Solaris 2.6 (maybe 2.5.1?)
16566 if test "$GCC" = yes; then
16567 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16569 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16573 link_all_deplibs=yes
16577 if test "x$host_vendor" = xsequent; then
16578 # Use $CC to link under sequent, because it throws in some extra .o
16579 # files that make .init and .fini sections work.
16580 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16582 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16584 hardcode_libdir_flag_spec='-L$libdir'
16585 hardcode_direct=yes
16586 hardcode_minus_L=yes
16587 hardcode_shlibpath_var=no
16591 case $host_vendor in
16593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594 hardcode_direct=yes # is this really true???
16597 ## LD is ld it makes a PLAMLIB
16598 ## CC just makes a GrossModule.
16599 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16600 reload_cmds='$CC -r -o $output$reload_objs'
16604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16608 runpath_var='LD_RUN_PATH'
16609 hardcode_shlibpath_var=no
16613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614 hardcode_shlibpath_var=no
16615 export_dynamic_flag_spec='-Bexport'
16619 if test -d /usr/nec; then
16620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_shlibpath_var=no
16622 runpath_var=LD_RUN_PATH
16623 hardcode_runpath_var=yes
16628 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16629 no_undefined_flag='${wl}-z,text'
16630 archive_cmds_need_lc=no
16631 hardcode_shlibpath_var=no
16632 runpath_var='LD_RUN_PATH'
16634 if test "$GCC" = yes; then
16635 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16638 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16643 sysv5* | sco3.2v5* | sco5v6*)
16644 # Note: We can NOT use -z defs as we might desire, because we do not
16645 # link with -lc, and that would cause any symbols used from libc to
16646 # always be unresolved, which means just about no library would
16647 # ever link correctly. If we're not using GNU ld we use -z text
16648 # though, which does catch some bad symbols but isn't as heavy-handed
16650 no_undefined_flag='${wl}-z,text'
16651 allow_undefined_flag='${wl}-z,nodefs'
16652 archive_cmds_need_lc=no
16653 hardcode_shlibpath_var=no
16654 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16655 hardcode_libdir_separator=':'
16656 link_all_deplibs=yes
16657 export_dynamic_flag_spec='${wl}-Bexport'
16658 runpath_var='LD_RUN_PATH'
16660 if test "$GCC" = yes; then
16661 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16662 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16664 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_libdir_flag_spec='-L$libdir'
16672 hardcode_shlibpath_var=no
16681 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16682 echo "${ECHO_T}$ld_shlibs" >&6; }
16683 test "$ld_shlibs" = no && can_build_shared=no
16686 # Do we need to explicitly link libc?
16688 case "x$archive_cmds_need_lc" in
16690 # Assume -lc should be added
16691 archive_cmds_need_lc=yes
16693 if test "$enable_shared" = yes && test "$GCC" = yes; then
16694 case $archive_cmds in
16696 # FIXME: we may have to deal with multi-command sequences.
16699 # Test whether the compiler implicitly links with -lc since on some
16700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16701 # to ld, don't add -lc before -lgcc.
16702 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16703 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708 (eval $ac_compile) 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } 2>conftest.err; then
16714 libobjs=conftest.$ac_objext
16716 wl=$lt_prog_compiler_wl
16717 pic_flag=$lt_prog_compiler_pic
16723 lt_save_allow_undefined_flag=$allow_undefined_flag
16724 allow_undefined_flag=
16725 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16726 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }
16731 archive_cmds_need_lc=no
16733 archive_cmds_need_lc=yes
16735 allow_undefined_flag=$lt_save_allow_undefined_flag
16737 cat conftest.err 1>&5
16740 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16741 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16748 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16749 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16750 library_names_spec=
16751 libname_spec='lib$name'
16755 postuninstall_cmds=
16759 shlibpath_overrides_runpath=unknown
16761 dynamic_linker="$host_os ld.so"
16762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16764 if test "$GCC" = yes; then
16766 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16767 *) lt_awk_arg="/^libraries:/" ;;
16769 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
16771 # if the path contains ";" then we assume it to be the separator
16772 # otherwise default to the standard path separator (i.e. ":") - it is
16773 # assumed that no part of a normal pathname contains ";" but that should
16774 # okay in the real world where ";" in dirpaths is itself problematic.
16775 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16777 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16779 # Ok, now we have the path, separated by spaces, we can step through it
16780 # and add multilib dir if necessary.
16781 lt_tmp_lt_search_path_spec=
16782 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16783 for lt_sys_path in $lt_search_path_spec; do
16784 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16787 test -d "$lt_sys_path" && \
16788 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16791 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
16792 BEGIN {RS=" "; FS="/|\n";} {
16795 for (lt_i = NF; lt_i > 0; lt_i--) {
16796 if ($lt_i != "" && $lt_i != ".") {
16797 if ($lt_i == "..") {
16800 if (lt_count == 0) {
16801 lt_foo="/" $lt_i lt_foo;
16808 if (lt_foo != "") { lt_freq[lt_foo]++; }
16809 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16811 sys_lib_search_path_spec=`echo $lt_search_path_spec`
16813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16815 need_lib_prefix=unknown
16816 hardcode_into_libs=no
16818 # when you set need_version to no, make sure it does not cause -set_version
16819 # flags to be left without arguments
16820 need_version=unknown
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16826 shlibpath_var=LIBPATH
16828 # AIX 3 has no versioning support, so we append a major version to the name.
16829 soname_spec='${libname}${release}${shared_ext}$major'
16836 hardcode_into_libs=yes
16837 if test "$host_cpu" = ia64; then
16838 # AIX 5 supports IA64
16839 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16840 shlibpath_var=LD_LIBRARY_PATH
16842 # With GCC up to 2.95.x, collect2 would create an import file
16843 # for dependence libraries. The import file would start with
16844 # the line `#! .'. This would cause the generated library to
16845 # depend on `.', always an invalid library. This was fixed in
16846 # development snapshots of GCC prior to 3.0.
16848 aix4 | aix4.[01] | aix4.[01].*)
16849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16851 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16854 can_build_shared=no
16858 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16859 # soname into executable. Probably we can add versioning support to
16860 # collect2, so additional links can be useful in future.
16861 if test "$aix_use_runtimelinking" = yes; then
16862 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16863 # instead of lib<name>.a to let people know that these are not
16864 # typical AIX shared libraries.
16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 # We preserve .a as extension for shared libraries through AIX4.2
16868 # and later when we are not doing run time linking.
16869 library_names_spec='${libname}${release}.a $libname.a'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16872 shlibpath_var=LIBPATH
16877 library_names_spec='$libname.ixlibrary $libname.a'
16878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16879 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'
16883 library_names_spec='${libname}${shared_ext}'
16884 dynamic_linker="$host_os ld.so"
16885 shlibpath_var=LIBRARY_PATH
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892 soname_spec='${libname}${release}${shared_ext}$major'
16893 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16894 shlibpath_var=LD_LIBRARY_PATH
16895 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16896 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16897 # the default ld.so.conf also contains /usr/contrib/lib and
16898 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16899 # libtool to hard-code these into programs
16902 cygwin* | mingw* | pw32*)
16903 version_type=windows
16908 case $GCC,$host_os in
16909 yes,cygwin* | yes,mingw* | yes,pw32*)
16910 library_names_spec='$libname.dll.a'
16911 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16912 postinstall_cmds='base_file=`basename \${file}`~
16913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16914 dldir=$destdir/`dirname \$dlpath`~
16915 test -d \$dldir || mkdir -p \$dldir~
16916 $install_prog $dir/$dlname \$dldir/$dlname~
16917 chmod a+x \$dldir/$dlname'
16918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16919 dlpath=$dir/\$dldll~
16921 shlibpath_overrides_runpath=yes
16925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16927 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16930 # MinGW DLLs use traditional 'lib' prefix
16931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16933 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16934 # It is most probably a Windows format PATH printed by
16935 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16936 # path with ; separators, and with drive letters. We can handle the
16937 # drive letters (cygwin fileutils understands them), so leave them,
16938 # especially as we might pass files found there to a mingw objdump,
16939 # which wouldn't understand a cygwinified path. Ahh.
16940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16946 # pw32 DLLs use 'pw' prefix rather than 'lib'
16947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16956 dynamic_linker='Win32 ld.exe'
16957 # FIXME: first we should search . and the directory the executable is in
16961 darwin* | rhapsody*)
16962 dynamic_linker="$host_os dyld"
16963 version_type=darwin
16966 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16967 soname_spec='${libname}${release}${major}$shared_ext'
16968 shlibpath_overrides_runpath=yes
16969 shlibpath_var=DYLD_LIBRARY_PATH
16970 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16972 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16981 soname_spec='${libname}${release}${shared_ext}$major'
16982 shlibpath_var=LD_LIBRARY_PATH
16989 freebsd* | dragonfly*)
16990 # DragonFly does not have aout. When/if they implement a new
16991 # versioning mechanism, adjust this.
16992 if test -x /usr/bin/objformat; then
16993 objformat=`/usr/bin/objformat`
16996 freebsd[123]*) objformat=aout ;;
16997 *) objformat=elf ;;
17000 version_type=freebsd-$objformat
17001 case $version_type in
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17012 shlibpath_var=LD_LIBRARY_PATH
17015 shlibpath_overrides_runpath=yes
17017 freebsd3.[01]* | freebsdelf3.[01]*)
17018 shlibpath_overrides_runpath=yes
17019 hardcode_into_libs=yes
17021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17023 shlibpath_overrides_runpath=no
17024 hardcode_into_libs=yes
17026 *) # from 4.6 on, and DragonFly
17027 shlibpath_overrides_runpath=yes
17028 hardcode_into_libs=yes
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 hardcode_into_libs=yes
17043 hpux9* | hpux10* | hpux11*)
17044 # Give a soname corresponding to the major version so that dld.sl refuses to
17045 # link against other versions.
17052 hardcode_into_libs=yes
17053 dynamic_linker="$host_os dld.so"
17054 shlibpath_var=LD_LIBRARY_PATH
17055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 if test "X$HPUX_IA64_MODE" = X32; then
17059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17067 hardcode_into_libs=yes
17068 dynamic_linker="$host_os dld.sl"
17069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17078 dynamic_linker="$host_os dld.sl"
17079 shlibpath_var=SHLIB_PATH
17080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082 soname_spec='${libname}${release}${shared_ext}$major'
17085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17086 postinstall_cmds='chmod 555 $lib'
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 shlibpath_overrides_runpath=no
17098 hardcode_into_libs=yes
17101 irix5* | irix6* | nonstopux*)
17103 nonstopux*) version_type=nonstopux ;;
17105 if test "$lt_cv_prog_gnu_ld" = yes; then
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17116 irix5* | nonstopux*)
17117 libsuff= shlibsuff=
17120 case $LD in # libtool.m4 will add one of these switches to LD
17121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17122 libsuff= shlibsuff= libmagic=32-bit;;
17123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17124 libsuff=32 shlibsuff=N32 libmagic=N32;;
17125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17127 *) libsuff= shlibsuff= libmagic=never-match;;
17131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17132 shlibpath_overrides_runpath=no
17133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17135 hardcode_into_libs=yes
17138 # No shared lib support for Linux oldld, aout, or coff.
17139 linux*oldld* | linux*aout* | linux*coff*)
17143 # This must be Linux ELF.
17144 linux* | k*bsd*-gnu)
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=no
17153 # This implies no fast_install, which is unacceptable.
17154 # Some rework will be needed to allow for fast_install
17155 # before this can be enabled.
17156 hardcode_into_libs=yes
17158 # Append ld.so.conf contents to the search path
17159 if test -f /etc/ld.so.conf; then
17160 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' ' '`
17161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17164 # We used to test for /lib/ld.so.1 and disable shared libraries on
17165 # powerpc, because MkLinux only supported shared libraries with the
17166 # GNU dynamic linker. Since this was broken with cross compilers,
17167 # most powerpc-linux boxes support dynamic linking these days and
17168 # people can always --disable-shared, the test was removed, and we
17169 # assume the GNU/Linux dynamic linker is in use.
17170 dynamic_linker='GNU/Linux ld.so'
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=no
17181 hardcode_into_libs=yes
17182 dynamic_linker='NetBSD ld.elf_so'
17189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192 dynamic_linker='NetBSD (a.out) ld.so'
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 dynamic_linker='NetBSD ld.elf_so'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=yes
17200 hardcode_into_libs=yes
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=yes
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=yes
17222 sys_lib_dlsearch_path_spec="/usr/lib"
17224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17227 *) need_version=no ;;
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17234 openbsd2.[89] | openbsd2.[89].*)
17235 shlibpath_overrides_runpath=no
17238 shlibpath_overrides_runpath=yes
17242 shlibpath_overrides_runpath=yes
17247 libname_spec='$name'
17250 library_names_spec='$libname${shared_ext} $libname.a'
17251 dynamic_linker='OS/2 ld.exe'
17252 shlibpath_var=LIBPATH
17255 osf3* | osf4* | osf5*)
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=yes
17278 hardcode_into_libs=yes
17279 # ldd complains unless libraries are executable
17280 postinstall_cmds='chmod +x $lib'
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17287 shlibpath_var=LD_LIBRARY_PATH
17288 shlibpath_overrides_runpath=yes
17289 if test "$with_gnu_ld" = yes; then
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 case $host_vendor in
17302 shlibpath_overrides_runpath=no
17304 export_dynamic_flag_spec='${wl}-Blargedynsym'
17305 runpath_var=LD_RUN_PATH
17313 shlibpath_overrides_runpath=no
17314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17320 if test -d /usr/nec ;then
17322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17323 soname_spec='$libname${shared_ext}.$major'
17324 shlibpath_var=LD_LIBRARY_PATH
17328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17329 version_type=freebsd-elf
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17333 soname_spec='${libname}${release}${shared_ext}$major'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 hardcode_into_libs=yes
17336 if test "$with_gnu_ld" = yes; then
17337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17338 shlibpath_overrides_runpath=no
17340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17341 shlibpath_overrides_runpath=yes
17344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17348 sys_lib_dlsearch_path_spec='/usr/lib'
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17363 echo "${ECHO_T}$dynamic_linker" >&6; }
17364 test "$dynamic_linker" = no && can_build_shared=no
17366 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17372 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17373 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17379 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17382 if test "$GCC" = yes; then
17383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17386 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17387 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17389 if test -n "$hardcode_libdir_flag_spec" || \
17390 test -n "$runpath_var" || \
17391 test "X$hardcode_automatic" = "Xyes" ; then
17393 # We can hardcode non-existant directories.
17394 if test "$hardcode_direct" != no &&
17395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17396 # have to relink, otherwise we might link with an installed library
17397 # when we should be linking with a yet-to-be-installed one
17398 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17399 test "$hardcode_minus_L" != no; then
17400 # Linking always hardcodes the temporary library directory.
17401 hardcode_action=relink
17403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17404 hardcode_action=immediate
17407 # We cannot hardcode anything, or else we can only hardcode existing
17409 hardcode_action=unsupported
17411 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17412 echo "${ECHO_T}$hardcode_action" >&6; }
17414 if test "$hardcode_action" = relink; then
17415 # Fast installation is not supported
17416 enable_fast_install=no
17417 elif test "$shlibpath_overrides_runpath" = yes ||
17418 test "$enable_shared" = no; then
17419 # Fast installation is not necessary
17420 enable_fast_install=needless
17425 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17426 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17427 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17430 { echo "$as_me:$LINENO: result: yes" >&5
17431 echo "${ECHO_T}yes" >&6; }
17433 # FIXME - insert some real tests, host_os isn't really good enough
17436 if test -n "$STRIP" ; then
17437 striplib="$STRIP -x"
17438 old_striplib="$STRIP -S"
17439 { echo "$as_me:$LINENO: result: yes" >&5
17440 echo "${ECHO_T}yes" >&6; }
17442 { echo "$as_me:$LINENO: result: no" >&5
17443 echo "${ECHO_T}no" >&6; }
17447 { echo "$as_me:$LINENO: result: no" >&5
17448 echo "${ECHO_T}no" >&6; }
17453 if test "x$enable_dlopen" != xyes; then
17454 enable_dlopen=unknown
17455 enable_dlopen_self=unknown
17456 enable_dlopen_self_static=unknown
17463 lt_cv_dlopen="load_add_on"
17465 lt_cv_dlopen_self=yes
17469 lt_cv_dlopen="LoadLibrary"
17474 lt_cv_dlopen="dlopen"
17479 # if libdl is installed we need to link against it
17480 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17481 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 ac_check_lib_save_LIBS=$LIBS
17487 cat >conftest.$ac_ext <<_ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17494 /* Override any GCC internal prototype to avoid an error.
17495 Use char because int might match the return type of a GCC
17496 builtin and then its argument prototype would still apply. */
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_link") 2>conftest.er1
17518 grep -v '^ *+' conftest.er1 >conftest.err
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } && {
17523 test -z "$ac_c_werror_flag" ||
17524 test ! -s conftest.err
17525 } && test -s conftest$ac_exeext &&
17526 $as_test_x conftest$ac_exeext; then
17527 ac_cv_lib_dl_dlopen=yes
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 ac_cv_lib_dl_dlopen=no
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536 conftest$ac_exeext conftest.$ac_ext
17537 LIBS=$ac_check_lib_save_LIBS
17539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17541 if test $ac_cv_lib_dl_dlopen = yes; then
17542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17545 lt_cv_dlopen="dyld"
17547 lt_cv_dlopen_self=yes
17554 { echo "$as_me:$LINENO: checking for shl_load" >&5
17555 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17556 if test "${ac_cv_func_shl_load+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17567 #define shl_load innocuous_shl_load
17569 /* System header to define __stub macros and hopefully few prototypes,
17570 which can conflict with char shl_load (); below.
17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572 <limits.h> exists even on freestanding compilers. */
17575 # include <limits.h>
17577 # include <assert.h>
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17589 /* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592 #if defined __stub_shl_load || defined __stub___shl_load
17599 return shl_load ();
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest$ac_exeext &&
17621 $as_test_x conftest$ac_exeext; then
17622 ac_cv_func_shl_load=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_cv_func_shl_load=no
17630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631 conftest$ac_exeext conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17634 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17635 if test $ac_cv_func_shl_load = yes; then
17636 lt_cv_dlopen="shl_load"
17638 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17639 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17640 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 ac_check_lib_save_LIBS=$LIBS
17645 cat >conftest.$ac_ext <<_ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17652 /* Override any GCC internal prototype to avoid an error.
17653 Use char because int might match the return type of a GCC
17654 builtin and then its argument prototype would still apply. */
17662 return shl_load ();
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_link") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } && {
17681 test -z "$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 } && test -s conftest$ac_exeext &&
17684 $as_test_x conftest$ac_exeext; then
17685 ac_cv_lib_dld_shl_load=yes
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_cv_lib_dld_shl_load=no
17693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17694 conftest$ac_exeext conftest.$ac_ext
17695 LIBS=$ac_check_lib_save_LIBS
17697 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17699 if test $ac_cv_lib_dld_shl_load = yes; then
17700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17702 { echo "$as_me:$LINENO: checking for dlopen" >&5
17703 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17704 if test "${ac_cv_func_dlopen+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17715 #define dlopen innocuous_dlopen
17717 /* System header to define __stub macros and hopefully few prototypes,
17718 which can conflict with char dlopen (); below.
17719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720 <limits.h> exists even on freestanding compilers. */
17723 # include <limits.h>
17725 # include <assert.h>
17730 /* Override any GCC internal prototype to avoid an error.
17731 Use char because int might match the return type of a GCC
17732 builtin and then its argument prototype would still apply. */
17737 /* The GNU C library defines this for functions which it implements
17738 to always fail with ENOSYS. Some functions are actually named
17739 something starting with __ and the normal name is an alias. */
17740 #if defined __stub_dlopen || defined __stub___dlopen
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_link") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } && {
17766 test -z "$ac_c_werror_flag" ||
17767 test ! -s conftest.err
17768 } && test -s conftest$ac_exeext &&
17769 $as_test_x conftest$ac_exeext; then
17770 ac_cv_func_dlopen=yes
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ac_cv_func_dlopen=no
17778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17779 conftest$ac_exeext conftest.$ac_ext
17781 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17782 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17783 if test $ac_cv_func_dlopen = yes; then
17784 lt_cv_dlopen="dlopen"
17786 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17787 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17788 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 ac_check_lib_save_LIBS=$LIBS
17793 cat >conftest.$ac_ext <<_ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (ac_try="$ac_link"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_link") 2>conftest.er1
17824 grep -v '^ *+' conftest.er1 >conftest.err
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest$ac_exeext &&
17832 $as_test_x conftest$ac_exeext; then
17833 ac_cv_lib_dl_dlopen=yes
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_cv_lib_dl_dlopen=no
17841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17842 conftest$ac_exeext conftest.$ac_ext
17843 LIBS=$ac_check_lib_save_LIBS
17845 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17846 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17847 if test $ac_cv_lib_dl_dlopen = yes; then
17848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17850 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17851 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17852 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-lsvld $LIBS"
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17864 /* Override any GCC internal prototype to avoid an error.
17865 Use char because int might match the return type of a GCC
17866 builtin and then its argument prototype would still apply. */
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (ac_try="$ac_link"
17881 case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_link") 2>conftest.er1
17888 grep -v '^ *+' conftest.er1 >conftest.err
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } && {
17893 test -z "$ac_c_werror_flag" ||
17894 test ! -s conftest.err
17895 } && test -s conftest$ac_exeext &&
17896 $as_test_x conftest$ac_exeext; then
17897 ac_cv_lib_svld_dlopen=yes
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 ac_cv_lib_svld_dlopen=no
17905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17906 conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17909 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17911 if test $ac_cv_lib_svld_dlopen = yes; then
17912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17914 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17915 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17916 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 ac_check_lib_save_LIBS=$LIBS
17921 cat >conftest.$ac_ext <<_ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17928 /* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17938 return dld_link ();
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_link") 2>conftest.er1
17952 grep -v '^ *+' conftest.er1 >conftest.err
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } && {
17957 test -z "$ac_c_werror_flag" ||
17958 test ! -s conftest.err
17959 } && test -s conftest$ac_exeext &&
17960 $as_test_x conftest$ac_exeext; then
17961 ac_cv_lib_dld_dld_link=yes
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 ac_cv_lib_dld_dld_link=no
17969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17970 conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17973 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17974 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17975 if test $ac_cv_lib_dld_dld_link = yes; then
17976 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17997 if test "x$lt_cv_dlopen" != xno; then
18003 case $lt_cv_dlopen in
18005 save_CPPFLAGS="$CPPFLAGS"
18006 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18008 save_LDFLAGS="$LDFLAGS"
18009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18012 LIBS="$lt_cv_dlopen_libs $LIBS"
18014 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18015 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18016 if test "${lt_cv_dlopen_self+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 if test "$cross_compiling" = yes; then :
18020 lt_cv_dlopen_self=cross
18022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18023 lt_status=$lt_dlunknown
18024 cat > conftest.$ac_ext <<EOF
18025 #line 18025 "configure"
18026 #include "confdefs.h"
18035 # define LT_DLGLOBAL RTLD_GLOBAL
18038 # define LT_DLGLOBAL DL_GLOBAL
18040 # define LT_DLGLOBAL 0
18044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18045 find out it does not work in some platform. */
18046 #ifndef LT_DLLAZY_OR_NOW
18048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18051 # define LT_DLLAZY_OR_NOW DL_LAZY
18054 # define LT_DLLAZY_OR_NOW RTLD_NOW
18057 # define LT_DLLAZY_OR_NOW DL_NOW
18059 # define LT_DLLAZY_OR_NOW 0
18067 extern "C" void exit (int);
18070 void fnord() { int i=42;}
18073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18074 int status = $lt_dlunknown;
18078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18079 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18080 /* dlclose (self); */
18088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18089 (eval $ac_link) 2>&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18093 (./conftest; exit; ) >&5 2>/dev/null
18095 case x$lt_status in
18096 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18097 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18098 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18101 # compilation failed
18102 lt_cv_dlopen_self=no
18109 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18110 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18112 if test "x$lt_cv_dlopen_self" = xyes; then
18113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18114 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18115 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18116 if test "${lt_cv_dlopen_self_static+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18119 if test "$cross_compiling" = yes; then :
18120 lt_cv_dlopen_self_static=cross
18122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18123 lt_status=$lt_dlunknown
18124 cat > conftest.$ac_ext <<EOF
18125 #line 18125 "configure"
18126 #include "confdefs.h"
18135 # define LT_DLGLOBAL RTLD_GLOBAL
18138 # define LT_DLGLOBAL DL_GLOBAL
18140 # define LT_DLGLOBAL 0
18144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18145 find out it does not work in some platform. */
18146 #ifndef LT_DLLAZY_OR_NOW
18148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18151 # define LT_DLLAZY_OR_NOW DL_LAZY
18154 # define LT_DLLAZY_OR_NOW RTLD_NOW
18157 # define LT_DLLAZY_OR_NOW DL_NOW
18159 # define LT_DLLAZY_OR_NOW 0
18167 extern "C" void exit (int);
18170 void fnord() { int i=42;}
18173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18174 int status = $lt_dlunknown;
18178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18180 /* dlclose (self); */
18188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18189 (eval $ac_link) 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18193 (./conftest; exit; ) >&5 2>/dev/null
18195 case x$lt_status in
18196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18201 # compilation failed
18202 lt_cv_dlopen_self_static=no
18209 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18213 CPPFLAGS="$save_CPPFLAGS"
18214 LDFLAGS="$save_LDFLAGS"
18219 case $lt_cv_dlopen_self in
18220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18221 *) enable_dlopen_self=unknown ;;
18224 case $lt_cv_dlopen_self_static in
18225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18226 *) enable_dlopen_self_static=unknown ;;
18231 # Report which library types will actually be built
18232 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18233 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18234 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
18235 echo "${ECHO_T}$can_build_shared" >&6; }
18237 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18238 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18239 test "$can_build_shared" = "no" && enable_shared=no
18241 # On AIX, shared libraries and static libraries use the same namespace, and
18242 # are all built from PIC.
18245 test "$enable_shared" = yes && enable_static=no
18246 if test -n "$RANLIB"; then
18247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18248 postinstall_cmds='$RANLIB $lib'
18253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18254 test "$enable_shared" = yes && enable_static=no
18258 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18259 echo "${ECHO_T}$enable_shared" >&6; }
18261 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18262 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18263 # Make sure either enable_shared or enable_static is yes.
18264 test "$enable_shared" = yes || enable_static=yes
18265 { echo "$as_me:$LINENO: result: $enable_static" >&5
18266 echo "${ECHO_T}$enable_static" >&6; }
18268 # The else clause should only fire when bootstrapping the
18269 # libtool distribution, otherwise you forgot to ship ltmain.sh
18270 # with your package, and you will get complaints that there are
18271 # no rules to generate ltmain.sh.
18272 if test -f "$ltmain"; then
18273 # See if we are running on zsh, and set the options which allow our commands through
18274 # without removal of \ escapes.
18275 if test -n "${ZSH_VERSION+set}" ; then
18276 setopt NO_GLOB_SUBST
18278 # Now quote all the things that may contain metacharacters while being
18279 # careful not to overquote the AC_SUBSTed values. We take copies of the
18280 # variables and quote the copies for generation of the libtool script.
18281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18283 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18284 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18285 deplibs_check_method reload_flag reload_cmds need_locks \
18286 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18287 lt_cv_sys_global_symbol_to_c_name_address \
18288 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18289 old_postinstall_cmds old_postuninstall_cmds \
18293 lt_prog_compiler_wl \
18294 lt_prog_compiler_pic \
18295 lt_prog_compiler_static \
18296 lt_prog_compiler_no_builtin_flag \
18297 export_dynamic_flag_spec \
18298 thread_safe_flag_spec \
18299 whole_archive_flag_spec \
18300 enable_shared_with_static_runtimes \
18302 old_archive_from_new_cmds \
18307 compiler_lib_search_path \
18308 compiler_lib_search_dirs \
18310 archive_expsym_cmds \
18312 postuninstall_cmds \
18313 old_archive_from_expsyms_cmds \
18314 allow_undefined_flag \
18315 no_undefined_flag \
18316 export_symbols_cmds \
18317 hardcode_libdir_flag_spec \
18318 hardcode_libdir_flag_spec_ld \
18319 hardcode_libdir_separator \
18320 hardcode_automatic \
18322 module_expsym_cmds \
18323 lt_cv_prog_compiler_c_o \
18326 include_expsyms; do
18329 old_archive_cmds | \
18330 old_archive_from_new_cmds | \
18332 archive_expsym_cmds | \
18334 module_expsym_cmds | \
18335 old_archive_from_expsyms_cmds | \
18336 export_symbols_cmds | \
18337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18338 postinstall_cmds | postuninstall_cmds | \
18339 old_postinstall_cmds | old_postuninstall_cmds | \
18340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18341 # Double-quote double-evaled strings.
18342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18351 *'\$0 --fallback-echo"')
18352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18356 cfgfile="${ofile}T"
18357 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18359 { echo "$as_me:$LINENO: creating $ofile" >&5
18360 echo "$as_me: creating $ofile" >&6;}
18362 cat <<__EOF__ >> "$cfgfile"
18365 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18366 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
18370 # Free Software Foundation, Inc.
18372 # This file is part of GNU Libtool:
18373 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18375 # This program is free software; you can redistribute it and/or modify
18376 # it under the terms of the GNU General Public License as published by
18377 # the Free Software Foundation; either version 2 of the License, or
18378 # (at your option) any later version.
18380 # This program is distributed in the hope that it will be useful, but
18381 # WITHOUT ANY WARRANTY; without even the implied warranty of
18382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18383 # General Public License for more details.
18385 # You should have received a copy of the GNU General Public License
18386 # along with this program; if not, write to the Free Software
18387 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18389 # As a special exception to the GNU General Public License, if you
18390 # distribute this file as part of a program that contains a
18391 # configuration script generated by Autoconf, you may include it under
18392 # the same distribution terms that you use for the rest of that program.
18394 # A sed program that does not truncate output.
18397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18398 Xsed="$SED -e 1s/^X//"
18400 # The HP-UX ksh and POSIX shell print the target directory to stdout
18401 # if CDPATH is set.
18402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18404 # The names of the tagged configurations supported by this script.
18407 # ### BEGIN LIBTOOL CONFIG
18409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18411 # Shell to use when invoking shell scripts.
18414 # Whether or not to build shared libraries.
18415 build_libtool_libs=$enable_shared
18417 # Whether or not to build static libraries.
18418 build_old_libs=$enable_static
18420 # Whether or not to add -lc for building shared libraries.
18421 build_libtool_need_lc=$archive_cmds_need_lc
18423 # Whether or not to disallow shared libs when runtime libs are static
18424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18426 # Whether or not to optimize for fast installation.
18427 fast_install=$enable_fast_install
18430 host_alias=$host_alias
18434 # The build system.
18435 build_alias=$build_alias
18439 # An echo program that does not interpret backslashes.
18444 AR_FLAGS=$lt_AR_FLAGS
18449 # LTCC compiler flags.
18450 LTCFLAGS=$lt_LTCFLAGS
18452 # A language-specific compiler.
18455 # Is the compiler the GNU C compiler?
18461 # The linker used to build libraries.
18464 # Whether we need hard or soft links.
18467 # A BSD-compatible nm program.
18470 # A symbol stripping program
18473 # Used to examine libraries when file_magic_cmd begins "file"
18474 MAGIC_CMD=$MAGIC_CMD
18476 # Used on cygwin: DLL creation program.
18479 # Used on cygwin: object dumper.
18482 # Used on cygwin: assembler.
18485 # The name of the directory that contains temporary libtool files.
18488 # How to create reloadable object files.
18489 reload_flag=$lt_reload_flag
18490 reload_cmds=$lt_reload_cmds
18492 # How to pass a linker flag through the compiler.
18493 wl=$lt_lt_prog_compiler_wl
18495 # Object file suffix (normally "o").
18496 objext="$ac_objext"
18498 # Old archive suffix (normally "a").
18501 # Shared library suffix (normally ".so").
18502 shrext_cmds='$shrext_cmds'
18504 # Executable file suffix (normally "").
18507 # Additional compiler flags for building library objects.
18508 pic_flag=$lt_lt_prog_compiler_pic
18511 # What is the maximum length of a command?
18512 max_cmd_len=$lt_cv_sys_max_cmd_len
18514 # Does compiler simultaneously support -c and -o options?
18515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18517 # Must we lock files when doing compilation?
18518 need_locks=$lt_need_locks
18520 # Do we need the lib prefix for modules?
18521 need_lib_prefix=$need_lib_prefix
18523 # Do we need a version for libraries?
18524 need_version=$need_version
18526 # Whether dlopen is supported.
18527 dlopen_support=$enable_dlopen
18529 # Whether dlopen of programs is supported.
18530 dlopen_self=$enable_dlopen_self
18532 # Whether dlopen of statically linked programs is supported.
18533 dlopen_self_static=$enable_dlopen_self_static
18535 # Compiler flag to prevent dynamic linking.
18536 link_static_flag=$lt_lt_prog_compiler_static
18538 # Compiler flag to turn off builtin functions.
18539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18541 # Compiler flag to allow reflexive dlopens.
18542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18544 # Compiler flag to generate shared objects directly from archives.
18545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18547 # Compiler flag to generate thread-safe objects.
18548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18550 # Library versioning type.
18551 version_type=$version_type
18553 # Format of library name prefix.
18554 libname_spec=$lt_libname_spec
18556 # List of archive names. First name is the real one, the rest are links.
18557 # The last name is the one that the linker finds with -lNAME.
18558 library_names_spec=$lt_library_names_spec
18560 # The coded name of the library, if different from the real name.
18561 soname_spec=$lt_soname_spec
18563 # Commands used to build and install an old-style archive.
18565 old_archive_cmds=$lt_old_archive_cmds
18566 old_postinstall_cmds=$lt_old_postinstall_cmds
18567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18569 # Create an old-style archive from a shared archive.
18570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18572 # Create a temporary old-style archive to link instead of a shared archive.
18573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18575 # Commands used to build and install a shared archive.
18576 archive_cmds=$lt_archive_cmds
18577 archive_expsym_cmds=$lt_archive_expsym_cmds
18578 postinstall_cmds=$lt_postinstall_cmds
18579 postuninstall_cmds=$lt_postuninstall_cmds
18581 # Commands used to build a loadable module (assumed same as above if empty)
18582 module_cmds=$lt_module_cmds
18583 module_expsym_cmds=$lt_module_expsym_cmds
18585 # Commands to strip libraries.
18586 old_striplib=$lt_old_striplib
18587 striplib=$lt_striplib
18589 # Dependencies to place before the objects being linked to create a
18591 predep_objects=$lt_predep_objects
18593 # Dependencies to place after the objects being linked to create a
18595 postdep_objects=$lt_postdep_objects
18597 # Dependencies to place before the objects being linked to create a
18599 predeps=$lt_predeps
18601 # Dependencies to place after the objects being linked to create a
18603 postdeps=$lt_postdeps
18605 # The directories searched by this compiler when creating a shared
18607 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18609 # The library search path used internally by the compiler when linking
18610 # a shared library.
18611 compiler_lib_search_path=$lt_compiler_lib_search_path
18613 # Method to check whether dependent libraries are shared objects.
18614 deplibs_check_method=$lt_deplibs_check_method
18616 # Command to use when deplibs_check_method == file_magic.
18617 file_magic_cmd=$lt_file_magic_cmd
18619 # Flag that allows shared libraries with undefined symbols to be built.
18620 allow_undefined_flag=$lt_allow_undefined_flag
18622 # Flag that forces no undefined symbols.
18623 no_undefined_flag=$lt_no_undefined_flag
18625 # Commands used to finish a libtool library installation in a directory.
18626 finish_cmds=$lt_finish_cmds
18628 # Same as above, but a single script fragment to be evaled but not shown.
18629 finish_eval=$lt_finish_eval
18631 # Take the output of nm and produce a listing of raw symbols and C names.
18632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18634 # Transform the output of nm in a proper C declaration
18635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18637 # Transform the output of nm in a C name address pair
18638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18640 # This is the shared library runtime path variable.
18641 runpath_var=$runpath_var
18643 # This is the shared library path variable.
18644 shlibpath_var=$shlibpath_var
18646 # Is shlibpath searched before the hard-coded library search path?
18647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18649 # How to hardcode a shared library path into an executable.
18650 hardcode_action=$hardcode_action
18652 # Whether we should hardcode library paths into libraries.
18653 hardcode_into_libs=$hardcode_into_libs
18655 # Flag to hardcode \$libdir into a binary during linking.
18656 # This must work even if \$libdir does not exist.
18657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18659 # If ld is used when linking, flag to hardcode \$libdir into
18660 # a binary during linking. This must work even if \$libdir does
18662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18664 # Whether we need a single -rpath flag with a separated argument.
18665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18668 # resulting binary.
18669 hardcode_direct=$hardcode_direct
18671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18672 # resulting binary.
18673 hardcode_minus_L=$hardcode_minus_L
18675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18676 # the resulting binary.
18677 hardcode_shlibpath_var=$hardcode_shlibpath_var
18679 # Set to yes if building a shared library automatically hardcodes DIR into the library
18680 # and all subsequent libraries and executables linked against it.
18681 hardcode_automatic=$hardcode_automatic
18683 # Variables whose values should be saved in libtool wrapper scripts and
18684 # restored at relink time.
18685 variables_saved_for_relink="$variables_saved_for_relink"
18687 # Whether libtool must link a program against all its dependency libraries.
18688 link_all_deplibs=$link_all_deplibs
18690 # Compile-time system search path for libraries
18691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18693 # Run-time system search path for libraries
18694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18696 # Fix the shell variable \$srcfile for the compiler.
18697 fix_srcfile_path=$lt_fix_srcfile_path
18699 # Set to yes if exported symbols are required.
18700 always_export_symbols=$always_export_symbols
18702 # The commands to list exported symbols.
18703 export_symbols_cmds=$lt_export_symbols_cmds
18705 # The commands to extract the exported symbol list from a shared archive.
18706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18708 # Symbols that should not be listed in the preloaded symbols.
18709 exclude_expsyms=$lt_exclude_expsyms
18711 # Symbols that must always be exported.
18712 include_expsyms=$lt_include_expsyms
18714 # ### END LIBTOOL CONFIG
18721 cat <<\EOF >> "$cfgfile"
18723 # AIX sometimes has problems with the GCC collect2 program. For some
18724 # reason, if we set the COLLECT_NAMES environment variable, the problems
18725 # vanish in a puff of smoke.
18726 if test "X${COLLECT_NAMES+set}" != Xset; then
18728 export COLLECT_NAMES
18734 # We use sed instead of cat because bash on DJGPP gets confused if
18735 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18736 # text mode, it properly converts lines to CR/LF. This bash problem
18737 # is reportedly fixed, but why not run on old versions too?
18738 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18740 mv -f "$cfgfile" "$ofile" || \
18741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18745 # If there is no Makefile yet, we rely on a make rule to execute
18746 # `config.status --recheck' to rerun these tests and create the
18747 # libtool script then.
18748 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18749 if test -f "$ltmain_in"; then
18750 test -f Makefile && make "$ltmain"
18756 ac_cpp='$CPP $CPPFLAGS'
18757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18764 # Check whether --with-tags was given.
18765 if test "${with_tags+set}" = set; then
18766 withval=$with_tags; tagnames="$withval"
18770 if test -f "$ltmain" && test -n "$tagnames"; then
18771 if test ! -f "${ofile}"; then
18772 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18773 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18776 if test -z "$LTCC"; then
18777 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18778 if test -z "$LTCC"; then
18779 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18780 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18783 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18786 if test -z "$LTCFLAGS"; then
18787 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18790 # Extract list of available tagged configurations in $ofile.
18791 # Note that this assumes the entire list is on one line.
18792 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18795 for tagname in $tagnames; do
18797 # Check whether tagname contains only valid characters
18798 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18800 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18801 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18802 { (exit 1); exit 1; }; }
18806 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18808 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18809 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18810 { (exit 1); exit 1; }; }
18813 # Update the list of available tags.
18814 if test -n "$tagname"; then
18815 echo appending configuration tag \"$tagname\" to $ofile
18819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18820 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18821 (test "X$CXX" != "Xg++"))) ; then
18823 ac_cpp='$CXXCPP $CPPFLAGS'
18824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18831 archive_cmds_need_lc_CXX=no
18832 allow_undefined_flag_CXX=
18833 always_export_symbols_CXX=no
18834 archive_expsym_cmds_CXX=
18835 export_dynamic_flag_spec_CXX=
18836 hardcode_direct_CXX=no
18837 hardcode_libdir_flag_spec_CXX=
18838 hardcode_libdir_flag_spec_ld_CXX=
18839 hardcode_libdir_separator_CXX=
18840 hardcode_minus_L_CXX=no
18841 hardcode_shlibpath_var_CXX=unsupported
18842 hardcode_automatic_CXX=no
18844 module_expsym_cmds_CXX=
18845 link_all_deplibs_CXX=unknown
18846 old_archive_cmds_CXX=$old_archive_cmds
18847 no_undefined_flag_CXX=
18848 whole_archive_flag_spec_CXX=
18849 enable_shared_with_static_runtimes_CXX=no
18851 # Dependencies to place before and after the object being linked:
18852 predep_objects_CXX=
18853 postdep_objects_CXX=
18856 compiler_lib_search_path_CXX=
18857 compiler_lib_search_dirs_CXX=
18859 # Source file extension for C++ test sources.
18862 # Object file extension for compiled C++ test sources.
18866 # Code to be used in simple compile tests
18867 lt_simple_compile_test_code="int some_variable = 0;"
18869 # Code to be used in simple link tests
18870 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18872 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18874 # If no C compiler was specified, use CC.
18877 # If no C compiler flags were specified, use CFLAGS.
18878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18880 # Allow CC to be a program name with arguments.
18884 # save warnings/boilerplate of simple test code
18885 ac_outfile=conftest.$ac_objext
18886 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18887 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18888 _lt_compiler_boilerplate=`cat conftest.err`
18891 ac_outfile=conftest.$ac_objext
18892 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18893 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18894 _lt_linker_boilerplate=`cat conftest.err`
18898 # Allow CC to be a program name with arguments.
18903 lt_save_with_gnu_ld=$with_gnu_ld
18904 lt_save_path_LD=$lt_cv_path_LD
18905 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18906 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18908 $as_unset lt_cv_prog_gnu_ld
18910 if test -n "${lt_cv_path_LDCXX+set}"; then
18911 lt_cv_path_LD=$lt_cv_path_LDCXX
18913 $as_unset lt_cv_path_LD
18915 test -z "${LDCXX+set}" || LD=$LDCXX
18919 for cc_temp in $compiler""; do
18921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18930 # We don't want -fno-exception wen compiling C++ code, so set the
18931 # no_builtin_flag separately
18932 if test "$GXX" = yes; then
18933 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18935 lt_prog_compiler_no_builtin_flag_CXX=
18938 if test "$GXX" = yes; then
18939 # Set up default GNU C++ configuration
18942 # Check whether --with-gnu-ld was given.
18943 if test "${with_gnu_ld+set}" = set; then
18944 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18950 if test "$GCC" = yes; then
18951 # Check if gcc -print-prog-name=ld gives a path.
18952 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18953 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18956 # gcc leaves a trailing carriage return which upsets mingw
18957 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18959 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18962 # Accept absolute paths.
18964 re_direlt='/[^/][^/]*/\.\./'
18965 # Canonicalize the pathname of ld
18966 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18967 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18968 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18970 test -z "$LD" && LD="$ac_prog"
18973 # If it fails, then pretend we aren't using GCC.
18977 # If it is relative, then search for the first ld in PATH.
18978 with_gnu_ld=unknown
18981 elif test "$with_gnu_ld" = yes; then
18982 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18983 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18985 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18986 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18988 if test "${lt_cv_path_LD+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 if test -z "$LD"; then
18992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18993 for ac_dir in $PATH; do
18995 test -z "$ac_dir" && ac_dir=.
18996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18997 lt_cv_path_LD="$ac_dir/$ac_prog"
18998 # Check to see if the program is GNU ld. I'd rather use --version,
18999 # but apparently some variants of GNU ld only accept -v.
19000 # Break only if it was the GNU/non-GNU ld that we prefer.
19001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19002 *GNU* | *'with BFD'*)
19003 test "$with_gnu_ld" != no && break
19006 test "$with_gnu_ld" != yes && break
19013 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19017 LD="$lt_cv_path_LD"
19018 if test -n "$LD"; then
19019 { echo "$as_me:$LINENO: result: $LD" >&5
19020 echo "${ECHO_T}$LD" >&6; }
19022 { echo "$as_me:$LINENO: result: no" >&5
19023 echo "${ECHO_T}no" >&6; }
19025 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19026 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19027 { (exit 1); exit 1; }; }
19028 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19029 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
19030 if test "${lt_cv_prog_gnu_ld+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19034 case `$LD -v 2>&1 </dev/null` in
19035 *GNU* | *'with BFD'*)
19036 lt_cv_prog_gnu_ld=yes
19039 lt_cv_prog_gnu_ld=no
19043 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
19044 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
19045 with_gnu_ld=$lt_cv_prog_gnu_ld
19049 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19050 # archiving commands below assume that GNU ld is being used.
19051 if test "$with_gnu_ld" = yes; then
19052 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19053 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'
19055 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19058 # If archive_cmds runs LD, not CC, wlarc should be empty
19059 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19060 # investigate it a little bit more. (MM)
19063 # ancient GNU ld didn't support --whole-archive et. al.
19064 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
19065 grep 'no-whole-archive' > /dev/null; then
19066 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19068 whole_archive_flag_spec_CXX=
19074 # A generic and very simple default shared library creation
19075 # command for GNU C++ for the case where it uses the native
19076 # linker, instead of GNU ld. If possible, this setting should
19077 # overridden to take advantage of the native linker features on
19078 # the platform it is being used on.
19079 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19082 # Commands to make compiler produce verbose output that lists
19083 # what "hidden" libraries, object files and flags are used when
19084 # linking a shared library.
19085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19093 # PORTME: fill in a description of your system's C++ link characteristics
19094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19099 # FIXME: insert proper C++ library support
19103 if test "$host_cpu" = ia64; then
19104 # On IA64, the linker does run time linking by default, so we don't
19105 # have to do anything special.
19106 aix_use_runtimelinking=no
19107 exp_sym_flag='-Bexport'
19110 aix_use_runtimelinking=no
19112 # Test if we are trying to use run time linking or normal
19113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19114 # need to do runtime linking.
19115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19116 for ld_flag in $LDFLAGS; do
19119 aix_use_runtimelinking=yes
19127 exp_sym_flag='-bexport'
19128 no_entry_flag='-bnoentry'
19131 # When large executables or shared objects are built, AIX ld can
19132 # have problems creating the table of contents. If linking a library
19133 # or program results in "error TOC overflow" add -mminimal-toc to
19134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19137 archive_cmds_CXX=''
19138 hardcode_direct_CXX=yes
19139 hardcode_libdir_separator_CXX=':'
19140 link_all_deplibs_CXX=yes
19142 if test "$GXX" = yes; then
19143 case $host_os in aix4.[012]|aix4.[012].*)
19144 # We only want to do this on AIX 4.2 and lower, the check
19145 # below for broken collect2 doesn't work under 4.3+
19146 collect2name=`${CC} -print-prog-name=collect2`
19147 if test -f "$collect2name" && \
19148 strings "$collect2name" | grep resolve_lib_name >/dev/null
19150 # We have reworked collect2
19153 # We have old collect2
19154 hardcode_direct_CXX=unsupported
19155 # It fails to find uninstalled libraries when the uninstalled
19156 # path is not listed in the libpath. Setting hardcode_minus_L
19157 # to unsupported forces relinking
19158 hardcode_minus_L_CXX=yes
19159 hardcode_libdir_flag_spec_CXX='-L$libdir'
19160 hardcode_libdir_separator_CXX=
19164 shared_flag='-shared'
19165 if test "$aix_use_runtimelinking" = yes; then
19166 shared_flag="$shared_flag "'${wl}-G'
19170 if test "$host_cpu" = ia64; then
19171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19172 # chokes on -Wl,-G. The following line is correct:
19175 if test "$aix_use_runtimelinking" = yes; then
19176 shared_flag='${wl}-G'
19178 shared_flag='${wl}-bM:SRE'
19183 # It seems that -bexpall does not export symbols beginning with
19184 # underscore (_), so it is better to generate a list of symbols to export.
19185 always_export_symbols_CXX=yes
19186 if test "$aix_use_runtimelinking" = yes; then
19187 # Warning - without using the other runtime loading flags (-brtl),
19188 # -berok will link without error, but may produce a broken library.
19189 allow_undefined_flag_CXX='-berok'
19190 # Determine the default libpath from the value encoded in an empty executable.
19191 cat >conftest.$ac_ext <<_ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_link") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && {
19220 test -z "$ac_cxx_werror_flag" ||
19221 test ! -s conftest.err
19222 } && test -s conftest$ac_exeext &&
19223 $as_test_x conftest$ac_exeext; then
19225 lt_aix_libpath_sed='
19226 /Import File Strings/,/^$/ {
19232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19233 # Check for a 64-bit object if we didn't find anything.
19234 if test -z "$aix_libpath"; then
19235 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19245 conftest$ac_exeext conftest.$ac_ext
19246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19248 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19250 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"
19252 if test "$host_cpu" = ia64; then
19253 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19254 allow_undefined_flag_CXX="-z nodefs"
19255 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"
19257 # Determine the default libpath from the value encoded in an empty executable.
19258 cat >conftest.$ac_ext <<_ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_link") 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } && {
19287 test -z "$ac_cxx_werror_flag" ||
19288 test ! -s conftest.err
19289 } && test -s conftest$ac_exeext &&
19290 $as_test_x conftest$ac_exeext; then
19292 lt_aix_libpath_sed='
19293 /Import File Strings/,/^$/ {
19299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19300 # Check for a 64-bit object if we didn't find anything.
19301 if test -z "$aix_libpath"; then
19302 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312 conftest$ac_exeext conftest.$ac_ext
19313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19315 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19316 # Warning - without using the other run time loading flags,
19317 # -berok will link without error, but may produce a broken library.
19318 no_undefined_flag_CXX=' ${wl}-bernotok'
19319 allow_undefined_flag_CXX=' ${wl}-berok'
19320 # Exported symbols can be pulled into shared objects from archives
19321 whole_archive_flag_spec_CXX='$convenience'
19322 archive_cmds_need_lc_CXX=yes
19323 # This is similar to how AIX traditionally builds its shared libraries.
19324 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'
19330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19331 allow_undefined_flag_CXX=unsupported
19332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19333 # support --undefined. This deserves some investigation. FIXME
19334 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19341 case $cc_basename in
19343 # FIXME: insert proper C++ library support
19349 cygwin* | mingw* | pw32*)
19350 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19351 # as there is no search path for DLLs.
19352 hardcode_libdir_flag_spec_CXX='-L$libdir'
19353 allow_undefined_flag_CXX=unsupported
19354 always_export_symbols_CXX=no
19355 enable_shared_with_static_runtimes_CXX=yes
19357 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19358 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'
19359 # If the export-symbols file already is a .def file (1st line
19360 # is EXPORTS), use it as is; otherwise, prepend...
19361 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19362 cp $export_symbols $output_objdir/$soname.def;
19364 echo EXPORTS > $output_objdir/$soname.def;
19365 cat $export_symbols >> $output_objdir/$soname.def;
19367 $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'
19372 darwin* | rhapsody*)
19373 archive_cmds_need_lc_CXX=no
19374 hardcode_direct_CXX=no
19375 hardcode_automatic_CXX=yes
19376 hardcode_shlibpath_var_CXX=unsupported
19377 whole_archive_flag_spec_CXX=''
19378 link_all_deplibs_CXX=yes
19379 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19380 if test "$GXX" = yes ; then
19381 output_verbose_link_cmd='echo'
19382 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}"
19383 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19384 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}"
19385 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}"
19386 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19387 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}"
19388 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}"
19391 case $cc_basename in
19393 output_verbose_link_cmd='echo'
19394 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'
19395 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19397 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}'
19398 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}'
19408 case $cc_basename in
19410 # FIXME: insert proper C++ library support
19414 # Green Hills C++ Compiler
19415 # FIXME: insert proper C++ library support
19419 # FIXME: insert proper C++ library support
19425 # C++ shared libraries reported to be fairly broken before switch to ELF
19429 archive_cmds_need_lc_CXX=no
19431 freebsd* | dragonfly*)
19432 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19439 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19440 hardcode_libdir_separator_CXX=:
19441 export_dynamic_flag_spec_CXX='${wl}-E'
19442 hardcode_direct_CXX=yes
19443 hardcode_minus_L_CXX=yes # Not in the search PATH,
19444 # but as the default
19445 # location of the library.
19447 case $cc_basename in
19449 # FIXME: insert proper C++ library support
19453 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'
19454 # Commands to make compiler produce verbose output that lists
19455 # what "hidden" libraries, object files and flags are used when
19456 # linking a shared library.
19458 # There doesn't appear to be a way to prevent this compiler from
19459 # explicitly linking system object files so we need to strip them
19460 # from the output so that they don't get included in the library
19462 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'
19465 if test "$GXX" = yes; then
19466 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'
19468 # FIXME: insert proper C++ library support
19475 if test $with_gnu_ld = no; then
19476 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19477 hardcode_libdir_separator_CXX=:
19482 export_dynamic_flag_spec_CXX='${wl}-E'
19488 hardcode_direct_CXX=no
19489 hardcode_shlibpath_var_CXX=no
19492 hardcode_direct_CXX=yes
19493 hardcode_minus_L_CXX=yes # Not in the search PATH,
19494 # but as the default
19495 # location of the library.
19499 case $cc_basename in
19501 # FIXME: insert proper C++ library support
19507 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19510 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19516 # Commands to make compiler produce verbose output that lists
19517 # what "hidden" libraries, object files and flags are used when
19518 # linking a shared library.
19520 # There doesn't appear to be a way to prevent this compiler from
19521 # explicitly linking system object files so we need to strip them
19522 # from the output so that they don't get included in the library
19524 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'
19527 if test "$GXX" = yes; then
19528 if test $with_gnu_ld = no; then
19531 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19534 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19537 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'
19542 # FIXME: insert proper C++ library support
19549 hardcode_direct_CXX=no
19550 hardcode_shlibpath_var_CXX=no
19551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19552 export_dynamic_flag_spec_CXX='${wl}-E'
19553 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19554 # Instead, shared libraries are loaded at an image base (0x10000000 by
19555 # default) and relocated if they conflict, which is a slow very memory
19556 # consuming and fragmenting process. To avoid this, we pick a random,
19557 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19558 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19559 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'
19560 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'
19563 case $cc_basename in
19566 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'
19568 # Archives containing C++ object files must be created using
19569 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19570 # necessary to make sure instantiated templates are included
19572 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19575 if test "$GXX" = yes; then
19576 if test "$with_gnu_ld" = no; then
19577 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'
19579 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'
19582 link_all_deplibs_CXX=yes
19585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19586 hardcode_libdir_separator_CXX=:
19588 linux* | k*bsd*-gnu)
19589 case $cc_basename in
19591 # Kuck and Associates, Inc. (KAI) C++ Compiler
19593 # KCC will only create a shared library if the output file
19594 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19595 # to its proper name (with version) after linking.
19596 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'
19597 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'
19598 # Commands to make compiler produce verbose output that lists
19599 # what "hidden" libraries, object files and flags are used when
19600 # linking a shared library.
19602 # There doesn't appear to be a way to prevent this compiler from
19603 # explicitly linking system object files so we need to strip them
19604 # from the output so that they don't get included in the library
19606 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'
19608 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19609 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19611 # Archives containing C++ object files must be created using
19612 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19613 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19618 # version 8.0 and above of icpc choke on multiply defined symbols
19619 # if we add $predep_objects and $postdep_objects, however 7.1 and
19620 # earlier do not add the objects themselves.
19621 case `$CC -V 2>&1` in
19623 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19624 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'
19626 *) # Version 8.0 or newer
19629 ia64*) tmp_idyn=' -i_dynamic';;
19631 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19632 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'
19635 archive_cmds_need_lc_CXX=no
19636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19637 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19638 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19641 # Portland Group C++ compiler
19642 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19643 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'
19645 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19646 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19647 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'
19651 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19652 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'
19654 runpath_var=LD_RUN_PATH
19655 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19656 hardcode_libdir_separator_CXX=:
19658 # Commands to make compiler produce verbose output that lists
19659 # what "hidden" libraries, object files and flags are used when
19660 # linking a shared library.
19662 # There doesn't appear to be a way to prevent this compiler from
19663 # explicitly linking system object files so we need to strip them
19664 # from the output so that they don't get included in the library
19666 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'
19669 case `$CC -V 2>&1 | sed 5q` in
19672 no_undefined_flag_CXX=' -zdefs'
19673 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19674 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'
19675 hardcode_libdir_flag_spec_CXX='-R$libdir'
19676 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'
19678 # Not sure whether something based on
19679 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19681 output_verbose_link_cmd='echo'
19683 # Archives containing C++ object files must be created using
19684 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19685 # necessary to make sure instantiated templates are included
19687 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19694 # FIXME: insert proper C++ library support
19698 # FIXME: insert proper C++ library support
19702 case $cc_basename in
19704 # FIXME: insert proper C++ library support
19708 # FIXME: insert proper C++ library support
19713 netbsd* | netbsdelf*-gnu)
19714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19715 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19717 hardcode_libdir_flag_spec_CXX='-R$libdir'
19718 hardcode_direct_CXX=yes
19719 hardcode_shlibpath_var_CXX=no
19721 # Workaround some broken pre-1.5 toolchains
19722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19725 # C++ shared libraries are fairly broken
19729 if test -f /usr/libexec/ld.so; then
19730 hardcode_direct_CXX=yes
19731 hardcode_shlibpath_var_CXX=no
19732 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19734 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19735 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19736 export_dynamic_flag_spec_CXX='${wl}-E'
19737 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19739 output_verbose_link_cmd='echo'
19745 case $cc_basename in
19747 # Kuck and Associates, Inc. (KAI) C++ Compiler
19749 # KCC will only create a shared library if the output file
19750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19751 # to its proper name (with version) after linking.
19752 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'
19754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19755 hardcode_libdir_separator_CXX=:
19757 # Archives containing C++ object files must be created using
19758 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19759 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19763 # Rational C++ 2.4.1
19764 # FIXME: insert proper C++ library support
19768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19769 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'
19771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19772 hardcode_libdir_separator_CXX=:
19774 # Commands to make compiler produce verbose output that lists
19775 # what "hidden" libraries, object files and flags are used when
19776 # linking a shared library.
19778 # There doesn't appear to be a way to prevent this compiler from
19779 # explicitly linking system object files so we need to strip them
19780 # from the output so that they don't get included in the library
19782 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'
19785 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19786 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19787 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'
19789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19790 hardcode_libdir_separator_CXX=:
19792 # Commands to make compiler produce verbose output that lists
19793 # what "hidden" libraries, object files and flags are used when
19794 # linking a shared library.
19795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19798 # FIXME: insert proper C++ library support
19805 case $cc_basename in
19807 # Kuck and Associates, Inc. (KAI) C++ Compiler
19809 # KCC will only create a shared library if the output file
19810 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19811 # to its proper name (with version) after linking.
19812 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'
19814 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19815 hardcode_libdir_separator_CXX=:
19817 # Archives containing C++ object files must be created using
19818 # the KAI C++ compiler.
19819 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19822 # Rational C++ 2.4.1
19823 # FIXME: insert proper C++ library support
19827 allow_undefined_flag_CXX=' -expect_unresolved \*'
19828 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'
19829 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19830 echo "-hidden">> $lib.exp~
19831 $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~
19834 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19835 hardcode_libdir_separator_CXX=:
19837 # Commands to make compiler produce verbose output that lists
19838 # what "hidden" libraries, object files and flags are used when
19839 # linking a shared library.
19841 # There doesn't appear to be a way to prevent this compiler from
19842 # explicitly linking system object files so we need to strip them
19843 # from the output so that they don't get included in the library
19845 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'
19848 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19849 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19850 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'
19852 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19853 hardcode_libdir_separator_CXX=:
19855 # Commands to make compiler produce verbose output that lists
19856 # what "hidden" libraries, object files and flags are used when
19857 # linking a shared library.
19858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19861 # FIXME: insert proper C++ library support
19868 # FIXME: insert proper C++ library support
19872 case $cc_basename in
19875 # FIXME: insert proper C++ library support
19880 # FIXME: insert proper C++ library support
19884 # FIXME: insert proper C++ library support
19890 case $cc_basename in
19892 # Sun C++ 4.2, 5.x and Centerline C++
19893 archive_cmds_need_lc_CXX=yes
19894 no_undefined_flag_CXX=' -zdefs'
19895 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19896 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19897 $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'
19899 hardcode_libdir_flag_spec_CXX='-R$libdir'
19900 hardcode_shlibpath_var_CXX=no
19902 solaris2.[0-5] | solaris2.[0-5].*) ;;
19904 # The compiler driver will combine and reorder linker options,
19905 # but understands `-z linker_flag'.
19906 # Supported since Solaris 2.6 (maybe 2.5.1?)
19907 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19910 link_all_deplibs_CXX=yes
19912 output_verbose_link_cmd='echo'
19914 # Archives containing C++ object files must be created using
19915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19916 # necessary to make sure instantiated templates are included
19918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19921 # Green Hills C++ Compiler
19922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19924 # The C++ compiler must be used to create the archive.
19925 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19928 # GNU C++ compiler with Solaris linker
19929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19930 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19931 if $CC --version | grep -v '^2\.7' > /dev/null; then
19932 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19933 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19934 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19936 # Commands to make compiler produce verbose output that lists
19937 # what "hidden" libraries, object files and flags are used when
19938 # linking a shared library.
19939 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19941 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19943 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19944 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19945 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19947 # Commands to make compiler produce verbose output that lists
19948 # what "hidden" libraries, object files and flags are used when
19949 # linking a shared library.
19950 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19953 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19955 solaris2.[0-5] | solaris2.[0-5].*) ;;
19957 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19964 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19965 no_undefined_flag_CXX='${wl}-z,text'
19966 archive_cmds_need_lc_CXX=no
19967 hardcode_shlibpath_var_CXX=no
19968 runpath_var='LD_RUN_PATH'
19970 case $cc_basename in
19972 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19973 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19976 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19977 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19981 sysv5* | sco3.2v5* | sco5v6*)
19982 # Note: We can NOT use -z defs as we might desire, because we do not
19983 # link with -lc, and that would cause any symbols used from libc to
19984 # always be unresolved, which means just about no library would
19985 # ever link correctly. If we're not using GNU ld we use -z text
19986 # though, which does catch some bad symbols but isn't as heavy-handed
19988 # For security reasons, it is highly recommended that you always
19989 # use absolute paths for naming shared libraries, and exclude the
19990 # DT_RUNPATH tag from executables and libraries. But doing so
19991 # requires that you compile everything twice, which is a pain.
19992 # So that behaviour is only enabled if SCOABSPATH is set to a
19993 # non-empty value in the environment. Most likely only useful for
19994 # creating official distributions of packages.
19995 # This is a hack until libtool officially supports absolute path
19996 # names for shared libraries.
19997 no_undefined_flag_CXX='${wl}-z,text'
19998 allow_undefined_flag_CXX='${wl}-z,nodefs'
19999 archive_cmds_need_lc_CXX=no
20000 hardcode_shlibpath_var_CXX=no
20001 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20002 hardcode_libdir_separator_CXX=':'
20003 link_all_deplibs_CXX=yes
20004 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20005 runpath_var='LD_RUN_PATH'
20007 case $cc_basename in
20009 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20010 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20013 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20014 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20019 case $cc_basename in
20021 # NonStop-UX NCC 3.20
20022 # FIXME: insert proper C++ library support
20026 # FIXME: insert proper C++ library support
20032 # FIXME: insert proper C++ library support
20036 # FIXME: insert proper C++ library support
20040 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20041 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20042 test "$ld_shlibs_CXX" = no && can_build_shared=no
20047 cat > conftest.$ac_ext <<EOF
20051 Foo (void) { a = 0; }
20057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20058 (eval $ac_compile) 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; then
20062 # Parse the compiler output and extract the necessary
20063 # objects, libraries and library flags.
20065 # Sentinel used to keep track of whether or not we are before
20066 # the conftest object file.
20067 pre_test_object_deps_done=no
20069 # The `*' in the case matches for architectures that use `case' in
20070 # $output_verbose_cmd can trigger glob expansion during the loop
20071 # eval without this substitution.
20072 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
20074 for p in `eval $output_verbose_link_cmd`; do
20078 # Some compilers place space between "-{L,R}" and the path.
20079 # Remove the space.
20080 if test $p = "-L" \
20081 || test $p = "-R"; then
20088 if test "$pre_test_object_deps_done" = no; then
20091 # Internal compiler library paths should come after those
20092 # provided the user. The postdeps already come after the
20093 # user supplied libs so there is no need to process them.
20094 if test -z "$compiler_lib_search_path_CXX"; then
20095 compiler_lib_search_path_CXX="${prev}${p}"
20097 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20100 # The "-l" case would never come before the object being
20101 # linked, so don't bother handling this case.
20104 if test -z "$postdeps_CXX"; then
20105 postdeps_CXX="${prev}${p}"
20107 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20113 # This assumes that the test object file only shows up
20114 # once in the compiler output.
20115 if test "$p" = "conftest.$objext"; then
20116 pre_test_object_deps_done=yes
20120 if test "$pre_test_object_deps_done" = no; then
20121 if test -z "$predep_objects_CXX"; then
20122 predep_objects_CXX="$p"
20124 predep_objects_CXX="$predep_objects_CXX $p"
20127 if test -z "$postdep_objects_CXX"; then
20128 postdep_objects_CXX="$p"
20130 postdep_objects_CXX="$postdep_objects_CXX $p"
20135 *) ;; # Ignore the rest.
20143 echo "libtool.m4: error: problem compiling CXX test program"
20146 $rm -f confest.$objext
20148 compiler_lib_search_dirs_CXX=
20149 if test -n "$compiler_lib_search_path_CXX"; then
20150 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20153 # PORTME: override above test on systems where it is broken
20156 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20157 # hack all around it, let's just trust "g++" to DTRT.
20158 predep_objects_CXX=
20159 postdep_objects_CXX=
20164 case `$CC -V 2>&1 | sed 5q` in
20168 # The more standards-conforming stlport4 library is
20169 # incompatible with the Cstd library. Avoid specifying
20170 # it if it's in CXXFLAGS. Ignore libCrun as
20171 # -library=stlport4 depends on it.
20172 case " $CXX $CXXFLAGS " in
20173 *" -library=stlport4 "*)
20174 solaris_use_stlport4=yes
20177 if test "$solaris_use_stlport4" != yes; then
20178 postdeps_CXX='-library=Cstd -library=Crun'
20185 case $cc_basename in
20187 # The more standards-conforming stlport4 library is
20188 # incompatible with the Cstd library. Avoid specifying
20189 # it if it's in CXXFLAGS. Ignore libCrun as
20190 # -library=stlport4 depends on it.
20191 case " $CXX $CXXFLAGS " in
20192 *" -library=stlport4 "*)
20193 solaris_use_stlport4=yes
20197 # Adding this requires a known-good setup of shared libraries for
20198 # Sun compiler versions before 5.6, else PIC objects from an old
20199 # archive will be linked into the output, leading to subtle bugs.
20200 if test "$solaris_use_stlport4" != yes; then
20201 postdeps_CXX='-library=Cstd -library=Crun'
20208 case " $postdeps_CXX " in
20209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20212 lt_prog_compiler_wl_CXX=
20213 lt_prog_compiler_pic_CXX=
20214 lt_prog_compiler_static_CXX=
20216 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20217 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20219 # C++ specific cases for pic, static, wl, etc.
20220 if test "$GXX" = yes; then
20221 lt_prog_compiler_wl_CXX='-Wl,'
20222 lt_prog_compiler_static_CXX='-static'
20226 # All AIX code is PIC.
20227 if test "$host_cpu" = ia64; then
20228 # AIX 5 now supports IA64 processor
20229 lt_prog_compiler_static_CXX='-Bstatic'
20233 # FIXME: we need at least 68020 code to build shared libraries, but
20234 # adding the `-m68020' flag to GCC prevents building anything better,
20236 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20239 # PIC is the default for these OSes.
20241 mingw* | cygwin* | os2* | pw32*)
20242 # This hack is so that the source file can tell whether it is being
20243 # built for inclusion in a dll (and should export symbols for example).
20244 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20245 # (--disable-auto-import) libraries
20246 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20248 darwin* | rhapsody*)
20249 # PIC is the default on this platform
20250 # Common symbols not allowed in MH_DYLIB files
20251 lt_prog_compiler_pic_CXX='-fno-common'
20254 # DJGPP does not support shared libraries at all
20255 lt_prog_compiler_pic_CXX=
20258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20259 # Instead, we relocate shared libraries at runtime.
20262 if test -d /usr/nec; then
20263 lt_prog_compiler_pic_CXX=-Kconform_pic
20267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20268 # not for PA HP-UX.
20273 lt_prog_compiler_pic_CXX='-fPIC'
20278 lt_prog_compiler_pic_CXX='-fPIC'
20284 # All AIX code is PIC.
20285 if test "$host_cpu" = ia64; then
20286 # AIX 5 now supports IA64 processor
20287 lt_prog_compiler_static_CXX='-Bstatic'
20289 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20293 case $cc_basename in
20295 # Green Hills C++ Compiler
20296 # _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"
20301 # PIC is the default on this platform
20302 # Common symbols not allowed in MH_DYLIB files
20303 case $cc_basename in
20305 lt_prog_compiler_pic_CXX='-qnocommon'
20306 lt_prog_compiler_wl_CXX='-Wl,'
20311 case $cc_basename in
20313 lt_prog_compiler_pic_CXX='-KPIC'
20316 # Green Hills C++ Compiler
20317 lt_prog_compiler_pic_CXX='-pic'
20323 freebsd* | dragonfly*)
20324 # FreeBSD uses GNU C++
20326 hpux9* | hpux10* | hpux11*)
20327 case $cc_basename in
20329 lt_prog_compiler_wl_CXX='-Wl,'
20330 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20331 if test "$host_cpu" != ia64; then
20332 lt_prog_compiler_pic_CXX='+Z'
20336 lt_prog_compiler_wl_CXX='-Wl,'
20337 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20343 lt_prog_compiler_pic_CXX='+Z'
20352 # This is c89, which is MS Visual C++ (no shared libs)
20353 # Anyone wants to do a port?
20355 irix5* | irix6* | nonstopux*)
20356 case $cc_basename in
20358 lt_prog_compiler_wl_CXX='-Wl,'
20359 lt_prog_compiler_static_CXX='-non_shared'
20360 # CC pic flag -KPIC is the default.
20366 linux* | k*bsd*-gnu)
20367 case $cc_basename in
20370 lt_prog_compiler_wl_CXX='--backend -Wl,'
20371 lt_prog_compiler_pic_CXX='-fPIC'
20375 lt_prog_compiler_wl_CXX='-Wl,'
20376 lt_prog_compiler_pic_CXX='-KPIC'
20377 lt_prog_compiler_static_CXX='-static'
20380 # Portland Group C++ compiler.
20381 lt_prog_compiler_wl_CXX='-Wl,'
20382 lt_prog_compiler_pic_CXX='-fpic'
20383 lt_prog_compiler_static_CXX='-Bstatic'
20387 # Make sure the PIC flag is empty. It appears that all Alpha
20388 # Linux and Compaq Tru64 Unix objects are PIC.
20389 lt_prog_compiler_pic_CXX=
20390 lt_prog_compiler_static_CXX='-non_shared'
20393 case `$CC -V 2>&1 | sed 5q` in
20396 lt_prog_compiler_pic_CXX='-KPIC'
20397 lt_prog_compiler_static_CXX='-Bstatic'
20398 lt_prog_compiler_wl_CXX='-Qoption ld '
20409 case $cc_basename in
20411 lt_prog_compiler_pic_CXX='-W c,exportall'
20417 netbsd* | netbsdelf*-gnu)
20419 osf3* | osf4* | osf5*)
20420 case $cc_basename in
20422 lt_prog_compiler_wl_CXX='--backend -Wl,'
20425 # Rational C++ 2.4.1
20426 lt_prog_compiler_pic_CXX='-pic'
20429 # Digital/Compaq C++
20430 lt_prog_compiler_wl_CXX='-Wl,'
20431 # Make sure the PIC flag is empty. It appears that all Alpha
20432 # Linux and Compaq Tru64 Unix objects are PIC.
20433 lt_prog_compiler_pic_CXX=
20434 lt_prog_compiler_static_CXX='-non_shared'
20443 case $cc_basename in
20445 # Sun C++ 4.2, 5.x and Centerline C++
20446 lt_prog_compiler_pic_CXX='-KPIC'
20447 lt_prog_compiler_static_CXX='-Bstatic'
20448 lt_prog_compiler_wl_CXX='-Qoption ld '
20451 # Green Hills C++ Compiler
20452 lt_prog_compiler_pic_CXX='-PIC'
20459 case $cc_basename in
20462 lt_prog_compiler_pic_CXX='-pic'
20463 lt_prog_compiler_static_CXX='-Bstatic'
20467 lt_prog_compiler_pic_CXX='-pic'
20474 case $cc_basename in
20476 # NonStop-UX NCC 3.20
20477 lt_prog_compiler_pic_CXX='-KPIC'
20483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20484 case $cc_basename in
20486 lt_prog_compiler_wl_CXX='-Wl,'
20487 lt_prog_compiler_pic_CXX='-KPIC'
20488 lt_prog_compiler_static_CXX='-Bstatic'
20495 lt_prog_compiler_can_build_shared_CXX=no
20500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20501 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20504 # Check to make sure the PIC flag actually works.
20506 if test -n "$lt_prog_compiler_pic_CXX"; then
20508 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20509 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20510 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 lt_cv_prog_compiler_pic_works_CXX=no
20514 ac_outfile=conftest.$ac_objext
20515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20516 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20517 # Insert the option either (1) after the last *FLAGS variable, or
20518 # (2) before a word containing "conftest.", or (3) at the end.
20519 # Note that $ac_compile itself does not contain backslashes and begins
20520 # with a dollar sign (not a hyphen), so the echo should work correctly.
20521 # The option is referenced via a variable to avoid confusing sed.
20522 lt_compile=`echo "$ac_compile" | $SED \
20523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20525 -e 's:$: $lt_compiler_flag:'`
20526 (eval echo "\"\$as_me:20526: $lt_compile\"" >&5)
20527 (eval "$lt_compile" 2>conftest.err)
20529 cat conftest.err >&5
20530 echo "$as_me:20530: \$? = $ac_status" >&5
20531 if (exit $ac_status) && test -s "$ac_outfile"; then
20532 # The compiler can only warn and ignore the option if not recognized
20533 # So say no if there are warnings other than the usual output.
20534 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20537 lt_cv_prog_compiler_pic_works_CXX=yes
20543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20544 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20546 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20547 case $lt_prog_compiler_pic_CXX in
20549 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20552 lt_prog_compiler_pic_CXX=
20553 lt_prog_compiler_can_build_shared_CXX=no
20558 # For platforms which do not support PIC, -DPIC is meaningless:
20560 lt_prog_compiler_pic_CXX=
20563 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20568 # Check to make sure the static flag actually works.
20570 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20571 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20572 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20573 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 lt_cv_prog_compiler_static_works_CXX=no
20577 save_LDFLAGS="$LDFLAGS"
20578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20579 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20581 # The linker can only warn and ignore the option if not recognized
20582 # So say no if there are warnings
20583 if test -s conftest.err; then
20584 # Append any errors to the config.log.
20585 cat conftest.err 1>&5
20586 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20588 if diff conftest.exp conftest.er2 >/dev/null; then
20589 lt_cv_prog_compiler_static_works_CXX=yes
20592 lt_cv_prog_compiler_static_works_CXX=yes
20596 LDFLAGS="$save_LDFLAGS"
20599 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20600 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
20602 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20605 lt_prog_compiler_static_CXX=
20609 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20610 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20611 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 lt_cv_prog_compiler_c_o_CXX=no
20615 $rm -r conftest 2>/dev/null
20619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20621 lt_compiler_flag="-o out/conftest2.$ac_objext"
20622 # Insert the option either (1) after the last *FLAGS variable, or
20623 # (2) before a word containing "conftest.", or (3) at the end.
20624 # Note that $ac_compile itself does not contain backslashes and begins
20625 # with a dollar sign (not a hyphen), so the echo should work correctly.
20626 lt_compile=`echo "$ac_compile" | $SED \
20627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20629 -e 's:$: $lt_compiler_flag:'`
20630 (eval echo "\"\$as_me:20630: $lt_compile\"" >&5)
20631 (eval "$lt_compile" 2>out/conftest.err)
20633 cat out/conftest.err >&5
20634 echo "$as_me:20634: \$? = $ac_status" >&5
20635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20637 # The compiler can only warn and ignore the option if not recognized
20638 # So say no if there are warnings
20639 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20642 lt_cv_prog_compiler_c_o_CXX=yes
20647 # SGI C++ compiler will create directory out/ii_files/ for
20648 # template instantiation
20649 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20650 $rm out/* && rmdir out
20656 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20657 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20660 hard_links="nottested"
20661 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20662 # do not overwrite the value of need_locks provided by the user
20663 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20664 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20669 ln conftest.a conftest.b 2>&5 || hard_links=no
20670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20671 { echo "$as_me:$LINENO: result: $hard_links" >&5
20672 echo "${ECHO_T}$hard_links" >&6; }
20673 if test "$hard_links" = no; then
20674 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20675 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20682 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20683 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20685 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20688 # If we're using GNU nm, then we don't want the "-C" option.
20689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20690 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20691 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'
20693 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'
20697 export_symbols_cmds_CXX="$ltdll_cmds"
20700 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'
20702 linux* | k*bsd*-gnu)
20703 link_all_deplibs_CXX=no
20706 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20709 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20711 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20712 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20713 test "$ld_shlibs_CXX" = no && can_build_shared=no
20716 # Do we need to explicitly link libc?
20718 case "x$archive_cmds_need_lc_CXX" in
20720 # Assume -lc should be added
20721 archive_cmds_need_lc_CXX=yes
20723 if test "$enable_shared" = yes && test "$GCC" = yes; then
20724 case $archive_cmds_CXX in
20726 # FIXME: we may have to deal with multi-command sequences.
20729 # Test whether the compiler implicitly links with -lc since on some
20730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20731 # to ld, don't add -lc before -lgcc.
20732 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20733 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20738 (eval $ac_compile) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } 2>conftest.err; then
20744 libobjs=conftest.$ac_objext
20746 wl=$lt_prog_compiler_wl_CXX
20747 pic_flag=$lt_prog_compiler_pic_CXX
20753 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20754 allow_undefined_flag_CXX=
20755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20756 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }
20761 archive_cmds_need_lc_CXX=no
20763 archive_cmds_need_lc_CXX=yes
20765 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20767 cat conftest.err 1>&5
20770 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20771 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20778 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20780 library_names_spec=
20781 libname_spec='lib$name'
20785 postuninstall_cmds=
20789 shlibpath_overrides_runpath=unknown
20791 dynamic_linker="$host_os ld.so"
20792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20794 need_lib_prefix=unknown
20795 hardcode_into_libs=no
20797 # when you set need_version to no, make sure it does not cause -set_version
20798 # flags to be left without arguments
20799 need_version=unknown
20804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20805 shlibpath_var=LIBPATH
20807 # AIX 3 has no versioning support, so we append a major version to the name.
20808 soname_spec='${libname}${release}${shared_ext}$major'
20815 hardcode_into_libs=yes
20816 if test "$host_cpu" = ia64; then
20817 # AIX 5 supports IA64
20818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20819 shlibpath_var=LD_LIBRARY_PATH
20821 # With GCC up to 2.95.x, collect2 would create an import file
20822 # for dependence libraries. The import file would start with
20823 # the line `#! .'. This would cause the generated library to
20824 # depend on `.', always an invalid library. This was fixed in
20825 # development snapshots of GCC prior to 3.0.
20827 aix4 | aix4.[01] | aix4.[01].*)
20828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20830 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20833 can_build_shared=no
20837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20838 # soname into executable. Probably we can add versioning support to
20839 # collect2, so additional links can be useful in future.
20840 if test "$aix_use_runtimelinking" = yes; then
20841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20842 # instead of lib<name>.a to let people know that these are not
20843 # typical AIX shared libraries.
20844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846 # We preserve .a as extension for shared libraries through AIX4.2
20847 # and later when we are not doing run time linking.
20848 library_names_spec='${libname}${release}.a $libname.a'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20851 shlibpath_var=LIBPATH
20856 library_names_spec='$libname.ixlibrary $libname.a'
20857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20858 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'
20862 library_names_spec='${libname}${shared_ext}'
20863 dynamic_linker="$host_os ld.so"
20864 shlibpath_var=LIBRARY_PATH
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20876 # the default ld.so.conf also contains /usr/contrib/lib and
20877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20878 # libtool to hard-code these into programs
20881 cygwin* | mingw* | pw32*)
20882 version_type=windows
20887 case $GCC,$host_os in
20888 yes,cygwin* | yes,mingw* | yes,pw32*)
20889 library_names_spec='$libname.dll.a'
20890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20891 postinstall_cmds='base_file=`basename \${file}`~
20892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20893 dldir=$destdir/`dirname \$dlpath`~
20894 test -d \$dldir || mkdir -p \$dldir~
20895 $install_prog $dir/$dlname \$dldir/$dlname~
20896 chmod a+x \$dldir/$dlname'
20897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20898 dlpath=$dir/\$dldll~
20900 shlibpath_overrides_runpath=yes
20904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20909 # MinGW DLLs use traditional 'lib' prefix
20910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20913 # It is most probably a Windows format PATH printed by
20914 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20915 # path with ; separators, and with drive letters. We can handle the
20916 # drive letters (cygwin fileutils understands them), so leave them,
20917 # especially as we might pass files found there to a mingw objdump,
20918 # which wouldn't understand a cygwinified path. Ahh.
20919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20925 # pw32 DLLs use 'pw' prefix rather than 'lib'
20926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20935 dynamic_linker='Win32 ld.exe'
20936 # FIXME: first we should search . and the directory the executable is in
20940 darwin* | rhapsody*)
20941 dynamic_linker="$host_os dyld"
20942 version_type=darwin
20945 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20946 soname_spec='${libname}${release}${major}$shared_ext'
20947 shlibpath_overrides_runpath=yes
20948 shlibpath_var=DYLD_LIBRARY_PATH
20949 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20959 soname_spec='${libname}${release}${shared_ext}$major'
20960 shlibpath_var=LD_LIBRARY_PATH
20967 freebsd* | dragonfly*)
20968 # DragonFly does not have aout. When/if they implement a new
20969 # versioning mechanism, adjust this.
20970 if test -x /usr/bin/objformat; then
20971 objformat=`/usr/bin/objformat`
20974 freebsd[123]*) objformat=aout ;;
20975 *) objformat=elf ;;
20978 version_type=freebsd-$objformat
20979 case $version_type in
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20990 shlibpath_var=LD_LIBRARY_PATH
20993 shlibpath_overrides_runpath=yes
20995 freebsd3.[01]* | freebsdelf3.[01]*)
20996 shlibpath_overrides_runpath=yes
20997 hardcode_into_libs=yes
20999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21001 shlibpath_overrides_runpath=no
21002 hardcode_into_libs=yes
21004 *) # from 4.6 on, and DragonFly
21005 shlibpath_overrides_runpath=yes
21006 hardcode_into_libs=yes
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21016 soname_spec='${libname}${release}${shared_ext}$major'
21017 shlibpath_var=LD_LIBRARY_PATH
21018 hardcode_into_libs=yes
21021 hpux9* | hpux10* | hpux11*)
21022 # Give a soname corresponding to the major version so that dld.sl refuses to
21023 # link against other versions.
21030 hardcode_into_libs=yes
21031 dynamic_linker="$host_os dld.so"
21032 shlibpath_var=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21035 soname_spec='${libname}${release}${shared_ext}$major'
21036 if test "X$HPUX_IA64_MODE" = X32; then
21037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21045 hardcode_into_libs=yes
21046 dynamic_linker="$host_os dld.sl"
21047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050 soname_spec='${libname}${release}${shared_ext}$major'
21051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21056 dynamic_linker="$host_os dld.sl"
21057 shlibpath_var=SHLIB_PATH
21058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21060 soname_spec='${libname}${release}${shared_ext}$major'
21063 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21064 postinstall_cmds='chmod 555 $lib'
21071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21072 soname_spec='${libname}${release}${shared_ext}$major'
21073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21074 shlibpath_var=LD_LIBRARY_PATH
21075 shlibpath_overrides_runpath=no
21076 hardcode_into_libs=yes
21079 irix5* | irix6* | nonstopux*)
21081 nonstopux*) version_type=nonstopux ;;
21083 if test "$lt_cv_prog_gnu_ld" = yes; then
21091 soname_spec='${libname}${release}${shared_ext}$major'
21092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21094 irix5* | nonstopux*)
21095 libsuff= shlibsuff=
21098 case $LD in # libtool.m4 will add one of these switches to LD
21099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21100 libsuff= shlibsuff= libmagic=32-bit;;
21101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21102 libsuff=32 shlibsuff=N32 libmagic=N32;;
21103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21105 *) libsuff= shlibsuff= libmagic=never-match;;
21109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21110 shlibpath_overrides_runpath=no
21111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21113 hardcode_into_libs=yes
21116 # No shared lib support for Linux oldld, aout, or coff.
21117 linux*oldld* | linux*aout* | linux*coff*)
21121 # This must be Linux ELF.
21122 linux* | k*bsd*-gnu)
21126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21127 soname_spec='${libname}${release}${shared_ext}$major'
21128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21129 shlibpath_var=LD_LIBRARY_PATH
21130 shlibpath_overrides_runpath=no
21131 # This implies no fast_install, which is unacceptable.
21132 # Some rework will be needed to allow for fast_install
21133 # before this can be enabled.
21134 hardcode_into_libs=yes
21136 # Append ld.so.conf contents to the search path
21137 if test -f /etc/ld.so.conf; then
21138 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' ' '`
21139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21142 # We used to test for /lib/ld.so.1 and disable shared libraries on
21143 # powerpc, because MkLinux only supported shared libraries with the
21144 # GNU dynamic linker. Since this was broken with cross compilers,
21145 # most powerpc-linux boxes support dynamic linking these days and
21146 # people can always --disable-shared, the test was removed, and we
21147 # assume the GNU/Linux dynamic linker is in use.
21148 dynamic_linker='GNU/Linux ld.so'
21155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21156 soname_spec='${libname}${release}${shared_ext}$major'
21157 shlibpath_var=LD_LIBRARY_PATH
21158 shlibpath_overrides_runpath=no
21159 hardcode_into_libs=yes
21160 dynamic_linker='NetBSD ld.elf_so'
21167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21170 dynamic_linker='NetBSD (a.out) ld.so'
21172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21173 soname_spec='${libname}${release}${shared_ext}$major'
21174 dynamic_linker='NetBSD ld.elf_so'
21176 shlibpath_var=LD_LIBRARY_PATH
21177 shlibpath_overrides_runpath=yes
21178 hardcode_into_libs=yes
21183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21184 shlibpath_var=LD_LIBRARY_PATH
21185 shlibpath_overrides_runpath=yes
21192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21193 soname_spec='${libname}${release}${shared_ext}$major'
21194 shlibpath_var=LD_LIBRARY_PATH
21195 shlibpath_overrides_runpath=yes
21200 sys_lib_dlsearch_path_spec="/usr/lib"
21202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21205 *) need_version=no ;;
21207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21209 shlibpath_var=LD_LIBRARY_PATH
21210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21212 openbsd2.[89] | openbsd2.[89].*)
21213 shlibpath_overrides_runpath=no
21216 shlibpath_overrides_runpath=yes
21220 shlibpath_overrides_runpath=yes
21225 libname_spec='$name'
21228 library_names_spec='$libname${shared_ext} $libname.a'
21229 dynamic_linker='OS/2 ld.exe'
21230 shlibpath_var=LIBPATH
21233 osf3* | osf4* | osf5*)
21237 soname_spec='${libname}${release}${shared_ext}$major'
21238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21239 shlibpath_var=LD_LIBRARY_PATH
21240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21253 soname_spec='${libname}${release}${shared_ext}$major'
21254 shlibpath_var=LD_LIBRARY_PATH
21255 shlibpath_overrides_runpath=yes
21256 hardcode_into_libs=yes
21257 # ldd complains unless libraries are executable
21258 postinstall_cmds='chmod +x $lib'
21263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21265 shlibpath_var=LD_LIBRARY_PATH
21266 shlibpath_overrides_runpath=yes
21267 if test "$with_gnu_ld" = yes; then
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21278 case $host_vendor in
21280 shlibpath_overrides_runpath=no
21282 export_dynamic_flag_spec='${wl}-Blargedynsym'
21283 runpath_var=LD_RUN_PATH
21291 shlibpath_overrides_runpath=no
21292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21298 if test -d /usr/nec ;then
21300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21301 soname_spec='$libname${shared_ext}.$major'
21302 shlibpath_var=LD_LIBRARY_PATH
21306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21307 version_type=freebsd-elf
21310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21311 soname_spec='${libname}${release}${shared_ext}$major'
21312 shlibpath_var=LD_LIBRARY_PATH
21313 hardcode_into_libs=yes
21314 if test "$with_gnu_ld" = yes; then
21315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21316 shlibpath_overrides_runpath=no
21318 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21319 shlibpath_overrides_runpath=yes
21322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21326 sys_lib_dlsearch_path_spec='/usr/lib'
21331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21332 soname_spec='${libname}${release}${shared_ext}$major'
21333 shlibpath_var=LD_LIBRARY_PATH
21340 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21341 echo "${ECHO_T}$dynamic_linker" >&6; }
21342 test "$dynamic_linker" = no && can_build_shared=no
21344 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21360 if test "$GCC" = yes; then
21361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21364 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21365 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21366 hardcode_action_CXX=
21367 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21368 test -n "$runpath_var_CXX" || \
21369 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21371 # We can hardcode non-existant directories.
21372 if test "$hardcode_direct_CXX" != no &&
21373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21374 # have to relink, otherwise we might link with an installed library
21375 # when we should be linking with a yet-to-be-installed one
21376 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21377 test "$hardcode_minus_L_CXX" != no; then
21378 # Linking always hardcodes the temporary library directory.
21379 hardcode_action_CXX=relink
21381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21382 hardcode_action_CXX=immediate
21385 # We cannot hardcode anything, or else we can only hardcode existing
21387 hardcode_action_CXX=unsupported
21389 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21390 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21392 if test "$hardcode_action_CXX" = relink; then
21393 # Fast installation is not supported
21394 enable_fast_install=no
21395 elif test "$shlibpath_overrides_runpath" = yes ||
21396 test "$enable_shared" = no; then
21397 # Fast installation is not necessary
21398 enable_fast_install=needless
21402 # The else clause should only fire when bootstrapping the
21403 # libtool distribution, otherwise you forgot to ship ltmain.sh
21404 # with your package, and you will get complaints that there are
21405 # no rules to generate ltmain.sh.
21406 if test -f "$ltmain"; then
21407 # See if we are running on zsh, and set the options which allow our commands through
21408 # without removal of \ escapes.
21409 if test -n "${ZSH_VERSION+set}" ; then
21410 setopt NO_GLOB_SUBST
21412 # Now quote all the things that may contain metacharacters while being
21413 # careful not to overquote the AC_SUBSTed values. We take copies of the
21414 # variables and quote the copies for generation of the libtool script.
21415 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21417 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21418 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21419 deplibs_check_method reload_flag reload_cmds need_locks \
21420 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21421 lt_cv_sys_global_symbol_to_c_name_address \
21422 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21423 old_postinstall_cmds old_postuninstall_cmds \
21427 lt_prog_compiler_wl_CXX \
21428 lt_prog_compiler_pic_CXX \
21429 lt_prog_compiler_static_CXX \
21430 lt_prog_compiler_no_builtin_flag_CXX \
21431 export_dynamic_flag_spec_CXX \
21432 thread_safe_flag_spec_CXX \
21433 whole_archive_flag_spec_CXX \
21434 enable_shared_with_static_runtimes_CXX \
21435 old_archive_cmds_CXX \
21436 old_archive_from_new_cmds_CXX \
21437 predep_objects_CXX \
21438 postdep_objects_CXX \
21441 compiler_lib_search_path_CXX \
21442 compiler_lib_search_dirs_CXX \
21444 archive_expsym_cmds_CXX \
21445 postinstall_cmds_CXX \
21446 postuninstall_cmds_CXX \
21447 old_archive_from_expsyms_cmds_CXX \
21448 allow_undefined_flag_CXX \
21449 no_undefined_flag_CXX \
21450 export_symbols_cmds_CXX \
21451 hardcode_libdir_flag_spec_CXX \
21452 hardcode_libdir_flag_spec_ld_CXX \
21453 hardcode_libdir_separator_CXX \
21454 hardcode_automatic_CXX \
21456 module_expsym_cmds_CXX \
21457 lt_cv_prog_compiler_c_o_CXX \
21458 fix_srcfile_path_CXX \
21459 exclude_expsyms_CXX \
21460 include_expsyms_CXX; do
21463 old_archive_cmds_CXX | \
21464 old_archive_from_new_cmds_CXX | \
21465 archive_cmds_CXX | \
21466 archive_expsym_cmds_CXX | \
21467 module_cmds_CXX | \
21468 module_expsym_cmds_CXX | \
21469 old_archive_from_expsyms_cmds_CXX | \
21470 export_symbols_cmds_CXX | \
21471 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21472 postinstall_cmds | postuninstall_cmds | \
21473 old_postinstall_cmds | old_postuninstall_cmds | \
21474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21475 # Double-quote double-evaled strings.
21476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21485 *'\$0 --fallback-echo"')
21486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21492 cat <<__EOF__ >> "$cfgfile"
21493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21497 # Shell to use when invoking shell scripts.
21500 # Whether or not to build shared libraries.
21501 build_libtool_libs=$enable_shared
21503 # Whether or not to build static libraries.
21504 build_old_libs=$enable_static
21506 # Whether or not to add -lc for building shared libraries.
21507 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21509 # Whether or not to disallow shared libs when runtime libs are static
21510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21512 # Whether or not to optimize for fast installation.
21513 fast_install=$enable_fast_install
21516 host_alias=$host_alias
21520 # The build system.
21521 build_alias=$build_alias
21525 # An echo program that does not interpret backslashes.
21530 AR_FLAGS=$lt_AR_FLAGS
21535 # LTCC compiler flags.
21536 LTCFLAGS=$lt_LTCFLAGS
21538 # A language-specific compiler.
21539 CC=$lt_compiler_CXX
21541 # Is the compiler the GNU C compiler?
21547 # The linker used to build libraries.
21550 # Whether we need hard or soft links.
21553 # A BSD-compatible nm program.
21556 # A symbol stripping program
21559 # Used to examine libraries when file_magic_cmd begins "file"
21560 MAGIC_CMD=$MAGIC_CMD
21562 # Used on cygwin: DLL creation program.
21565 # Used on cygwin: object dumper.
21568 # Used on cygwin: assembler.
21571 # The name of the directory that contains temporary libtool files.
21574 # How to create reloadable object files.
21575 reload_flag=$lt_reload_flag
21576 reload_cmds=$lt_reload_cmds
21578 # How to pass a linker flag through the compiler.
21579 wl=$lt_lt_prog_compiler_wl_CXX
21581 # Object file suffix (normally "o").
21582 objext="$ac_objext"
21584 # Old archive suffix (normally "a").
21587 # Shared library suffix (normally ".so").
21588 shrext_cmds='$shrext_cmds'
21590 # Executable file suffix (normally "").
21593 # Additional compiler flags for building library objects.
21594 pic_flag=$lt_lt_prog_compiler_pic_CXX
21597 # What is the maximum length of a command?
21598 max_cmd_len=$lt_cv_sys_max_cmd_len
21600 # Does compiler simultaneously support -c and -o options?
21601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21603 # Must we lock files when doing compilation?
21604 need_locks=$lt_need_locks
21606 # Do we need the lib prefix for modules?
21607 need_lib_prefix=$need_lib_prefix
21609 # Do we need a version for libraries?
21610 need_version=$need_version
21612 # Whether dlopen is supported.
21613 dlopen_support=$enable_dlopen
21615 # Whether dlopen of programs is supported.
21616 dlopen_self=$enable_dlopen_self
21618 # Whether dlopen of statically linked programs is supported.
21619 dlopen_self_static=$enable_dlopen_self_static
21621 # Compiler flag to prevent dynamic linking.
21622 link_static_flag=$lt_lt_prog_compiler_static_CXX
21624 # Compiler flag to turn off builtin functions.
21625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21627 # Compiler flag to allow reflexive dlopens.
21628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21630 # Compiler flag to generate shared objects directly from archives.
21631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21633 # Compiler flag to generate thread-safe objects.
21634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21636 # Library versioning type.
21637 version_type=$version_type
21639 # Format of library name prefix.
21640 libname_spec=$lt_libname_spec
21642 # List of archive names. First name is the real one, the rest are links.
21643 # The last name is the one that the linker finds with -lNAME.
21644 library_names_spec=$lt_library_names_spec
21646 # The coded name of the library, if different from the real name.
21647 soname_spec=$lt_soname_spec
21649 # Commands used to build and install an old-style archive.
21651 old_archive_cmds=$lt_old_archive_cmds_CXX
21652 old_postinstall_cmds=$lt_old_postinstall_cmds
21653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21655 # Create an old-style archive from a shared archive.
21656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21658 # Create a temporary old-style archive to link instead of a shared archive.
21659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21661 # Commands used to build and install a shared archive.
21662 archive_cmds=$lt_archive_cmds_CXX
21663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21664 postinstall_cmds=$lt_postinstall_cmds
21665 postuninstall_cmds=$lt_postuninstall_cmds
21667 # Commands used to build a loadable module (assumed same as above if empty)
21668 module_cmds=$lt_module_cmds_CXX
21669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21671 # Commands to strip libraries.
21672 old_striplib=$lt_old_striplib
21673 striplib=$lt_striplib
21675 # Dependencies to place before the objects being linked to create a
21677 predep_objects=$lt_predep_objects_CXX
21679 # Dependencies to place after the objects being linked to create a
21681 postdep_objects=$lt_postdep_objects_CXX
21683 # Dependencies to place before the objects being linked to create a
21685 predeps=$lt_predeps_CXX
21687 # Dependencies to place after the objects being linked to create a
21689 postdeps=$lt_postdeps_CXX
21691 # The directories searched by this compiler when creating a shared
21693 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21695 # The library search path used internally by the compiler when linking
21696 # a shared library.
21697 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21699 # Method to check whether dependent libraries are shared objects.
21700 deplibs_check_method=$lt_deplibs_check_method
21702 # Command to use when deplibs_check_method == file_magic.
21703 file_magic_cmd=$lt_file_magic_cmd
21705 # Flag that allows shared libraries with undefined symbols to be built.
21706 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21708 # Flag that forces no undefined symbols.
21709 no_undefined_flag=$lt_no_undefined_flag_CXX
21711 # Commands used to finish a libtool library installation in a directory.
21712 finish_cmds=$lt_finish_cmds
21714 # Same as above, but a single script fragment to be evaled but not shown.
21715 finish_eval=$lt_finish_eval
21717 # Take the output of nm and produce a listing of raw symbols and C names.
21718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21720 # Transform the output of nm in a proper C declaration
21721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21723 # Transform the output of nm in a C name address pair
21724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21726 # This is the shared library runtime path variable.
21727 runpath_var=$runpath_var
21729 # This is the shared library path variable.
21730 shlibpath_var=$shlibpath_var
21732 # Is shlibpath searched before the hard-coded library search path?
21733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21735 # How to hardcode a shared library path into an executable.
21736 hardcode_action=$hardcode_action_CXX
21738 # Whether we should hardcode library paths into libraries.
21739 hardcode_into_libs=$hardcode_into_libs
21741 # Flag to hardcode \$libdir into a binary during linking.
21742 # This must work even if \$libdir does not exist.
21743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21745 # If ld is used when linking, flag to hardcode \$libdir into
21746 # a binary during linking. This must work even if \$libdir does
21748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21750 # Whether we need a single -rpath flag with a separated argument.
21751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21754 # resulting binary.
21755 hardcode_direct=$hardcode_direct_CXX
21757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21758 # resulting binary.
21759 hardcode_minus_L=$hardcode_minus_L_CXX
21761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21762 # the resulting binary.
21763 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21765 # Set to yes if building a shared library automatically hardcodes DIR into the library
21766 # and all subsequent libraries and executables linked against it.
21767 hardcode_automatic=$hardcode_automatic_CXX
21769 # Variables whose values should be saved in libtool wrapper scripts and
21770 # restored at relink time.
21771 variables_saved_for_relink="$variables_saved_for_relink"
21773 # Whether libtool must link a program against all its dependency libraries.
21774 link_all_deplibs=$link_all_deplibs_CXX
21776 # Compile-time system search path for libraries
21777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21779 # Run-time system search path for libraries
21780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21782 # Fix the shell variable \$srcfile for the compiler.
21783 fix_srcfile_path=$lt_fix_srcfile_path
21785 # Set to yes if exported symbols are required.
21786 always_export_symbols=$always_export_symbols_CXX
21788 # The commands to list exported symbols.
21789 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21791 # The commands to extract the exported symbol list from a shared archive.
21792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21794 # Symbols that should not be listed in the preloaded symbols.
21795 exclude_expsyms=$lt_exclude_expsyms_CXX
21797 # Symbols that must always be exported.
21798 include_expsyms=$lt_include_expsyms_CXX
21800 # ### END LIBTOOL TAG CONFIG: $tagname
21806 # If there is no Makefile yet, we rely on a make rule to execute
21807 # `config.status --recheck' to rerun these tests and create the
21808 # libtool script then.
21809 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21810 if test -f "$ltmain_in"; then
21811 test -f Makefile && make "$ltmain"
21817 ac_cpp='$CPP $CPPFLAGS'
21818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21826 with_gnu_ldcxx=$with_gnu_ld
21827 with_gnu_ld=$lt_save_with_gnu_ld
21828 lt_cv_path_LDCXX=$lt_cv_path_LD
21829 lt_cv_path_LD=$lt_save_path_LD
21830 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21831 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21839 if test -n "$F77" && test "X$F77" != "Xno"; then
21842 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21843 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21844 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21847 archive_cmds_need_lc_F77=no
21848 allow_undefined_flag_F77=
21849 always_export_symbols_F77=no
21850 archive_expsym_cmds_F77=
21851 export_dynamic_flag_spec_F77=
21852 hardcode_direct_F77=no
21853 hardcode_libdir_flag_spec_F77=
21854 hardcode_libdir_flag_spec_ld_F77=
21855 hardcode_libdir_separator_F77=
21856 hardcode_minus_L_F77=no
21857 hardcode_automatic_F77=no
21859 module_expsym_cmds_F77=
21860 link_all_deplibs_F77=unknown
21861 old_archive_cmds_F77=$old_archive_cmds
21862 no_undefined_flag_F77=
21863 whole_archive_flag_spec_F77=
21864 enable_shared_with_static_runtimes_F77=no
21866 # Source file extension for f77 test sources.
21869 # Object file extension for compiled f77 test sources.
21873 # Code to be used in simple compile tests
21874 lt_simple_compile_test_code="\
21880 # Code to be used in simple link tests
21881 lt_simple_link_test_code="\
21886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21888 # If no C compiler was specified, use CC.
21891 # If no C compiler flags were specified, use CFLAGS.
21892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21894 # Allow CC to be a program name with arguments.
21898 # save warnings/boilerplate of simple test code
21899 ac_outfile=conftest.$ac_objext
21900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21902 _lt_compiler_boilerplate=`cat conftest.err`
21905 ac_outfile=conftest.$ac_objext
21906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21908 _lt_linker_boilerplate=`cat conftest.err`
21912 # Allow CC to be a program name with arguments.
21917 for cc_temp in $compiler""; do
21919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21928 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21929 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21930 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21931 echo "${ECHO_T}$can_build_shared" >&6; }
21933 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21934 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21935 test "$can_build_shared" = "no" && enable_shared=no
21937 # On AIX, shared libraries and static libraries use the same namespace, and
21938 # are all built from PIC.
21941 test "$enable_shared" = yes && enable_static=no
21942 if test -n "$RANLIB"; then
21943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21944 postinstall_cmds='$RANLIB $lib'
21948 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21949 test "$enable_shared" = yes && enable_static=no
21953 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21954 echo "${ECHO_T}$enable_shared" >&6; }
21956 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21957 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21958 # Make sure either enable_shared or enable_static is yes.
21959 test "$enable_shared" = yes || enable_static=yes
21960 { echo "$as_me:$LINENO: result: $enable_static" >&5
21961 echo "${ECHO_T}$enable_static" >&6; }
21966 lt_prog_compiler_wl_F77=
21967 lt_prog_compiler_pic_F77=
21968 lt_prog_compiler_static_F77=
21970 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21971 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21973 if test "$GCC" = yes; then
21974 lt_prog_compiler_wl_F77='-Wl,'
21975 lt_prog_compiler_static_F77='-static'
21979 # All AIX code is PIC.
21980 if test "$host_cpu" = ia64; then
21981 # AIX 5 now supports IA64 processor
21982 lt_prog_compiler_static_F77='-Bstatic'
21987 # FIXME: we need at least 68020 code to build shared libraries, but
21988 # adding the `-m68020' flag to GCC prevents building anything better,
21990 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21994 # PIC is the default for these OSes.
21997 mingw* | cygwin* | pw32* | os2*)
21998 # This hack is so that the source file can tell whether it is being
21999 # built for inclusion in a dll (and should export symbols for example).
22000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22001 # (--disable-auto-import) libraries
22002 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22005 darwin* | rhapsody*)
22006 # PIC is the default on this platform
22007 # Common symbols not allowed in MH_DYLIB files
22008 lt_prog_compiler_pic_F77='-fno-common'
22012 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22013 # Instead, we relocate shared libraries at runtime.
22017 # Just because we use GCC doesn't mean we suddenly get shared libraries
22018 # on systems that don't support them.
22019 lt_prog_compiler_can_build_shared_F77=no
22024 if test -d /usr/nec; then
22025 lt_prog_compiler_pic_F77=-Kconform_pic
22030 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22031 # not for PA HP-UX.
22037 lt_prog_compiler_pic_F77='-fPIC'
22043 lt_prog_compiler_pic_F77='-fPIC'
22047 # PORTME Check for flag to pass linker flags through the system compiler.
22050 lt_prog_compiler_wl_F77='-Wl,'
22051 if test "$host_cpu" = ia64; then
22052 # AIX 5 now supports IA64 processor
22053 lt_prog_compiler_static_F77='-Bstatic'
22055 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22059 # PIC is the default on this platform
22060 # Common symbols not allowed in MH_DYLIB files
22061 case $cc_basename in
22063 lt_prog_compiler_pic_F77='-qnocommon'
22064 lt_prog_compiler_wl_F77='-Wl,'
22069 mingw* | cygwin* | pw32* | os2*)
22070 # This hack is so that the source file can tell whether it is being
22071 # built for inclusion in a dll (and should export symbols for example).
22072 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22075 hpux9* | hpux10* | hpux11*)
22076 lt_prog_compiler_wl_F77='-Wl,'
22077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22078 # not for PA HP-UX.
22084 lt_prog_compiler_pic_F77='+Z'
22087 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22088 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22091 irix5* | irix6* | nonstopux*)
22092 lt_prog_compiler_wl_F77='-Wl,'
22093 # PIC (with -KPIC) is the default.
22094 lt_prog_compiler_static_F77='-non_shared'
22098 lt_prog_compiler_pic_F77='-KPIC'
22099 lt_prog_compiler_static_F77='-Bstatic'
22102 linux* | k*bsd*-gnu)
22103 case $cc_basename in
22105 lt_prog_compiler_wl_F77='-Wl,'
22106 lt_prog_compiler_pic_F77='-KPIC'
22107 lt_prog_compiler_static_F77='-static'
22109 pgcc* | pgf77* | pgf90* | pgf95*)
22110 # Portland Group compilers (*not* the Pentium gcc compiler,
22111 # which looks to be a dead project)
22112 lt_prog_compiler_wl_F77='-Wl,'
22113 lt_prog_compiler_pic_F77='-fpic'
22114 lt_prog_compiler_static_F77='-Bstatic'
22117 lt_prog_compiler_wl_F77='-Wl,'
22118 # All Alpha code is PIC.
22119 lt_prog_compiler_static_F77='-non_shared'
22122 case `$CC -V 2>&1 | sed 5q` in
22125 lt_prog_compiler_pic_F77='-KPIC'
22126 lt_prog_compiler_static_F77='-Bstatic'
22127 lt_prog_compiler_wl_F77='-Wl,'
22130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
22131 lt_prog_compiler_pic_F77='-KPIC'
22132 lt_prog_compiler_static_F77='-Bstatic'
22133 lt_prog_compiler_wl_F77=''
22140 osf3* | osf4* | osf5*)
22141 lt_prog_compiler_wl_F77='-Wl,'
22142 # All OSF/1 code is PIC.
22143 lt_prog_compiler_static_F77='-non_shared'
22147 lt_prog_compiler_static_F77='-non_shared'
22151 lt_prog_compiler_pic_F77='-KPIC'
22152 lt_prog_compiler_static_F77='-Bstatic'
22153 case $cc_basename in
22154 f77* | f90* | f95*)
22155 lt_prog_compiler_wl_F77='-Qoption ld ';;
22157 lt_prog_compiler_wl_F77='-Wl,';;
22162 lt_prog_compiler_wl_F77='-Qoption ld '
22163 lt_prog_compiler_pic_F77='-PIC'
22164 lt_prog_compiler_static_F77='-Bstatic'
22167 sysv4 | sysv4.2uw2* | sysv4.3*)
22168 lt_prog_compiler_wl_F77='-Wl,'
22169 lt_prog_compiler_pic_F77='-KPIC'
22170 lt_prog_compiler_static_F77='-Bstatic'
22174 if test -d /usr/nec ;then
22175 lt_prog_compiler_pic_F77='-Kconform_pic'
22176 lt_prog_compiler_static_F77='-Bstatic'
22180 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22181 lt_prog_compiler_wl_F77='-Wl,'
22182 lt_prog_compiler_pic_F77='-KPIC'
22183 lt_prog_compiler_static_F77='-Bstatic'
22187 lt_prog_compiler_wl_F77='-Wl,'
22188 lt_prog_compiler_can_build_shared_F77=no
22192 lt_prog_compiler_pic_F77='-pic'
22193 lt_prog_compiler_static_F77='-Bstatic'
22197 lt_prog_compiler_can_build_shared_F77=no
22202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22203 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
22206 # Check to make sure the PIC flag actually works.
22208 if test -n "$lt_prog_compiler_pic_F77"; then
22210 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22211 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
22212 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 lt_cv_prog_compiler_pic_works_F77=no
22216 ac_outfile=conftest.$ac_objext
22217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22218 lt_compiler_flag="$lt_prog_compiler_pic_F77"
22219 # Insert the option either (1) after the last *FLAGS variable, or
22220 # (2) before a word containing "conftest.", or (3) at the end.
22221 # Note that $ac_compile itself does not contain backslashes and begins
22222 # with a dollar sign (not a hyphen), so the echo should work correctly.
22223 # The option is referenced via a variable to avoid confusing sed.
22224 lt_compile=`echo "$ac_compile" | $SED \
22225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22227 -e 's:$: $lt_compiler_flag:'`
22228 (eval echo "\"\$as_me:22228: $lt_compile\"" >&5)
22229 (eval "$lt_compile" 2>conftest.err)
22231 cat conftest.err >&5
22232 echo "$as_me:22232: \$? = $ac_status" >&5
22233 if (exit $ac_status) && test -s "$ac_outfile"; then
22234 # The compiler can only warn and ignore the option if not recognized
22235 # So say no if there are warnings other than the usual output.
22236 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22239 lt_cv_prog_compiler_pic_works_F77=yes
22245 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
22246 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
22248 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
22249 case $lt_prog_compiler_pic_F77 in
22251 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22254 lt_prog_compiler_pic_F77=
22255 lt_prog_compiler_can_build_shared_F77=no
22260 # For platforms which do not support PIC, -DPIC is meaningless:
22262 lt_prog_compiler_pic_F77=
22265 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22270 # Check to make sure the static flag actually works.
22272 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22273 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22274 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22275 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22278 lt_cv_prog_compiler_static_works_F77=no
22279 save_LDFLAGS="$LDFLAGS"
22280 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22281 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22283 # The linker can only warn and ignore the option if not recognized
22284 # So say no if there are warnings
22285 if test -s conftest.err; then
22286 # Append any errors to the config.log.
22287 cat conftest.err 1>&5
22288 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22290 if diff conftest.exp conftest.er2 >/dev/null; then
22291 lt_cv_prog_compiler_static_works_F77=yes
22294 lt_cv_prog_compiler_static_works_F77=yes
22298 LDFLAGS="$save_LDFLAGS"
22301 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
22302 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
22304 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
22307 lt_prog_compiler_static_F77=
22311 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22312 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22313 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22316 lt_cv_prog_compiler_c_o_F77=no
22317 $rm -r conftest 2>/dev/null
22321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22323 lt_compiler_flag="-o out/conftest2.$ac_objext"
22324 # Insert the option either (1) after the last *FLAGS variable, or
22325 # (2) before a word containing "conftest.", or (3) at the end.
22326 # Note that $ac_compile itself does not contain backslashes and begins
22327 # with a dollar sign (not a hyphen), so the echo should work correctly.
22328 lt_compile=`echo "$ac_compile" | $SED \
22329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22331 -e 's:$: $lt_compiler_flag:'`
22332 (eval echo "\"\$as_me:22332: $lt_compile\"" >&5)
22333 (eval "$lt_compile" 2>out/conftest.err)
22335 cat out/conftest.err >&5
22336 echo "$as_me:22336: \$? = $ac_status" >&5
22337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22339 # The compiler can only warn and ignore the option if not recognized
22340 # So say no if there are warnings
22341 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22344 lt_cv_prog_compiler_c_o_F77=yes
22349 # SGI C++ compiler will create directory out/ii_files/ for
22350 # template instantiation
22351 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22352 $rm out/* && rmdir out
22358 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22359 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22362 hard_links="nottested"
22363 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22364 # do not overwrite the value of need_locks provided by the user
22365 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22366 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22371 ln conftest.a conftest.b 2>&5 || hard_links=no
22372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22373 { echo "$as_me:$LINENO: result: $hard_links" >&5
22374 echo "${ECHO_T}$hard_links" >&6; }
22375 if test "$hard_links" = no; then
22376 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22377 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22384 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22385 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22388 allow_undefined_flag_F77=
22389 enable_shared_with_static_runtimes_F77=no
22391 archive_expsym_cmds_F77=
22392 old_archive_From_new_cmds_F77=
22393 old_archive_from_expsyms_cmds_F77=
22394 export_dynamic_flag_spec_F77=
22395 whole_archive_flag_spec_F77=
22396 thread_safe_flag_spec_F77=
22397 hardcode_libdir_flag_spec_F77=
22398 hardcode_libdir_flag_spec_ld_F77=
22399 hardcode_libdir_separator_F77=
22400 hardcode_direct_F77=no
22401 hardcode_minus_L_F77=no
22402 hardcode_shlibpath_var_F77=unsupported
22403 link_all_deplibs_F77=unknown
22404 hardcode_automatic_F77=no
22406 module_expsym_cmds_F77=
22407 always_export_symbols_F77=no
22408 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22409 # include_expsyms should be a list of space-separated symbols to be *always*
22410 # included in the symbol list
22411 include_expsyms_F77=
22412 # exclude_expsyms can be an extended regexp of symbols to exclude
22413 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22414 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22415 # as well as any symbol that contains `d'.
22416 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22417 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22418 # platforms (ab)use it in PIC code, but their linkers get confused if
22419 # the symbol is explicitly referenced. Since portable code cannot
22420 # rely on this symbol name, it's probably fine to never include it in
22421 # preloaded symbol tables.
22422 # Exclude shared library initialization/finalization symbols.
22423 extract_expsyms_cmds=
22424 # Just being paranoid about ensuring that cc_basename is set.
22425 for cc_temp in $compiler""; do
22427 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22428 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22433 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22436 cygwin* | mingw* | pw32*)
22437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22438 # When not using gcc, we currently assume that we are using
22439 # Microsoft Visual C++.
22440 if test "$GCC" != yes; then
22445 # we just hope/assume this is gcc and not c89 (= MSVC++)
22454 if test "$with_gnu_ld" = yes; then
22455 # If archive_cmds runs LD, not CC, wlarc should be empty
22458 # Set some defaults for GNU ld with shared library support. These
22459 # are reset later if shared libraries are not supported. Putting them
22460 # here allows them to be overridden if necessary.
22461 runpath_var=LD_RUN_PATH
22462 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22463 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22464 # ancient GNU ld didn't support --whole-archive et. al.
22465 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22466 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22468 whole_archive_flag_spec_F77=
22470 supports_anon_versioning=no
22471 case `$LD -v 2>/dev/null` in
22472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22475 *\ 2.11.*) ;; # other 2.11 versions
22476 *) supports_anon_versioning=yes ;;
22479 # See if GNU ld supports shared libraries.
22482 # On AIX/PPC, the GNU linker is very broken
22483 if test "$host_cpu" != ia64; then
22487 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22488 *** to be unable to reliably create shared libraries on AIX.
22489 *** Therefore, libtool is disabling shared libraries support. If you
22490 *** really care for shared libraries, you may want to modify your PATH
22491 *** so that a non-GNU linker is found, and then restart.
22498 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)'
22499 hardcode_libdir_flag_spec_F77='-L$libdir'
22500 hardcode_minus_L_F77=yes
22502 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22503 # that the semantics of dynamic libraries on AmigaOS, at least up
22504 # to version 4, is to share data among multiple programs linked
22505 # with the same dynamic library. Since this doesn't match the
22506 # behavior of shared libraries on other platforms, we can't use
22512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22513 allow_undefined_flag_F77=unsupported
22514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22515 # support --undefined. This deserves some investigation. FIXME
22516 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22522 cygwin* | mingw* | pw32*)
22523 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22524 # as there is no search path for DLLs.
22525 hardcode_libdir_flag_spec_F77='-L$libdir'
22526 allow_undefined_flag_F77=unsupported
22527 always_export_symbols_F77=no
22528 enable_shared_with_static_runtimes_F77=yes
22529 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22531 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22532 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22533 # If the export-symbols file already is a .def file (1st line
22534 # is EXPORTS), use it as is; otherwise, prepend...
22535 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22536 cp $export_symbols $output_objdir/$soname.def;
22538 echo EXPORTS > $output_objdir/$soname.def;
22539 cat $export_symbols >> $output_objdir/$soname.def;
22541 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22548 hardcode_direct_F77=no
22549 hardcode_shlibpath_var_F77=no
22550 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22551 export_dynamic_flag_spec_F77='${wl}-E'
22552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22553 # Instead, shared libraries are loaded at an image base (0x10000000 by
22554 # default) and relocated if they conflict, which is a slow very memory
22555 # consuming and fragmenting process. To avoid this, we pick a random,
22556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22557 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22558 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'
22559 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'
22562 gnu* | linux* | k*bsd*-gnu)
22563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22565 case $cc_basename,$host_cpu in
22566 pgcc*) # Portland Group C compiler
22567 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'
22568 tmp_addflag=' $pic_flag'
22570 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22571 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'
22572 tmp_addflag=' $pic_flag -Mnomain' ;;
22573 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22574 tmp_addflag=' -i_dynamic' ;;
22575 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22576 tmp_addflag=' -i_dynamic -nofor_main' ;;
22577 ifc* | ifort*) # Intel Fortran compiler
22578 tmp_addflag=' -nofor_main' ;;
22580 case `$CC -V 2>&1 | sed 5q` in
22581 *Sun\ C*) # Sun C 5.9
22582 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'
22583 tmp_sharedflag='-G' ;;
22584 *Sun\ F*) # Sun Fortran 8.3
22585 tmp_sharedflag='-G' ;;
22587 tmp_sharedflag='-shared' ;;
22589 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22591 if test $supports_anon_versioning = yes; then
22592 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22594 $echo "local: *; };" >> $output_objdir/$libname.ver~
22595 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22597 link_all_deplibs_F77=no
22603 netbsd* | netbsdelf*-gnu)
22604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22605 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22608 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22609 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22614 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22618 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22619 *** create shared libraries on Solaris systems. Therefore, libtool
22620 *** is disabling shared libraries support. We urge you to upgrade GNU
22621 *** binutils to release 2.9.1 or newer. Another option is to modify
22622 *** your PATH or compiler configuration so that the native linker is
22623 *** used, and then restart.
22626 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22635 case `$LD -v 2>&1` in
22636 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22640 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22641 *** reliably create shared libraries on SCO systems. Therefore, libtool
22642 *** is disabling shared libraries support. We urge you to upgrade GNU
22643 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22644 *** your PATH or compiler configuration so that the native linker is
22645 *** used, and then restart.
22650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22651 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22652 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22653 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22662 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22664 hardcode_direct_F77=yes
22665 hardcode_shlibpath_var_F77=no
22669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22670 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22671 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22678 if test "$ld_shlibs_F77" = no; then
22680 hardcode_libdir_flag_spec_F77=
22681 export_dynamic_flag_spec_F77=
22682 whole_archive_flag_spec_F77=
22685 # PORTME fill in a description of your system's linker (not GNU ld)
22688 allow_undefined_flag_F77=unsupported
22689 always_export_symbols_F77=yes
22690 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'
22691 # Note: this linker hardcodes the directories in LIBPATH if there
22692 # are no directories specified by -L.
22693 hardcode_minus_L_F77=yes
22694 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22695 # Neither direct hardcoding nor static linking is supported with a
22697 hardcode_direct_F77=unsupported
22702 if test "$host_cpu" = ia64; then
22703 # On IA64, the linker does run time linking by default, so we don't
22704 # have to do anything special.
22705 aix_use_runtimelinking=no
22706 exp_sym_flag='-Bexport'
22709 # If we're using GNU nm, then we don't want the "-C" option.
22710 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22711 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22712 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'
22714 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'
22716 aix_use_runtimelinking=no
22718 # Test if we are trying to use run time linking or normal
22719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22720 # need to do runtime linking.
22721 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22722 for ld_flag in $LDFLAGS; do
22723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22724 aix_use_runtimelinking=yes
22731 exp_sym_flag='-bexport'
22732 no_entry_flag='-bnoentry'
22735 # When large executables or shared objects are built, AIX ld can
22736 # have problems creating the table of contents. If linking a library
22737 # or program results in "error TOC overflow" add -mminimal-toc to
22738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22741 archive_cmds_F77=''
22742 hardcode_direct_F77=yes
22743 hardcode_libdir_separator_F77=':'
22744 link_all_deplibs_F77=yes
22746 if test "$GCC" = yes; then
22747 case $host_os in aix4.[012]|aix4.[012].*)
22748 # We only want to do this on AIX 4.2 and lower, the check
22749 # below for broken collect2 doesn't work under 4.3+
22750 collect2name=`${CC} -print-prog-name=collect2`
22751 if test -f "$collect2name" && \
22752 strings "$collect2name" | grep resolve_lib_name >/dev/null
22754 # We have reworked collect2
22757 # We have old collect2
22758 hardcode_direct_F77=unsupported
22759 # It fails to find uninstalled libraries when the uninstalled
22760 # path is not listed in the libpath. Setting hardcode_minus_L
22761 # to unsupported forces relinking
22762 hardcode_minus_L_F77=yes
22763 hardcode_libdir_flag_spec_F77='-L$libdir'
22764 hardcode_libdir_separator_F77=
22768 shared_flag='-shared'
22769 if test "$aix_use_runtimelinking" = yes; then
22770 shared_flag="$shared_flag "'${wl}-G'
22774 if test "$host_cpu" = ia64; then
22775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22776 # chokes on -Wl,-G. The following line is correct:
22779 if test "$aix_use_runtimelinking" = yes; then
22780 shared_flag='${wl}-G'
22782 shared_flag='${wl}-bM:SRE'
22787 # It seems that -bexpall does not export symbols beginning with
22788 # underscore (_), so it is better to generate a list of symbols to export.
22789 always_export_symbols_F77=yes
22790 if test "$aix_use_runtimelinking" = yes; then
22791 # Warning - without using the other runtime loading flags (-brtl),
22792 # -berok will link without error, but may produce a broken library.
22793 allow_undefined_flag_F77='-berok'
22794 # Determine the default libpath from the value encoded in an empty executable.
22795 cat >conftest.$ac_ext <<_ACEOF
22800 rm -f conftest.$ac_objext conftest$ac_exeext
22801 if { (ac_try="$ac_link"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_link") 2>conftest.er1
22809 grep -v '^ *+' conftest.er1 >conftest.err
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_f77_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest$ac_exeext &&
22817 $as_test_x conftest$ac_exeext; then
22819 lt_aix_libpath_sed='
22820 /Import File Strings/,/^$/ {
22826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22827 # Check for a 64-bit object if we didn't find anything.
22828 if test -z "$aix_libpath"; then
22829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22839 conftest$ac_exeext conftest.$ac_ext
22840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22842 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22843 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"
22845 if test "$host_cpu" = ia64; then
22846 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22847 allow_undefined_flag_F77="-z nodefs"
22848 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"
22850 # Determine the default libpath from the value encoded in an empty executable.
22851 cat >conftest.$ac_ext <<_ACEOF
22856 rm -f conftest.$ac_objext conftest$ac_exeext
22857 if { (ac_try="$ac_link"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_link") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_f77_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest$ac_exeext &&
22873 $as_test_x conftest$ac_exeext; then
22875 lt_aix_libpath_sed='
22876 /Import File Strings/,/^$/ {
22882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22883 # Check for a 64-bit object if we didn't find anything.
22884 if test -z "$aix_libpath"; then
22885 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22895 conftest$ac_exeext conftest.$ac_ext
22896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22898 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22899 # Warning - without using the other run time loading flags,
22900 # -berok will link without error, but may produce a broken library.
22901 no_undefined_flag_F77=' ${wl}-bernotok'
22902 allow_undefined_flag_F77=' ${wl}-berok'
22903 # Exported symbols can be pulled into shared objects from archives
22904 whole_archive_flag_spec_F77='$convenience'
22905 archive_cmds_need_lc_F77=yes
22906 # This is similar to how AIX traditionally builds its shared libraries.
22907 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'
22913 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)'
22914 hardcode_libdir_flag_spec_F77='-L$libdir'
22915 hardcode_minus_L_F77=yes
22916 # see comment about different semantics on the GNU ld section
22921 export_dynamic_flag_spec_F77=-rdynamic
22924 cygwin* | mingw* | pw32*)
22925 # When not using gcc, we currently assume that we are using
22926 # Microsoft Visual C++.
22927 # hardcode_libdir_flag_spec is actually meaningless, as there is
22928 # no search path for DLLs.
22929 hardcode_libdir_flag_spec_F77=' '
22930 allow_undefined_flag_F77=unsupported
22931 # Tell ltmain to make .lib files, not .a files.
22933 # Tell ltmain to make .dll files, not .so files.
22935 # FIXME: Setting linknames here is a bad hack.
22936 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22937 # The linker will automatically build a .lib file if we build a DLL.
22938 old_archive_From_new_cmds_F77='true'
22939 # FIXME: Should let the user specify the lib program.
22940 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22941 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22942 enable_shared_with_static_runtimes_F77=yes
22945 darwin* | rhapsody*)
22947 rhapsody* | darwin1.[012])
22948 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22951 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22952 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22954 case ${MACOSX_DEPLOYMENT_TARGET} in
22956 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22959 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22965 archive_cmds_need_lc_F77=no
22966 hardcode_direct_F77=no
22967 hardcode_automatic_F77=yes
22968 hardcode_shlibpath_var_F77=unsupported
22969 whole_archive_flag_spec_F77=''
22970 link_all_deplibs_F77=yes
22971 if test "$GCC" = yes ; then
22972 output_verbose_link_cmd='echo'
22973 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}"
22974 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22975 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}"
22976 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}"
22978 case $cc_basename in
22980 output_verbose_link_cmd='echo'
22981 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22982 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22983 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22984 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}'
22985 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}'
22995 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22996 hardcode_libdir_flag_spec_F77='-L$libdir'
22997 hardcode_shlibpath_var_F77=no
23004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23005 # support. Future versions do this automatically, but an explicit c++rt0.o
23006 # does not break anything, and helps significantly (at the cost of a little
23009 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23010 hardcode_libdir_flag_spec_F77='-R$libdir'
23011 hardcode_direct_F77=yes
23012 hardcode_shlibpath_var_F77=no
23015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23017 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23018 hardcode_direct_F77=yes
23019 hardcode_minus_L_F77=yes
23020 hardcode_shlibpath_var_F77=no
23023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23024 freebsd* | dragonfly*)
23025 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23026 hardcode_libdir_flag_spec_F77='-R$libdir'
23027 hardcode_direct_F77=yes
23028 hardcode_shlibpath_var_F77=no
23032 if test "$GCC" = yes; then
23033 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'
23035 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'
23037 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23038 hardcode_libdir_separator_F77=:
23039 hardcode_direct_F77=yes
23041 # hardcode_minus_L: Not really in the search PATH,
23042 # but as the default location of the library.
23043 hardcode_minus_L_F77=yes
23044 export_dynamic_flag_spec_F77='${wl}-E'
23048 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23049 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23051 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23053 if test "$with_gnu_ld" = no; then
23054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23055 hardcode_libdir_separator_F77=:
23057 hardcode_direct_F77=yes
23058 export_dynamic_flag_spec_F77='${wl}-E'
23060 # hardcode_minus_L: Not really in the search PATH,
23061 # but as the default location of the library.
23062 hardcode_minus_L_F77=yes
23067 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23070 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23073 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23076 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23082 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23085 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23088 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23092 if test "$with_gnu_ld" = no; then
23093 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23094 hardcode_libdir_separator_F77=:
23098 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23099 hardcode_direct_F77=no
23100 hardcode_shlibpath_var_F77=no
23103 hardcode_direct_F77=yes
23104 export_dynamic_flag_spec_F77='${wl}-E'
23106 # hardcode_minus_L: Not really in the search PATH,
23107 # but as the default location of the library.
23108 hardcode_minus_L_F77=yes
23114 irix5* | irix6* | nonstopux*)
23115 if test "$GCC" = yes; then
23116 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'
23118 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'
23119 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23122 hardcode_libdir_separator_F77=:
23123 link_all_deplibs_F77=yes
23126 netbsd* | netbsdelf*-gnu)
23127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23128 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23130 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23132 hardcode_libdir_flag_spec_F77='-R$libdir'
23133 hardcode_direct_F77=yes
23134 hardcode_shlibpath_var_F77=no
23138 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23139 hardcode_direct_F77=yes
23140 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23141 hardcode_libdir_separator_F77=:
23142 hardcode_shlibpath_var_F77=no
23146 if test -f /usr/libexec/ld.so; then
23147 hardcode_direct_F77=yes
23148 hardcode_shlibpath_var_F77=no
23149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23150 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23151 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23152 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23153 export_dynamic_flag_spec_F77='${wl}-E'
23156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23157 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23158 hardcode_libdir_flag_spec_F77='-R$libdir'
23161 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23162 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23172 hardcode_libdir_flag_spec_F77='-L$libdir'
23173 hardcode_minus_L_F77=yes
23174 allow_undefined_flag_F77=unsupported
23175 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'
23176 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23180 if test "$GCC" = yes; then
23181 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23182 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'
23184 allow_undefined_flag_F77=' -expect_unresolved \*'
23185 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'
23187 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23188 hardcode_libdir_separator_F77=:
23191 osf4* | osf5*) # as osf3* with the addition of -msym flag
23192 if test "$GCC" = yes; then
23193 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23194 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'
23195 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23197 allow_undefined_flag_F77=' -expect_unresolved \*'
23198 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'
23199 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~
23200 $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'
23202 # Both c and cxx compiler support -rpath directly
23203 hardcode_libdir_flag_spec_F77='-rpath $libdir'
23205 hardcode_libdir_separator_F77=:
23209 no_undefined_flag_F77=' -z text'
23210 if test "$GCC" = yes; then
23212 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23213 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23217 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23218 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23219 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23221 hardcode_libdir_flag_spec_F77='-R$libdir'
23222 hardcode_shlibpath_var_F77=no
23224 solaris2.[0-5] | solaris2.[0-5].*) ;;
23226 # The compiler driver will combine and reorder linker options,
23227 # but understands `-z linker_flag'. GCC discards it without `$wl',
23228 # but is careful enough not to reorder.
23229 # Supported since Solaris 2.6 (maybe 2.5.1?)
23230 if test "$GCC" = yes; then
23231 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23233 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23237 link_all_deplibs_F77=yes
23241 if test "x$host_vendor" = xsequent; then
23242 # Use $CC to link under sequent, because it throws in some extra .o
23243 # files that make .init and .fini sections work.
23244 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23246 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23248 hardcode_libdir_flag_spec_F77='-L$libdir'
23249 hardcode_direct_F77=yes
23250 hardcode_minus_L_F77=yes
23251 hardcode_shlibpath_var_F77=no
23255 case $host_vendor in
23257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23258 hardcode_direct_F77=yes # is this really true???
23261 ## LD is ld it makes a PLAMLIB
23262 ## CC just makes a GrossModule.
23263 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23264 reload_cmds_F77='$CC -r -o $output$reload_objs'
23265 hardcode_direct_F77=no
23268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23269 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23272 runpath_var='LD_RUN_PATH'
23273 hardcode_shlibpath_var_F77=no
23277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23278 hardcode_shlibpath_var_F77=no
23279 export_dynamic_flag_spec_F77='-Bexport'
23283 if test -d /usr/nec; then
23284 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23285 hardcode_shlibpath_var_F77=no
23286 runpath_var=LD_RUN_PATH
23287 hardcode_runpath_var=yes
23292 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23293 no_undefined_flag_F77='${wl}-z,text'
23294 archive_cmds_need_lc_F77=no
23295 hardcode_shlibpath_var_F77=no
23296 runpath_var='LD_RUN_PATH'
23298 if test "$GCC" = yes; then
23299 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23300 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23302 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23303 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23307 sysv5* | sco3.2v5* | sco5v6*)
23308 # Note: We can NOT use -z defs as we might desire, because we do not
23309 # link with -lc, and that would cause any symbols used from libc to
23310 # always be unresolved, which means just about no library would
23311 # ever link correctly. If we're not using GNU ld we use -z text
23312 # though, which does catch some bad symbols but isn't as heavy-handed
23314 no_undefined_flag_F77='${wl}-z,text'
23315 allow_undefined_flag_F77='${wl}-z,nodefs'
23316 archive_cmds_need_lc_F77=no
23317 hardcode_shlibpath_var_F77=no
23318 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23319 hardcode_libdir_separator_F77=':'
23320 link_all_deplibs_F77=yes
23321 export_dynamic_flag_spec_F77='${wl}-Bexport'
23322 runpath_var='LD_RUN_PATH'
23324 if test "$GCC" = yes; then
23325 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23326 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23328 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23329 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23334 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23335 hardcode_libdir_flag_spec_F77='-L$libdir'
23336 hardcode_shlibpath_var_F77=no
23345 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23346 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23347 test "$ld_shlibs_F77" = no && can_build_shared=no
23350 # Do we need to explicitly link libc?
23352 case "x$archive_cmds_need_lc_F77" in
23354 # Assume -lc should be added
23355 archive_cmds_need_lc_F77=yes
23357 if test "$enable_shared" = yes && test "$GCC" = yes; then
23358 case $archive_cmds_F77 in
23360 # FIXME: we may have to deal with multi-command sequences.
23363 # Test whether the compiler implicitly links with -lc since on some
23364 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23365 # to ld, don't add -lc before -lgcc.
23366 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23367 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23372 (eval $ac_compile) 2>&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } 2>conftest.err; then
23378 libobjs=conftest.$ac_objext
23380 wl=$lt_prog_compiler_wl_F77
23381 pic_flag=$lt_prog_compiler_pic_F77
23387 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23388 allow_undefined_flag_F77=
23389 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23390 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }
23395 archive_cmds_need_lc_F77=no
23397 archive_cmds_need_lc_F77=yes
23399 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23401 cat conftest.err 1>&5
23404 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23405 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23412 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23413 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23414 library_names_spec=
23415 libname_spec='lib$name'
23419 postuninstall_cmds=
23423 shlibpath_overrides_runpath=unknown
23425 dynamic_linker="$host_os ld.so"
23426 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23428 need_lib_prefix=unknown
23429 hardcode_into_libs=no
23431 # when you set need_version to no, make sure it does not cause -set_version
23432 # flags to be left without arguments
23433 need_version=unknown
23438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23439 shlibpath_var=LIBPATH
23441 # AIX 3 has no versioning support, so we append a major version to the name.
23442 soname_spec='${libname}${release}${shared_ext}$major'
23449 hardcode_into_libs=yes
23450 if test "$host_cpu" = ia64; then
23451 # AIX 5 supports IA64
23452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23453 shlibpath_var=LD_LIBRARY_PATH
23455 # With GCC up to 2.95.x, collect2 would create an import file
23456 # for dependence libraries. The import file would start with
23457 # the line `#! .'. This would cause the generated library to
23458 # depend on `.', always an invalid library. This was fixed in
23459 # development snapshots of GCC prior to 3.0.
23461 aix4 | aix4.[01] | aix4.[01].*)
23462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23464 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23467 can_build_shared=no
23471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23472 # soname into executable. Probably we can add versioning support to
23473 # collect2, so additional links can be useful in future.
23474 if test "$aix_use_runtimelinking" = yes; then
23475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23476 # instead of lib<name>.a to let people know that these are not
23477 # typical AIX shared libraries.
23478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23480 # We preserve .a as extension for shared libraries through AIX4.2
23481 # and later when we are not doing run time linking.
23482 library_names_spec='${libname}${release}.a $libname.a'
23483 soname_spec='${libname}${release}${shared_ext}$major'
23485 shlibpath_var=LIBPATH
23490 library_names_spec='$libname.ixlibrary $libname.a'
23491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23492 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'
23496 library_names_spec='${libname}${shared_ext}'
23497 dynamic_linker="$host_os ld.so"
23498 shlibpath_var=LIBRARY_PATH
23504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23505 soname_spec='${libname}${release}${shared_ext}$major'
23506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23507 shlibpath_var=LD_LIBRARY_PATH
23508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23510 # the default ld.so.conf also contains /usr/contrib/lib and
23511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23512 # libtool to hard-code these into programs
23515 cygwin* | mingw* | pw32*)
23516 version_type=windows
23521 case $GCC,$host_os in
23522 yes,cygwin* | yes,mingw* | yes,pw32*)
23523 library_names_spec='$libname.dll.a'
23524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23525 postinstall_cmds='base_file=`basename \${file}`~
23526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23527 dldir=$destdir/`dirname \$dlpath`~
23528 test -d \$dldir || mkdir -p \$dldir~
23529 $install_prog $dir/$dlname \$dldir/$dlname~
23530 chmod a+x \$dldir/$dlname'
23531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23532 dlpath=$dir/\$dldll~
23534 shlibpath_overrides_runpath=yes
23538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23539 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23540 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23543 # MinGW DLLs use traditional 'lib' prefix
23544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23546 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23547 # It is most probably a Windows format PATH printed by
23548 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23549 # path with ; separators, and with drive letters. We can handle the
23550 # drive letters (cygwin fileutils understands them), so leave them,
23551 # especially as we might pass files found there to a mingw objdump,
23552 # which wouldn't understand a cygwinified path. Ahh.
23553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23559 # pw32 DLLs use 'pw' prefix rather than 'lib'
23560 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23566 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23569 dynamic_linker='Win32 ld.exe'
23570 # FIXME: first we should search . and the directory the executable is in
23574 darwin* | rhapsody*)
23575 dynamic_linker="$host_os dyld"
23576 version_type=darwin
23579 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23580 soname_spec='${libname}${release}${major}$shared_ext'
23581 shlibpath_overrides_runpath=yes
23582 shlibpath_var=DYLD_LIBRARY_PATH
23583 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23593 soname_spec='${libname}${release}${shared_ext}$major'
23594 shlibpath_var=LD_LIBRARY_PATH
23601 freebsd* | dragonfly*)
23602 # DragonFly does not have aout. When/if they implement a new
23603 # versioning mechanism, adjust this.
23604 if test -x /usr/bin/objformat; then
23605 objformat=`/usr/bin/objformat`
23608 freebsd[123]*) objformat=aout ;;
23609 *) objformat=elf ;;
23612 version_type=freebsd-$objformat
23613 case $version_type in
23615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23620 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23624 shlibpath_var=LD_LIBRARY_PATH
23627 shlibpath_overrides_runpath=yes
23629 freebsd3.[01]* | freebsdelf3.[01]*)
23630 shlibpath_overrides_runpath=yes
23631 hardcode_into_libs=yes
23633 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23634 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23635 shlibpath_overrides_runpath=no
23636 hardcode_into_libs=yes
23638 *) # from 4.6 on, and DragonFly
23639 shlibpath_overrides_runpath=yes
23640 hardcode_into_libs=yes
23649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23650 soname_spec='${libname}${release}${shared_ext}$major'
23651 shlibpath_var=LD_LIBRARY_PATH
23652 hardcode_into_libs=yes
23655 hpux9* | hpux10* | hpux11*)
23656 # Give a soname corresponding to the major version so that dld.sl refuses to
23657 # link against other versions.
23664 hardcode_into_libs=yes
23665 dynamic_linker="$host_os dld.so"
23666 shlibpath_var=LD_LIBRARY_PATH
23667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23669 soname_spec='${libname}${release}${shared_ext}$major'
23670 if test "X$HPUX_IA64_MODE" = X32; then
23671 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23679 hardcode_into_libs=yes
23680 dynamic_linker="$host_os dld.sl"
23681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23684 soname_spec='${libname}${release}${shared_ext}$major'
23685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23690 dynamic_linker="$host_os dld.sl"
23691 shlibpath_var=SHLIB_PATH
23692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23694 soname_spec='${libname}${release}${shared_ext}$major'
23697 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23698 postinstall_cmds='chmod 555 $lib'
23705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23706 soname_spec='${libname}${release}${shared_ext}$major'
23707 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23708 shlibpath_var=LD_LIBRARY_PATH
23709 shlibpath_overrides_runpath=no
23710 hardcode_into_libs=yes
23713 irix5* | irix6* | nonstopux*)
23715 nonstopux*) version_type=nonstopux ;;
23717 if test "$lt_cv_prog_gnu_ld" = yes; then
23725 soname_spec='${libname}${release}${shared_ext}$major'
23726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23728 irix5* | nonstopux*)
23729 libsuff= shlibsuff=
23732 case $LD in # libtool.m4 will add one of these switches to LD
23733 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23734 libsuff= shlibsuff= libmagic=32-bit;;
23735 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23736 libsuff=32 shlibsuff=N32 libmagic=N32;;
23737 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23738 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23739 *) libsuff= shlibsuff= libmagic=never-match;;
23743 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23744 shlibpath_overrides_runpath=no
23745 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23746 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23747 hardcode_into_libs=yes
23750 # No shared lib support for Linux oldld, aout, or coff.
23751 linux*oldld* | linux*aout* | linux*coff*)
23755 # This must be Linux ELF.
23756 linux* | k*bsd*-gnu)
23760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23761 soname_spec='${libname}${release}${shared_ext}$major'
23762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23763 shlibpath_var=LD_LIBRARY_PATH
23764 shlibpath_overrides_runpath=no
23765 # This implies no fast_install, which is unacceptable.
23766 # Some rework will be needed to allow for fast_install
23767 # before this can be enabled.
23768 hardcode_into_libs=yes
23770 # Append ld.so.conf contents to the search path
23771 if test -f /etc/ld.so.conf; then
23772 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' ' '`
23773 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23776 # We used to test for /lib/ld.so.1 and disable shared libraries on
23777 # powerpc, because MkLinux only supported shared libraries with the
23778 # GNU dynamic linker. Since this was broken with cross compilers,
23779 # most powerpc-linux boxes support dynamic linking these days and
23780 # people can always --disable-shared, the test was removed, and we
23781 # assume the GNU/Linux dynamic linker is in use.
23782 dynamic_linker='GNU/Linux ld.so'
23789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23790 soname_spec='${libname}${release}${shared_ext}$major'
23791 shlibpath_var=LD_LIBRARY_PATH
23792 shlibpath_overrides_runpath=no
23793 hardcode_into_libs=yes
23794 dynamic_linker='NetBSD ld.elf_so'
23801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23804 dynamic_linker='NetBSD (a.out) ld.so'
23806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23807 soname_spec='${libname}${release}${shared_ext}$major'
23808 dynamic_linker='NetBSD ld.elf_so'
23810 shlibpath_var=LD_LIBRARY_PATH
23811 shlibpath_overrides_runpath=yes
23812 hardcode_into_libs=yes
23817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23818 shlibpath_var=LD_LIBRARY_PATH
23819 shlibpath_overrides_runpath=yes
23826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23827 soname_spec='${libname}${release}${shared_ext}$major'
23828 shlibpath_var=LD_LIBRARY_PATH
23829 shlibpath_overrides_runpath=yes
23834 sys_lib_dlsearch_path_spec="/usr/lib"
23836 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23838 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23839 *) need_version=no ;;
23841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23843 shlibpath_var=LD_LIBRARY_PATH
23844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23846 openbsd2.[89] | openbsd2.[89].*)
23847 shlibpath_overrides_runpath=no
23850 shlibpath_overrides_runpath=yes
23854 shlibpath_overrides_runpath=yes
23859 libname_spec='$name'
23862 library_names_spec='$libname${shared_ext} $libname.a'
23863 dynamic_linker='OS/2 ld.exe'
23864 shlibpath_var=LIBPATH
23867 osf3* | osf4* | osf5*)
23871 soname_spec='${libname}${release}${shared_ext}$major'
23872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23873 shlibpath_var=LD_LIBRARY_PATH
23874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23875 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23887 soname_spec='${libname}${release}${shared_ext}$major'
23888 shlibpath_var=LD_LIBRARY_PATH
23889 shlibpath_overrides_runpath=yes
23890 hardcode_into_libs=yes
23891 # ldd complains unless libraries are executable
23892 postinstall_cmds='chmod +x $lib'
23897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23899 shlibpath_var=LD_LIBRARY_PATH
23900 shlibpath_overrides_runpath=yes
23901 if test "$with_gnu_ld" = yes; then
23909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23910 soname_spec='${libname}${release}${shared_ext}$major'
23911 shlibpath_var=LD_LIBRARY_PATH
23912 case $host_vendor in
23914 shlibpath_overrides_runpath=no
23916 export_dynamic_flag_spec='${wl}-Blargedynsym'
23917 runpath_var=LD_RUN_PATH
23925 shlibpath_overrides_runpath=no
23926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23932 if test -d /usr/nec ;then
23934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23935 soname_spec='$libname${shared_ext}.$major'
23936 shlibpath_var=LD_LIBRARY_PATH
23940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23941 version_type=freebsd-elf
23944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23945 soname_spec='${libname}${release}${shared_ext}$major'
23946 shlibpath_var=LD_LIBRARY_PATH
23947 hardcode_into_libs=yes
23948 if test "$with_gnu_ld" = yes; then
23949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23950 shlibpath_overrides_runpath=no
23952 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23953 shlibpath_overrides_runpath=yes
23956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23960 sys_lib_dlsearch_path_spec='/usr/lib'
23965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23966 soname_spec='${libname}${release}${shared_ext}$major'
23967 shlibpath_var=LD_LIBRARY_PATH
23974 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23975 echo "${ECHO_T}$dynamic_linker" >&6; }
23976 test "$dynamic_linker" = no && can_build_shared=no
23978 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23979 echo $ECHO_N "(cached) $ECHO_C" >&6
23981 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23984 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23985 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23986 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23991 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23994 if test "$GCC" = yes; then
23995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23998 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23999 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24000 hardcode_action_F77=
24001 if test -n "$hardcode_libdir_flag_spec_F77" || \
24002 test -n "$runpath_var_F77" || \
24003 test "X$hardcode_automatic_F77" = "Xyes" ; then
24005 # We can hardcode non-existant directories.
24006 if test "$hardcode_direct_F77" != no &&
24007 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24008 # have to relink, otherwise we might link with an installed library
24009 # when we should be linking with a yet-to-be-installed one
24010 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24011 test "$hardcode_minus_L_F77" != no; then
24012 # Linking always hardcodes the temporary library directory.
24013 hardcode_action_F77=relink
24015 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24016 hardcode_action_F77=immediate
24019 # We cannot hardcode anything, or else we can only hardcode existing
24021 hardcode_action_F77=unsupported
24023 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24024 echo "${ECHO_T}$hardcode_action_F77" >&6; }
24026 if test "$hardcode_action_F77" = relink; then
24027 # Fast installation is not supported
24028 enable_fast_install=no
24029 elif test "$shlibpath_overrides_runpath" = yes ||
24030 test "$enable_shared" = no; then
24031 # Fast installation is not necessary
24032 enable_fast_install=needless
24036 # The else clause should only fire when bootstrapping the
24037 # libtool distribution, otherwise you forgot to ship ltmain.sh
24038 # with your package, and you will get complaints that there are
24039 # no rules to generate ltmain.sh.
24040 if test -f "$ltmain"; then
24041 # See if we are running on zsh, and set the options which allow our commands through
24042 # without removal of \ escapes.
24043 if test -n "${ZSH_VERSION+set}" ; then
24044 setopt NO_GLOB_SUBST
24046 # Now quote all the things that may contain metacharacters while being
24047 # careful not to overquote the AC_SUBSTed values. We take copies of the
24048 # variables and quote the copies for generation of the libtool script.
24049 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24053 deplibs_check_method reload_flag reload_cmds need_locks \
24054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24055 lt_cv_sys_global_symbol_to_c_name_address \
24056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24057 old_postinstall_cmds old_postuninstall_cmds \
24061 lt_prog_compiler_wl_F77 \
24062 lt_prog_compiler_pic_F77 \
24063 lt_prog_compiler_static_F77 \
24064 lt_prog_compiler_no_builtin_flag_F77 \
24065 export_dynamic_flag_spec_F77 \
24066 thread_safe_flag_spec_F77 \
24067 whole_archive_flag_spec_F77 \
24068 enable_shared_with_static_runtimes_F77 \
24069 old_archive_cmds_F77 \
24070 old_archive_from_new_cmds_F77 \
24071 predep_objects_F77 \
24072 postdep_objects_F77 \
24075 compiler_lib_search_path_F77 \
24076 compiler_lib_search_dirs_F77 \
24078 archive_expsym_cmds_F77 \
24079 postinstall_cmds_F77 \
24080 postuninstall_cmds_F77 \
24081 old_archive_from_expsyms_cmds_F77 \
24082 allow_undefined_flag_F77 \
24083 no_undefined_flag_F77 \
24084 export_symbols_cmds_F77 \
24085 hardcode_libdir_flag_spec_F77 \
24086 hardcode_libdir_flag_spec_ld_F77 \
24087 hardcode_libdir_separator_F77 \
24088 hardcode_automatic_F77 \
24090 module_expsym_cmds_F77 \
24091 lt_cv_prog_compiler_c_o_F77 \
24092 fix_srcfile_path_F77 \
24093 exclude_expsyms_F77 \
24094 include_expsyms_F77; do
24097 old_archive_cmds_F77 | \
24098 old_archive_from_new_cmds_F77 | \
24099 archive_cmds_F77 | \
24100 archive_expsym_cmds_F77 | \
24101 module_cmds_F77 | \
24102 module_expsym_cmds_F77 | \
24103 old_archive_from_expsyms_cmds_F77 | \
24104 export_symbols_cmds_F77 | \
24105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24106 postinstall_cmds | postuninstall_cmds | \
24107 old_postinstall_cmds | old_postuninstall_cmds | \
24108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24109 # Double-quote double-evaled strings.
24110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24119 *'\$0 --fallback-echo"')
24120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24126 cat <<__EOF__ >> "$cfgfile"
24127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24131 # Shell to use when invoking shell scripts.
24134 # Whether or not to build shared libraries.
24135 build_libtool_libs=$enable_shared
24137 # Whether or not to build static libraries.
24138 build_old_libs=$enable_static
24140 # Whether or not to add -lc for building shared libraries.
24141 build_libtool_need_lc=$archive_cmds_need_lc_F77
24143 # Whether or not to disallow shared libs when runtime libs are static
24144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24146 # Whether or not to optimize for fast installation.
24147 fast_install=$enable_fast_install
24150 host_alias=$host_alias
24154 # The build system.
24155 build_alias=$build_alias
24159 # An echo program that does not interpret backslashes.
24164 AR_FLAGS=$lt_AR_FLAGS
24169 # LTCC compiler flags.
24170 LTCFLAGS=$lt_LTCFLAGS
24172 # A language-specific compiler.
24173 CC=$lt_compiler_F77
24175 # Is the compiler the GNU C compiler?
24181 # The linker used to build libraries.
24184 # Whether we need hard or soft links.
24187 # A BSD-compatible nm program.
24190 # A symbol stripping program
24193 # Used to examine libraries when file_magic_cmd begins "file"
24194 MAGIC_CMD=$MAGIC_CMD
24196 # Used on cygwin: DLL creation program.
24199 # Used on cygwin: object dumper.
24202 # Used on cygwin: assembler.
24205 # The name of the directory that contains temporary libtool files.
24208 # How to create reloadable object files.
24209 reload_flag=$lt_reload_flag
24210 reload_cmds=$lt_reload_cmds
24212 # How to pass a linker flag through the compiler.
24213 wl=$lt_lt_prog_compiler_wl_F77
24215 # Object file suffix (normally "o").
24216 objext="$ac_objext"
24218 # Old archive suffix (normally "a").
24221 # Shared library suffix (normally ".so").
24222 shrext_cmds='$shrext_cmds'
24224 # Executable file suffix (normally "").
24227 # Additional compiler flags for building library objects.
24228 pic_flag=$lt_lt_prog_compiler_pic_F77
24231 # What is the maximum length of a command?
24232 max_cmd_len=$lt_cv_sys_max_cmd_len
24234 # Does compiler simultaneously support -c and -o options?
24235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24237 # Must we lock files when doing compilation?
24238 need_locks=$lt_need_locks
24240 # Do we need the lib prefix for modules?
24241 need_lib_prefix=$need_lib_prefix
24243 # Do we need a version for libraries?
24244 need_version=$need_version
24246 # Whether dlopen is supported.
24247 dlopen_support=$enable_dlopen
24249 # Whether dlopen of programs is supported.
24250 dlopen_self=$enable_dlopen_self
24252 # Whether dlopen of statically linked programs is supported.
24253 dlopen_self_static=$enable_dlopen_self_static
24255 # Compiler flag to prevent dynamic linking.
24256 link_static_flag=$lt_lt_prog_compiler_static_F77
24258 # Compiler flag to turn off builtin functions.
24259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24261 # Compiler flag to allow reflexive dlopens.
24262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24264 # Compiler flag to generate shared objects directly from archives.
24265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24267 # Compiler flag to generate thread-safe objects.
24268 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24270 # Library versioning type.
24271 version_type=$version_type
24273 # Format of library name prefix.
24274 libname_spec=$lt_libname_spec
24276 # List of archive names. First name is the real one, the rest are links.
24277 # The last name is the one that the linker finds with -lNAME.
24278 library_names_spec=$lt_library_names_spec
24280 # The coded name of the library, if different from the real name.
24281 soname_spec=$lt_soname_spec
24283 # Commands used to build and install an old-style archive.
24285 old_archive_cmds=$lt_old_archive_cmds_F77
24286 old_postinstall_cmds=$lt_old_postinstall_cmds
24287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24289 # Create an old-style archive from a shared archive.
24290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24292 # Create a temporary old-style archive to link instead of a shared archive.
24293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24295 # Commands used to build and install a shared archive.
24296 archive_cmds=$lt_archive_cmds_F77
24297 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24298 postinstall_cmds=$lt_postinstall_cmds
24299 postuninstall_cmds=$lt_postuninstall_cmds
24301 # Commands used to build a loadable module (assumed same as above if empty)
24302 module_cmds=$lt_module_cmds_F77
24303 module_expsym_cmds=$lt_module_expsym_cmds_F77
24305 # Commands to strip libraries.
24306 old_striplib=$lt_old_striplib
24307 striplib=$lt_striplib
24309 # Dependencies to place before the objects being linked to create a
24311 predep_objects=$lt_predep_objects_F77
24313 # Dependencies to place after the objects being linked to create a
24315 postdep_objects=$lt_postdep_objects_F77
24317 # Dependencies to place before the objects being linked to create a
24319 predeps=$lt_predeps_F77
24321 # Dependencies to place after the objects being linked to create a
24323 postdeps=$lt_postdeps_F77
24325 # The directories searched by this compiler when creating a shared
24327 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
24329 # The library search path used internally by the compiler when linking
24330 # a shared library.
24331 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24333 # Method to check whether dependent libraries are shared objects.
24334 deplibs_check_method=$lt_deplibs_check_method
24336 # Command to use when deplibs_check_method == file_magic.
24337 file_magic_cmd=$lt_file_magic_cmd
24339 # Flag that allows shared libraries with undefined symbols to be built.
24340 allow_undefined_flag=$lt_allow_undefined_flag_F77
24342 # Flag that forces no undefined symbols.
24343 no_undefined_flag=$lt_no_undefined_flag_F77
24345 # Commands used to finish a libtool library installation in a directory.
24346 finish_cmds=$lt_finish_cmds
24348 # Same as above, but a single script fragment to be evaled but not shown.
24349 finish_eval=$lt_finish_eval
24351 # Take the output of nm and produce a listing of raw symbols and C names.
24352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24354 # Transform the output of nm in a proper C declaration
24355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24357 # Transform the output of nm in a C name address pair
24358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24360 # This is the shared library runtime path variable.
24361 runpath_var=$runpath_var
24363 # This is the shared library path variable.
24364 shlibpath_var=$shlibpath_var
24366 # Is shlibpath searched before the hard-coded library search path?
24367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24369 # How to hardcode a shared library path into an executable.
24370 hardcode_action=$hardcode_action_F77
24372 # Whether we should hardcode library paths into libraries.
24373 hardcode_into_libs=$hardcode_into_libs
24375 # Flag to hardcode \$libdir into a binary during linking.
24376 # This must work even if \$libdir does not exist.
24377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24379 # If ld is used when linking, flag to hardcode \$libdir into
24380 # a binary during linking. This must work even if \$libdir does
24382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24384 # Whether we need a single -rpath flag with a separated argument.
24385 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24387 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24388 # resulting binary.
24389 hardcode_direct=$hardcode_direct_F77
24391 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24392 # resulting binary.
24393 hardcode_minus_L=$hardcode_minus_L_F77
24395 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24396 # the resulting binary.
24397 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24399 # Set to yes if building a shared library automatically hardcodes DIR into the library
24400 # and all subsequent libraries and executables linked against it.
24401 hardcode_automatic=$hardcode_automatic_F77
24403 # Variables whose values should be saved in libtool wrapper scripts and
24404 # restored at relink time.
24405 variables_saved_for_relink="$variables_saved_for_relink"
24407 # Whether libtool must link a program against all its dependency libraries.
24408 link_all_deplibs=$link_all_deplibs_F77
24410 # Compile-time system search path for libraries
24411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24413 # Run-time system search path for libraries
24414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24416 # Fix the shell variable \$srcfile for the compiler.
24417 fix_srcfile_path=$lt_fix_srcfile_path
24419 # Set to yes if exported symbols are required.
24420 always_export_symbols=$always_export_symbols_F77
24422 # The commands to list exported symbols.
24423 export_symbols_cmds=$lt_export_symbols_cmds_F77
24425 # The commands to extract the exported symbol list from a shared archive.
24426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24428 # Symbols that should not be listed in the preloaded symbols.
24429 exclude_expsyms=$lt_exclude_expsyms_F77
24431 # Symbols that must always be exported.
24432 include_expsyms=$lt_include_expsyms_F77
24434 # ### END LIBTOOL TAG CONFIG: $tagname
24440 # If there is no Makefile yet, we rely on a make rule to execute
24441 # `config.status --recheck' to rerun these tests and create the
24442 # libtool script then.
24443 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24444 if test -f "$ltmain_in"; then
24445 test -f Makefile && make "$ltmain"
24451 ac_cpp='$CPP $CPPFLAGS'
24452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24464 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24467 # Source file extension for Java test sources.
24470 # Object file extension for compiled Java test sources.
24474 # Code to be used in simple compile tests
24475 lt_simple_compile_test_code="class foo {}"
24477 # Code to be used in simple link tests
24478 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
24480 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24482 # If no C compiler was specified, use CC.
24485 # If no C compiler flags were specified, use CFLAGS.
24486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24488 # Allow CC to be a program name with arguments.
24492 # save warnings/boilerplate of simple test code
24493 ac_outfile=conftest.$ac_objext
24494 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24496 _lt_compiler_boilerplate=`cat conftest.err`
24499 ac_outfile=conftest.$ac_objext
24500 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24502 _lt_linker_boilerplate=`cat conftest.err`
24506 # Allow CC to be a program name with arguments.
24511 for cc_temp in $compiler""; do
24513 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24514 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24519 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24522 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24523 archive_cmds_need_lc_GCJ=no
24525 old_archive_cmds_GCJ=$old_archive_cmds
24528 lt_prog_compiler_no_builtin_flag_GCJ=
24530 if test "$GCC" = yes; then
24531 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24534 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 lt_cv_prog_compiler_rtti_exceptions=no
24540 ac_outfile=conftest.$ac_objext
24541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24542 lt_compiler_flag="-fno-rtti -fno-exceptions"
24543 # Insert the option either (1) after the last *FLAGS variable, or
24544 # (2) before a word containing "conftest.", or (3) at the end.
24545 # Note that $ac_compile itself does not contain backslashes and begins
24546 # with a dollar sign (not a hyphen), so the echo should work correctly.
24547 # The option is referenced via a variable to avoid confusing sed.
24548 lt_compile=`echo "$ac_compile" | $SED \
24549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24551 -e 's:$: $lt_compiler_flag:'`
24552 (eval echo "\"\$as_me:24552: $lt_compile\"" >&5)
24553 (eval "$lt_compile" 2>conftest.err)
24555 cat conftest.err >&5
24556 echo "$as_me:24556: \$? = $ac_status" >&5
24557 if (exit $ac_status) && test -s "$ac_outfile"; then
24558 # The compiler can only warn and ignore the option if not recognized
24559 # So say no if there are warnings other than the usual output.
24560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24563 lt_cv_prog_compiler_rtti_exceptions=yes
24569 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24573 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24580 lt_prog_compiler_wl_GCJ=
24581 lt_prog_compiler_pic_GCJ=
24582 lt_prog_compiler_static_GCJ=
24584 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24587 if test "$GCC" = yes; then
24588 lt_prog_compiler_wl_GCJ='-Wl,'
24589 lt_prog_compiler_static_GCJ='-static'
24593 # All AIX code is PIC.
24594 if test "$host_cpu" = ia64; then
24595 # AIX 5 now supports IA64 processor
24596 lt_prog_compiler_static_GCJ='-Bstatic'
24601 # FIXME: we need at least 68020 code to build shared libraries, but
24602 # adding the `-m68020' flag to GCC prevents building anything better,
24604 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24607 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24608 # PIC is the default for these OSes.
24611 mingw* | cygwin* | pw32* | os2*)
24612 # This hack is so that the source file can tell whether it is being
24613 # built for inclusion in a dll (and should export symbols for example).
24614 # Although the cygwin gcc ignores -fPIC, still need this for old-style
24615 # (--disable-auto-import) libraries
24619 darwin* | rhapsody*)
24620 # PIC is the default on this platform
24621 # Common symbols not allowed in MH_DYLIB files
24622 lt_prog_compiler_pic_GCJ='-fno-common'
24626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24627 # Instead, we relocate shared libraries at runtime.
24631 # Just because we use GCC doesn't mean we suddenly get shared libraries
24632 # on systems that don't support them.
24633 lt_prog_compiler_can_build_shared_GCJ=no
24638 if test -d /usr/nec; then
24639 lt_prog_compiler_pic_GCJ=-Kconform_pic
24644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24645 # not for PA HP-UX.
24651 lt_prog_compiler_pic_GCJ='-fPIC'
24657 lt_prog_compiler_pic_GCJ='-fPIC'
24661 # PORTME Check for flag to pass linker flags through the system compiler.
24664 lt_prog_compiler_wl_GCJ='-Wl,'
24665 if test "$host_cpu" = ia64; then
24666 # AIX 5 now supports IA64 processor
24667 lt_prog_compiler_static_GCJ='-Bstatic'
24669 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24673 # PIC is the default on this platform
24674 # Common symbols not allowed in MH_DYLIB files
24675 case $cc_basename in
24677 lt_prog_compiler_pic_GCJ='-qnocommon'
24678 lt_prog_compiler_wl_GCJ='-Wl,'
24683 mingw* | cygwin* | pw32* | os2*)
24684 # This hack is so that the source file can tell whether it is being
24685 # built for inclusion in a dll (and should export symbols for example).
24689 hpux9* | hpux10* | hpux11*)
24690 lt_prog_compiler_wl_GCJ='-Wl,'
24691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24692 # not for PA HP-UX.
24698 lt_prog_compiler_pic_GCJ='+Z'
24701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24702 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24705 irix5* | irix6* | nonstopux*)
24706 lt_prog_compiler_wl_GCJ='-Wl,'
24707 # PIC (with -KPIC) is the default.
24708 lt_prog_compiler_static_GCJ='-non_shared'
24712 lt_prog_compiler_pic_GCJ='-KPIC'
24713 lt_prog_compiler_static_GCJ='-Bstatic'
24716 linux* | k*bsd*-gnu)
24717 case $cc_basename in
24719 lt_prog_compiler_wl_GCJ='-Wl,'
24720 lt_prog_compiler_pic_GCJ='-KPIC'
24721 lt_prog_compiler_static_GCJ='-static'
24723 pgcc* | pgf77* | pgf90* | pgf95*)
24724 # Portland Group compilers (*not* the Pentium gcc compiler,
24725 # which looks to be a dead project)
24726 lt_prog_compiler_wl_GCJ='-Wl,'
24727 lt_prog_compiler_pic_GCJ='-fpic'
24728 lt_prog_compiler_static_GCJ='-Bstatic'
24731 lt_prog_compiler_wl_GCJ='-Wl,'
24732 # All Alpha code is PIC.
24733 lt_prog_compiler_static_GCJ='-non_shared'
24736 case `$CC -V 2>&1 | sed 5q` in
24739 lt_prog_compiler_pic_GCJ='-KPIC'
24740 lt_prog_compiler_static_GCJ='-Bstatic'
24741 lt_prog_compiler_wl_GCJ='-Wl,'
24744 # Sun Fortran 8.3 passes all unrecognized flags to the linker
24745 lt_prog_compiler_pic_GCJ='-KPIC'
24746 lt_prog_compiler_static_GCJ='-Bstatic'
24747 lt_prog_compiler_wl_GCJ=''
24754 osf3* | osf4* | osf5*)
24755 lt_prog_compiler_wl_GCJ='-Wl,'
24756 # All OSF/1 code is PIC.
24757 lt_prog_compiler_static_GCJ='-non_shared'
24761 lt_prog_compiler_static_GCJ='-non_shared'
24765 lt_prog_compiler_pic_GCJ='-KPIC'
24766 lt_prog_compiler_static_GCJ='-Bstatic'
24767 case $cc_basename in
24768 f77* | f90* | f95*)
24769 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24771 lt_prog_compiler_wl_GCJ='-Wl,';;
24776 lt_prog_compiler_wl_GCJ='-Qoption ld '
24777 lt_prog_compiler_pic_GCJ='-PIC'
24778 lt_prog_compiler_static_GCJ='-Bstatic'
24781 sysv4 | sysv4.2uw2* | sysv4.3*)
24782 lt_prog_compiler_wl_GCJ='-Wl,'
24783 lt_prog_compiler_pic_GCJ='-KPIC'
24784 lt_prog_compiler_static_GCJ='-Bstatic'
24788 if test -d /usr/nec ;then
24789 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24790 lt_prog_compiler_static_GCJ='-Bstatic'
24794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24795 lt_prog_compiler_wl_GCJ='-Wl,'
24796 lt_prog_compiler_pic_GCJ='-KPIC'
24797 lt_prog_compiler_static_GCJ='-Bstatic'
24801 lt_prog_compiler_wl_GCJ='-Wl,'
24802 lt_prog_compiler_can_build_shared_GCJ=no
24806 lt_prog_compiler_pic_GCJ='-pic'
24807 lt_prog_compiler_static_GCJ='-Bstatic'
24811 lt_prog_compiler_can_build_shared_GCJ=no
24816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24817 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24820 # Check to make sure the PIC flag actually works.
24822 if test -n "$lt_prog_compiler_pic_GCJ"; then
24824 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24825 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24826 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
24827 echo $ECHO_N "(cached) $ECHO_C" >&6
24829 lt_cv_prog_compiler_pic_works_GCJ=no
24830 ac_outfile=conftest.$ac_objext
24831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24832 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24833 # Insert the option either (1) after the last *FLAGS variable, or
24834 # (2) before a word containing "conftest.", or (3) at the end.
24835 # Note that $ac_compile itself does not contain backslashes and begins
24836 # with a dollar sign (not a hyphen), so the echo should work correctly.
24837 # The option is referenced via a variable to avoid confusing sed.
24838 lt_compile=`echo "$ac_compile" | $SED \
24839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24841 -e 's:$: $lt_compiler_flag:'`
24842 (eval echo "\"\$as_me:24842: $lt_compile\"" >&5)
24843 (eval "$lt_compile" 2>conftest.err)
24845 cat conftest.err >&5
24846 echo "$as_me:24846: \$? = $ac_status" >&5
24847 if (exit $ac_status) && test -s "$ac_outfile"; then
24848 # The compiler can only warn and ignore the option if not recognized
24849 # So say no if there are warnings other than the usual output.
24850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24853 lt_cv_prog_compiler_pic_works_GCJ=yes
24859 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
24860 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
24862 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
24863 case $lt_prog_compiler_pic_GCJ in
24865 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24868 lt_prog_compiler_pic_GCJ=
24869 lt_prog_compiler_can_build_shared_GCJ=no
24874 # For platforms which do not support PIC, -DPIC is meaningless:
24876 lt_prog_compiler_pic_GCJ=
24879 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24884 # Check to make sure the static flag actually works.
24886 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24887 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24888 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24889 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
24890 echo $ECHO_N "(cached) $ECHO_C" >&6
24892 lt_cv_prog_compiler_static_works_GCJ=no
24893 save_LDFLAGS="$LDFLAGS"
24894 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24895 echo "$lt_simple_link_test_code" > conftest.$ac_ext
24896 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24897 # The linker can only warn and ignore the option if not recognized
24898 # So say no if there are warnings
24899 if test -s conftest.err; then
24900 # Append any errors to the config.log.
24901 cat conftest.err 1>&5
24902 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24904 if diff conftest.exp conftest.er2 >/dev/null; then
24905 lt_cv_prog_compiler_static_works_GCJ=yes
24908 lt_cv_prog_compiler_static_works_GCJ=yes
24912 LDFLAGS="$save_LDFLAGS"
24915 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
24916 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
24918 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
24921 lt_prog_compiler_static_GCJ=
24925 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24927 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
24930 lt_cv_prog_compiler_c_o_GCJ=no
24931 $rm -r conftest 2>/dev/null
24935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24937 lt_compiler_flag="-o out/conftest2.$ac_objext"
24938 # Insert the option either (1) after the last *FLAGS variable, or
24939 # (2) before a word containing "conftest.", or (3) at the end.
24940 # Note that $ac_compile itself does not contain backslashes and begins
24941 # with a dollar sign (not a hyphen), so the echo should work correctly.
24942 lt_compile=`echo "$ac_compile" | $SED \
24943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24945 -e 's:$: $lt_compiler_flag:'`
24946 (eval echo "\"\$as_me:24946: $lt_compile\"" >&5)
24947 (eval "$lt_compile" 2>out/conftest.err)
24949 cat out/conftest.err >&5
24950 echo "$as_me:24950: \$? = $ac_status" >&5
24951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24953 # The compiler can only warn and ignore the option if not recognized
24954 # So say no if there are warnings
24955 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24956 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24957 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24958 lt_cv_prog_compiler_c_o_GCJ=yes
24963 # SGI C++ compiler will create directory out/ii_files/ for
24964 # template instantiation
24965 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24966 $rm out/* && rmdir out
24972 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24973 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24976 hard_links="nottested"
24977 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24978 # do not overwrite the value of need_locks provided by the user
24979 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24980 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24985 ln conftest.a conftest.b 2>&5 || hard_links=no
24986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24987 { echo "$as_me:$LINENO: result: $hard_links" >&5
24988 echo "${ECHO_T}$hard_links" >&6; }
24989 if test "$hard_links" = no; then
24990 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24991 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24998 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
25002 allow_undefined_flag_GCJ=
25003 enable_shared_with_static_runtimes_GCJ=no
25005 archive_expsym_cmds_GCJ=
25006 old_archive_From_new_cmds_GCJ=
25007 old_archive_from_expsyms_cmds_GCJ=
25008 export_dynamic_flag_spec_GCJ=
25009 whole_archive_flag_spec_GCJ=
25010 thread_safe_flag_spec_GCJ=
25011 hardcode_libdir_flag_spec_GCJ=
25012 hardcode_libdir_flag_spec_ld_GCJ=
25013 hardcode_libdir_separator_GCJ=
25014 hardcode_direct_GCJ=no
25015 hardcode_minus_L_GCJ=no
25016 hardcode_shlibpath_var_GCJ=unsupported
25017 link_all_deplibs_GCJ=unknown
25018 hardcode_automatic_GCJ=no
25020 module_expsym_cmds_GCJ=
25021 always_export_symbols_GCJ=no
25022 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25023 # include_expsyms should be a list of space-separated symbols to be *always*
25024 # included in the symbol list
25025 include_expsyms_GCJ=
25026 # exclude_expsyms can be an extended regexp of symbols to exclude
25027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
25028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25029 # as well as any symbol that contains `d'.
25030 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25032 # platforms (ab)use it in PIC code, but their linkers get confused if
25033 # the symbol is explicitly referenced. Since portable code cannot
25034 # rely on this symbol name, it's probably fine to never include it in
25035 # preloaded symbol tables.
25036 # Exclude shared library initialization/finalization symbols.
25037 extract_expsyms_cmds=
25038 # Just being paranoid about ensuring that cc_basename is set.
25039 for cc_temp in $compiler""; do
25041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25050 cygwin* | mingw* | pw32*)
25051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
25052 # When not using gcc, we currently assume that we are using
25053 # Microsoft Visual C++.
25054 if test "$GCC" != yes; then
25059 # we just hope/assume this is gcc and not c89 (= MSVC++)
25068 if test "$with_gnu_ld" = yes; then
25069 # If archive_cmds runs LD, not CC, wlarc should be empty
25072 # Set some defaults for GNU ld with shared library support. These
25073 # are reset later if shared libraries are not supported. Putting them
25074 # here allows them to be overridden if necessary.
25075 runpath_var=LD_RUN_PATH
25076 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25077 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25078 # ancient GNU ld didn't support --whole-archive et. al.
25079 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25080 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25082 whole_archive_flag_spec_GCJ=
25084 supports_anon_versioning=no
25085 case `$LD -v 2>/dev/null` in
25086 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25087 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25088 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25089 *\ 2.11.*) ;; # other 2.11 versions
25090 *) supports_anon_versioning=yes ;;
25093 # See if GNU ld supports shared libraries.
25096 # On AIX/PPC, the GNU linker is very broken
25097 if test "$host_cpu" != ia64; then
25101 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25102 *** to be unable to reliably create shared libraries on AIX.
25103 *** Therefore, libtool is disabling shared libraries support. If you
25104 *** really care for shared libraries, you may want to modify your PATH
25105 *** so that a non-GNU linker is found, and then restart.
25112 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)'
25113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114 hardcode_minus_L_GCJ=yes
25116 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25117 # that the semantics of dynamic libraries on AmigaOS, at least up
25118 # to version 4, is to share data among multiple programs linked
25119 # with the same dynamic library. Since this doesn't match the
25120 # behavior of shared libraries on other platforms, we can't use
25126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25127 allow_undefined_flag_GCJ=unsupported
25128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25129 # support --undefined. This deserves some investigation. FIXME
25130 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25136 cygwin* | mingw* | pw32*)
25137 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25138 # as there is no search path for DLLs.
25139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25140 allow_undefined_flag_GCJ=unsupported
25141 always_export_symbols_GCJ=no
25142 enable_shared_with_static_runtimes_GCJ=yes
25143 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25145 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25147 # If the export-symbols file already is a .def file (1st line
25148 # is EXPORTS), use it as is; otherwise, prepend...
25149 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25150 cp $export_symbols $output_objdir/$soname.def;
25152 echo EXPORTS > $output_objdir/$soname.def;
25153 cat $export_symbols >> $output_objdir/$soname.def;
25155 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25162 hardcode_direct_GCJ=no
25163 hardcode_shlibpath_var_GCJ=no
25164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25165 export_dynamic_flag_spec_GCJ='${wl}-E'
25166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25167 # Instead, shared libraries are loaded at an image base (0x10000000 by
25168 # default) and relocated if they conflict, which is a slow very memory
25169 # consuming and fragmenting process. To avoid this, we pick a random,
25170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
25172 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'
25173 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'
25176 gnu* | linux* | k*bsd*-gnu)
25177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25179 case $cc_basename,$host_cpu in
25180 pgcc*) # Portland Group C compiler
25181 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'
25182 tmp_addflag=' $pic_flag'
25184 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
25185 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'
25186 tmp_addflag=' $pic_flag -Mnomain' ;;
25187 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25188 tmp_addflag=' -i_dynamic' ;;
25189 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25190 tmp_addflag=' -i_dynamic -nofor_main' ;;
25191 ifc* | ifort*) # Intel Fortran compiler
25192 tmp_addflag=' -nofor_main' ;;
25194 case `$CC -V 2>&1 | sed 5q` in
25195 *Sun\ C*) # Sun C 5.9
25196 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'
25197 tmp_sharedflag='-G' ;;
25198 *Sun\ F*) # Sun Fortran 8.3
25199 tmp_sharedflag='-G' ;;
25201 tmp_sharedflag='-shared' ;;
25203 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25205 if test $supports_anon_versioning = yes; then
25206 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25207 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25208 $echo "local: *; };" >> $output_objdir/$libname.ver~
25209 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25211 link_all_deplibs_GCJ=no
25217 netbsd* | netbsdelf*-gnu)
25218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25219 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25222 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25223 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25228 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25232 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25233 *** create shared libraries on Solaris systems. Therefore, libtool
25234 *** is disabling shared libraries support. We urge you to upgrade GNU
25235 *** binutils to release 2.9.1 or newer. Another option is to modify
25236 *** your PATH or compiler configuration so that the native linker is
25237 *** used, and then restart.
25240 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25241 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25242 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25249 case `$LD -v 2>&1` in
25250 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25254 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25255 *** reliably create shared libraries on SCO systems. Therefore, libtool
25256 *** is disabling shared libraries support. We urge you to upgrade GNU
25257 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
25258 *** your PATH or compiler configuration so that the native linker is
25259 *** used, and then restart.
25264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25265 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25266 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25267 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25276 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25278 hardcode_direct_GCJ=yes
25279 hardcode_shlibpath_var_GCJ=no
25283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25285 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25292 if test "$ld_shlibs_GCJ" = no; then
25294 hardcode_libdir_flag_spec_GCJ=
25295 export_dynamic_flag_spec_GCJ=
25296 whole_archive_flag_spec_GCJ=
25299 # PORTME fill in a description of your system's linker (not GNU ld)
25302 allow_undefined_flag_GCJ=unsupported
25303 always_export_symbols_GCJ=yes
25304 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'
25305 # Note: this linker hardcodes the directories in LIBPATH if there
25306 # are no directories specified by -L.
25307 hardcode_minus_L_GCJ=yes
25308 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25309 # Neither direct hardcoding nor static linking is supported with a
25311 hardcode_direct_GCJ=unsupported
25316 if test "$host_cpu" = ia64; then
25317 # On IA64, the linker does run time linking by default, so we don't
25318 # have to do anything special.
25319 aix_use_runtimelinking=no
25320 exp_sym_flag='-Bexport'
25323 # If we're using GNU nm, then we don't want the "-C" option.
25324 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25325 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25326 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'
25328 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'
25330 aix_use_runtimelinking=no
25332 # Test if we are trying to use run time linking or normal
25333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25334 # need to do runtime linking.
25335 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
25336 for ld_flag in $LDFLAGS; do
25337 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25338 aix_use_runtimelinking=yes
25345 exp_sym_flag='-bexport'
25346 no_entry_flag='-bnoentry'
25349 # When large executables or shared objects are built, AIX ld can
25350 # have problems creating the table of contents. If linking a library
25351 # or program results in "error TOC overflow" add -mminimal-toc to
25352 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25353 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25355 archive_cmds_GCJ=''
25356 hardcode_direct_GCJ=yes
25357 hardcode_libdir_separator_GCJ=':'
25358 link_all_deplibs_GCJ=yes
25360 if test "$GCC" = yes; then
25361 case $host_os in aix4.[012]|aix4.[012].*)
25362 # We only want to do this on AIX 4.2 and lower, the check
25363 # below for broken collect2 doesn't work under 4.3+
25364 collect2name=`${CC} -print-prog-name=collect2`
25365 if test -f "$collect2name" && \
25366 strings "$collect2name" | grep resolve_lib_name >/dev/null
25368 # We have reworked collect2
25371 # We have old collect2
25372 hardcode_direct_GCJ=unsupported
25373 # It fails to find uninstalled libraries when the uninstalled
25374 # path is not listed in the libpath. Setting hardcode_minus_L
25375 # to unsupported forces relinking
25376 hardcode_minus_L_GCJ=yes
25377 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25378 hardcode_libdir_separator_GCJ=
25382 shared_flag='-shared'
25383 if test "$aix_use_runtimelinking" = yes; then
25384 shared_flag="$shared_flag "'${wl}-G'
25388 if test "$host_cpu" = ia64; then
25389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25390 # chokes on -Wl,-G. The following line is correct:
25393 if test "$aix_use_runtimelinking" = yes; then
25394 shared_flag='${wl}-G'
25396 shared_flag='${wl}-bM:SRE'
25401 # It seems that -bexpall does not export symbols beginning with
25402 # underscore (_), so it is better to generate a list of symbols to export.
25403 always_export_symbols_GCJ=yes
25404 if test "$aix_use_runtimelinking" = yes; then
25405 # Warning - without using the other runtime loading flags (-brtl),
25406 # -berok will link without error, but may produce a broken library.
25407 allow_undefined_flag_GCJ='-berok'
25408 # Determine the default libpath from the value encoded in an empty executable.
25409 cat >conftest.$ac_ext <<_ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (ac_try="$ac_link"
25426 case "(($ac_try" in
25427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428 *) ac_try_echo=$ac_try;;
25430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25431 (eval "$ac_link") 2>conftest.er1
25433 grep -v '^ *+' conftest.er1 >conftest.err
25435 cat conftest.err >&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } && {
25438 test -z "$ac_c_werror_flag" ||
25439 test ! -s conftest.err
25440 } && test -s conftest$ac_exeext &&
25441 $as_test_x conftest$ac_exeext; then
25443 lt_aix_libpath_sed='
25444 /Import File Strings/,/^$/ {
25450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25451 # Check for a 64-bit object if we didn't find anything.
25452 if test -z "$aix_libpath"; then
25453 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25456 echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25463 conftest$ac_exeext conftest.$ac_ext
25464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25466 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25467 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"
25469 if test "$host_cpu" = ia64; then
25470 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25471 allow_undefined_flag_GCJ="-z nodefs"
25472 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"
25474 # Determine the default libpath from the value encoded in an empty executable.
25475 cat >conftest.$ac_ext <<_ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h. */
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (ac_try="$ac_link"
25492 case "(($ac_try" in
25493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25494 *) ac_try_echo=$ac_try;;
25496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25497 (eval "$ac_link") 2>conftest.er1
25499 grep -v '^ *+' conftest.er1 >conftest.err
25501 cat conftest.err >&5
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); } && {
25504 test -z "$ac_c_werror_flag" ||
25505 test ! -s conftest.err
25506 } && test -s conftest$ac_exeext &&
25507 $as_test_x conftest$ac_exeext; then
25509 lt_aix_libpath_sed='
25510 /Import File Strings/,/^$/ {
25516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25517 # Check for a 64-bit object if we didn't find anything.
25518 if test -z "$aix_libpath"; then
25519 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25522 echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25529 conftest$ac_exeext conftest.$ac_ext
25530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25532 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25533 # Warning - without using the other run time loading flags,
25534 # -berok will link without error, but may produce a broken library.
25535 no_undefined_flag_GCJ=' ${wl}-bernotok'
25536 allow_undefined_flag_GCJ=' ${wl}-berok'
25537 # Exported symbols can be pulled into shared objects from archives
25538 whole_archive_flag_spec_GCJ='$convenience'
25539 archive_cmds_need_lc_GCJ=yes
25540 # This is similar to how AIX traditionally builds its shared libraries.
25541 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'
25547 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)'
25548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25549 hardcode_minus_L_GCJ=yes
25550 # see comment about different semantics on the GNU ld section
25555 export_dynamic_flag_spec_GCJ=-rdynamic
25558 cygwin* | mingw* | pw32*)
25559 # When not using gcc, we currently assume that we are using
25560 # Microsoft Visual C++.
25561 # hardcode_libdir_flag_spec is actually meaningless, as there is
25562 # no search path for DLLs.
25563 hardcode_libdir_flag_spec_GCJ=' '
25564 allow_undefined_flag_GCJ=unsupported
25565 # Tell ltmain to make .lib files, not .a files.
25567 # Tell ltmain to make .dll files, not .so files.
25569 # FIXME: Setting linknames here is a bad hack.
25570 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25571 # The linker will automatically build a .lib file if we build a DLL.
25572 old_archive_From_new_cmds_GCJ='true'
25573 # FIXME: Should let the user specify the lib program.
25574 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
25575 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25576 enable_shared_with_static_runtimes_GCJ=yes
25579 darwin* | rhapsody*)
25581 rhapsody* | darwin1.[012])
25582 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25585 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25586 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25588 case ${MACOSX_DEPLOYMENT_TARGET} in
25590 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25593 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25599 archive_cmds_need_lc_GCJ=no
25600 hardcode_direct_GCJ=no
25601 hardcode_automatic_GCJ=yes
25602 hardcode_shlibpath_var_GCJ=unsupported
25603 whole_archive_flag_spec_GCJ=''
25604 link_all_deplibs_GCJ=yes
25605 if test "$GCC" = yes ; then
25606 output_verbose_link_cmd='echo'
25607 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}"
25608 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
25609 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}"
25610 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}"
25612 case $cc_basename in
25614 output_verbose_link_cmd='echo'
25615 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
25616 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25618 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}'
25619 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}'
25629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25630 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25631 hardcode_shlibpath_var_GCJ=no
25638 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25639 # support. Future versions do this automatically, but an explicit c++rt0.o
25640 # does not break anything, and helps significantly (at the cost of a little
25643 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25644 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25645 hardcode_direct_GCJ=yes
25646 hardcode_shlibpath_var_GCJ=no
25649 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25651 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25652 hardcode_direct_GCJ=yes
25653 hardcode_minus_L_GCJ=yes
25654 hardcode_shlibpath_var_GCJ=no
25657 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25658 freebsd* | dragonfly*)
25659 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25660 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25661 hardcode_direct_GCJ=yes
25662 hardcode_shlibpath_var_GCJ=no
25666 if test "$GCC" = yes; then
25667 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'
25669 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'
25671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25672 hardcode_libdir_separator_GCJ=:
25673 hardcode_direct_GCJ=yes
25675 # hardcode_minus_L: Not really in the search PATH,
25676 # but as the default location of the library.
25677 hardcode_minus_L_GCJ=yes
25678 export_dynamic_flag_spec_GCJ='${wl}-E'
25682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25683 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25685 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25687 if test "$with_gnu_ld" = no; then
25688 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25689 hardcode_libdir_separator_GCJ=:
25691 hardcode_direct_GCJ=yes
25692 export_dynamic_flag_spec_GCJ='${wl}-E'
25694 # hardcode_minus_L: Not really in the search PATH,
25695 # but as the default location of the library.
25696 hardcode_minus_L_GCJ=yes
25701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25704 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25707 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25710 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25716 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25719 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25722 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25726 if test "$with_gnu_ld" = no; then
25727 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25728 hardcode_libdir_separator_GCJ=:
25732 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25733 hardcode_direct_GCJ=no
25734 hardcode_shlibpath_var_GCJ=no
25737 hardcode_direct_GCJ=yes
25738 export_dynamic_flag_spec_GCJ='${wl}-E'
25740 # hardcode_minus_L: Not really in the search PATH,
25741 # but as the default location of the library.
25742 hardcode_minus_L_GCJ=yes
25748 irix5* | irix6* | nonstopux*)
25749 if test "$GCC" = yes; then
25750 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'
25752 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'
25753 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25756 hardcode_libdir_separator_GCJ=:
25757 link_all_deplibs_GCJ=yes
25760 netbsd* | netbsdelf*-gnu)
25761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25762 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25764 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25766 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25767 hardcode_direct_GCJ=yes
25768 hardcode_shlibpath_var_GCJ=no
25772 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25773 hardcode_direct_GCJ=yes
25774 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25775 hardcode_libdir_separator_GCJ=:
25776 hardcode_shlibpath_var_GCJ=no
25780 if test -f /usr/libexec/ld.so; then
25781 hardcode_direct_GCJ=yes
25782 hardcode_shlibpath_var_GCJ=no
25783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25784 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25785 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25787 export_dynamic_flag_spec_GCJ='${wl}-E'
25790 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25791 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25792 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25795 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25796 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25807 hardcode_minus_L_GCJ=yes
25808 allow_undefined_flag_GCJ=unsupported
25809 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'
25810 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25814 if test "$GCC" = yes; then
25815 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25816 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'
25818 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25819 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'
25821 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25822 hardcode_libdir_separator_GCJ=:
25825 osf4* | osf5*) # as osf3* with the addition of -msym flag
25826 if test "$GCC" = yes; then
25827 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25828 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'
25829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25831 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25832 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'
25833 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~
25834 $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'
25836 # Both c and cxx compiler support -rpath directly
25837 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25839 hardcode_libdir_separator_GCJ=:
25843 no_undefined_flag_GCJ=' -z text'
25844 if test "$GCC" = yes; then
25846 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25847 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25848 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25851 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25852 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25853 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25855 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25856 hardcode_shlibpath_var_GCJ=no
25858 solaris2.[0-5] | solaris2.[0-5].*) ;;
25860 # The compiler driver will combine and reorder linker options,
25861 # but understands `-z linker_flag'. GCC discards it without `$wl',
25862 # but is careful enough not to reorder.
25863 # Supported since Solaris 2.6 (maybe 2.5.1?)
25864 if test "$GCC" = yes; then
25865 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25867 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25871 link_all_deplibs_GCJ=yes
25875 if test "x$host_vendor" = xsequent; then
25876 # Use $CC to link under sequent, because it throws in some extra .o
25877 # files that make .init and .fini sections work.
25878 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25880 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25882 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25883 hardcode_direct_GCJ=yes
25884 hardcode_minus_L_GCJ=yes
25885 hardcode_shlibpath_var_GCJ=no
25889 case $host_vendor in
25891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25892 hardcode_direct_GCJ=yes # is this really true???
25895 ## LD is ld it makes a PLAMLIB
25896 ## CC just makes a GrossModule.
25897 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25898 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25899 hardcode_direct_GCJ=no
25902 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25903 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25906 runpath_var='LD_RUN_PATH'
25907 hardcode_shlibpath_var_GCJ=no
25911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25912 hardcode_shlibpath_var_GCJ=no
25913 export_dynamic_flag_spec_GCJ='-Bexport'
25917 if test -d /usr/nec; then
25918 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25919 hardcode_shlibpath_var_GCJ=no
25920 runpath_var=LD_RUN_PATH
25921 hardcode_runpath_var=yes
25926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25927 no_undefined_flag_GCJ='${wl}-z,text'
25928 archive_cmds_need_lc_GCJ=no
25929 hardcode_shlibpath_var_GCJ=no
25930 runpath_var='LD_RUN_PATH'
25932 if test "$GCC" = yes; then
25933 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25934 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25936 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25937 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25941 sysv5* | sco3.2v5* | sco5v6*)
25942 # Note: We can NOT use -z defs as we might desire, because we do not
25943 # link with -lc, and that would cause any symbols used from libc to
25944 # always be unresolved, which means just about no library would
25945 # ever link correctly. If we're not using GNU ld we use -z text
25946 # though, which does catch some bad symbols but isn't as heavy-handed
25948 no_undefined_flag_GCJ='${wl}-z,text'
25949 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25950 archive_cmds_need_lc_GCJ=no
25951 hardcode_shlibpath_var_GCJ=no
25952 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25953 hardcode_libdir_separator_GCJ=':'
25954 link_all_deplibs_GCJ=yes
25955 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25956 runpath_var='LD_RUN_PATH'
25958 if test "$GCC" = yes; then
25959 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25960 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25962 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25963 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25968 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25970 hardcode_shlibpath_var_GCJ=no
25979 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25980 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25981 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25984 # Do we need to explicitly link libc?
25986 case "x$archive_cmds_need_lc_GCJ" in
25988 # Assume -lc should be added
25989 archive_cmds_need_lc_GCJ=yes
25991 if test "$enable_shared" = yes && test "$GCC" = yes; then
25992 case $archive_cmds_GCJ in
25994 # FIXME: we may have to deal with multi-command sequences.
25997 # Test whether the compiler implicitly links with -lc since on some
25998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25999 # to ld, don't add -lc before -lgcc.
26000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
26003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26006 (eval $ac_compile) 2>&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); } 2>conftest.err; then
26012 libobjs=conftest.$ac_objext
26014 wl=$lt_prog_compiler_wl_GCJ
26015 pic_flag=$lt_prog_compiler_pic_GCJ
26021 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
26022 allow_undefined_flag_GCJ=
26023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26024 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }
26029 archive_cmds_need_lc_GCJ=no
26031 archive_cmds_need_lc_GCJ=yes
26033 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
26035 cat conftest.err 1>&5
26038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26039 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
26046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
26048 library_names_spec=
26049 libname_spec='lib$name'
26053 postuninstall_cmds=
26057 shlibpath_overrides_runpath=unknown
26059 dynamic_linker="$host_os ld.so"
26060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
26062 need_lib_prefix=unknown
26063 hardcode_into_libs=no
26065 # when you set need_version to no, make sure it does not cause -set_version
26066 # flags to be left without arguments
26067 need_version=unknown
26072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26073 shlibpath_var=LIBPATH
26075 # AIX 3 has no versioning support, so we append a major version to the name.
26076 soname_spec='${libname}${release}${shared_ext}$major'
26083 hardcode_into_libs=yes
26084 if test "$host_cpu" = ia64; then
26085 # AIX 5 supports IA64
26086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26087 shlibpath_var=LD_LIBRARY_PATH
26089 # With GCC up to 2.95.x, collect2 would create an import file
26090 # for dependence libraries. The import file would start with
26091 # the line `#! .'. This would cause the generated library to
26092 # depend on `.', always an invalid library. This was fixed in
26093 # development snapshots of GCC prior to 3.0.
26095 aix4 | aix4.[01] | aix4.[01].*)
26096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26101 can_build_shared=no
26105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26106 # soname into executable. Probably we can add versioning support to
26107 # collect2, so additional links can be useful in future.
26108 if test "$aix_use_runtimelinking" = yes; then
26109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26110 # instead of lib<name>.a to let people know that these are not
26111 # typical AIX shared libraries.
26112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26114 # We preserve .a as extension for shared libraries through AIX4.2
26115 # and later when we are not doing run time linking.
26116 library_names_spec='${libname}${release}.a $libname.a'
26117 soname_spec='${libname}${release}${shared_ext}$major'
26119 shlibpath_var=LIBPATH
26124 library_names_spec='$libname.ixlibrary $libname.a'
26125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
26126 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'
26130 library_names_spec='${libname}${shared_ext}'
26131 dynamic_linker="$host_os ld.so"
26132 shlibpath_var=LIBRARY_PATH
26138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26139 soname_spec='${libname}${release}${shared_ext}$major'
26140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26141 shlibpath_var=LD_LIBRARY_PATH
26142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26144 # the default ld.so.conf also contains /usr/contrib/lib and
26145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26146 # libtool to hard-code these into programs
26149 cygwin* | mingw* | pw32*)
26150 version_type=windows
26155 case $GCC,$host_os in
26156 yes,cygwin* | yes,mingw* | yes,pw32*)
26157 library_names_spec='$libname.dll.a'
26158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
26159 postinstall_cmds='base_file=`basename \${file}`~
26160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26161 dldir=$destdir/`dirname \$dlpath`~
26162 test -d \$dldir || mkdir -p \$dldir~
26163 $install_prog $dir/$dlname \$dldir/$dlname~
26164 chmod a+x \$dldir/$dlname'
26165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26166 dlpath=$dir/\$dldll~
26168 shlibpath_overrides_runpath=yes
26172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26177 # MinGW DLLs use traditional 'lib' prefix
26178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26181 # It is most probably a Windows format PATH printed by
26182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
26183 # path with ; separators, and with drive letters. We can handle the
26184 # drive letters (cygwin fileutils understands them), so leave them,
26185 # especially as we might pass files found there to a mingw objdump,
26186 # which wouldn't understand a cygwinified path. Ahh.
26187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26193 # pw32 DLLs use 'pw' prefix rather than 'lib'
26194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26203 dynamic_linker='Win32 ld.exe'
26204 # FIXME: first we should search . and the directory the executable is in
26208 darwin* | rhapsody*)
26209 dynamic_linker="$host_os dyld"
26210 version_type=darwin
26213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26214 soname_spec='${libname}${release}${major}$shared_ext'
26215 shlibpath_overrides_runpath=yes
26216 shlibpath_var=DYLD_LIBRARY_PATH
26217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26227 soname_spec='${libname}${release}${shared_ext}$major'
26228 shlibpath_var=LD_LIBRARY_PATH
26235 freebsd* | dragonfly*)
26236 # DragonFly does not have aout. When/if they implement a new
26237 # versioning mechanism, adjust this.
26238 if test -x /usr/bin/objformat; then
26239 objformat=`/usr/bin/objformat`
26242 freebsd[123]*) objformat=aout ;;
26243 *) objformat=elf ;;
26246 version_type=freebsd-$objformat
26247 case $version_type in
26249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26258 shlibpath_var=LD_LIBRARY_PATH
26261 shlibpath_overrides_runpath=yes
26263 freebsd3.[01]* | freebsdelf3.[01]*)
26264 shlibpath_overrides_runpath=yes
26265 hardcode_into_libs=yes
26267 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26268 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26269 shlibpath_overrides_runpath=no
26270 hardcode_into_libs=yes
26272 *) # from 4.6 on, and DragonFly
26273 shlibpath_overrides_runpath=yes
26274 hardcode_into_libs=yes
26283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26284 soname_spec='${libname}${release}${shared_ext}$major'
26285 shlibpath_var=LD_LIBRARY_PATH
26286 hardcode_into_libs=yes
26289 hpux9* | hpux10* | hpux11*)
26290 # Give a soname corresponding to the major version so that dld.sl refuses to
26291 # link against other versions.
26298 hardcode_into_libs=yes
26299 dynamic_linker="$host_os dld.so"
26300 shlibpath_var=LD_LIBRARY_PATH
26301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26303 soname_spec='${libname}${release}${shared_ext}$major'
26304 if test "X$HPUX_IA64_MODE" = X32; then
26305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26313 hardcode_into_libs=yes
26314 dynamic_linker="$host_os dld.sl"
26315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26318 soname_spec='${libname}${release}${shared_ext}$major'
26319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26324 dynamic_linker="$host_os dld.sl"
26325 shlibpath_var=SHLIB_PATH
26326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26328 soname_spec='${libname}${release}${shared_ext}$major'
26331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26332 postinstall_cmds='chmod 555 $lib'
26339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26340 soname_spec='${libname}${release}${shared_ext}$major'
26341 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26342 shlibpath_var=LD_LIBRARY_PATH
26343 shlibpath_overrides_runpath=no
26344 hardcode_into_libs=yes
26347 irix5* | irix6* | nonstopux*)
26349 nonstopux*) version_type=nonstopux ;;
26351 if test "$lt_cv_prog_gnu_ld" = yes; then
26359 soname_spec='${libname}${release}${shared_ext}$major'
26360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26362 irix5* | nonstopux*)
26363 libsuff= shlibsuff=
26366 case $LD in # libtool.m4 will add one of these switches to LD
26367 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26368 libsuff= shlibsuff= libmagic=32-bit;;
26369 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26370 libsuff=32 shlibsuff=N32 libmagic=N32;;
26371 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26372 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26373 *) libsuff= shlibsuff= libmagic=never-match;;
26377 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26378 shlibpath_overrides_runpath=no
26379 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26380 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26381 hardcode_into_libs=yes
26384 # No shared lib support for Linux oldld, aout, or coff.
26385 linux*oldld* | linux*aout* | linux*coff*)
26389 # This must be Linux ELF.
26390 linux* | k*bsd*-gnu)
26394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26395 soname_spec='${libname}${release}${shared_ext}$major'
26396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26397 shlibpath_var=LD_LIBRARY_PATH
26398 shlibpath_overrides_runpath=no
26399 # This implies no fast_install, which is unacceptable.
26400 # Some rework will be needed to allow for fast_install
26401 # before this can be enabled.
26402 hardcode_into_libs=yes
26404 # Append ld.so.conf contents to the search path
26405 if test -f /etc/ld.so.conf; then
26406 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' ' '`
26407 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26410 # We used to test for /lib/ld.so.1 and disable shared libraries on
26411 # powerpc, because MkLinux only supported shared libraries with the
26412 # GNU dynamic linker. Since this was broken with cross compilers,
26413 # most powerpc-linux boxes support dynamic linking these days and
26414 # people can always --disable-shared, the test was removed, and we
26415 # assume the GNU/Linux dynamic linker is in use.
26416 dynamic_linker='GNU/Linux ld.so'
26423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26424 soname_spec='${libname}${release}${shared_ext}$major'
26425 shlibpath_var=LD_LIBRARY_PATH
26426 shlibpath_overrides_runpath=no
26427 hardcode_into_libs=yes
26428 dynamic_linker='NetBSD ld.elf_so'
26435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26438 dynamic_linker='NetBSD (a.out) ld.so'
26440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26441 soname_spec='${libname}${release}${shared_ext}$major'
26442 dynamic_linker='NetBSD ld.elf_so'
26444 shlibpath_var=LD_LIBRARY_PATH
26445 shlibpath_overrides_runpath=yes
26446 hardcode_into_libs=yes
26451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26452 shlibpath_var=LD_LIBRARY_PATH
26453 shlibpath_overrides_runpath=yes
26460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26461 soname_spec='${libname}${release}${shared_ext}$major'
26462 shlibpath_var=LD_LIBRARY_PATH
26463 shlibpath_overrides_runpath=yes
26468 sys_lib_dlsearch_path_spec="/usr/lib"
26470 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26472 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26473 *) need_version=no ;;
26475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26477 shlibpath_var=LD_LIBRARY_PATH
26478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26480 openbsd2.[89] | openbsd2.[89].*)
26481 shlibpath_overrides_runpath=no
26484 shlibpath_overrides_runpath=yes
26488 shlibpath_overrides_runpath=yes
26493 libname_spec='$name'
26496 library_names_spec='$libname${shared_ext} $libname.a'
26497 dynamic_linker='OS/2 ld.exe'
26498 shlibpath_var=LIBPATH
26501 osf3* | osf4* | osf5*)
26505 soname_spec='${libname}${release}${shared_ext}$major'
26506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26507 shlibpath_var=LD_LIBRARY_PATH
26508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26521 soname_spec='${libname}${release}${shared_ext}$major'
26522 shlibpath_var=LD_LIBRARY_PATH
26523 shlibpath_overrides_runpath=yes
26524 hardcode_into_libs=yes
26525 # ldd complains unless libraries are executable
26526 postinstall_cmds='chmod +x $lib'
26531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26533 shlibpath_var=LD_LIBRARY_PATH
26534 shlibpath_overrides_runpath=yes
26535 if test "$with_gnu_ld" = yes; then
26543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26544 soname_spec='${libname}${release}${shared_ext}$major'
26545 shlibpath_var=LD_LIBRARY_PATH
26546 case $host_vendor in
26548 shlibpath_overrides_runpath=no
26550 export_dynamic_flag_spec='${wl}-Blargedynsym'
26551 runpath_var=LD_RUN_PATH
26559 shlibpath_overrides_runpath=no
26560 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26566 if test -d /usr/nec ;then
26568 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26569 soname_spec='$libname${shared_ext}.$major'
26570 shlibpath_var=LD_LIBRARY_PATH
26574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26575 version_type=freebsd-elf
26578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26579 soname_spec='${libname}${release}${shared_ext}$major'
26580 shlibpath_var=LD_LIBRARY_PATH
26581 hardcode_into_libs=yes
26582 if test "$with_gnu_ld" = yes; then
26583 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26584 shlibpath_overrides_runpath=no
26586 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26587 shlibpath_overrides_runpath=yes
26590 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26594 sys_lib_dlsearch_path_spec='/usr/lib'
26599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26600 soname_spec='${libname}${release}${shared_ext}$major'
26601 shlibpath_var=LD_LIBRARY_PATH
26608 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26609 echo "${ECHO_T}$dynamic_linker" >&6; }
26610 test "$dynamic_linker" = no && can_build_shared=no
26612 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26615 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
26618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
26619 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
26620 echo $ECHO_N "(cached) $ECHO_C" >&6
26622 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
26625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
26627 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26628 if test "$GCC" = yes; then
26629 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26632 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26633 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26634 hardcode_action_GCJ=
26635 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26636 test -n "$runpath_var_GCJ" || \
26637 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26639 # We can hardcode non-existant directories.
26640 if test "$hardcode_direct_GCJ" != no &&
26641 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26642 # have to relink, otherwise we might link with an installed library
26643 # when we should be linking with a yet-to-be-installed one
26644 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26645 test "$hardcode_minus_L_GCJ" != no; then
26646 # Linking always hardcodes the temporary library directory.
26647 hardcode_action_GCJ=relink
26649 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26650 hardcode_action_GCJ=immediate
26653 # We cannot hardcode anything, or else we can only hardcode existing
26655 hardcode_action_GCJ=unsupported
26657 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26658 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26660 if test "$hardcode_action_GCJ" = relink; then
26661 # Fast installation is not supported
26662 enable_fast_install=no
26663 elif test "$shlibpath_overrides_runpath" = yes ||
26664 test "$enable_shared" = no; then
26665 # Fast installation is not necessary
26666 enable_fast_install=needless
26670 # The else clause should only fire when bootstrapping the
26671 # libtool distribution, otherwise you forgot to ship ltmain.sh
26672 # with your package, and you will get complaints that there are
26673 # no rules to generate ltmain.sh.
26674 if test -f "$ltmain"; then
26675 # See if we are running on zsh, and set the options which allow our commands through
26676 # without removal of \ escapes.
26677 if test -n "${ZSH_VERSION+set}" ; then
26678 setopt NO_GLOB_SUBST
26680 # Now quote all the things that may contain metacharacters while being
26681 # careful not to overquote the AC_SUBSTed values. We take copies of the
26682 # variables and quote the copies for generation of the libtool script.
26683 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26685 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26686 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26687 deplibs_check_method reload_flag reload_cmds need_locks \
26688 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26689 lt_cv_sys_global_symbol_to_c_name_address \
26690 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26691 old_postinstall_cmds old_postuninstall_cmds \
26695 lt_prog_compiler_wl_GCJ \
26696 lt_prog_compiler_pic_GCJ \
26697 lt_prog_compiler_static_GCJ \
26698 lt_prog_compiler_no_builtin_flag_GCJ \
26699 export_dynamic_flag_spec_GCJ \
26700 thread_safe_flag_spec_GCJ \
26701 whole_archive_flag_spec_GCJ \
26702 enable_shared_with_static_runtimes_GCJ \
26703 old_archive_cmds_GCJ \
26704 old_archive_from_new_cmds_GCJ \
26705 predep_objects_GCJ \
26706 postdep_objects_GCJ \
26709 compiler_lib_search_path_GCJ \
26710 compiler_lib_search_dirs_GCJ \
26712 archive_expsym_cmds_GCJ \
26713 postinstall_cmds_GCJ \
26714 postuninstall_cmds_GCJ \
26715 old_archive_from_expsyms_cmds_GCJ \
26716 allow_undefined_flag_GCJ \
26717 no_undefined_flag_GCJ \
26718 export_symbols_cmds_GCJ \
26719 hardcode_libdir_flag_spec_GCJ \
26720 hardcode_libdir_flag_spec_ld_GCJ \
26721 hardcode_libdir_separator_GCJ \
26722 hardcode_automatic_GCJ \
26724 module_expsym_cmds_GCJ \
26725 lt_cv_prog_compiler_c_o_GCJ \
26726 fix_srcfile_path_GCJ \
26727 exclude_expsyms_GCJ \
26728 include_expsyms_GCJ; do
26731 old_archive_cmds_GCJ | \
26732 old_archive_from_new_cmds_GCJ | \
26733 archive_cmds_GCJ | \
26734 archive_expsym_cmds_GCJ | \
26735 module_cmds_GCJ | \
26736 module_expsym_cmds_GCJ | \
26737 old_archive_from_expsyms_cmds_GCJ | \
26738 export_symbols_cmds_GCJ | \
26739 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26740 postinstall_cmds | postuninstall_cmds | \
26741 old_postinstall_cmds | old_postuninstall_cmds | \
26742 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26743 # Double-quote double-evaled strings.
26744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26753 *'\$0 --fallback-echo"')
26754 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26760 cat <<__EOF__ >> "$cfgfile"
26761 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26765 # Shell to use when invoking shell scripts.
26768 # Whether or not to build shared libraries.
26769 build_libtool_libs=$enable_shared
26771 # Whether or not to build static libraries.
26772 build_old_libs=$enable_static
26774 # Whether or not to add -lc for building shared libraries.
26775 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26777 # Whether or not to disallow shared libs when runtime libs are static
26778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26780 # Whether or not to optimize for fast installation.
26781 fast_install=$enable_fast_install
26784 host_alias=$host_alias
26788 # The build system.
26789 build_alias=$build_alias
26793 # An echo program that does not interpret backslashes.
26798 AR_FLAGS=$lt_AR_FLAGS
26803 # LTCC compiler flags.
26804 LTCFLAGS=$lt_LTCFLAGS
26806 # A language-specific compiler.
26807 CC=$lt_compiler_GCJ
26809 # Is the compiler the GNU C compiler?
26815 # The linker used to build libraries.
26818 # Whether we need hard or soft links.
26821 # A BSD-compatible nm program.
26824 # A symbol stripping program
26827 # Used to examine libraries when file_magic_cmd begins "file"
26828 MAGIC_CMD=$MAGIC_CMD
26830 # Used on cygwin: DLL creation program.
26833 # Used on cygwin: object dumper.
26836 # Used on cygwin: assembler.
26839 # The name of the directory that contains temporary libtool files.
26842 # How to create reloadable object files.
26843 reload_flag=$lt_reload_flag
26844 reload_cmds=$lt_reload_cmds
26846 # How to pass a linker flag through the compiler.
26847 wl=$lt_lt_prog_compiler_wl_GCJ
26849 # Object file suffix (normally "o").
26850 objext="$ac_objext"
26852 # Old archive suffix (normally "a").
26855 # Shared library suffix (normally ".so").
26856 shrext_cmds='$shrext_cmds'
26858 # Executable file suffix (normally "").
26861 # Additional compiler flags for building library objects.
26862 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26865 # What is the maximum length of a command?
26866 max_cmd_len=$lt_cv_sys_max_cmd_len
26868 # Does compiler simultaneously support -c and -o options?
26869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26871 # Must we lock files when doing compilation?
26872 need_locks=$lt_need_locks
26874 # Do we need the lib prefix for modules?
26875 need_lib_prefix=$need_lib_prefix
26877 # Do we need a version for libraries?
26878 need_version=$need_version
26880 # Whether dlopen is supported.
26881 dlopen_support=$enable_dlopen
26883 # Whether dlopen of programs is supported.
26884 dlopen_self=$enable_dlopen_self
26886 # Whether dlopen of statically linked programs is supported.
26887 dlopen_self_static=$enable_dlopen_self_static
26889 # Compiler flag to prevent dynamic linking.
26890 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26892 # Compiler flag to turn off builtin functions.
26893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26895 # Compiler flag to allow reflexive dlopens.
26896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26898 # Compiler flag to generate shared objects directly from archives.
26899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26901 # Compiler flag to generate thread-safe objects.
26902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26904 # Library versioning type.
26905 version_type=$version_type
26907 # Format of library name prefix.
26908 libname_spec=$lt_libname_spec
26910 # List of archive names. First name is the real one, the rest are links.
26911 # The last name is the one that the linker finds with -lNAME.
26912 library_names_spec=$lt_library_names_spec
26914 # The coded name of the library, if different from the real name.
26915 soname_spec=$lt_soname_spec
26917 # Commands used to build and install an old-style archive.
26919 old_archive_cmds=$lt_old_archive_cmds_GCJ
26920 old_postinstall_cmds=$lt_old_postinstall_cmds
26921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26923 # Create an old-style archive from a shared archive.
26924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26926 # Create a temporary old-style archive to link instead of a shared archive.
26927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26929 # Commands used to build and install a shared archive.
26930 archive_cmds=$lt_archive_cmds_GCJ
26931 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26932 postinstall_cmds=$lt_postinstall_cmds
26933 postuninstall_cmds=$lt_postuninstall_cmds
26935 # Commands used to build a loadable module (assumed same as above if empty)
26936 module_cmds=$lt_module_cmds_GCJ
26937 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26939 # Commands to strip libraries.
26940 old_striplib=$lt_old_striplib
26941 striplib=$lt_striplib
26943 # Dependencies to place before the objects being linked to create a
26945 predep_objects=$lt_predep_objects_GCJ
26947 # Dependencies to place after the objects being linked to create a
26949 postdep_objects=$lt_postdep_objects_GCJ
26951 # Dependencies to place before the objects being linked to create a
26953 predeps=$lt_predeps_GCJ
26955 # Dependencies to place after the objects being linked to create a
26957 postdeps=$lt_postdeps_GCJ
26959 # The directories searched by this compiler when creating a shared
26961 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
26963 # The library search path used internally by the compiler when linking
26964 # a shared library.
26965 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26967 # Method to check whether dependent libraries are shared objects.
26968 deplibs_check_method=$lt_deplibs_check_method
26970 # Command to use when deplibs_check_method == file_magic.
26971 file_magic_cmd=$lt_file_magic_cmd
26973 # Flag that allows shared libraries with undefined symbols to be built.
26974 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26976 # Flag that forces no undefined symbols.
26977 no_undefined_flag=$lt_no_undefined_flag_GCJ
26979 # Commands used to finish a libtool library installation in a directory.
26980 finish_cmds=$lt_finish_cmds
26982 # Same as above, but a single script fragment to be evaled but not shown.
26983 finish_eval=$lt_finish_eval
26985 # Take the output of nm and produce a listing of raw symbols and C names.
26986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26988 # Transform the output of nm in a proper C declaration
26989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26991 # Transform the output of nm in a C name address pair
26992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26994 # This is the shared library runtime path variable.
26995 runpath_var=$runpath_var
26997 # This is the shared library path variable.
26998 shlibpath_var=$shlibpath_var
27000 # Is shlibpath searched before the hard-coded library search path?
27001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27003 # How to hardcode a shared library path into an executable.
27004 hardcode_action=$hardcode_action_GCJ
27006 # Whether we should hardcode library paths into libraries.
27007 hardcode_into_libs=$hardcode_into_libs
27009 # Flag to hardcode \$libdir into a binary during linking.
27010 # This must work even if \$libdir does not exist.
27011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27013 # If ld is used when linking, flag to hardcode \$libdir into
27014 # a binary during linking. This must work even if \$libdir does
27016 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27018 # Whether we need a single -rpath flag with a separated argument.
27019 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27021 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27022 # resulting binary.
27023 hardcode_direct=$hardcode_direct_GCJ
27025 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27026 # resulting binary.
27027 hardcode_minus_L=$hardcode_minus_L_GCJ
27029 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27030 # the resulting binary.
27031 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27033 # Set to yes if building a shared library automatically hardcodes DIR into the library
27034 # and all subsequent libraries and executables linked against it.
27035 hardcode_automatic=$hardcode_automatic_GCJ
27037 # Variables whose values should be saved in libtool wrapper scripts and
27038 # restored at relink time.
27039 variables_saved_for_relink="$variables_saved_for_relink"
27041 # Whether libtool must link a program against all its dependency libraries.
27042 link_all_deplibs=$link_all_deplibs_GCJ
27044 # Compile-time system search path for libraries
27045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27047 # Run-time system search path for libraries
27048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27050 # Fix the shell variable \$srcfile for the compiler.
27051 fix_srcfile_path=$lt_fix_srcfile_path
27053 # Set to yes if exported symbols are required.
27054 always_export_symbols=$always_export_symbols_GCJ
27056 # The commands to list exported symbols.
27057 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27059 # The commands to extract the exported symbol list from a shared archive.
27060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27062 # Symbols that should not be listed in the preloaded symbols.
27063 exclude_expsyms=$lt_exclude_expsyms_GCJ
27065 # Symbols that must always be exported.
27066 include_expsyms=$lt_include_expsyms_GCJ
27068 # ### END LIBTOOL TAG CONFIG: $tagname
27074 # If there is no Makefile yet, we rely on a make rule to execute
27075 # `config.status --recheck' to rerun these tests and create the
27076 # libtool script then.
27077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27078 if test -f "$ltmain_in"; then
27079 test -f Makefile && make "$ltmain"
27085 ac_cpp='$CPP $CPPFLAGS'
27086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27100 # Source file extension for RC test sources.
27103 # Object file extension for compiled RC test sources.
27107 # Code to be used in simple compile tests
27108 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
27110 # Code to be used in simple link tests
27111 lt_simple_link_test_code="$lt_simple_compile_test_code"
27113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27115 # If no C compiler was specified, use CC.
27118 # If no C compiler flags were specified, use CFLAGS.
27119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27121 # Allow CC to be a program name with arguments.
27125 # save warnings/boilerplate of simple test code
27126 ac_outfile=conftest.$ac_objext
27127 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27129 _lt_compiler_boilerplate=`cat conftest.err`
27132 ac_outfile=conftest.$ac_objext
27133 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27135 _lt_linker_boilerplate=`cat conftest.err`
27139 # Allow CC to be a program name with arguments.
27144 for cc_temp in $compiler""; do
27146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27154 lt_cv_prog_compiler_c_o_RC=yes
27156 # The else clause should only fire when bootstrapping the
27157 # libtool distribution, otherwise you forgot to ship ltmain.sh
27158 # with your package, and you will get complaints that there are
27159 # no rules to generate ltmain.sh.
27160 if test -f "$ltmain"; then
27161 # See if we are running on zsh, and set the options which allow our commands through
27162 # without removal of \ escapes.
27163 if test -n "${ZSH_VERSION+set}" ; then
27164 setopt NO_GLOB_SUBST
27166 # Now quote all the things that may contain metacharacters while being
27167 # careful not to overquote the AC_SUBSTed values. We take copies of the
27168 # variables and quote the copies for generation of the libtool script.
27169 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27171 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27172 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27173 deplibs_check_method reload_flag reload_cmds need_locks \
27174 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27175 lt_cv_sys_global_symbol_to_c_name_address \
27176 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27177 old_postinstall_cmds old_postuninstall_cmds \
27181 lt_prog_compiler_wl_RC \
27182 lt_prog_compiler_pic_RC \
27183 lt_prog_compiler_static_RC \
27184 lt_prog_compiler_no_builtin_flag_RC \
27185 export_dynamic_flag_spec_RC \
27186 thread_safe_flag_spec_RC \
27187 whole_archive_flag_spec_RC \
27188 enable_shared_with_static_runtimes_RC \
27189 old_archive_cmds_RC \
27190 old_archive_from_new_cmds_RC \
27191 predep_objects_RC \
27192 postdep_objects_RC \
27195 compiler_lib_search_path_RC \
27196 compiler_lib_search_dirs_RC \
27198 archive_expsym_cmds_RC \
27199 postinstall_cmds_RC \
27200 postuninstall_cmds_RC \
27201 old_archive_from_expsyms_cmds_RC \
27202 allow_undefined_flag_RC \
27203 no_undefined_flag_RC \
27204 export_symbols_cmds_RC \
27205 hardcode_libdir_flag_spec_RC \
27206 hardcode_libdir_flag_spec_ld_RC \
27207 hardcode_libdir_separator_RC \
27208 hardcode_automatic_RC \
27210 module_expsym_cmds_RC \
27211 lt_cv_prog_compiler_c_o_RC \
27212 fix_srcfile_path_RC \
27213 exclude_expsyms_RC \
27214 include_expsyms_RC; do
27217 old_archive_cmds_RC | \
27218 old_archive_from_new_cmds_RC | \
27219 archive_cmds_RC | \
27220 archive_expsym_cmds_RC | \
27222 module_expsym_cmds_RC | \
27223 old_archive_from_expsyms_cmds_RC | \
27224 export_symbols_cmds_RC | \
27225 extract_expsyms_cmds | reload_cmds | finish_cmds | \
27226 postinstall_cmds | postuninstall_cmds | \
27227 old_postinstall_cmds | old_postuninstall_cmds | \
27228 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27229 # Double-quote double-evaled strings.
27230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27239 *'\$0 --fallback-echo"')
27240 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27246 cat <<__EOF__ >> "$cfgfile"
27247 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27251 # Shell to use when invoking shell scripts.
27254 # Whether or not to build shared libraries.
27255 build_libtool_libs=$enable_shared
27257 # Whether or not to build static libraries.
27258 build_old_libs=$enable_static
27260 # Whether or not to add -lc for building shared libraries.
27261 build_libtool_need_lc=$archive_cmds_need_lc_RC
27263 # Whether or not to disallow shared libs when runtime libs are static
27264 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27266 # Whether or not to optimize for fast installation.
27267 fast_install=$enable_fast_install
27270 host_alias=$host_alias
27274 # The build system.
27275 build_alias=$build_alias
27279 # An echo program that does not interpret backslashes.
27284 AR_FLAGS=$lt_AR_FLAGS
27289 # LTCC compiler flags.
27290 LTCFLAGS=$lt_LTCFLAGS
27292 # A language-specific compiler.
27295 # Is the compiler the GNU C compiler?
27301 # The linker used to build libraries.
27304 # Whether we need hard or soft links.
27307 # A BSD-compatible nm program.
27310 # A symbol stripping program
27313 # Used to examine libraries when file_magic_cmd begins "file"
27314 MAGIC_CMD=$MAGIC_CMD
27316 # Used on cygwin: DLL creation program.
27319 # Used on cygwin: object dumper.
27322 # Used on cygwin: assembler.
27325 # The name of the directory that contains temporary libtool files.
27328 # How to create reloadable object files.
27329 reload_flag=$lt_reload_flag
27330 reload_cmds=$lt_reload_cmds
27332 # How to pass a linker flag through the compiler.
27333 wl=$lt_lt_prog_compiler_wl_RC
27335 # Object file suffix (normally "o").
27336 objext="$ac_objext"
27338 # Old archive suffix (normally "a").
27341 # Shared library suffix (normally ".so").
27342 shrext_cmds='$shrext_cmds'
27344 # Executable file suffix (normally "").
27347 # Additional compiler flags for building library objects.
27348 pic_flag=$lt_lt_prog_compiler_pic_RC
27351 # What is the maximum length of a command?
27352 max_cmd_len=$lt_cv_sys_max_cmd_len
27354 # Does compiler simultaneously support -c and -o options?
27355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27357 # Must we lock files when doing compilation?
27358 need_locks=$lt_need_locks
27360 # Do we need the lib prefix for modules?
27361 need_lib_prefix=$need_lib_prefix
27363 # Do we need a version for libraries?
27364 need_version=$need_version
27366 # Whether dlopen is supported.
27367 dlopen_support=$enable_dlopen
27369 # Whether dlopen of programs is supported.
27370 dlopen_self=$enable_dlopen_self
27372 # Whether dlopen of statically linked programs is supported.
27373 dlopen_self_static=$enable_dlopen_self_static
27375 # Compiler flag to prevent dynamic linking.
27376 link_static_flag=$lt_lt_prog_compiler_static_RC
27378 # Compiler flag to turn off builtin functions.
27379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27381 # Compiler flag to allow reflexive dlopens.
27382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27384 # Compiler flag to generate shared objects directly from archives.
27385 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27387 # Compiler flag to generate thread-safe objects.
27388 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27390 # Library versioning type.
27391 version_type=$version_type
27393 # Format of library name prefix.
27394 libname_spec=$lt_libname_spec
27396 # List of archive names. First name is the real one, the rest are links.
27397 # The last name is the one that the linker finds with -lNAME.
27398 library_names_spec=$lt_library_names_spec
27400 # The coded name of the library, if different from the real name.
27401 soname_spec=$lt_soname_spec
27403 # Commands used to build and install an old-style archive.
27405 old_archive_cmds=$lt_old_archive_cmds_RC
27406 old_postinstall_cmds=$lt_old_postinstall_cmds
27407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27409 # Create an old-style archive from a shared archive.
27410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27412 # Create a temporary old-style archive to link instead of a shared archive.
27413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27415 # Commands used to build and install a shared archive.
27416 archive_cmds=$lt_archive_cmds_RC
27417 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27418 postinstall_cmds=$lt_postinstall_cmds
27419 postuninstall_cmds=$lt_postuninstall_cmds
27421 # Commands used to build a loadable module (assumed same as above if empty)
27422 module_cmds=$lt_module_cmds_RC
27423 module_expsym_cmds=$lt_module_expsym_cmds_RC
27425 # Commands to strip libraries.
27426 old_striplib=$lt_old_striplib
27427 striplib=$lt_striplib
27429 # Dependencies to place before the objects being linked to create a
27431 predep_objects=$lt_predep_objects_RC
27433 # Dependencies to place after the objects being linked to create a
27435 postdep_objects=$lt_postdep_objects_RC
27437 # Dependencies to place before the objects being linked to create a
27439 predeps=$lt_predeps_RC
27441 # Dependencies to place after the objects being linked to create a
27443 postdeps=$lt_postdeps_RC
27445 # The directories searched by this compiler when creating a shared
27447 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
27449 # The library search path used internally by the compiler when linking
27450 # a shared library.
27451 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27453 # Method to check whether dependent libraries are shared objects.
27454 deplibs_check_method=$lt_deplibs_check_method
27456 # Command to use when deplibs_check_method == file_magic.
27457 file_magic_cmd=$lt_file_magic_cmd
27459 # Flag that allows shared libraries with undefined symbols to be built.
27460 allow_undefined_flag=$lt_allow_undefined_flag_RC
27462 # Flag that forces no undefined symbols.
27463 no_undefined_flag=$lt_no_undefined_flag_RC
27465 # Commands used to finish a libtool library installation in a directory.
27466 finish_cmds=$lt_finish_cmds
27468 # Same as above, but a single script fragment to be evaled but not shown.
27469 finish_eval=$lt_finish_eval
27471 # Take the output of nm and produce a listing of raw symbols and C names.
27472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27474 # Transform the output of nm in a proper C declaration
27475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27477 # Transform the output of nm in a C name address pair
27478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27480 # This is the shared library runtime path variable.
27481 runpath_var=$runpath_var
27483 # This is the shared library path variable.
27484 shlibpath_var=$shlibpath_var
27486 # Is shlibpath searched before the hard-coded library search path?
27487 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27489 # How to hardcode a shared library path into an executable.
27490 hardcode_action=$hardcode_action_RC
27492 # Whether we should hardcode library paths into libraries.
27493 hardcode_into_libs=$hardcode_into_libs
27495 # Flag to hardcode \$libdir into a binary during linking.
27496 # This must work even if \$libdir does not exist.
27497 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27499 # If ld is used when linking, flag to hardcode \$libdir into
27500 # a binary during linking. This must work even if \$libdir does
27502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27504 # Whether we need a single -rpath flag with a separated argument.
27505 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27507 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27508 # resulting binary.
27509 hardcode_direct=$hardcode_direct_RC
27511 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27512 # resulting binary.
27513 hardcode_minus_L=$hardcode_minus_L_RC
27515 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27516 # the resulting binary.
27517 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27519 # Set to yes if building a shared library automatically hardcodes DIR into the library
27520 # and all subsequent libraries and executables linked against it.
27521 hardcode_automatic=$hardcode_automatic_RC
27523 # Variables whose values should be saved in libtool wrapper scripts and
27524 # restored at relink time.
27525 variables_saved_for_relink="$variables_saved_for_relink"
27527 # Whether libtool must link a program against all its dependency libraries.
27528 link_all_deplibs=$link_all_deplibs_RC
27530 # Compile-time system search path for libraries
27531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27533 # Run-time system search path for libraries
27534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27536 # Fix the shell variable \$srcfile for the compiler.
27537 fix_srcfile_path=$lt_fix_srcfile_path
27539 # Set to yes if exported symbols are required.
27540 always_export_symbols=$always_export_symbols_RC
27542 # The commands to list exported symbols.
27543 export_symbols_cmds=$lt_export_symbols_cmds_RC
27545 # The commands to extract the exported symbol list from a shared archive.
27546 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27548 # Symbols that should not be listed in the preloaded symbols.
27549 exclude_expsyms=$lt_exclude_expsyms_RC
27551 # Symbols that must always be exported.
27552 include_expsyms=$lt_include_expsyms_RC
27554 # ### END LIBTOOL TAG CONFIG: $tagname
27560 # If there is no Makefile yet, we rely on a make rule to execute
27561 # `config.status --recheck' to rerun these tests and create the
27562 # libtool script then.
27563 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27564 if test -f "$ltmain_in"; then
27565 test -f Makefile && make "$ltmain"
27571 ac_cpp='$CPP $CPPFLAGS'
27572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27581 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27582 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27583 { (exit 1); exit 1; }; }
27587 # Append the new tag name to the list of available tags.
27588 if test -n "$tagname" ; then
27589 available_tags="$available_tags $tagname"
27595 # Now substitute the updated list of available tags.
27596 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27597 mv "${ofile}T" "$ofile"
27601 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27602 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27603 { (exit 1); exit 1; }; }
27609 # This can be used to rebuild libtool when needed
27610 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27612 # Always use our own libtool.
27613 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27615 # Prevent multiple expansion
27636 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
27637 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
27638 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
27639 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 cat >conftest.make <<\_ACEOF
27645 @echo '@@@%%%=$(MAKE)=@@@%%%'
27647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
27649 *@@@%%%=?*=@@@%%%*)
27650 eval ac_cv_prog_make_${ac_make}_set=yes;;
27652 eval ac_cv_prog_make_${ac_make}_set=no;;
27654 rm -f conftest.make
27656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27657 { echo "$as_me:$LINENO: result: yes" >&5
27658 echo "${ECHO_T}yes" >&6; }
27661 { echo "$as_me:$LINENO: result: no" >&5
27662 echo "${ECHO_T}no" >&6; }
27663 SET_MAKE="MAKE=${MAKE-make}"
27667 if test "$need_glib" = "yes"; then
27668 # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
27669 # three GNOME libs. Assume we have all three unless one of
27670 # the checks fails.
27675 { echo "$as_me:$LINENO: checking for GLIB" >&5
27676 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
27678 if test -n "$PKG_CONFIG"; then
27679 if test -n "$GLIB_CFLAGS"; then
27680 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
27682 if test -n "$PKG_CONFIG" && \
27683 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
27684 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; then
27688 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
27696 if test -n "$PKG_CONFIG"; then
27697 if test -n "$GLIB_LIBS"; then
27698 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
27700 if test -n "$PKG_CONFIG" && \
27701 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
27702 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; then
27706 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
27717 if test $pkg_failed = yes; then
27719 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27720 _pkg_short_errors_supported=yes
27722 _pkg_short_errors_supported=no
27724 if test $_pkg_short_errors_supported = yes; then
27725 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
27727 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
27729 # Put the nasty error message in config.log where it belongs
27730 echo "$GLIB_PKG_ERRORS" >&5
27732 { echo "$as_me:$LINENO: result: no" >&5
27733 echo "${ECHO_T}no" >&6; }
27735 elif test $pkg_failed = untried; then
27738 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
27739 GLIB_LIBS=$pkg_cv_GLIB_LIBS
27740 { echo "$as_me:$LINENO: result: yes" >&5
27741 echo "${ECHO_T}yes" >&6; }
27744 # This check here is broken on Ubuntu 8.04: it calls glib-config,
27745 # which isn't found, but the error is not detected by configure.
27746 #if test "x${GLIBFOUND}" = "xno"; then
27747 # PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
27752 { echo "$as_me:$LINENO: checking for GTHREAD" >&5
27753 echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6; }
27755 if test -n "$PKG_CONFIG"; then
27756 if test -n "$GTHREAD_CFLAGS"; then
27757 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
27759 if test -n "$PKG_CONFIG" && \
27760 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\"") >&5
27761 ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; then
27765 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 2>/dev/null`
27773 if test -n "$PKG_CONFIG"; then
27774 if test -n "$GTHREAD_LIBS"; then
27775 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
27777 if test -n "$PKG_CONFIG" && \
27778 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\"") >&5
27779 ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; then
27783 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 2>/dev/null`
27794 if test $pkg_failed = yes; then
27796 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27797 _pkg_short_errors_supported=yes
27799 _pkg_short_errors_supported=no
27801 if test $_pkg_short_errors_supported = yes; then
27802 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gthread-2.0""`
27804 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
27806 # Put the nasty error message in config.log where it belongs
27807 echo "$GTHREAD_PKG_ERRORS" >&5
27809 { echo "$as_me:$LINENO: result: no" >&5
27810 echo "${ECHO_T}no" >&6; }
27812 elif test $pkg_failed = untried; then
27815 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
27816 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
27817 { echo "$as_me:$LINENO: result: yes" >&5
27818 echo "${ECHO_T}yes" >&6; }
27823 { echo "$as_me:$LINENO: checking for GOBJECT" >&5
27824 echo $ECHO_N "checking for GOBJECT... $ECHO_C" >&6; }
27826 if test -n "$PKG_CONFIG"; then
27827 if test -n "$GOBJECT_CFLAGS"; then
27828 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
27830 if test -n "$PKG_CONFIG" && \
27831 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\"") >&5
27832 ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; then
27836 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
27844 if test -n "$PKG_CONFIG"; then
27845 if test -n "$GOBJECT_LIBS"; then
27846 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
27848 if test -n "$PKG_CONFIG" && \
27849 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\"") >&5
27850 ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; then
27854 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
27865 if test $pkg_failed = yes; then
27867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27868 _pkg_short_errors_supported=yes
27870 _pkg_short_errors_supported=no
27872 if test $_pkg_short_errors_supported = yes; then
27873 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gobject-2.0""`
27875 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gobject-2.0""`
27877 # Put the nasty error message in config.log where it belongs
27878 echo "$GOBJECT_PKG_ERRORS" >&5
27880 { echo "$as_me:$LINENO: result: no" >&5
27881 echo "${ECHO_T}no" >&6; }
27883 elif test $pkg_failed = untried; then
27886 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
27887 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
27888 { echo "$as_me:$LINENO: result: yes" >&5
27889 echo "${ECHO_T}yes" >&6; }
27893 if test "x${GLIBFOUND}" = "xyes"; then
27895 cat >>confdefs.h <<\_ACEOF
27896 #define HAVE_GLIB 1
27900 { { echo "$as_me:$LINENO: error: not all GNOME libraries found" >&5
27901 echo "$as_me: error: not all GNOME libraries found" >&2;}
27902 { (exit 1); exit 1; }; }
27904 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
27907 # Check for Qt if some backend needs it.
27908 if test "$need_qt_modules"; then
27909 echo "$as_me: this is autotroll.m4 serial 4" >&5
27911 test x"$TROLL" != x && echo 'ViM rox emacs.'
27914 # Check whether --with-qt was given.
27915 if test "${with_qt+set}" = set; then
27916 withval=$with_qt; QT_PATH=$withval
27920 # this is a hack to get decent flow control with 'break'
27921 for _qt_ignored in once; do
27925 if test -d /usr/local/Trolltech; then
27926 # Try to find the latest version.
27927 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
27928 | xargs | sed 's/ */:/g'`
27930 # Path to which recent MacPorts (~v1.7) install Qt4.
27931 test -d /opt/local/libexec/qt4-mac/bin \
27932 && tmp_qt_paths="$tmp_qt_paths:/opt/local/libexec/qt4-mac/bin"
27936 for ac_prog in qmake qmake-qt4 qmake-qt3
27938 # Extract the first word of "$ac_prog", so it can be a program name with args.
27939 set dummy $ac_prog; ac_word=$2
27940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27942 if test "${ac_cv_path_QMAKE+set}" = set; then
27943 echo $ECHO_N "(cached) $ECHO_C" >&6
27947 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
27950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27951 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
27952 for as_dir in $as_dummy
27955 test -z "$as_dir" && as_dir=.
27956 for ac_exec_ext in '' $ac_executable_extensions; do
27957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27958 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
27959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27969 QMAKE=$ac_cv_path_QMAKE
27970 if test -n "$QMAKE"; then
27971 { echo "$as_me:$LINENO: result: $QMAKE" >&5
27972 echo "${ECHO_T}$QMAKE" >&6; }
27974 { echo "$as_me:$LINENO: result: no" >&5
27975 echo "${ECHO_T}no" >&6; }
27979 test -n "$QMAKE" && break
27981 test -n "$QMAKE" || QMAKE="missing"
27983 if test x"$QMAKE" = xmissing; then
27984 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
27985 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
27986 { (exit 1); exit 1; }; }
27990 # Find moc (Meta Object Compiler).
27992 for ac_prog in moc moc-qt4 moc-qt3
27994 # Extract the first word of "$ac_prog", so it can be a program name with args.
27995 set dummy $ac_prog; ac_word=$2
27996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27998 if test "${ac_cv_path_MOC+set}" = set; then
27999 echo $ECHO_N "(cached) $ECHO_C" >&6
28003 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
28006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28007 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
28008 for as_dir in $as_dummy
28011 test -z "$as_dir" && as_dir=.
28012 for ac_exec_ext in '' $ac_executable_extensions; do
28013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28014 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
28015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28025 MOC=$ac_cv_path_MOC
28026 if test -n "$MOC"; then
28027 { echo "$as_me:$LINENO: result: $MOC" >&5
28028 echo "${ECHO_T}$MOC" >&6; }
28030 { echo "$as_me:$LINENO: result: no" >&5
28031 echo "${ECHO_T}no" >&6; }
28035 test -n "$MOC" && break
28037 test -n "$MOC" || MOC="missing"
28039 if test x"$MOC" = xmissing; then
28040 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
28041 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
28042 { (exit 1); exit 1; }; }
28046 # Find uic (User Interface Compiler).
28048 for ac_prog in uic uic-qt4 uic-qt3 uic3
28050 # Extract the first word of "$ac_prog", so it can be a program name with args.
28051 set dummy $ac_prog; ac_word=$2
28052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28054 if test "${ac_cv_path_UIC+set}" = set; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28059 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
28062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28063 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
28064 for as_dir in $as_dummy
28067 test -z "$as_dir" && as_dir=.
28068 for ac_exec_ext in '' $ac_executable_extensions; do
28069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28070 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
28071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28081 UIC=$ac_cv_path_UIC
28082 if test -n "$UIC"; then
28083 { echo "$as_me:$LINENO: result: $UIC" >&5
28084 echo "${ECHO_T}$UIC" >&6; }
28086 { echo "$as_me:$LINENO: result: no" >&5
28087 echo "${ECHO_T}no" >&6; }
28091 test -n "$UIC" && break
28093 test -n "$UIC" || UIC="missing"
28095 if test x"$UIC" = xmissing; then
28096 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
28097 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
28098 { (exit 1); exit 1; }; }
28102 # Find rcc (Qt Resource Compiler).
28106 # Extract the first word of "$ac_prog", so it can be a program name with args.
28107 set dummy $ac_prog; ac_word=$2
28108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28110 if test "${ac_cv_path_RCC+set}" = set; then
28111 echo $ECHO_N "(cached) $ECHO_C" >&6
28115 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
28118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28119 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
28120 for as_dir in $as_dummy
28123 test -z "$as_dir" && as_dir=.
28124 for ac_exec_ext in '' $ac_executable_extensions; do
28125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28126 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
28127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28137 RCC=$ac_cv_path_RCC
28138 if test -n "$RCC"; then
28139 { echo "$as_me:$LINENO: result: $RCC" >&5
28140 echo "${ECHO_T}$RCC" >&6; }
28142 { echo "$as_me:$LINENO: result: no" >&5
28143 echo "${ECHO_T}no" >&6; }
28147 test -n "$RCC" && break
28149 test -n "$RCC" || RCC="false"
28151 if test x"$UIC" = xfalse; then
28152 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
28153 Try using --with-qt." >&5
28154 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
28155 Try using --with-qt." >&2;}
28158 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
28159 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
28165 at_qmake_args='-spec macx-g++'
28168 { echo "$as_me:$LINENO: result: $at_darwin" >&5
28169 echo "${ECHO_T}$at_darwin" >&6; }
28171 # If we don't know the path to Qt, guess it from the path to qmake.
28172 if test x"$QT_PATH" = x; then
28173 QT_PATH=`dirname "$QMAKE"`
28175 if test x"$QT_PATH" = x; then
28176 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
28177 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
28178 { (exit 1); exit 1; }; }
28183 # Get ready to build a test-app with Qt.
28184 if mkdir conftest.dir && cd conftest.dir; then :; else
28185 { { echo "$as_me:$LINENO: error: Cannot mkdir conftest.dir or cd to that directory." >&5
28186 echo "$as_me: error: Cannot mkdir conftest.dir or cd to that directory." >&2;}
28187 { (exit 1); exit 1; }; }
28191 cat >conftest.h <<_ASEOF
28194 class Foo: public QObject
28201 void setValue(int value);
28203 void valueChanged(int newValue);
28209 cat >conftest.cpp <<_ASEOF
28210 #include "conftest.h"
28214 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
28217 void Foo::setValue(int value)
28227 if $QMAKE -project; then :; else
28228 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
28229 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
28230 { (exit 1); exit 1; }; }
28234 # Find the .pro file generated by qmake.
28235 pro_file='conftest.dir.pro'
28236 test -f $pro_file || pro_file=`echo *.pro`
28237 if test -f "$pro_file"; then :; else
28238 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
28239 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
28240 { (exit 1); exit 1; }; }
28244 # Tweak the value of QT in the .pro file for -gui $need_qt_modules.
28247 for at_mod in -gui $need_qt_modules; do
28248 at_mod=`echo "$at_mod" | sed 's/^-//; tough
28257 echo "$qt_conf" | sed 1d >>"$pro_file"
28260 # Tweak the value of CONFIG in the .pro file for $qt_config.
28263 for at_mod in $qt_config; do
28264 at_mod=`echo "$at_mod" | sed 's/^-//; tough
28273 echo "$qt_conf" | sed 1d >>"$pro_file"
28276 # Add the extra-settings the user wants to set in the .pro
28277 echo "$qt_misc" >>"$pro_file"
28280 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
28281 sed 's/^/| /' "$pro_file" >&5
28283 if $QMAKE $at_qmake_args; then :; else
28284 { { echo "$as_me:$LINENO: error: Calling $QMAKE $at_qmake_args failed." >&5
28285 echo "$as_me: error: Calling $QMAKE $at_qmake_args failed." >&2;}
28286 { (exit 1); exit 1; }; }
28290 # QMake has a very annoying misfeature: sometimes it generates Makefiles
28291 # where all the references to the files from the Qt installation are
28292 # relative. We can't use them as-is because if we take, say, a
28293 # -I../../usr/include/Qt from that Makefile, the flag is invalid as soon
28294 # as we use it in another (sub) directory. So what this perl pass does is
28295 # that it rewrite all relative paths to absolute paths. Another problem
28296 # when building on Cygwin is that QMake mixes paths with blackslashes and
28297 # forward slashes and paths must be handled with extra care because of the
28298 # stupid Windows drive letters.
28299 echo "$as_me:$LINENO: fixing the Makefiles:" Makefile* >&5
28300 cat >fixmk.pl <<\EOF
28302 use Cwd qw(cwd abs_path);
28303 # This variable is useful on Cygwin for the following reason: Say that you are
28304 # in `/' (that is, in fact you are in C:/cygwin, or something like that) if you
28305 # `cd ..' then obviously you remain in `/' (that is in C:/cygwin). QMake
28306 # generates paths that are relative to C:/ (or another driver letter, whatever)
28307 # so the trick to get the `..' resolved properly is to prepend the absolute
28308 # path of the current working directory in a Windows-style. C:/cygwin/../ will
28309 # properly become C:/.
28315 if ($^O eq "cygwin") {
28318 $d = `cygpath --mixed '$d'`;
28325 my $p = $d . shift;
28326 # print "r2a p=$p";
28327 -e $p || return $p;
28329 $p = `cygpath --mixed '$p'`;
28333 # Do not use abs_path on Cygwin: it incorrectly resolves the paths that are
28334 # relative to C:/ rather than `/'.
28337 # print " -> $p\n";
28342 # Only useful on Cygwin.
28343 sub back2forward($)
28346 # print "b2f p=$p";
28347 -e $p || return $p;
28348 $p = `cygpath --mixed '$p'`;
28350 # print " -> $p\n";
28355 foreach my $mk (@ARGV)
28357 next if $mk =~ /~$/;
28358 open(MK, $mk) or die("open $mk: $!");
28359 # print "mk=$mk\n";
28360 my $file = join("", <MK>);
28361 close(MK) or die("close $mk: $!");
28362 rename $mk, $mk . "~" or die("rename $mk: $!");
28363 $file =~ s{(?:\.\.[\\/])+(?:[^"'\s:]+)}{rel2abs($&)}gse;
28364 $file =~ s{(?:[a-zA-Z]:[\\/])?(?:[^"\s]+\\[^"\s:]+)+}
28365 {back2forward($&)}gse if $cygwin;
28366 open(MK, ">", $mk) or die("open >$mk: $!");
28368 close(MK) or die("close >$mk: $!");
28369 print "$mk: updated $r2a relative paths and $b2f backslash-style paths\n";
28375 perl >&5 -w fixmk.pl Makefile* ||
28376 { echo "$as_me:$LINENO: WARNING: failed to fix the Makefiles generated by $QMAKE" >&5
28377 echo "$as_me: WARNING: failed to fix the Makefiles generated by $QMAKE" >&2;}
28380 # Try to compile a simple Qt app.
28381 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
28382 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
28383 if test "${at_cv_qt_build+set}" = set; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28389 if $MAKE >&5 2>&1; then
28390 at_cv_qt_build='ok, looks like Qt 4'
28392 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
28394 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
28395 if $MAKE >&5 2>&1; then
28396 at_cv_qt_build='ok, looks like Qt 3'
28398 # Sometimes (such as on Debian) build will fail because Qt hasn't been
28399 # installed in debug mode and qmake tries (by default) to build apps in
28400 # debug mode => Try again in release mode.
28401 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
28404 # Tweak the value of CONFIG in the .pro file for +release.
28407 for at_mod in +release; do
28408 at_mod=`echo "$at_mod" | sed 's/^-//; tough
28417 echo "$qt_conf" | sed 1d >>"$pro_file"
28420 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
28421 if $MAKE >&5 2>&1; then
28422 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
28424 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
28426 sed 's/<QObject>/<qobject.h>/' conftest.h >tmp.h && mv tmp.h conftest.h
28427 if $MAKE >&5 2>&1; then
28428 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
28431 echo "$as_me:$LINENO: failed program was:" >&5
28432 sed 's/^/| /' conftest.h >&5
28433 echo "$as_me:$LINENO: failed program was:" >&5
28434 sed 's/^/| /' conftest.cpp >&5
28435 fi # if make with Qt3-style #include and release mode forced.
28436 fi # if make with Qt4-style #include and release mode forced.
28437 fi # if make with Qt3-style #include.
28438 fi # if make with Qt4-style #include.
28441 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
28442 echo "${ECHO_T}$at_cv_qt_build" >&6; }
28443 if test x"$at_cv_qt_build" = xko; then
28444 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
28445 echo "$as_me: error: Cannot build a test Qt program" >&2;}
28446 { (exit 1); exit 1; }; }
28449 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/[^0-9]*//g'`
28452 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
28453 # It starts by removing the beginning of the line, removing references to
28454 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
28455 # all variable uses by QT_.
28456 qt_sed_filter='s///;
28459 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
28461 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
28462 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
28463 # Makefile.Release. The reason is that the main difference is that release
28464 # uses -Os and debug -g. We can override -Os by passing another -O but we
28465 # usually don't override -g.
28466 if test -f Makefile.Release; then
28467 at_mfile='Makefile.Release'
28469 at_mfile='Makefile'
28471 if test -f $at_mfile; then :; else
28472 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
28473 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
28474 { (exit 1); exit 1; }; }
28478 # Find the DEFINES of Qt (should have been named CPPFLAGS).
28479 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
28480 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
28481 if test "${at_cv_env_QT_DEFINES+set}" = set; then
28482 echo $ECHO_N "(cached) $ECHO_C" >&6
28484 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28486 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
28487 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
28488 QT_DEFINES=$at_cv_env_QT_DEFINES
28491 # Find the CFLAGS of Qt (We can use Qt in C?!)
28492 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
28493 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
28494 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
28495 echo $ECHO_N "(cached) $ECHO_C" >&6
28497 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28499 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
28500 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
28501 QT_CFLAGS=$at_cv_env_QT_CFLAGS
28504 # Find the CXXFLAGS of Qt.
28505 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
28506 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
28507 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
28508 echo $ECHO_N "(cached) $ECHO_C" >&6
28510 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28512 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
28513 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
28514 QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
28517 # Find the INCPATH of Qt.
28518 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
28519 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
28520 if test "${at_cv_env_QT_INCPATH+set}" = set; then
28521 echo $ECHO_N "(cached) $ECHO_C" >&6
28523 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28525 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
28526 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
28527 QT_INCPATH=$at_cv_env_QT_INCPATH
28530 QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
28533 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
28534 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
28535 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
28536 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
28537 echo $ECHO_N "(cached) $ECHO_C" >&6
28539 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28541 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
28542 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
28543 QT_LFLAGS=$at_cv_env_QT_LDFLAGS
28545 QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
28548 # Find the LIBS of Qt.
28549 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
28550 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
28551 if test "${at_cv_env_QT_LIBS+set}" = set; then
28552 echo $ECHO_N "(cached) $ECHO_C" >&6
28554 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
28555 if test x$at_darwin = xyes; then
28556 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
28557 # -F properly. The "bug" has been fixed on 22 October 2006
28558 # by Peter O'Gorman but we provide backward compatibility here.
28559 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
28560 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
28564 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
28565 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
28566 QT_LIBS=$at_cv_env_QT_LIBS
28569 cd .. && rm -rf conftest.dir
28571 # Run the user code
28574 done # end hack (useless for to be able to use break)
28578 # determine from where we can get a SHA-256 implementation
28580 if test "$GLIBFOUND" = "yes"; then
28581 # only use glib if we need it anyway, also has to be at lease 2.16
28584 { echo "$as_me:$LINENO: checking for GLIB216" >&5
28585 echo $ECHO_N "checking for GLIB216... $ECHO_C" >&6; }
28587 if test -n "$PKG_CONFIG"; then
28588 if test -n "$GLIB216_CFLAGS"; then
28589 pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
28591 if test -n "$PKG_CONFIG" && \
28592 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\"") >&5
28593 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; then
28597 pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
28605 if test -n "$PKG_CONFIG"; then
28606 if test -n "$GLIB216_LIBS"; then
28607 pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
28609 if test -n "$PKG_CONFIG" && \
28610 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\"") >&5
28611 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; then
28615 pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
28626 if test $pkg_failed = yes; then
28628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28629 _pkg_short_errors_supported=yes
28631 _pkg_short_errors_supported=no
28633 if test $_pkg_short_errors_supported = yes; then
28634 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
28636 GLIB216_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
28638 # Put the nasty error message in config.log where it belongs
28639 echo "$GLIB216_PKG_ERRORS" >&5
28641 { echo "$as_me:$LINENO: result: no" >&5
28642 echo "${ECHO_T}no" >&6; }
28644 elif test $pkg_failed = untried; then
28647 GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
28648 GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
28649 { echo "$as_me:$LINENO: result: yes" >&5
28650 echo "${ECHO_T}yes" >&6; }
28652 cat >>confdefs.h <<\_ACEOF
28653 #define USE_SHA256 1
28659 if test "$have_sha" = "no"; then
28660 # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
28661 # file and a simple API.
28664 { echo "$as_me:$LINENO: checking for NSS" >&5
28665 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
28667 if test -n "$PKG_CONFIG"; then
28668 if test -n "$NSS_CFLAGS"; then
28669 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
28671 if test -n "$PKG_CONFIG" && \
28672 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"nss\"\"") >&5
28673 ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; then
28677 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
28685 if test -n "$PKG_CONFIG"; then
28686 if test -n "$NSS_LIBS"; then
28687 pkg_cv_NSS_LIBS="$NSS_LIBS"
28689 if test -n "$PKG_CONFIG" && \
28690 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"nss\"\"") >&5
28691 ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; then
28695 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
28706 if test $pkg_failed = yes; then
28708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28709 _pkg_short_errors_supported=yes
28711 _pkg_short_errors_supported=no
28713 if test $_pkg_short_errors_supported = yes; then
28714 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""nss""`
28716 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""nss""`
28718 # Put the nasty error message in config.log where it belongs
28719 echo "$NSS_PKG_ERRORS" >&5
28721 { echo "$as_me:$LINENO: result: no" >&5
28722 echo "${ECHO_T}no" >&6; }
28724 elif test $pkg_failed = untried; then
28727 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
28728 NSS_LIBS=$pkg_cv_NSS_LIBS
28729 { echo "$as_me:$LINENO: result: yes" >&5
28730 echo "${ECHO_T}yes" >&6; }
28732 cat >>confdefs.h <<\_ACEOF
28733 #define USE_SHA256 2
28740 if test "$enable_shared" == "yes"; then
28741 ENABLE_MODULES_TRUE=
28742 ENABLE_MODULES_FALSE='#'
28744 ENABLE_MODULES_TRUE='#'
28745 ENABLE_MODULES_FALSE=
28748 if test "$enable_shared" == "yes"; then
28750 cat >>confdefs.h <<\_ACEOF
28751 #define ENABLE_MODULES 1
28759 if test "$host" == "arm-apple-darwin"; then
28761 cat >>confdefs.h <<\_ACEOF
28768 if test "$enable_evolution_compatibility" == "yes"; then
28770 cat >>confdefs.h <<\_ACEOF
28771 #define EVOLUTION_COMPATIBILITY 1
28775 if test "$enable_evolution_compatibility" == "yes"; then
28776 ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
28777 ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
28779 ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
28780 ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
28784 if test "$enable_developer_mode" == "yes"; then
28785 backendsearchdir="`pwd`/src/backends/"
28787 backendsearchdir='$(libdir)'/syncevolution/backends/
28790 backenddir='$(libdir)'/syncevolution/backends
28795 cat >>confdefs.h <<_ACEOF
28796 #define DEVICE_TYPE "$DEVICE_TYPE"
28803 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
28805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28810 echo $ECHO_N "(cached) $ECHO_C" >&6
28812 ac_res=`eval echo '${'$as_ac_Header'}'`
28813 { echo "$as_me:$LINENO: result: $ac_res" >&5
28814 echo "${ECHO_T}$ac_res" >&6; }
28816 # Is the header compilable?
28817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28819 cat >conftest.$ac_ext <<_ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28825 $ac_includes_default
28826 #include <$ac_header>
28828 rm -f conftest.$ac_objext
28829 if { (ac_try="$ac_compile"
28830 case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835 (eval "$ac_compile") 2>conftest.er1
28837 grep -v '^ *+' conftest.er1 >conftest.err
28839 cat conftest.err >&5
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); } && {
28842 test -z "$ac_c_werror_flag" ||
28843 test ! -s conftest.err
28844 } && test -s conftest.$ac_objext; then
28845 ac_header_compiler=yes
28847 echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28850 ac_header_compiler=no
28853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28855 echo "${ECHO_T}$ac_header_compiler" >&6; }
28857 # Is the header present?
28858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28860 cat >conftest.$ac_ext <<_ACEOF
28863 cat confdefs.h >>conftest.$ac_ext
28864 cat >>conftest.$ac_ext <<_ACEOF
28865 /* end confdefs.h. */
28866 #include <$ac_header>
28868 if { (ac_try="$ac_cpp conftest.$ac_ext"
28869 case "(($ac_try" in
28870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871 *) ac_try_echo=$ac_try;;
28873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28876 grep -v '^ *+' conftest.er1 >conftest.err
28878 cat conftest.err >&5
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); } >/dev/null && {
28881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28882 test ! -s conftest.err
28884 ac_header_preproc=yes
28886 echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28889 ac_header_preproc=no
28892 rm -f conftest.err conftest.$ac_ext
28893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28894 echo "${ECHO_T}$ac_header_preproc" >&6; }
28896 # So? What about this header?
28897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28903 ac_header_preproc=yes
28906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28926 eval "$as_ac_Header=\$ac_header_preproc"
28928 ac_res=`eval echo '${'$as_ac_Header'}'`
28929 { echo "$as_me:$LINENO: result: $ac_res" >&5
28930 echo "${ECHO_T}$ac_res" >&6; }
28933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28934 cat >>confdefs.h <<_ACEOF
28935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28944 cat >>confdefs.h <<\_ACEOF
28945 #define SYNTHESIS 1
28949 # fallback for lack of --with-docdir support in older automake
28950 if test ! "$docdir"; then
28951 docdir = ${datadir}/doc/syncevolution
28955 # Check whether --enable-dbus-timeout-hack was given.
28956 if test "${enable_dbus_timeout_hack+set}" = set; then
28957 enableval=$enable_dbus_timeout_hack; enable_dbus_timeout_hack=$enableval
28959 if test $enable_ebook = "yes" || test $enable_ecal = "yes"; then
28960 enable_dbus_timeout_hack="yes"
28964 if test "$enable_dbus_timeout_hack" = "yes"; then
28966 cat >>confdefs.h <<\_ACEOF
28967 #define ENABLE_DBUS_TIMEOUT_HACK 1
28972 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/syncevo/configs/Makefile src/synthesis-includes/Makefile src/gtk-ui/Makefile po/Makefile.in test/Makefile src/dbus/syncevo-dbus.pc"
28974 cat >confcache <<\_ACEOF
28975 # This file is a shell script that caches the results of configure
28976 # tests run on this system so they can be shared between configure
28977 # scripts and configure runs, see configure's option --config-cache.
28978 # It is not useful on other systems. If it contains results you don't
28979 # want to keep, you may remove or edit it.
28981 # config.status only pays attention to the cache file if you give it
28982 # the --recheck option to rerun configure.
28984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28986 # following values.
28990 # The following way of writing the cache mishandles newlines in values,
28991 # but we know of no workaround that is simple, portable, and efficient.
28992 # So, we kill variables containing newlines.
28993 # Ultrix sh set writes to stderr and can't be redirected directly,
28994 # and sets the high bit in the cache file unless we assign to the vars.
28996 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28997 eval ac_val=\$$ac_var
29001 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29002 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29005 _ | IFS | as_nl) ;; #(
29006 *) $as_unset $ac_var ;;
29012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29013 *${as_nl}ac_space=\ *)
29014 # `set' does not quote correctly, so add quotes (double-quote
29015 # substitution turns \\\\ into \\, and sed turns \\ into \).
29018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29021 # `set' quotes correctly as required by POSIX, so do not add quotes.
29022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29036 if test -w "$cache_file"; then
29037 test "x$cache_file" != "x/dev/null" &&
29038 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29039 echo "$as_me: updating cache $cache_file" >&6;}
29040 cat confcache >$cache_file
29042 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29043 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29049 # Let make expand exec_prefix.
29050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29052 DEFS=-DHAVE_CONFIG_H
29056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29057 # 1. Remove the extension, and $U if already installed.
29058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29059 ac_i=`echo "$ac_i" | sed "$ac_script"`
29060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29061 # will be set to the directory where LIBOBJS objects are built.
29062 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29063 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29065 LIBOBJS=$ac_libobjs
29067 LTLIBOBJS=$ac_ltlibobjs
29070 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29071 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29072 Usually this means the macro was only invoked conditionally." >&5
29073 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29074 Usually this means the macro was only invoked conditionally." >&2;}
29075 { (exit 1); exit 1; }; }
29077 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29078 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29079 Usually this means the macro was only invoked conditionally." >&5
29080 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29081 Usually this means the macro was only invoked conditionally." >&2;}
29082 { (exit 1); exit 1; }; }
29084 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
29085 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
29086 Usually this means the macro was only invoked conditionally." >&5
29087 echo "$as_me: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
29088 Usually this means the macro was only invoked conditionally." >&2;}
29089 { (exit 1); exit 1; }; }
29091 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
29092 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTING\" was never defined.
29093 Usually this means the macro was only invoked conditionally." >&5
29094 echo "$as_me: error: conditional \"ENABLE_TESTING\" was never defined.
29095 Usually this means the macro was only invoked conditionally." >&2;}
29096 { (exit 1); exit 1; }; }
29098 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
29099 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OBEX\" was never defined.
29100 Usually this means the macro was only invoked conditionally." >&5
29101 echo "$as_me: error: conditional \"ENABLE_OBEX\" was never defined.
29102 Usually this means the macro was only invoked conditionally." >&2;}
29103 { (exit 1); exit 1; }; }
29105 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
29106 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
29107 Usually this means the macro was only invoked conditionally." >&5
29108 echo "$as_me: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
29109 Usually this means the macro was only invoked conditionally." >&2;}
29110 { (exit 1); exit 1; }; }
29112 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
29113 { { echo "$as_me:$LINENO: error: conditional \"COND_GUI\" was never defined.
29114 Usually this means the macro was only invoked conditionally." >&5
29115 echo "$as_me: error: conditional \"COND_GUI\" was never defined.
29116 Usually this means the macro was only invoked conditionally." >&2;}
29117 { (exit 1); exit 1; }; }
29119 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
29120 { { echo "$as_me:$LINENO: error: conditional \"COND_CORE\" was never defined.
29121 Usually this means the macro was only invoked conditionally." >&5
29122 echo "$as_me: error: conditional \"COND_CORE\" was never defined.
29123 Usually this means the macro was only invoked conditionally." >&2;}
29124 { (exit 1); exit 1; }; }
29126 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
29127 { { echo "$as_me:$LINENO: error: conditional \"COND_DBUS\" was never defined.
29128 Usually this means the macro was only invoked conditionally." >&5
29129 echo "$as_me: error: conditional \"COND_DBUS\" was never defined.
29130 Usually this means the macro was only invoked conditionally." >&2;}
29131 { (exit 1); exit 1; }; }
29134 ac_config_commands="$ac_config_commands po/stamp-it"
29137 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29138 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29139 Usually this means the macro was only invoked conditionally." >&5
29140 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29141 Usually this means the macro was only invoked conditionally." >&2;}
29142 { (exit 1); exit 1; }; }
29144 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
29145 { { echo "$as_me:$LINENO: error: conditional \"COND_MAN_PAGES\" was never defined.
29146 Usually this means the macro was only invoked conditionally." >&5
29147 echo "$as_me: error: conditional \"COND_MAN_PAGES\" was never defined.
29148 Usually this means the macro was only invoked conditionally." >&2;}
29149 { (exit 1); exit 1; }; }
29151 if test -z "${COND_HTML_README_TRUE}" && test -z "${COND_HTML_README_FALSE}"; then
29152 { { echo "$as_me:$LINENO: error: conditional \"COND_HTML_README\" was never defined.
29153 Usually this means the macro was only invoked conditionally." >&5
29154 echo "$as_me: error: conditional \"COND_HTML_README\" was never defined.
29155 Usually this means the macro was only invoked conditionally." >&2;}
29156 { (exit 1); exit 1; }; }
29158 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
29159 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
29160 Usually this means the macro was only invoked conditionally." >&5
29161 echo "$as_me: error: conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
29162 Usually this means the macro was only invoked conditionally." >&2;}
29163 { (exit 1); exit 1; }; }
29165 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
29166 { { echo "$as_me:$LINENO: error: conditional \"COND_DOC\" was never defined.
29167 Usually this means the macro was only invoked conditionally." >&5
29168 echo "$as_me: error: conditional \"COND_DOC\" was never defined.
29169 Usually this means the macro was only invoked conditionally." >&2;}
29170 { (exit 1); exit 1; }; }
29172 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
29173 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ECAL\" was never defined.
29174 Usually this means the macro was only invoked conditionally." >&5
29175 echo "$as_me: error: conditional \"ENABLE_ECAL\" was never defined.
29176 Usually this means the macro was only invoked conditionally." >&2;}
29177 { (exit 1); exit 1; }; }
29179 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29180 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29181 Usually this means the macro was only invoked conditionally." >&5
29182 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29183 Usually this means the macro was only invoked conditionally." >&2;}
29184 { (exit 1); exit 1; }; }
29186 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
29187 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MODULES\" was never defined.
29188 Usually this means the macro was only invoked conditionally." >&5
29189 echo "$as_me: error: conditional \"ENABLE_MODULES\" was never defined.
29190 Usually this means the macro was only invoked conditionally." >&2;}
29191 { (exit 1); exit 1; }; }
29193 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
29194 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
29195 Usually this means the macro was only invoked conditionally." >&5
29196 echo "$as_me: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
29197 Usually this means the macro was only invoked conditionally." >&2;}
29198 { (exit 1); exit 1; }; }
29201 : ${CONFIG_STATUS=./config.status}
29202 ac_clean_files_save=$ac_clean_files
29203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29204 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29205 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29206 cat >$CONFIG_STATUS <<_ACEOF
29208 # Generated by $as_me.
29209 # Run this file to recreate the current configuration.
29210 # Compiler output produced by configure, useful for debugging
29211 # configure, is in config.log if it exists.
29214 ac_cs_recheck=false
29216 SHELL=\${CONFIG_SHELL-$SHELL}
29219 cat >>$CONFIG_STATUS <<\_ACEOF
29220 ## --------------------- ##
29221 ## M4sh Initialization. ##
29222 ## --------------------- ##
29224 # Be more Bourne compatible
29225 DUALCASE=1; export DUALCASE # for MKS sh
29226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29229 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29230 # is contrary to our usage. Disable this feature.
29231 alias -g '${1+"$@"}'='"$@"'
29232 setopt NO_GLOB_SUBST
29234 case `(set -o) 2>/dev/null` in
29235 *posix*) set -o posix ;;
29244 # Avoid depending upon Character Ranges.
29245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29248 as_cr_digits='0123456789'
29249 as_cr_alnum=$as_cr_Letters$as_cr_digits
29251 # The user is always right.
29252 if test "${PATH_SEPARATOR+set}" != set; then
29253 echo "#! /bin/sh" >conf$$.sh
29254 echo "exit 0" >>conf$$.sh
29256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29264 # Support unset when possible.
29265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29273 # We need space, tab and new line, in precisely that order. Quoting is
29274 # there to prevent editors from complaining about space-tab.
29275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29276 # splitting by setting IFS to empty value.)
29281 # Find who we are. Look in the path if we contain no directory separator.
29283 *[\\/]* ) as_myself=$0 ;;
29284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29285 for as_dir in $PATH
29288 test -z "$as_dir" && as_dir=.
29289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29295 # We did not find ourselves, most probably we were run as `sh COMMAND'
29296 # in which case we are not to be found in the path.
29297 if test "x$as_myself" = x; then
29300 if test ! -f "$as_myself"; then
29301 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29302 { (exit 1); exit 1; }
29305 # Work around bugs in pre-3.0 UWIN ksh.
29306 for as_var in ENV MAIL MAILPATH
29307 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29315 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29316 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29317 LC_TELEPHONE LC_TIME
29319 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29320 eval $as_var=C; export $as_var
29322 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29326 # Required to use basename.
29327 if expr a : '\(a\)' >/dev/null 2>&1 &&
29328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29335 as_basename=basename
29341 # Name of the executable.
29342 as_me=`$as_basename -- "$0" ||
29343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29344 X"$0" : 'X\(//\)$' \| \
29345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29347 sed '/^.*\/\([^/][^/]*\)\/*$/{
29366 as_lineno_1=$LINENO
29367 as_lineno_2=$LINENO
29368 test "x$as_lineno_1" != "x$as_lineno_2" &&
29369 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29371 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29372 # uniformly replaced by the line number. The first 'sed' inserts a
29373 # line-number line after each line using $LINENO; the second 'sed'
29374 # does the real work. The second script uses 'N' to pair each
29375 # line-number line with the line containing $LINENO, and appends
29376 # trailing '-' during substitution so that $LINENO is not a special
29377 # case at line end.
29378 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29379 # scripts with optimization help from Paolo Bonzini. Blame Lee
29380 # E. McMahon (1931-1989) for sed's syntax. :-)
29392 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29395 ' >$as_me.lineno &&
29396 chmod +x "$as_me.lineno" ||
29397 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29398 { (exit 1); exit 1; }; }
29400 # Don't try to exec as it changes $[0], causing all sort of problems
29401 # (the dirname of $[0] is not the place where we might find the
29402 # original and so on. Autoconf is especially sensitive to this).
29403 . "./$as_me.lineno"
29404 # Exit status is that of the last command.
29409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29415 ECHO_C= ECHO_N= ECHO_T=
29416 case `echo -n x` in
29418 case `echo 'x\c'` in
29419 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29426 if expr a : '\(a\)' >/dev/null 2>&1 &&
29427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29433 rm -f conf$$ conf$$.exe conf$$.file
29434 if test -d conf$$.dir; then
29435 rm -f conf$$.dir/conf$$.file
29441 if ln -s conf$$.file conf$$ 2>/dev/null; then
29443 # ... but there are two gotchas:
29444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29446 # In both cases, we have to default to `cp -p'.
29447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29449 elif ln conf$$.file conf$$ 2>/dev/null; then
29454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29455 rmdir conf$$.dir 2>/dev/null
29457 if mkdir -p . 2>/dev/null; then
29460 test -d ./-p && rmdir ./-p
29464 if test -x / >/dev/null 2>&1; then
29465 as_test_x='test -x'
29467 if ls -dL / >/dev/null 2>&1; then
29474 if test -d "$1"; then
29480 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29481 ???[sx]*):;;*)false;;esac;fi
29485 as_executable_p=$as_test_x
29487 # Sed expression to map a string onto a valid CPP name.
29488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29490 # Sed expression to map a string onto a valid variable name.
29491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29496 # Save the log message, to keep $[0] and so on meaningful, and to
29497 # report actual input values of CONFIG_FILES etc. instead of their
29498 # values after options handling.
29500 This file was extended by syncevolution $as_me 1.1, which was
29501 generated by GNU Autoconf 2.61. Invocation command line was
29503 CONFIG_FILES = $CONFIG_FILES
29504 CONFIG_HEADERS = $CONFIG_HEADERS
29505 CONFIG_LINKS = $CONFIG_LINKS
29506 CONFIG_COMMANDS = $CONFIG_COMMANDS
29509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29514 cat >>$CONFIG_STATUS <<_ACEOF
29515 # Files that config.status was made for.
29516 config_files="$ac_config_files"
29517 config_headers="$ac_config_headers"
29518 config_commands="$ac_config_commands"
29522 cat >>$CONFIG_STATUS <<\_ACEOF
29524 \`$as_me' instantiates files from templates according to the
29525 current configuration.
29527 Usage: $0 [OPTIONS] [FILE]...
29529 -h, --help print this help, then exit
29530 -V, --version print version number and configuration settings, then exit
29531 -q, --quiet do not print progress messages
29532 -d, --debug don't remove temporary files
29533 --recheck update $as_me by reconfiguring in the same conditions
29534 --file=FILE[:TEMPLATE]
29535 instantiate the configuration file FILE
29536 --header=FILE[:TEMPLATE]
29537 instantiate the configuration header FILE
29539 Configuration files:
29542 Configuration headers:
29545 Configuration commands:
29548 Report bugs to <bug-autoconf@gnu.org>."
29551 cat >>$CONFIG_STATUS <<_ACEOF
29553 syncevolution config.status 1.1
29554 configured by $0, generated by GNU Autoconf 2.61,
29555 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29557 Copyright (C) 2006 Free Software Foundation, Inc.
29558 This config.status script is free software; the Free Software Foundation
29559 gives unlimited permission to copy, distribute and modify it."
29567 cat >>$CONFIG_STATUS <<\_ACEOF
29568 # If no file are specified by the user, then we need to provide default
29569 # value. By we need to know if files were specified by the user.
29575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29587 # Handling of the options.
29588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29591 echo "$ac_cs_version"; exit ;;
29592 --debug | --debu | --deb | --de | --d | -d )
29594 --file | --fil | --fi | --f )
29596 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29597 ac_need_defaults=false;;
29598 --header | --heade | --head | --hea )
29600 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29601 ac_need_defaults=false;;
29603 # Conflict between --help and --header
29604 { echo "$as_me: error: ambiguous option: $1
29605 Try \`$0 --help' for more information." >&2
29606 { (exit 1); exit 1; }; };;
29607 --help | --hel | -h )
29608 echo "$ac_cs_usage"; exit ;;
29609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29613 # This is an error.
29614 -*) { echo "$as_me: error: unrecognized option: $1
29615 Try \`$0 --help' for more information." >&2
29616 { (exit 1); exit 1; }; } ;;
29618 *) ac_config_targets="$ac_config_targets $1"
29619 ac_need_defaults=false ;;
29625 ac_configure_extra_args=
29627 if $ac_cs_silent; then
29629 ac_configure_extra_args="$ac_configure_extra_args --silent"
29633 cat >>$CONFIG_STATUS <<_ACEOF
29634 if \$ac_cs_recheck; then
29635 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29636 CONFIG_SHELL=$SHELL
29637 export CONFIG_SHELL
29638 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29642 cat >>$CONFIG_STATUS <<\_ACEOF
29646 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29647 ## Running $as_me. ##
29653 cat >>$CONFIG_STATUS <<_ACEOF
29657 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29662 cat >>$CONFIG_STATUS <<\_ACEOF
29664 # Handling of arguments.
29665 for ac_config_target in $ac_config_targets
29667 case $ac_config_target in
29668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29669 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29670 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29671 "src/gnome-bluetooth/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome-bluetooth/Makefile" ;;
29672 "src/backends/addressbook/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/addressbook/Makefile" ;;
29673 "src/backends/evolution/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/evolution/Makefile" ;;
29674 "src/backends/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/file/Makefile" ;;
29675 "src/backends/kcalextended/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/kcalextended/Makefile" ;;
29676 "src/backends/maemo/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/maemo/Makefile" ;;
29677 "src/backends/qtcontacts/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/qtcontacts/Makefile" ;;
29678 "src/backends/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/sqlite/Makefile" ;;
29679 "src/backends/xmlrpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/xmlrpc/Makefile" ;;
29680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29681 "src/dbus/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/interfaces/Makefile" ;;
29682 "src/gdbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdbus/Makefile" ;;
29683 "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
29684 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29685 "src/syncevo/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/Makefile" ;;
29686 "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
29687 "src/syncevo/configs/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/configs/Makefile" ;;
29688 "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
29689 "src/gtk-ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk-ui/Makefile" ;;
29690 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29691 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29692 "src/dbus/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/syncevo-dbus.pc" ;;
29693 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
29695 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29696 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29697 { (exit 1); exit 1; }; };;
29702 # If the user did not use the arguments to specify the items to instantiate,
29703 # then the envvar interface is used. Set only those that are not.
29704 # We use the long form for the default assignment because of an extremely
29705 # bizarre bug on SunOS 4.1.3.
29706 if $ac_need_defaults; then
29707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29712 # Have a temporary directory for convenience. Make it in the build tree
29713 # simply because there is no reason against having it here, and in addition,
29714 # creating and moving files from /tmp can sometimes cause problems.
29715 # Hook for its removal unless debugging.
29716 # Note that there is a small window in which the directory will not be cleaned:
29717 # after its creation but before its name has been assigned to `$tmp'.
29721 trap 'exit_status=$?
29722 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29724 trap '{ (exit 1); exit 1; }' 1 2 13 15
29726 # Create a (secure) tmp directory for tmp files.
29729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29730 test -n "$tmp" && test -d "$tmp"
29733 tmp=./conf$$-$RANDOM
29734 (umask 077 && mkdir "$tmp")
29737 echo "$me: cannot create a temporary directory in ." >&2
29738 { (exit 1); exit 1; }
29742 # Set up the sed scripts for CONFIG_FILES section.
29745 # No need to generate the scripts if there are no CONFIG_FILES.
29746 # This happens for instance when ./config.status config.h
29747 if test -n "$CONFIG_FILES"; then
29754 for ac_last_try in false false false false false :; do
29755 cat >conf$$subs.sed <<_ACEOF
29756 SHELL!$SHELL$ac_delim
29757 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29758 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29759 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29760 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29761 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29762 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29763 exec_prefix!$exec_prefix$ac_delim
29764 prefix!$prefix$ac_delim
29765 program_transform_name!$program_transform_name$ac_delim
29766 bindir!$bindir$ac_delim
29767 sbindir!$sbindir$ac_delim
29768 libexecdir!$libexecdir$ac_delim
29769 datarootdir!$datarootdir$ac_delim
29770 datadir!$datadir$ac_delim
29771 sysconfdir!$sysconfdir$ac_delim
29772 sharedstatedir!$sharedstatedir$ac_delim
29773 localstatedir!$localstatedir$ac_delim
29774 includedir!$includedir$ac_delim
29775 oldincludedir!$oldincludedir$ac_delim
29776 docdir!$docdir$ac_delim
29777 infodir!$infodir$ac_delim
29778 htmldir!$htmldir$ac_delim
29779 dvidir!$dvidir$ac_delim
29780 pdfdir!$pdfdir$ac_delim
29781 psdir!$psdir$ac_delim
29782 libdir!$libdir$ac_delim
29783 localedir!$localedir$ac_delim
29784 mandir!$mandir$ac_delim
29785 DEFS!$DEFS$ac_delim
29786 ECHO_C!$ECHO_C$ac_delim
29787 ECHO_N!$ECHO_N$ac_delim
29788 ECHO_T!$ECHO_T$ac_delim
29789 LIBS!$LIBS$ac_delim
29790 build_alias!$build_alias$ac_delim
29791 host_alias!$host_alias$ac_delim
29792 target_alias!$target_alias$ac_delim
29793 STABLE_VERSION!$STABLE_VERSION$ac_delim
29794 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29795 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29796 INSTALL_DATA!$INSTALL_DATA$ac_delim
29797 am__isrc!$am__isrc$ac_delim
29798 CYGPATH_W!$CYGPATH_W$ac_delim
29799 PACKAGE!$PACKAGE$ac_delim
29800 VERSION!$VERSION$ac_delim
29801 ACLOCAL!$ACLOCAL$ac_delim
29802 AUTOCONF!$AUTOCONF$ac_delim
29803 AUTOMAKE!$AUTOMAKE$ac_delim
29804 AUTOHEADER!$AUTOHEADER$ac_delim
29805 MAKEINFO!$MAKEINFO$ac_delim
29806 install_sh!$install_sh$ac_delim
29807 STRIP!$STRIP$ac_delim
29808 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29809 mkdir_p!$mkdir_p$ac_delim
29811 SET_MAKE!$SET_MAKE$ac_delim
29812 am__leading_dot!$am__leading_dot$ac_delim
29813 AMTAR!$AMTAR$ac_delim
29814 am__tar!$am__tar$ac_delim
29815 am__untar!$am__untar$ac_delim
29816 MODIFY_SYNCCOMPARE!$MODIFY_SYNCCOMPARE$ac_delim
29818 CFLAGS!$CFLAGS$ac_delim
29819 LDFLAGS!$LDFLAGS$ac_delim
29820 CPPFLAGS!$CPPFLAGS$ac_delim
29821 ac_ct_CC!$ac_ct_CC$ac_delim
29822 EXEEXT!$EXEEXT$ac_delim
29823 OBJEXT!$OBJEXT$ac_delim
29824 DEPDIR!$DEPDIR$ac_delim
29825 am__include!$am__include$ac_delim
29826 am__quote!$am__quote$ac_delim
29827 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29828 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29829 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29830 CCDEPMODE!$CCDEPMODE$ac_delim
29831 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29832 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29834 GREP!$GREP$ac_delim
29835 EGREP!$EGREP$ac_delim
29836 CPPUNIT_CXXFLAGS!$CPPUNIT_CXXFLAGS$ac_delim
29837 CPPUNIT_LDFLAGS!$CPPUNIT_LDFLAGS$ac_delim
29838 ENABLE_UNIT_TESTS_TRUE!$ENABLE_UNIT_TESTS_TRUE$ac_delim
29839 ENABLE_UNIT_TESTS_FALSE!$ENABLE_UNIT_TESTS_FALSE$ac_delim
29840 ENABLE_TESTING_TRUE!$ENABLE_TESTING_TRUE$ac_delim
29841 ENABLE_TESTING_FALSE!$ENABLE_TESTING_FALSE$ac_delim
29842 CORE_LDADD_DEP!$CORE_LDADD_DEP$ac_delim
29843 PKG_CONFIG!$PKG_CONFIG$ac_delim
29844 LIBSOUP_CFLAGS!$LIBSOUP_CFLAGS$ac_delim
29845 LIBSOUP_LIBS!$LIBSOUP_LIBS$ac_delim
29846 LIBOPENOBEX_CFLAGS!$LIBOPENOBEX_CFLAGS$ac_delim
29847 LIBOPENOBEX_LIBS!$LIBOPENOBEX_LIBS$ac_delim
29848 BLUEZ_CFLAGS!$BLUEZ_CFLAGS$ac_delim
29849 BLUEZ_LIBS!$BLUEZ_LIBS$ac_delim
29850 ENABLE_OBEX_TRUE!$ENABLE_OBEX_TRUE$ac_delim
29851 ENABLE_OBEX_FALSE!$ENABLE_OBEX_FALSE$ac_delim
29852 ENABLE_BLUETOOTH_TRUE!$ENABLE_BLUETOOTH_TRUE$ac_delim
29855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29857 elif $ac_last_try; then
29858 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29859 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29860 { (exit 1); exit 1; }; }
29862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29866 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29867 if test -n "$ac_eof"; then
29868 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29869 ac_eof=`expr $ac_eof + 1`
29872 cat >>$CONFIG_STATUS <<_ACEOF
29873 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29877 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29878 s/^/s,@/; s/!/@,|#_!!_#|/
29881 s/'"$ac_delim"'$/,g/; t
29883 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29884 ' >>$CONFIG_STATUS <conf$$subs.sed
29885 rm -f conf$$subs.sed
29886 cat >>$CONFIG_STATUS <<_ACEOF
29892 for ac_last_try in false false false false false :; do
29893 cat >conf$$subs.sed <<_ACEOF
29894 ENABLE_BLUETOOTH_FALSE!$ENABLE_BLUETOOTH_FALSE$ac_delim
29895 TRANSPORT_LIBS!$TRANSPORT_LIBS$ac_delim
29896 TRANSPORT_CFLAGS!$TRANSPORT_CFLAGS$ac_delim
29897 XSLT!$XSLT$ac_delim
29898 COND_GUI_TRUE!$COND_GUI_TRUE$ac_delim
29899 COND_GUI_FALSE!$COND_GUI_FALSE$ac_delim
29900 COND_CORE_TRUE!$COND_CORE_TRUE$ac_delim
29901 COND_CORE_FALSE!$COND_CORE_FALSE$ac_delim
29902 COND_DBUS_TRUE!$COND_DBUS_TRUE$ac_delim
29903 COND_DBUS_FALSE!$COND_DBUS_FALSE$ac_delim
29904 KEYRING_CFLAGS!$KEYRING_CFLAGS$ac_delim
29905 KEYRING_LIBS!$KEYRING_LIBS$ac_delim
29906 KEYRING_2_20_CFLAGS!$KEYRING_2_20_CFLAGS$ac_delim
29907 KEYRING_2_20_LIBS!$KEYRING_2_20_LIBS$ac_delim
29908 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
29909 DBUS_LIBS!$DBUS_LIBS$ac_delim
29910 LIBNOTIFY_CFLAGS!$LIBNOTIFY_CFLAGS$ac_delim
29911 LIBNOTIFY_LIBS!$LIBNOTIFY_LIBS$ac_delim
29912 DBUS_GLIB_CFLAGS!$DBUS_GLIB_CFLAGS$ac_delim
29913 DBUS_GLIB_LIBS!$DBUS_GLIB_LIBS$ac_delim
29914 LIBEXECDIR!$LIBEXECDIR$ac_delim
29915 DBUS_SERVICES_DIR!$DBUS_SERVICES_DIR$ac_delim
29916 USE_NLS!$USE_NLS$ac_delim
29917 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
29918 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
29919 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
29920 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
29921 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
29922 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
29923 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
29924 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
29925 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
29926 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
29927 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
29928 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
29929 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
29930 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
29931 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
29932 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
29933 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
29934 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
29935 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
29936 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
29937 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
29938 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
29939 XGETTEXT!$XGETTEXT$ac_delim
29940 MSGMERGE!$MSGMERGE$ac_delim
29941 MSGFMT!$MSGFMT$ac_delim
29942 GMSGFMT!$GMSGFMT$ac_delim
29943 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
29944 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
29945 DATADIRNAME!$DATADIRNAME$ac_delim
29946 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
29947 CATALOGS!$CATALOGS$ac_delim
29948 CATOBJEXT!$CATOBJEXT$ac_delim
29949 GMOFILES!$GMOFILES$ac_delim
29950 INSTOBJEXT!$INSTOBJEXT$ac_delim
29951 INTLLIBS!$INTLLIBS$ac_delim
29952 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
29953 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
29954 POFILES!$POFILES$ac_delim
29955 POSUB!$POSUB$ac_delim
29956 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
29957 DBUS_BINDING_TOOL!$DBUS_BINDING_TOOL$ac_delim
29958 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
29959 MX_GTK_0_99_1_CFLAGS!$MX_GTK_0_99_1_CFLAGS$ac_delim
29960 MX_GTK_0_99_1_LIBS!$MX_GTK_0_99_1_LIBS$ac_delim
29961 UNIQUE_CFLAGS!$UNIQUE_CFLAGS$ac_delim
29962 UNIQUE_LIBS!$UNIQUE_LIBS$ac_delim
29963 GTK_2_18_CFLAGS!$GTK_2_18_CFLAGS$ac_delim
29964 GTK_2_18_LIBS!$GTK_2_18_LIBS$ac_delim
29965 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
29966 GUI_LIBS!$GUI_LIBS$ac_delim
29967 GTK_BUILDER_CONV!$GTK_BUILDER_CONV$ac_delim
29968 SYNCEVOLUTION_LOCALEDIR!$SYNCEVOLUTION_LOCALEDIR$ac_delim
29969 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
29970 GUI_PROGRAMS!$GUI_PROGRAMS$ac_delim
29971 GUI_DESKTOP_FILES!$GUI_DESKTOP_FILES$ac_delim
29973 CXXFLAGS!$CXXFLAGS$ac_delim
29974 ac_ct_CXX!$ac_ct_CXX$ac_delim
29975 CXXDEPMODE!$CXXDEPMODE$ac_delim
29976 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29977 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29978 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
29979 BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
29980 RST2MAN!$RST2MAN$ac_delim
29981 COND_MAN_PAGES_TRUE!$COND_MAN_PAGES_TRUE$ac_delim
29982 COND_MAN_PAGES_FALSE!$COND_MAN_PAGES_FALSE$ac_delim
29983 RST2HTML!$RST2HTML$ac_delim
29984 COND_HTML_README_TRUE!$COND_HTML_README_TRUE$ac_delim
29985 COND_HTML_README_FALSE!$COND_HTML_README_FALSE$ac_delim
29986 SYNTHESIS_SRC!$SYNTHESIS_SRC$ac_delim
29987 SYNTHESIS_CFLAGS!$SYNTHESIS_CFLAGS$ac_delim
29988 SYNTHESIS_LIBS!$SYNTHESIS_LIBS$ac_delim
29989 SYNTHESIS!$SYNTHESIS$ac_delim
29990 SYNTHESIS_SUBDIR!$SYNTHESIS_SUBDIR$ac_delim
29993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29995 elif $ac_last_try; then
29996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29998 { (exit 1); exit 1; }; }
30000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30005 if test -n "$ac_eof"; then
30006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30007 ac_eof=`expr $ac_eof + 1`
30010 cat >>$CONFIG_STATUS <<_ACEOF
30011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30016 s/^/s,@/; s/!/@,|#_!!_#|/
30019 s/'"$ac_delim"'$/,g/; t
30021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30022 ' >>$CONFIG_STATUS <conf$$subs.sed
30023 rm -f conf$$subs.sed
30024 cat >>$CONFIG_STATUS <<_ACEOF
30030 for ac_last_try in false false false false false :; do
30031 cat >conf$$subs.sed <<_ACEOF
30032 SYNTHESIS_SUBDIR_INCLUDES!$SYNTHESIS_SUBDIR_INCLUDES$ac_delim
30033 SYNTHESIS_DEP!$SYNTHESIS_DEP$ac_delim
30034 SYNTHESIS_ENGINE!$SYNTHESIS_ENGINE$ac_delim
30035 SYNTHESIS_LIB!$SYNTHESIS_LIB$ac_delim
30036 SYNTHESISSRC!$SYNTHESISSRC$ac_delim
30037 SYNCSOURCES!$SYNCSOURCES$ac_delim
30038 BACKEND_DEFINES!$BACKEND_DEFINES$ac_delim
30039 BACKEND_CPPFLAGS!$BACKEND_CPPFLAGS$ac_delim
30040 GNOMEBLUETOOTH_CFLAGS!$GNOMEBLUETOOTH_CFLAGS$ac_delim
30041 GNOMEBLUETOOTH_LIBS!$GNOMEBLUETOOTH_LIBS$ac_delim
30042 GNOMEBLUETOOTH_DIR!$GNOMEBLUETOOTH_DIR$ac_delim
30043 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE!$ENABLE_GNOME_BLUETOOTH_PANEL_TRUE$ac_delim
30044 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE!$ENABLE_GNOME_BLUETOOTH_PANEL_FALSE$ac_delim
30045 COND_DOC_TRUE!$COND_DOC_TRUE$ac_delim
30046 COND_DOC_FALSE!$COND_DOC_FALSE$ac_delim
30047 ADDRESSBOOK_CFLAGS!$ADDRESSBOOK_CFLAGS$ac_delim
30048 ADDRESSBOOK_LIBS!$ADDRESSBOOK_LIBS$ac_delim
30049 EPACKAGE_CFLAGS!$EPACKAGE_CFLAGS$ac_delim
30050 EPACKAGE_LIBS!$EPACKAGE_LIBS$ac_delim
30051 ECAL_CFLAGS!$ECAL_CFLAGS$ac_delim
30052 ECAL_LIBS!$ECAL_LIBS$ac_delim
30053 EBOOK_CFLAGS!$EBOOK_CFLAGS$ac_delim
30054 EBOOK_LIBS!$EBOOK_LIBS$ac_delim
30055 ENABLE_ECAL_TRUE!$ENABLE_ECAL_TRUE$ac_delim
30056 ENABLE_ECAL_FALSE!$ENABLE_ECAL_FALSE$ac_delim
30057 LIBICAL_AVAILABLE_CFLAGS!$LIBICAL_AVAILABLE_CFLAGS$ac_delim
30058 LIBICAL_AVAILABLE_LIBS!$LIBICAL_AVAILABLE_LIBS$ac_delim
30059 FILE_CFLAGS!$FILE_CFLAGS$ac_delim
30060 FILE_LIBS!$FILE_LIBS$ac_delim
30061 KCALEXTENDED_CFLAGS!$KCALEXTENDED_CFLAGS$ac_delim
30062 KCALEXTENDED_LIBS!$KCALEXTENDED_LIBS$ac_delim
30063 MCALB_CFLAGS!$MCALB_CFLAGS$ac_delim
30064 MCALB_LIBS!$MCALB_LIBS$ac_delim
30065 QT_CONTACTS_LIBS!$QT_CONTACTS_LIBS$ac_delim
30066 SQLITE_CFLAGS!$SQLITE_CFLAGS$ac_delim
30067 SQLITE_LIBS!$SQLITE_LIBS$ac_delim
30068 XMLRPC_CFLAGS!$XMLRPC_CFLAGS$ac_delim
30069 XMLRPC_LIBS!$XMLRPC_LIBS$ac_delim
30070 build!$build$ac_delim
30071 build_cpu!$build_cpu$ac_delim
30072 build_vendor!$build_vendor$ac_delim
30073 build_os!$build_os$ac_delim
30074 host!$host$ac_delim
30075 host_cpu!$host_cpu$ac_delim
30076 host_vendor!$host_vendor$ac_delim
30077 host_os!$host_os$ac_delim
30079 LN_S!$LN_S$ac_delim
30080 ECHO!$ECHO$ac_delim
30082 RANLIB!$RANLIB$ac_delim
30083 DSYMUTIL!$DSYMUTIL$ac_delim
30084 NMEDIT!$NMEDIT$ac_delim
30085 CXXCPP!$CXXCPP$ac_delim
30087 FFLAGS!$FFLAGS$ac_delim
30088 ac_ct_F77!$ac_ct_F77$ac_delim
30089 LIBTOOL!$LIBTOOL$ac_delim
30090 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
30091 GLIB_LIBS!$GLIB_LIBS$ac_delim
30092 GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
30093 GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
30094 GOBJECT_CFLAGS!$GOBJECT_CFLAGS$ac_delim
30095 GOBJECT_LIBS!$GOBJECT_LIBS$ac_delim
30096 QT_PATH!$QT_PATH$ac_delim
30097 QMAKE!$QMAKE$ac_delim
30101 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
30102 QT_DEFINES!$QT_DEFINES$ac_delim
30103 QT_CFLAGS!$QT_CFLAGS$ac_delim
30104 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
30105 QT_INCPATH!$QT_INCPATH$ac_delim
30106 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
30107 QT_LFLAGS!$QT_LFLAGS$ac_delim
30108 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
30109 QT_LIBS!$QT_LIBS$ac_delim
30110 GLIB216_CFLAGS!$GLIB216_CFLAGS$ac_delim
30111 GLIB216_LIBS!$GLIB216_LIBS$ac_delim
30112 NSS_CFLAGS!$NSS_CFLAGS$ac_delim
30113 NSS_LIBS!$NSS_LIBS$ac_delim
30114 ENABLE_MODULES_TRUE!$ENABLE_MODULES_TRUE$ac_delim
30115 ENABLE_MODULES_FALSE!$ENABLE_MODULES_FALSE$ac_delim
30116 SYNCEVOLUTION_LDADD!$SYNCEVOLUTION_LDADD$ac_delim
30117 SYNCEVOLUTION_CXXFLAGS!$SYNCEVOLUTION_CXXFLAGS$ac_delim
30118 ENABLE_EVOLUTION_COMPATIBILITY_TRUE!$ENABLE_EVOLUTION_COMPATIBILITY_TRUE$ac_delim
30119 ENABLE_EVOLUTION_COMPATIBILITY_FALSE!$ENABLE_EVOLUTION_COMPATIBILITY_FALSE$ac_delim
30120 backenddir!$backenddir$ac_delim
30121 backendsearchdir!$backendsearchdir$ac_delim
30122 LIBOBJS!$LIBOBJS$ac_delim
30123 LTLIBOBJS!$LTLIBOBJS$ac_delim
30126 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
30128 elif $ac_last_try; then
30129 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30131 { (exit 1); exit 1; }; }
30133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30138 if test -n "$ac_eof"; then
30139 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30140 ac_eof=`expr $ac_eof + 1`
30143 cat >>$CONFIG_STATUS <<_ACEOF
30144 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30149 s/^/s,@/; s/!/@,|#_!!_#|/
30152 s/'"$ac_delim"'$/,g/; t
30154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30155 ' >>$CONFIG_STATUS <conf$$subs.sed
30156 rm -f conf$$subs.sed
30157 cat >>$CONFIG_STATUS <<_ACEOF
30164 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30165 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30166 # trailing colons and then remove the whole line if VPATH becomes empty
30167 # (actually we leave an empty line to preserve line numbers).
30168 if test "x$srcdir" = x.; then
30169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30170 s/:*\$(srcdir):*/:/
30171 s/:*\${srcdir}:*/:/
30173 s/^\([^=]*=[ ]*\):*/\1/
30179 cat >>$CONFIG_STATUS <<\_ACEOF
30180 fi # test -n "$CONFIG_FILES"
30183 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30186 :[FHLC]) ac_mode=$ac_tag; continue;;
30188 case $ac_mode$ac_tag in
30190 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30191 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30192 { (exit 1); exit 1; }; };;
30193 :[FH]-) ac_tag=-:-;;
30194 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30211 -) ac_f="$tmp/stdin";;
30212 *) # Look for the file first in the build tree, then in the source tree
30213 # (if the path is not absolute). The absolute path cannot be DOS-style,
30214 # because $ac_f cannot contain `:'.
30218 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30220 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30221 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30222 { (exit 1); exit 1; }; };;
30224 ac_file_inputs="$ac_file_inputs $ac_f"
30227 # Let's still pretend it is `configure' which instantiates (i.e., don't
30228 # use $as_me), people would be surprised to read:
30229 # /* config.h. Generated by config.status. */
30230 configure_input="Generated from "`IFS=:
30231 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30232 if test x"$ac_file" != x-; then
30233 configure_input="$ac_file. $configure_input"
30234 { echo "$as_me:$LINENO: creating $ac_file" >&5
30235 echo "$as_me: creating $ac_file" >&6;}
30239 *:-:* | *:-) cat >"$tmp/stdin";;
30244 ac_dir=`$as_dirname -- "$ac_file" ||
30245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30246 X"$ac_file" : 'X\(//\)[^/]' \| \
30247 X"$ac_file" : 'X\(//\)$' \| \
30248 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30254 /^X\(\/\/\)[^/].*/{
30269 -*) as_dir=./$as_dir;;
30271 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30275 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30276 *) as_qdir=$as_dir;;
30278 as_dirs="'$as_qdir' $as_dirs"
30279 as_dir=`$as_dirname -- "$as_dir" ||
30280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30281 X"$as_dir" : 'X\(//\)[^/]' \| \
30282 X"$as_dir" : 'X\(//\)$' \| \
30283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30289 /^X\(\/\/\)[^/].*/{
30302 test -d "$as_dir" && break
30304 test -z "$as_dirs" || eval "mkdir $as_dirs"
30305 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30306 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30307 { (exit 1); exit 1; }; }; }
30311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30314 # A ".." for each directory in $ac_dir_suffix.
30315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30316 case $ac_top_builddir_sub in
30317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30321 ac_abs_top_builddir=$ac_pwd
30322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30323 # for backward compatibility:
30324 ac_top_builddir=$ac_top_build_prefix
30327 .) # We are building in place.
30329 ac_top_srcdir=$ac_top_builddir_sub
30330 ac_abs_top_srcdir=$ac_pwd ;;
30331 [\\/]* | ?:[\\/]* ) # Absolute name.
30332 ac_srcdir=$srcdir$ac_dir_suffix;
30333 ac_top_srcdir=$srcdir
30334 ac_abs_top_srcdir=$srcdir ;;
30335 *) # Relative name.
30336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30337 ac_top_srcdir=$ac_top_build_prefix$srcdir
30338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30350 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30351 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30353 ac_MKDIR_P=$MKDIR_P
30355 [\\/$]* | ?:[\\/]* ) ;;
30356 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30360 cat >>$CONFIG_STATUS <<\_ACEOF
30361 # If the template does not know about datarootdir, expand it.
30362 # FIXME: This hack should be removed a few years after 2.60.
30363 ac_datarootdir_hack=; ac_datarootdir_seen=
30365 case `sed -n '/datarootdir/ {
30374 ' $ac_file_inputs` in
30375 *datarootdir*) ac_datarootdir_seen=yes;;
30376 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30377 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30378 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30380 cat >>$CONFIG_STATUS <<_ACEOF
30381 ac_datarootdir_hack='
30382 s&@datadir@&$datadir&g
30383 s&@docdir@&$docdir&g
30384 s&@infodir@&$infodir&g
30385 s&@localedir@&$localedir&g
30386 s&@mandir@&$mandir&g
30387 s&\\\${datarootdir}&$datarootdir&g' ;;
30391 # Neutralize VPATH when `$srcdir' = `.'.
30392 # Shell code in configure.ac might set extrasub.
30393 # FIXME: do we really want to maintain this feature?
30394 cat >>$CONFIG_STATUS <<_ACEOF
30398 cat >>$CONFIG_STATUS <<\_ACEOF
30400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30401 s&@configure_input@&$configure_input&;t t
30402 s&@top_builddir@&$ac_top_builddir_sub&;t t
30403 s&@srcdir@&$ac_srcdir&;t t
30404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30405 s&@top_srcdir@&$ac_top_srcdir&;t t
30406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30407 s&@builddir@&$ac_builddir&;t t
30408 s&@abs_builddir@&$ac_abs_builddir&;t t
30409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30410 s&@INSTALL@&$ac_INSTALL&;t t
30411 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30412 $ac_datarootdir_hack
30413 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30416 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30417 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30418 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30419 which seems to be undefined. Please make sure it is defined." >&5
30420 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30421 which seems to be undefined. Please make sure it is defined." >&2;}
30425 -) cat "$tmp/out"; rm -f "$tmp/out";;
30426 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30435 # Transform confdefs.h into a sed script `conftest.defines', that
30436 # substitutes the proper values into config.h.in to produce config.h.
30437 rm -f conftest.defines conftest.tail
30438 # First, append a space to every undef/define line, to ease matching.
30439 echo 's/$/ /' >conftest.defines
30440 # Then, protect against being on the right side of a sed subst, or in
30441 # an unquoted here document, in config.status. If some macros were
30442 # called several times there might be several #defines for the same
30443 # symbol, which is useless. But do not sort them, since the last
30444 # AC_DEFINE must be honored.
30445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30446 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30447 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30448 # PARAMS is the parameter list in the macro definition--in most cases, it's
30449 # just an empty string.
30450 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30451 ac_dB='\\)[ (].*,\\1define\\2'
30459 s/^[ ]*#[ ]*define[ ][ ]*//
30464 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30465 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30466 ' >>conftest.defines
30468 # Remove the space that was appended to ease matching.
30469 # Then replace #undef with comments. This is necessary, for
30470 # example, in the case of _POSIX_SOURCE, which is predefined and required
30471 # on some systems where configure will not decide to define it.
30472 # (The regexp can be short, since the line contains either #define or #undef.)
30474 s,^[ #]*u.*,/* & */,' >>conftest.defines
30476 # Break up conftest.defines:
30477 ac_max_sed_lines=50
30479 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30480 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30481 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30483 ac_in='$ac_file_inputs'
30484 ac_out='"$tmp/out1"'
30485 ac_nxt='"$tmp/out2"'
30489 # Write a here document:
30490 cat >>$CONFIG_STATUS <<_ACEOF
30491 # First, check the format of the line:
30492 cat >"\$tmp/defines.sed" <<\\CEOF
30493 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30494 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30498 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30500 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30501 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30502 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30503 grep . conftest.tail >/dev/null || break
30504 rm -f conftest.defines
30505 mv conftest.tail conftest.defines
30507 rm -f conftest.defines conftest.tail
30509 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30510 cat >>$CONFIG_STATUS <<\_ACEOF
30511 if test x"$ac_file" != x-; then
30512 echo "/* $configure_input */" >"$tmp/config.h"
30513 cat "$ac_result" >>"$tmp/config.h"
30514 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30515 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30516 echo "$as_me: $ac_file is unchanged" >&6;}
30519 mv "$tmp/config.h" $ac_file
30522 echo "/* $configure_input */"
30526 # Compute $ac_file's index in $config_headers.
30529 for _am_header in $config_headers :; do
30530 case $_am_header in
30531 $_am_arg | $_am_arg:* )
30534 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30537 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30538 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30539 X"$_am_arg" : 'X\(//\)[^/]' \| \
30540 X"$_am_arg" : 'X\(//\)$' \| \
30541 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30547 /^X\(\/\/\)[^/].*/{
30559 s/.*/./; q'`/stamp-h$_am_stamp_count
30562 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30563 echo "$as_me: executing $ac_file commands" >&6;}
30568 case $ac_file$ac_mode in
30569 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30570 # Strip MF so we end up with the name of the file.
30571 mf=`echo "$mf" | sed -e 's/:.*$//'`
30572 # Check whether this is an Automake generated Makefile or not.
30573 # We used to match only the files named `Makefile.in', but
30574 # some people rename them; so instead we look at the file content.
30575 # Grep'ing the first line is not enough: some people post-process
30576 # each Makefile.in and add a new line on top of each file to say so.
30577 # Grep'ing the whole file is not good either: AIX grep has a line
30578 # limit of 2048, but all sed's we know have understand at least 4000.
30579 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30580 dirpart=`$as_dirname -- "$mf" ||
30581 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30582 X"$mf" : 'X\(//\)[^/]' \| \
30583 X"$mf" : 'X\(//\)$' \| \
30584 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30590 /^X\(\/\/\)[^/].*/{
30606 # Extract the definition of DEPDIR, am__include, and am__quote
30607 # from the Makefile without running `make'.
30608 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30609 test -z "$DEPDIR" && continue
30610 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30611 test -z "am__include" && continue
30612 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30613 # When using ansi2knr, U may be empty or an underscore; expand it
30614 U=`sed -n 's/^U = //p' < "$mf"`
30615 # Find all dependency output files, they are included files with
30616 # $(DEPDIR) in their names. We invoke sed twice because it is the
30617 # simplest approach to changing $(DEPDIR) to its actual value in the
30619 for file in `sed -n "
30620 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30621 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30622 # Make sure the directory exists.
30623 test -f "$dirpart/$file" && continue
30624 fdir=`$as_dirname -- "$file" ||
30625 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30626 X"$file" : 'X\(//\)[^/]' \| \
30627 X"$file" : 'X\(//\)$' \| \
30628 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30634 /^X\(\/\/\)[^/].*/{
30647 { as_dir=$dirpart/$fdir
30649 -*) as_dir=./$as_dir;;
30651 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30655 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30656 *) as_qdir=$as_dir;;
30658 as_dirs="'$as_qdir' $as_dirs"
30659 as_dir=`$as_dirname -- "$as_dir" ||
30660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30661 X"$as_dir" : 'X\(//\)[^/]' \| \
30662 X"$as_dir" : 'X\(//\)$' \| \
30663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30669 /^X\(\/\/\)[^/].*/{
30682 test -d "$as_dir" && break
30684 test -z "$as_dirs" || eval "mkdir $as_dirs"
30685 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30686 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30687 { (exit 1); exit 1; }; }; }
30688 # echo "creating $dirpart/$file"
30689 echo '# dummy' > "$dirpart/$file"
30693 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
30694 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
30697 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
30698 { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
30699 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
30700 { (exit 1); exit 1; }; }
30702 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
30707 '"s|^| $ac_top_srcdir/|" \
30708 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
30710 sed '/^POTFILES =/,/[^\\]$/ {
30714 ' "po/Makefile.in" >"po/Makefile"
30715 rm -f "po/Makefile.tmp"
30716 mv "po/stamp-it.tmp" "po/stamp-it"
30723 { (exit 0); exit 0; }
30725 chmod +x $CONFIG_STATUS
30726 ac_clean_files=$ac_clean_files_save
30729 # configure is writing to config.log, and then calls config.status.
30730 # config.status does its own redirection, appending to config.log.
30731 # Unfortunately, on DOS this fails, as config.log is still kept open
30732 # by configure, so config.status won't be able to write to it; its
30733 # output is simply discarded. So we exec the FD to /dev/null,
30734 # effectively closing config.log, so it can be properly (re)opened and
30735 # appended to by config.status. When coming back to configure, we
30736 # need to make the FD available again.
30737 if test "$no_create" != yes; then
30739 ac_config_status_args=
30740 test "$silent" = yes &&
30741 ac_config_status_args="$ac_config_status_args --quiet"
30743 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30745 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30746 # would make configure fail if this is the last instruction.
30747 $ac_cs_success || { (exit 1); exit 1; }
30752 echo CONFIGURATION SUMMARY
30753 echo "Core SyncEvolution: $enable_core"
30754 for backend in $BACKENDS; do
30755 eval echo $backend: \${enable_${backend}}
30757 echo "DBus service: $enable_dbus_service"
30758 echo "GNOME keyring: $enable_gnome_keyring"
30759 echo "UI (DBus client): $enable_gui"
30760 echo "Bluetooth transport: $have_bluetooth"
30761 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
30762 echo "SHA-256: $have_sha"
30763 echo "API documentation: $enable_doc"
30764 echo "D-Bus Timeout Hack: $enable_dbus_timeout_hack"