2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for syncevolution 1.3.99.4.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='syncevolution'
589 PACKAGE_TARNAME='syncevolution'
590 PACKAGE_VERSION='1.3.99.4'
591 PACKAGE_STRING='syncevolution 1.3.99.4'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars='am__EXEEXT_FALSE
635 COND_CROSS_COMPILING_FALSE
636 COND_CROSS_COMPILING_TRUE
640 BACKENDS_SEARCH_DIRECTORY
642 LIBICAL_AVAILABLE_LIBS
643 LIBICAL_AVAILABLE_CFLAGS
644 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
645 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
646 SYNCEVOLUTION_CXXFLAGS
686 NEON_COMPATIBILITY_FALSE
687 NEON_COMPATIBILITY_TRUE
697 USE_KDE_KWALLET_FALSE
732 EASCLIENT_DEPENDENCIES
734 LIBEASCLIENT_LA_DEPENDENCIES
735 BUILD_ACTIVESYNCD_FALSE
736 BUILD_ACTIVESYNCD_TRUE
741 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
742 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
745 GNOMEBLUETOOTH_CFLAGS
751 SYNTHESIS_SUBDIR_INCLUDES
754 WITH_SYNTHESIS_SRC_LIBS
755 WITH_SYNTHESIS_SRC_CFLAGS
759 COND_HTML_README_FALSE
760 COND_HTML_README_TRUE
770 SYNCEVOLUTION_LOCALEDIR
800 INTLTOOL_SERVICE_RULE
802 INTLTOOL_SCHEMAS_RULE
804 INTLTOOL_XML_NOMERGE_RULE
809 INTLTOOL_SOUNDLIST_RULE
816 INTLTOOL_DIRECTORY_RULE
817 INTLTOOL_DESKTOP_RULE
818 intltool__v_merge_options_0
819 intltool__v_merge_options_
820 INTLTOOL_V_MERGE_OPTIONS
834 NOTIFY_COMPATIBILITY_FALSE
835 NOTIFY_COMPATIBILITY_TRUE
838 DBUS_PIM_PLUGIN_LDFLAGS
840 DBUS_PIM_PLUGIN_CFLAGS
866 ENABLE_BLUETOOTH_FALSE
867 ENABLE_BLUETOOTH_TRUE
882 ENABLE_UNIT_TESTS_FALSE
883 ENABLE_UNIT_TESTS_TRUE
929 MAINTAINER_MODE_FALSE
960 INSTALL_STRIP_PROGRAM
1003 program_transform_name
1016 enable_option_checking
1019 enable_dependency_tracking
1020 enable_maintainer_mode
1033 with_synthesis_username
1034 with_synthesis_revision
1036 enable_integration_tests
1038 enable_evolution_compatibility
1039 enable_developer_mode
1041 with_ca_certificates
1045 enable_ssl_certificate_check
1052 enable_notify_compatibility
1054 enable_dbus_service_pim
1059 enable_gnome_bluetooth_panel_plugin
1062 with_activesyncd_src
1068 enable_gnome_keyring
1076 enable_neon_compatibility
1080 enable_dbus_timeout_hack
1082 ac_precious_vars='build_alias
1116 MX_GTK_0_99_1_CFLAGS
1128 WITH_SYNTHESIS_SRC_CFLAGS
1129 WITH_SYNTHESIS_SRC_LIBS
1130 GNOMEBLUETOOTH_CFLAGS
1140 EBOOK_VERSION_CFLAGS
1144 EBOOKCONTACTS_CFLAGS
1177 LIBICAL_AVAILABLE_CFLAGS
1178 LIBICAL_AVAILABLE_LIBS'
1181 # Initialize some variables set by options.
1183 ac_init_version=false
1184 ac_unrecognized_opts=
1185 ac_unrecognized_sep=
1186 # The variables have the same names as the options, with
1187 # dashes changed to underlines.
1188 cache_file=/dev/null
1195 program_transform_name=s,x,x,
1203 # Installation directory options.
1204 # These are left unexpanded so users can "make install exec_prefix=/foo"
1205 # and all the variables that are supposed to be based on exec_prefix
1206 # by default will actually change.
1207 # Use braces instead of parens because sh, perl, etc. also accept them.
1208 # (The list follows the same order as the GNU Coding Standards.)
1209 bindir='${exec_prefix}/bin'
1210 sbindir='${exec_prefix}/sbin'
1211 libexecdir='${exec_prefix}/libexec'
1212 datarootdir='${prefix}/share'
1213 datadir='${datarootdir}'
1214 sysconfdir='${prefix}/etc'
1215 sharedstatedir='${prefix}/com'
1216 localstatedir='${prefix}/var'
1217 includedir='${prefix}/include'
1218 oldincludedir='/usr/include'
1219 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1220 infodir='${datarootdir}/info'
1225 libdir='${exec_prefix}/lib'
1226 localedir='${datarootdir}/locale'
1227 mandir='${datarootdir}/man'
1233 # If the previous option needs an argument, assign it.
1234 if test -n "$ac_prev"; then
1235 eval $ac_prev=\$ac_option
1241 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1246 # Accept the important Cygnus configure options, so we can diagnose typos.
1248 case $ac_dashdash$ac_option in
1252 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1254 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1255 bindir=$ac_optarg ;;
1257 -build | --build | --buil | --bui | --bu)
1258 ac_prev=build_alias ;;
1259 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1260 build_alias=$ac_optarg ;;
1262 -cache-file | --cache-file | --cache-fil | --cache-fi \
1263 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1264 ac_prev=cache_file ;;
1265 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1266 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1267 cache_file=$ac_optarg ;;
1269 --config-cache | -C)
1270 cache_file=config.cache ;;
1272 -datadir | --datadir | --datadi | --datad)
1274 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1275 datadir=$ac_optarg ;;
1277 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1278 | --dataroo | --dataro | --datar)
1279 ac_prev=datarootdir ;;
1280 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1281 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1282 datarootdir=$ac_optarg ;;
1284 -disable-* | --disable-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error $? "invalid feature name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1293 "enable_$ac_useropt"
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1298 eval enable_$ac_useropt=no ;;
1300 -docdir | --docdir | --docdi | --doc | --do)
1302 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1303 docdir=$ac_optarg ;;
1305 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1307 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1308 dvidir=$ac_optarg ;;
1310 -enable-* | --enable-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid feature name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1319 "enable_$ac_useropt"
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1324 eval enable_$ac_useropt=\$ac_optarg ;;
1326 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1327 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1328 | --exec | --exe | --ex)
1329 ac_prev=exec_prefix ;;
1330 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1331 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1332 | --exec=* | --exe=* | --ex=*)
1333 exec_prefix=$ac_optarg ;;
1335 -gas | --gas | --ga | --g)
1336 # Obsolete; use --with-gas.
1339 -help | --help | --hel | --he | -h)
1340 ac_init_help=long ;;
1341 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1342 ac_init_help=recursive ;;
1343 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1344 ac_init_help=short ;;
1346 -host | --host | --hos | --ho)
1347 ac_prev=host_alias ;;
1348 -host=* | --host=* | --hos=* | --ho=*)
1349 host_alias=$ac_optarg ;;
1351 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1353 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1355 htmldir=$ac_optarg ;;
1357 -includedir | --includedir | --includedi | --included | --include \
1358 | --includ | --inclu | --incl | --inc)
1359 ac_prev=includedir ;;
1360 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1361 | --includ=* | --inclu=* | --incl=* | --inc=*)
1362 includedir=$ac_optarg ;;
1364 -infodir | --infodir | --infodi | --infod | --info | --inf)
1366 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1367 infodir=$ac_optarg ;;
1369 -libdir | --libdir | --libdi | --libd)
1371 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1372 libdir=$ac_optarg ;;
1374 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1375 | --libexe | --libex | --libe)
1376 ac_prev=libexecdir ;;
1377 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1378 | --libexe=* | --libex=* | --libe=*)
1379 libexecdir=$ac_optarg ;;
1381 -localedir | --localedir | --localedi | --localed | --locale)
1382 ac_prev=localedir ;;
1383 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1384 localedir=$ac_optarg ;;
1386 -localstatedir | --localstatedir | --localstatedi | --localstated \
1387 | --localstate | --localstat | --localsta | --localst | --locals)
1388 ac_prev=localstatedir ;;
1389 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1390 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1391 localstatedir=$ac_optarg ;;
1393 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1395 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1396 mandir=$ac_optarg ;;
1398 -nfp | --nfp | --nf)
1399 # Obsolete; use --without-fp.
1402 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1403 | --no-cr | --no-c | -n)
1406 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1407 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1410 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1411 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1412 | --oldin | --oldi | --old | --ol | --o)
1413 ac_prev=oldincludedir ;;
1414 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1415 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1416 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1417 oldincludedir=$ac_optarg ;;
1419 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1421 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1422 prefix=$ac_optarg ;;
1424 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1425 | --program-pre | --program-pr | --program-p)
1426 ac_prev=program_prefix ;;
1427 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1428 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1429 program_prefix=$ac_optarg ;;
1431 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1432 | --program-suf | --program-su | --program-s)
1433 ac_prev=program_suffix ;;
1434 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1435 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1436 program_suffix=$ac_optarg ;;
1438 -program-transform-name | --program-transform-name \
1439 | --program-transform-nam | --program-transform-na \
1440 | --program-transform-n | --program-transform- \
1441 | --program-transform | --program-transfor \
1442 | --program-transfo | --program-transf \
1443 | --program-trans | --program-tran \
1444 | --progr-tra | --program-tr | --program-t)
1445 ac_prev=program_transform_name ;;
1446 -program-transform-name=* | --program-transform-name=* \
1447 | --program-transform-nam=* | --program-transform-na=* \
1448 | --program-transform-n=* | --program-transform-=* \
1449 | --program-transform=* | --program-transfor=* \
1450 | --program-transfo=* | --program-transf=* \
1451 | --program-trans=* | --program-tran=* \
1452 | --progr-tra=* | --program-tr=* | --program-t=*)
1453 program_transform_name=$ac_optarg ;;
1455 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1457 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1458 pdfdir=$ac_optarg ;;
1460 -psdir | --psdir | --psdi | --psd | --ps)
1462 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1466 | -silent | --silent | --silen | --sile | --sil)
1469 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1471 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1473 sbindir=$ac_optarg ;;
1475 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1476 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1477 | --sharedst | --shareds | --shared | --share | --shar \
1479 ac_prev=sharedstatedir ;;
1480 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1481 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1482 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1484 sharedstatedir=$ac_optarg ;;
1486 -site | --site | --sit)
1488 -site=* | --site=* | --sit=*)
1491 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1493 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1494 srcdir=$ac_optarg ;;
1496 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1497 | --syscon | --sysco | --sysc | --sys | --sy)
1498 ac_prev=sysconfdir ;;
1499 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1500 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1501 sysconfdir=$ac_optarg ;;
1503 -target | --target | --targe | --targ | --tar | --ta | --t)
1504 ac_prev=target_alias ;;
1505 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1506 target_alias=$ac_optarg ;;
1508 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1511 -version | --version | --versio | --versi | --vers | -V)
1512 ac_init_version=: ;;
1515 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1516 # Reject names that are not valid shell variable names.
1517 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1518 as_fn_error $? "invalid package name: $ac_useropt"
1519 ac_useropt_orig=$ac_useropt
1520 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1521 case $ac_user_opts in
1525 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1526 ac_unrecognized_sep=', ';;
1528 eval with_$ac_useropt=\$ac_optarg ;;
1530 -without-* | --without-*)
1531 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1532 # Reject names that are not valid shell variable names.
1533 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1534 as_fn_error $? "invalid package name: $ac_useropt"
1535 ac_useropt_orig=$ac_useropt
1536 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1537 case $ac_user_opts in
1541 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1542 ac_unrecognized_sep=', ';;
1544 eval with_$ac_useropt=no ;;
1547 # Obsolete; use --with-x.
1550 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1551 | --x-incl | --x-inc | --x-in | --x-i)
1552 ac_prev=x_includes ;;
1553 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1554 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1555 x_includes=$ac_optarg ;;
1557 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1558 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1559 ac_prev=x_libraries ;;
1560 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1561 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1562 x_libraries=$ac_optarg ;;
1564 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1565 Try \`$0 --help' for more information"
1569 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1570 # Reject names that are not valid shell variable names.
1571 case $ac_envvar in #(
1572 '' | [0-9]* | *[!_$as_cr_alnum]* )
1573 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1575 eval $ac_envvar=\$ac_optarg
1576 export $ac_envvar ;;
1579 # FIXME: should be removed in autoconf 3.0.
1580 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1581 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1582 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1583 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1589 if test -n "$ac_prev"; then
1590 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1591 as_fn_error $? "missing argument to $ac_option"
1594 if test -n "$ac_unrecognized_opts"; then
1595 case $enable_option_checking in
1597 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1598 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1602 # Check all directory arguments for consistency.
1603 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1604 datadir sysconfdir sharedstatedir localstatedir includedir \
1605 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1606 libdir localedir mandir
1608 eval ac_val=\$$ac_var
1609 # Remove trailing slashes.
1612 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1613 eval $ac_var=\$ac_val;;
1615 # Be sure to have absolute directory names.
1617 [\\/$]* | ?:[\\/]* ) continue;;
1618 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1620 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1623 # There might be people who depend on the old broken behavior: `$host'
1624 # used to hold the argument of --host etc.
1625 # FIXME: To remove some day.
1628 target=$target_alias
1630 # FIXME: To remove some day.
1631 if test "x$host_alias" != x; then
1632 if test "x$build_alias" = x; then
1633 cross_compiling=maybe
1634 elif test "x$build_alias" != "x$host_alias"; then
1640 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1642 test "$silent" = yes && exec 6>/dev/null
1645 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646 ac_ls_di=`ls -di .` &&
1647 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1648 as_fn_error $? "working directory cannot be determined"
1649 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1650 as_fn_error $? "pwd does not report name of working directory"
1653 # Find the source files, if location was not specified.
1654 if test -z "$srcdir"; then
1655 ac_srcdir_defaulted=yes
1656 # Try the directory containing this script, then the parent directory.
1657 ac_confdir=`$as_dirname -- "$as_myself" ||
1658 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659 X"$as_myself" : 'X\(//\)[^/]' \| \
1660 X"$as_myself" : 'X\(//\)$' \| \
1661 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662 $as_echo X"$as_myself" |
1663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1685 ac_srcdir_defaulted=no
1687 if test ! -r "$srcdir/$ac_unique_file"; then
1688 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1689 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1691 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1693 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1695 # When building in place, set srcdir=.
1696 if test "$ac_abs_confdir" = "$ac_pwd"; then
1699 # Remove unnecessary trailing slashes from srcdir.
1700 # Double slashes in file names in object file debugging info
1701 # mess up M-x gdb in Emacs.
1703 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1705 for ac_var in $ac_precious_vars; do
1706 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707 eval ac_env_${ac_var}_value=\$${ac_var}
1708 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1713 # Report the --help message.
1715 if test "$ac_init_help" = "long"; then
1716 # Omit some internal or obsolete options to make the list less imposing.
1717 # This message is too long to be a string in the A/UX 3.1 sh.
1719 \`configure' configures syncevolution 1.3.99.4 to adapt to many kinds of systems.
1721 Usage: $0 [OPTION]... [VAR=VALUE]...
1723 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724 VAR=VALUE. See below for descriptions of some of the useful variables.
1726 Defaults for the options are specified in brackets.
1729 -h, --help display this help and exit
1730 --help=short display options specific to this package
1731 --help=recursive display the short help of all the included packages
1732 -V, --version display version information and exit
1733 -q, --quiet, --silent do not print \`checking ...' messages
1734 --cache-file=FILE cache test results in FILE [disabled]
1735 -C, --config-cache alias for \`--cache-file=config.cache'
1736 -n, --no-create do not create output files
1737 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1739 Installation directories:
1740 --prefix=PREFIX install architecture-independent files in PREFIX
1741 [$ac_default_prefix]
1742 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1745 By default, \`make install' will install all the files in
1746 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1747 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748 for instance \`--prefix=\$HOME'.
1750 For better control, use the options below.
1752 Fine tuning of the installation directories:
1753 --bindir=DIR user executables [EPREFIX/bin]
1754 --sbindir=DIR system admin executables [EPREFIX/sbin]
1755 --libexecdir=DIR program executables [EPREFIX/libexec]
1756 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1757 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1758 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1759 --libdir=DIR object code libraries [EPREFIX/lib]
1760 --includedir=DIR C header files [PREFIX/include]
1761 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1762 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1763 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1764 --infodir=DIR info documentation [DATAROOTDIR/info]
1765 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1766 --mandir=DIR man documentation [DATAROOTDIR/man]
1767 --docdir=DIR documentation root [DATAROOTDIR/doc/syncevolution]
1768 --htmldir=DIR html documentation [DOCDIR]
1769 --dvidir=DIR dvi documentation [DOCDIR]
1770 --pdfdir=DIR pdf documentation [DOCDIR]
1771 --psdir=DIR ps documentation [DOCDIR]
1777 --program-prefix=PREFIX prepend PREFIX to installed program names
1778 --program-suffix=SUFFIX append SUFFIX to installed program names
1779 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1782 --build=BUILD configure for building on BUILD [guessed]
1783 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1787 if test -n "$ac_init_help"; then
1788 case $ac_init_help in
1789 short | recursive ) echo "Configuration of syncevolution 1.3.99.4:";;
1794 --disable-option-checking ignore unrecognized --enable/--with options
1795 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1796 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1797 --enable-release-mode Controls whether resulting binary is for end-users
1798 or testers/developers. For example, stable releases
1799 automatically migrate on-disk files without asking,
1800 whereas other releases ask before making downgrades
1801 impossible (or difficult). Default in this source
1802 code is "stable release: no"
1803 --enable-silent-rules less verbose build output (undo: `make V=1')
1804 --disable-silent-rules verbose build output (undo: `make V=0')
1805 --disable-dependency-tracking speeds up one-time build
1806 --enable-dependency-tracking do not reject slow dependency extractors
1807 --disable-maintainer-mode disable make rules and dependencies not useful
1808 (and sometimes confusing) to the casual installer
1809 --enable-shared[=PKGS] build shared libraries [default=yes]
1810 --enable-static[=PKGS] build static libraries [default=yes]
1811 --enable-fast-install[=PKGS]
1812 optimize for fast installation [default=yes]
1813 --disable-libtool-lock avoid locking (might break parallel builds)
1814 --enable-warnings=[min|max|fatal|no]
1815 control compiler pickyness [min]
1816 --enable-shared build backends as dynamically loadable modules
1817 --enable-static build backends also as static libraries
1818 --enable-unit-tests enables tests embedded in the source code of the
1819 library (changes content of executable)
1820 --enable-integration-tests
1821 enables tests outside of the library (can be used
1822 together with normal builds of the library)
1823 --enable-static-cxx build executables which contain libstdc++ instead of
1824 requiring suitable libstdc++.so to run
1825 --enable-evolution-compatibility
1826 build executables which only call Evolution via
1827 dlopen/dlsym: this avoids all hard dependencies on
1828 EDS shared objects, but might lead to crashes when
1830 --enable-developer-mode The dynamic loadble backend libraries is loaded from
1831 current build directory instead of the standard
1833 --enable-maemo enables some hacks which work around problems with
1834 the Maemo 2.0 until at least 3.0 EDS-Dbus
1835 --enable-libcurl enable libcurl as transport layer
1836 --enable-libsoup enable libsoup as transport layer
1837 --enable-bluetooth enable bluetooth transport support
1838 --disable-ssl-certificate-check
1839 Disable SSL certificate checking in all server
1840 *templates*. Users can still choose to enable or
1841 disable it in their configuration. This is necessary
1842 on platforms where the transport library has
1843 problems verifying the server's certificate (libsoup
1845 http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1846 --enable-gtk=major version
1847 Selects the gtk+ version ("2" or "3") to use for the
1848 UI. If this option is used, --enable-gui should be
1849 used as well. "3" is the default option if
1850 available, otherwise "2".
1851 --enable-gui=gui type enables building the GTK+ UI that uses the
1852 SyncEvolution DBus API. Options: gtk, moblin, all
1853 (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1854 default for --enable-gui without type. No GUI is
1855 built when --enable-gui is not used.
1856 --enable-core enables building the core SyncEvolution (library,
1858 --enable-dbus-service enables building the dbus service executable and all
1859 related features (the DBus wrapper library, command
1860 line usage of server, etc).
1861 --enable-notify send notifications for automatic sync events, using
1863 --enable-notify-compatibility
1864 increase compatibility with binary libnotify
1865 installations by loading libnotify.so.1..4
1866 dynamically instead of linking against it
1867 --enable-mlite send notifications for automatic sync events, using
1868 mlite (off by default)
1869 --enable-dbus-service-pim=<locale>
1870 Enable implementation of org._01.pim D-Bus APIs
1871 (depends on libfolks), using
1872 src/dbus/server/pim/locale-factory-<locale>.cpp to
1873 implement sorting and searching. The default is
1874 <locale>=boost, which uses boost::locale.
1875 --disable-nls do not use Native Language Support
1876 --enable-gnome-bluetooth-panel-plugin
1877 GNOME Bluetooth panel plugin adding a "sync" button
1878 for paired devices (off by default)
1879 --enable-doc generate backend and DBus API documentation
1880 --enable-activesync enable access to servers via ActiveSync (default
1882 --enable-addressbook enable access to Mac OS X address book (default off)
1883 --disable-akonadi disable access to Akonadi (default is to use it if
1884 akonadi.pc is found)
1885 --disable-ebook disable access to Evolution addressbooks (must be
1886 used to compile without it)
1887 --disable-ecal disable access to Evolution calendars and tasks
1888 (must be used to compile without it)
1889 --disable-file disable file-based backend which stores items in
1890 separate files in a fixed directory (default on)
1891 --enable-gnome-keyring enables or disables support for the GNOME keyring;
1892 default is on if development files are available
1893 --enable-kcalextended enable support for Maemo's KCalExtended storage
1894 --enable-kwallet enable access to KWallet
1895 --enable-maemocal enable access to PIM data stored in Maemo 5 calendar
1896 application (default off)
1897 --enable-pbap enable Phone Book Access Protocol (PBAP) based
1898 backend which provides one-way synchronization
1900 --enable-qtcontacts enable support for QtMobility's QtContacts storage
1901 --enable-sqlite enable access to PIM data stored in SQLite files
1902 (experimental, default off)
1903 --enable-dav enable WebDAV based backends (CalDAV) (default off)
1904 --enable-neon-compatibility
1905 increase compatibility with binary libneon
1906 installations by loading libneon[-gnutls].27.so
1907 dynamically instead of linking against it
1908 --enable-xmlrpc enable XMLRPC-based backend which stores items on a
1909 central web service (default off)
1910 --enable-qt-dbus build Qt bindings for D-Bus
1911 --enable-dbus-timeout-hack
1912 Enables code which overrides the default timeout in
1913 dbus_connection_send_with_reply() so that the method
1914 call never times out. Needed for libecal/ebook >=
1915 2.30, so enabled by default if either of these is
1919 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1920 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1921 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1923 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1924 --with-sysroot=DIR Search for dependent libraries within DIR
1925 (or the compiler's sysroot if not specified).
1926 --with-boost[=ARG] use Boost library from a standard location
1927 (ARG=yes), from the specified location (ARG=<path>),
1928 or disable it (ARG=no) [ARG=yes]
1929 --with-boost-libdir=LIB_DIR
1930 Force given directory for boost libraries. Note that
1931 this will override library path detection, so use
1932 this parameter only if default library detection
1933 fails and you know exactly where your boost
1934 libraries are located.
1935 --with-synthesis-src=<base directory|svn URL|git URL>
1936 Specifies location of the Synthesis root directory.
1937 Use this when the Synthesis library is to be
1938 compiled as part of the SyncEvolution compilation.
1939 In release versions of SyncEvolution, a copy of the
1940 Synthesis code is bundled under 'src/synthesis' and
1941 compiled unless something else is specified.
1942 --with-synthesis-src can be given a path to sources
1943 checked out already, a Subversion repository URL or
1944 a git repository URL. When given a repository URL,
1945 then the configure script will checkout the sources
1946 into 'src/synthesis-workdir' or update that working
1947 copy if the directory already exists. Default:
1948 bundled source in src/synthesis (in released
1949 SyncEvolution sources), otherwise.
1950 --with-syncml-engines=client|server|both
1951 Determines which kind of support for SyncML is
1952 compiled and linked into SyncEvolution. Default is
1953 both. Currently has no effect.
1954 --with-synthesis-username=<svn username>
1955 username to use when checking out
1956 --with-synthesis-src sources from Subversion,
1958 --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
1959 Identifies which source revision to use from
1960 --with-synthesis-src repository, empty string stands
1961 for latest. Default for default --synthesis-src:
1963 --with-ca-certificates=<colon separated list of files>
1964 Specifies location of one or more CA certificate
1965 files. This sets the default value for the
1966 SSLServerCertificates option. Default: empty when
1967 using libcurl (because it has its own default), a
1968 list of paths known to work for Debian and Red Hat
1970 --with-gio-gdbus enables use of GIO's GDBus instead of the in-tree,
1972 --with-boost-locale[=special-lib]
1973 use the Locale library from boost - it is possible
1974 to specify a certain library for the linker e.g.
1975 --with-boost-locale=boost_locale-gcc-mt
1976 --with-rst2man=<path to reStructuredText to man converter>
1977 Specifies an explicit path to the utility if not
1978 found in PATH. An explicit --without-rst2man or not
1979 having it installed turn off building of man pages.
1980 --with-rst2html=<path to reStructuredText to HTML converter>
1981 Specifies an explicit path to the utility if not
1982 found in PATH. An explicit --without-rst2html or not
1983 having it installed turn off building of README in
1985 --with-activesyncd-src=<base directory>
1986 Specifies location of the activesyncd source root
1987 directory. Use this when activesyncd is to be
1988 compiled as part of the SyncEvolution compilation.
1989 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1991 Some influential environment variables:
1992 CC C compiler command
1993 CFLAGS C compiler flags
1994 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1995 nonstandard directory <lib dir>
1996 LIBS libraries to pass to the linker, e.g. -l<library>
1997 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1998 you have headers in a nonstandard directory <include dir>
2000 CXX C++ compiler command
2001 CXXFLAGS C++ compiler flags
2002 CXXCPP C++ preprocessor
2003 PKG_CONFIG path to pkg-config utility
2005 directories to add to pkg-config's search path
2007 path overriding pkg-config's built-in search path
2009 C compiler flags for LIBSOUP, overriding pkg-config
2011 linker flags for LIBSOUP, overriding pkg-config
2013 C compiler flags for LIBOPENOBEX, overriding pkg-config
2015 linker flags for LIBOPENOBEX, overriding pkg-config
2017 C compiler flags for BLUEZ, overriding pkg-config
2018 BLUEZ_LIBS linker flags for BLUEZ, overriding pkg-config
2019 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2020 DBUS_LIBS linker flags for DBUS, overriding pkg-config
2022 C compiler flags for LIBNOTIFY, overriding pkg-config
2024 linker flags for LIBNOTIFY, overriding pkg-config
2026 C compiler flags for MLITE, overriding pkg-config
2027 MLITE_LIBS linker flags for MLITE, overriding pkg-config
2029 C compiler flags for FOLKS, overriding pkg-config
2030 FOLKS_LIBS linker flags for FOLKS, overriding pkg-config
2031 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
2032 ICU_LIBS linker flags for ICU, overriding pkg-config
2034 C compiler flags for DBUS_GLIB, overriding pkg-config
2036 linker flags for DBUS_GLIB, overriding pkg-config
2037 MX_GTK_0_99_1_CFLAGS
2038 C compiler flags for MX_GTK_0_99_1, overriding pkg-config
2040 linker flags for MX_GTK_0_99_1, overriding pkg-config
2042 C compiler flags for UNIQUE, overriding pkg-config
2043 UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
2045 C compiler flags for GTK_2_18, overriding pkg-config
2047 linker flags for GTK_2_18, overriding pkg-config
2048 GUI_CFLAGS C compiler flags for GUI, overriding pkg-config
2049 GUI_LIBS linker flags for GUI, overriding pkg-config
2051 C compiler flags for PCRECPP, overriding pkg-config
2053 linker flags for PCRECPP, overriding pkg-config
2055 C compiler flags for SYNTHESIS, overriding pkg-config
2057 linker flags for SYNTHESIS, overriding pkg-config
2058 WITH_SYNTHESIS_SRC_CFLAGS
2059 C compiler flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2060 WITH_SYNTHESIS_SRC_LIBS
2061 linker flags for WITH_SYNTHESIS_SRC, overriding pkg-config
2062 GNOMEBLUETOOTH_CFLAGS
2063 C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
2065 linker flags for GNOMEBLUETOOTH, overriding pkg-config
2067 C compiler flags for EASCLIENT, overriding pkg-config
2069 linker flags for EASCLIENT, overriding pkg-config
2071 C compiler flags for EPACKAGE, overriding pkg-config
2073 linker flags for EPACKAGE, overriding pkg-config
2074 ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
2075 ECAL_LIBS linker flags for ECAL, overriding pkg-config
2077 C compiler flags for EBOOK, overriding pkg-config
2078 EBOOK_LIBS linker flags for EBOOK, overriding pkg-config
2079 EBOOK_VERSION_CFLAGS
2080 C compiler flags for EBOOK_VERSION, overriding pkg-config
2082 linker flags for EBOOK_VERSION, overriding pkg-config
2084 C compiler flags for EDS_VERSION, overriding pkg-config
2086 linker flags for EDS_VERSION, overriding pkg-config
2087 EBOOKCONTACTS_CFLAGS
2088 C compiler flags for EBOOKCONTACTS, overriding pkg-config
2090 linker flags for EBOOKCONTACTS, overriding pkg-config
2092 C compiler flags for KEYRING, overriding pkg-config
2094 linker flags for KEYRING, overriding pkg-config
2096 C compiler flags for KEYRING_2_20, overriding pkg-config
2098 linker flags for KEYRING_2_20, overriding pkg-config
2100 C compiler flags for KCALEXTENDED, overriding pkg-config
2102 linker flags for KCALEXTENDED, overriding pkg-config
2104 C compiler flags for MCALB, overriding pkg-config
2105 MCALB_LIBS linker flags for MCALB, overriding pkg-config
2107 C compiler flags for SQLITE, overriding pkg-config
2108 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
2109 NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
2110 NEON_LIBS linker flags for NEON, overriding pkg-config
2111 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2112 GLIB_LIBS linker flags for GLIB, overriding pkg-config
2114 C compiler flags for GTHREAD, overriding pkg-config
2116 linker flags for GTHREAD, overriding pkg-config
2118 C compiler flags for GOBJECT, overriding pkg-config
2120 linker flags for GOBJECT, overriding pkg-config
2121 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
2122 GIO_LIBS linker flags for GIO, overriding pkg-config
2124 C compiler flags for LIBICAL, overriding pkg-config
2126 linker flags for LIBICAL, overriding pkg-config
2127 QT_PATH Path to the Qt installation
2128 QMAKE Qt Makefile generator command
2129 MOC Qt Meta Object Compiler command
2130 UIC Qt User Interface Compiler command
2131 RCC Qt Resource Compiler command
2133 C compiler flags for GLIB216, overriding pkg-config
2135 linker flags for GLIB216, overriding pkg-config
2136 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
2137 NSS_LIBS linker flags for NSS, overriding pkg-config
2138 LIBICAL_AVAILABLE_CFLAGS
2139 C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
2140 LIBICAL_AVAILABLE_LIBS
2141 linker flags for LIBICAL_AVAILABLE, overriding pkg-config
2143 Use these variables to override the choices made by `configure' or to help
2144 it to find libraries and programs with nonstandard names/locations.
2146 Report bugs to the package provider.
2151 if test "$ac_init_help" = "recursive"; then
2152 # If there are subdirs, report their specific --help.
2153 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2154 test -d "$ac_dir" ||
2155 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2162 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2163 # A ".." for each directory in $ac_dir_suffix.
2164 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2165 case $ac_top_builddir_sub in
2166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2170 ac_abs_top_builddir=$ac_pwd
2171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2172 # for backward compatibility:
2173 ac_top_builddir=$ac_top_build_prefix
2176 .) # We are building in place.
2178 ac_top_srcdir=$ac_top_builddir_sub
2179 ac_abs_top_srcdir=$ac_pwd ;;
2180 [\\/]* | ?:[\\/]* ) # Absolute name.
2181 ac_srcdir=$srcdir$ac_dir_suffix;
2182 ac_top_srcdir=$srcdir
2183 ac_abs_top_srcdir=$srcdir ;;
2185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2186 ac_top_srcdir=$ac_top_build_prefix$srcdir
2187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2191 cd "$ac_dir" || { ac_status=$?; continue; }
2192 # Check for guested configure.
2193 if test -f "$ac_srcdir/configure.gnu"; then
2195 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2196 elif test -f "$ac_srcdir/configure"; then
2198 $SHELL "$ac_srcdir/configure" --help=recursive
2200 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2202 cd "$ac_pwd" || { ac_status=$?; break; }
2206 test -n "$ac_init_help" && exit $ac_status
2207 if $ac_init_version; then
2209 syncevolution configure 1.3.99.4
2210 generated by GNU Autoconf 2.69
2212 Copyright (C) 2012 Free Software Foundation, Inc.
2213 This configure script is free software; the Free Software Foundation
2214 gives unlimited permission to copy, distribute and modify it.
2219 ## ------------------------ ##
2220 ## Autoconf initialization. ##
2221 ## ------------------------ ##
2223 # ac_fn_c_try_compile LINENO
2224 # --------------------------
2225 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2226 ac_fn_c_try_compile ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 rm -f conftest.$ac_objext
2230 if { { ac_try="$ac_compile"
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_compile") 2>conftest.err
2239 if test -s conftest.err; then
2240 grep -v '^ *+' conftest.err >conftest.er1
2241 cat conftest.er1 >&5
2242 mv -f conftest.er1 conftest.err
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; } && {
2246 test -z "$ac_c_werror_flag" ||
2247 test ! -s conftest.err
2248 } && test -s conftest.$ac_objext; then :
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2259 } # ac_fn_c_try_compile
2261 # ac_fn_c_try_link LINENO
2262 # -----------------------
2263 # Try to link conftest.$ac_ext, and return whether this succeeded.
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 rm -f conftest.$ac_objext conftest$ac_exeext
2268 if { { ac_try="$ac_link"
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275 (eval "$ac_link") 2>conftest.err
2277 if test -s conftest.err; then
2278 grep -v '^ *+' conftest.err >conftest.er1
2279 cat conftest.er1 >&5
2280 mv -f conftest.er1 conftest.err
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; } && {
2284 test -z "$ac_c_werror_flag" ||
2285 test ! -s conftest.err
2286 } && test -s conftest$ac_exeext && {
2287 test "$cross_compiling" = yes ||
2288 test -x conftest$ac_exeext
2292 $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2297 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2298 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2299 # interfere with the next link command; also delete a directory that is
2300 # left behind by Apple's compiler. We do this before executing the actions.
2301 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 as_fn_set_status $ac_retval
2305 } # ac_fn_c_try_link
2307 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists and can be compiled using the include files in
2310 # INCLUDES, setting the cache variable VAR accordingly.
2311 ac_fn_c_check_header_compile ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2315 $as_echo_n "checking for $2... " >&6; }
2316 if eval \${$3+:} false; then :
2317 $as_echo_n "(cached) " >&6
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2324 if ac_fn_c_try_compile "$LINENO"; then :
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 } # ac_fn_c_check_header_compile
2338 # ac_fn_c_try_cpp LINENO
2339 # ----------------------
2340 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 if { { ac_try="$ac_cpp conftest.$ac_ext"
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2353 if test -s conftest.err; then
2354 grep -v '^ *+' conftest.err >conftest.er1
2355 cat conftest.er1 >&5
2356 mv -f conftest.er1 conftest.err
2358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359 test $ac_status = 0; } > conftest.i && {
2360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2361 test ! -s conftest.err
2365 $as_echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 as_fn_set_status $ac_retval
2375 # ac_fn_c_try_run LINENO
2376 # ----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2378 # that executables *can* be run.
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 if { { ac_try="$ac_link"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>&5
2391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2392 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2393 { { case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2398 $as_echo "$ac_try_echo"; } >&5
2399 (eval "$ac_try") 2>&5
2401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; }; }; then :
2405 $as_echo "$as_me: program exited with status $ac_status" >&5
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2409 ac_retval=$ac_status
2411 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 as_fn_set_status $ac_retval
2417 # ac_fn_c_check_func LINENO FUNC VAR
2418 # ----------------------------------
2419 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2420 ac_fn_c_check_func ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if eval \${$3+:} false; then :
2426 $as_echo_n "(cached) " >&6
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2430 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2432 #define $2 innocuous_$2
2434 /* System header to define __stub macros and hopefully few prototypes,
2435 which can conflict with char $2 (); below.
2436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2437 <limits.h> exists even on freestanding compilers. */
2440 # include <limits.h>
2442 # include <assert.h>
2447 /* Override any GCC internal prototype to avoid an error.
2448 Use char because int might match the return type of a GCC
2449 builtin and then its argument prototype would still apply. */
2454 /* The GNU C library defines this for functions which it implements
2455 to always fail with ENOSYS. Some functions are actually named
2456 something starting with __ and the normal name is an alias. */
2457 #if defined __stub_$2 || defined __stub___$2
2469 if ac_fn_c_try_link "$LINENO"; then :
2474 rm -f core conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2482 } # ac_fn_c_check_func
2484 # ac_fn_cxx_try_compile LINENO
2485 # ----------------------------
2486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2487 ac_fn_cxx_try_compile ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 rm -f conftest.$ac_objext
2491 if { { ac_try="$ac_compile"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_compile") 2>conftest.err
2500 if test -s conftest.err; then
2501 grep -v '^ *+' conftest.err >conftest.er1
2502 cat conftest.er1 >&5
2503 mv -f conftest.er1 conftest.err
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } && {
2507 test -z "$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2509 } && test -s conftest.$ac_objext; then :
2512 $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518 as_fn_set_status $ac_retval
2520 } # ac_fn_cxx_try_compile
2522 # ac_fn_cxx_try_cpp LINENO
2523 # ------------------------
2524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2525 ac_fn_cxx_try_cpp ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 if { { ac_try="$ac_cpp conftest.$ac_ext"
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2534 $as_echo "$ac_try_echo"; } >&5
2535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2537 if test -s conftest.err; then
2538 grep -v '^ *+' conftest.err >conftest.er1
2539 cat conftest.er1 >&5
2540 mv -f conftest.er1 conftest.err
2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543 test $ac_status = 0; } > conftest.i && {
2544 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2545 test ! -s conftest.err
2549 $as_echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555 as_fn_set_status $ac_retval
2557 } # ac_fn_cxx_try_cpp
2559 # ac_fn_cxx_try_link LINENO
2560 # -------------------------
2561 # Try to link conftest.$ac_ext, and return whether this succeeded.
2562 ac_fn_cxx_try_link ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 rm -f conftest.$ac_objext conftest$ac_exeext
2566 if { { ac_try="$ac_link"
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_link") 2>conftest.err
2575 if test -s conftest.err; then
2576 grep -v '^ *+' conftest.err >conftest.er1
2577 cat conftest.er1 >&5
2578 mv -f conftest.er1 conftest.err
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; } && {
2582 test -z "$ac_cxx_werror_flag" ||
2583 test ! -s conftest.err
2584 } && test -s conftest$ac_exeext && {
2585 test "$cross_compiling" = yes ||
2586 test -x conftest$ac_exeext
2590 $as_echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2597 # interfere with the next link command; also delete a directory that is
2598 # left behind by Apple's compiler. We do this before executing the actions.
2599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2601 as_fn_set_status $ac_retval
2603 } # ac_fn_cxx_try_link
2605 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2606 # -------------------------------------------------------
2607 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2608 # the include files in INCLUDES and setting the cache variable VAR
2610 ac_fn_c_check_header_mongrel ()
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 if eval \${$3+:} false; then :
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615 $as_echo_n "checking for $2... " >&6; }
2616 if eval \${$3+:} false; then :
2617 $as_echo_n "(cached) " >&6
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2623 # Is the header compilable?
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2625 $as_echo_n "checking $2 usability... " >&6; }
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2631 if ac_fn_c_try_compile "$LINENO"; then :
2632 ac_header_compiler=yes
2634 ac_header_compiler=no
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2638 $as_echo "$ac_header_compiler" >&6; }
2640 # Is the header present?
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2642 $as_echo_n "checking $2 presence... " >&6; }
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2647 if ac_fn_c_try_cpp "$LINENO"; then :
2648 ac_header_preproc=yes
2650 ac_header_preproc=no
2652 rm -f conftest.err conftest.i conftest.$ac_ext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2654 $as_echo "$ac_header_preproc" >&6; }
2656 # So? What about this header?
2657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2660 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2666 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2668 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2670 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2672 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 eval "$3=\$ac_header_compiler"
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 } # ac_fn_c_check_header_mongrel
2692 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2693 # ---------------------------------------------------------
2694 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2695 # the include files in INCLUDES and setting the cache variable VAR
2697 ac_fn_cxx_check_header_mongrel ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if eval \${$3+:} false; then :
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \${$3+:} false; then :
2704 $as_echo_n "(cached) " >&6
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2710 # Is the header compilable?
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2712 $as_echo_n "checking $2 usability... " >&6; }
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2718 if ac_fn_cxx_try_compile "$LINENO"; then :
2719 ac_header_compiler=yes
2721 ac_header_compiler=no
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2725 $as_echo "$ac_header_compiler" >&6; }
2727 # Is the header present?
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2729 $as_echo_n "checking $2 presence... " >&6; }
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2734 if ac_fn_cxx_try_cpp "$LINENO"; then :
2735 ac_header_preproc=yes
2737 ac_header_preproc=no
2739 rm -f conftest.err conftest.i conftest.$ac_ext
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2741 $as_echo "$ac_header_preproc" >&6; }
2743 # So? What about this header?
2744 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2747 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2753 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2755 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2757 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2759 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2765 $as_echo_n "checking for $2... " >&6; }
2766 if eval \${$3+:} false; then :
2767 $as_echo_n "(cached) " >&6
2769 eval "$3=\$ac_header_compiler"
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2773 $as_echo "$ac_res" >&6; }
2775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777 } # ac_fn_cxx_check_header_mongrel
2779 # ac_fn_cxx_check_func LINENO FUNC VAR
2780 # ------------------------------------
2781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2782 ac_fn_cxx_check_func ()
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786 $as_echo_n "checking for $2... " >&6; }
2787 if eval \${$3+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2794 #define $2 innocuous_$2
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $2 (); below.
2798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2799 <limits.h> exists even on freestanding compilers. */
2802 # include <limits.h>
2804 # include <assert.h>
2809 /* Override any GCC internal prototype to avoid an error.
2810 Use char because int might match the return type of a GCC
2811 builtin and then its argument prototype would still apply. */
2816 /* The GNU C library defines this for functions which it implements
2817 to always fail with ENOSYS. Some functions are actually named
2818 something starting with __ and the normal name is an alias. */
2819 #if defined __stub_$2 || defined __stub___$2
2831 if ac_fn_cxx_try_link "$LINENO"; then :
2836 rm -f core conftest.err conftest.$ac_objext \
2837 conftest$ac_exeext conftest.$ac_ext
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2841 $as_echo "$ac_res" >&6; }
2842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844 } # ac_fn_cxx_check_func
2845 cat >config.log <<_ACEOF
2846 This file contains any messages produced by compilers while
2847 running configure, to aid debugging if configure makes a mistake.
2849 It was created by syncevolution $as_me 1.3.99.4, which was
2850 generated by GNU Autoconf 2.69. Invocation command line was
2862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2869 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2871 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2872 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2874 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2875 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2876 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2877 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 $as_echo "PATH: $as_dir"
2902 # Keep a trace of the command line.
2903 # Strip out --no-create and --no-recursion so they do not pile up.
2904 # Strip out --silent because we don't want to record it for future runs.
2905 # Also quote any args containing shell meta-characters.
2906 # Make two passes to allow for proper duplicate-argument suppression.
2910 ac_must_keep_next=false
2916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2918 | -silent | --silent | --silen | --sile | --sil)
2921 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2926 as_fn_append ac_configure_args1 " '$ac_arg'"
2927 if test $ac_must_keep_next = true; then
2928 ac_must_keep_next=false # Got value, back to normal.
2931 *=* | --config-cache | -C | -disable-* | --disable-* \
2932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2934 | -with-* | --with-* | -without-* | --without-* | --x)
2935 case "$ac_configure_args0 " in
2936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2939 -* ) ac_must_keep_next=true ;;
2942 as_fn_append ac_configure_args " '$ac_arg'"
2947 { ac_configure_args0=; unset ac_configure_args0;}
2948 { ac_configure_args1=; unset ac_configure_args1;}
2950 # When interrupted or exit'd, cleanup temporary files, and complete
2951 # config.log. We remove comments because anyway the quotes in there
2952 # would cause problems or look ugly.
2953 # WARNING: Use '\'' to represent an apostrophe within the trap.
2954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2955 trap 'exit_status=$?
2956 # Save into config.log some information that might help in debugging.
2960 $as_echo "## ---------------- ##
2961 ## Cache variables. ##
2962 ## ---------------- ##"
2964 # The following way of writing the cache mishandles newlines in values,
2966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2967 eval ac_val=\$$ac_var
2971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2975 _ | IFS | as_nl) ;; #(
2976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2977 *) { eval $ac_var=; unset $ac_var;} ;;
2982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2983 *${as_nl}ac_space=\ *)
2985 "s/'\''/'\''\\\\'\'''\''/g;
2986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2996 $as_echo "## ----------------- ##
2997 ## Output variables. ##
2998 ## ----------------- ##"
3000 for ac_var in $ac_subst_vars
3002 eval ac_val=\$$ac_var
3004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 $as_echo "$ac_var='\''$ac_val'\''"
3010 if test -n "$ac_subst_files"; then
3011 $as_echo "## ------------------- ##
3012 ## File substitutions. ##
3013 ## ------------------- ##"
3015 for ac_var in $ac_subst_files
3017 eval ac_val=\$$ac_var
3019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3021 $as_echo "$ac_var='\''$ac_val'\''"
3026 if test -s confdefs.h; then
3027 $as_echo "## ----------- ##
3034 test "$ac_signal" != 0 &&
3035 $as_echo "$as_me: caught signal $ac_signal"
3036 $as_echo "$as_me: exit $exit_status"
3038 rm -f core *.core core.conftest.* &&
3039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3042 for ac_signal in 1 2 13 15; do
3043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3048 rm -f -r conftest* confdefs.h
3050 $as_echo "/* confdefs.h */" > confdefs.h
3052 # Predefined preprocessor variables.
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_NAME "$PACKAGE_NAME"
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_STRING "$PACKAGE_STRING"
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3074 cat >>confdefs.h <<_ACEOF
3075 #define PACKAGE_URL "$PACKAGE_URL"
3079 # Let the site file select an alternate cache file if it wants to.
3080 # Prefer an explicitly selected file to automatically selected ones.
3083 if test -n "$CONFIG_SITE"; then
3084 # We do not want a PATH search for config.site.
3085 case $CONFIG_SITE in #((
3086 -*) ac_site_file1=./$CONFIG_SITE;;
3087 */*) ac_site_file1=$CONFIG_SITE;;
3088 *) ac_site_file1=./$CONFIG_SITE;;
3090 elif test "x$prefix" != xNONE; then
3091 ac_site_file1=$prefix/share/config.site
3092 ac_site_file2=$prefix/etc/config.site
3094 ac_site_file1=$ac_default_prefix/share/config.site
3095 ac_site_file2=$ac_default_prefix/etc/config.site
3097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3099 test "x$ac_site_file" = xNONE && continue
3100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3103 sed 's/^/| /' "$ac_site_file" >&5
3105 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error $? "failed to load site script $ac_site_file
3108 See \`config.log' for more details" "$LINENO" 5; }
3112 if test -r "$cache_file"; then
3113 # Some versions of bash will fail to source /dev/null (special files
3114 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3115 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3117 $as_echo "$as_me: loading cache $cache_file" >&6;}
3119 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3120 *) . "./$cache_file";;
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3125 $as_echo "$as_me: creating cache $cache_file" >&6;}
3129 # Check that the precious variables saved in the cache have kept the same
3131 ac_cache_corrupted=false
3132 for ac_var in $ac_precious_vars; do
3133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3134 eval ac_new_set=\$ac_env_${ac_var}_set
3135 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3136 eval ac_new_val=\$ac_env_${ac_var}_value
3137 case $ac_old_set,$ac_new_set in
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3141 ac_cache_corrupted=: ;;
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3145 ac_cache_corrupted=: ;;
3148 if test "x$ac_old_val" != "x$ac_new_val"; then
3149 # differences in whitespace do not lead to failure.
3150 ac_old_val_w=`echo x $ac_old_val`
3151 ac_new_val_w=`echo x $ac_new_val`
3152 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3155 ac_cache_corrupted=:
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3159 eval $ac_var=\$ac_old_val
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3162 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3164 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3167 # Pass precious variables to config.status.
3168 if test "$ac_new_set" = set; then
3170 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3171 *) ac_arg=$ac_var=$ac_new_val ;;
3173 case " $ac_configure_args " in
3174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3175 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3179 if $ac_cache_corrupted; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3184 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3186 ## -------------------- ##
3187 ## Main body of script. ##
3188 ## -------------------- ##
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 # STABLE_VERSION=1.0.1+
3200 # Generate some files.
3208 # Default value for --enable/disable-release-mode.
3209 # Determined by gen-autotools.sh based on versioning.
3210 # Official, stable releases enable it, pre-releases
3237 # Minimum version of libsynthesis as defined in its
3238 # configure script and thus .pc files:
3241 # Line above is patched by gen-autotools.sh. Handle
3242 # both "yes" and "no".
3245 # Check whether --enable-release-mode was given.
3246 if test "${enable_release_mode+set}" = set; then :
3247 enableval=$enable_release_mode; enable_release_mode="$enableval"
3249 enable_release_mode="no"
3252 if test "$enable_release_mode" = "yes"; then
3254 $as_echo "#define SYNCEVOLUTION_STABLE_RELEASE 1" >>confdefs.h
3258 am__api_version='1.11'
3261 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3262 if test -f "$ac_dir/install-sh"; then
3264 ac_install_sh="$ac_aux_dir/install-sh -c"
3266 elif test -f "$ac_dir/install.sh"; then
3268 ac_install_sh="$ac_aux_dir/install.sh -c"
3270 elif test -f "$ac_dir/shtool"; then
3272 ac_install_sh="$ac_aux_dir/shtool install -c"
3276 if test -z "$ac_aux_dir"; then
3277 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3280 # These three variables are undocumented and unsupported,
3281 # and are intended to be withdrawn in a future Autoconf release.
3282 # They can cause serious problems if a builder's source tree is in a directory
3283 # whose full name contains unusual characters.
3284 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3285 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3286 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3289 # Find a good install program. We prefer a C program (faster),
3290 # so one script is as good as another. But avoid the broken or
3291 # incompatible versions:
3292 # SysV /etc/install, /usr/sbin/install
3293 # SunOS /usr/etc/install
3294 # IRIX /sbin/install
3296 # AmigaOS /C/install, which installs bootblocks on floppy discs
3297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3300 # OS/2's system install, which has a completely different semantic
3301 # ./install, which can be erroneously created by make from ./install.sh.
3302 # Reject install programs that cannot install multiple files.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3304 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3305 if test -z "$INSTALL"; then
3306 if ${ac_cv_path_install+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir=.
3314 # Account for people who put trailing slashes in PATH elements.
3315 case $as_dir/ in #((
3316 ./ | .// | /[cC]/* | \
3317 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3318 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3321 # OSF1 and SCO ODT 3.0 have their own names for install.
3322 # Don't use installbsd from OSF since it installs stuff as root
3324 for ac_prog in ginstall scoinst install; do
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3327 if test $ac_prog = install &&
3328 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329 # AIX install. It has an incompatible calling convention.
3331 elif test $ac_prog = install &&
3332 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333 # program-specific install script used by HP pwplus--don't use.
3336 rm -rf conftest.one conftest.two conftest.dir
3337 echo one > conftest.one
3338 echo two > conftest.two
3340 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3341 test -s conftest.one && test -s conftest.two &&
3342 test -s conftest.dir/conftest.one &&
3343 test -s conftest.dir/conftest.two
3345 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3358 rm -rf conftest.one conftest.two conftest.dir
3361 if test "${ac_cv_path_install+set}" = set; then
3362 INSTALL=$ac_cv_path_install
3364 # As a last resort, use the slow shell script. Don't cache a
3365 # value for INSTALL within a source directory, because that will
3366 # break other packages using the cache if that directory is
3367 # removed, or if the value is a relative name.
3368 INSTALL=$ac_install_sh
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3372 $as_echo "$INSTALL" >&6; }
3374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3375 # It thinks the first close brace ends the variable substitution.
3376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3380 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3383 $as_echo_n "checking whether build environment is sane... " >&6; }
3386 echo timestamp > conftest.file
3387 # Reject unsafe characters in $srcdir or the absolute working directory
3388 # name. Accept space and tab only in the latter.
3392 *[\\\"\#\$\&\'\`$am_lf]*)
3393 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3396 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3397 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3400 # Do `set' in a subshell so we don't clobber the current shell's
3401 # arguments. Must try -L first in case configure is actually a
3402 # symlink; some systems play weird games with the mod time of symlinks
3403 # (eg FreeBSD returns the mod time of the symlink's containing
3406 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3407 if test "$*" = "X"; then
3409 set X `ls -t "$srcdir/configure" conftest.file`
3412 if test "$*" != "X $srcdir/configure conftest.file" \
3413 && test "$*" != "X conftest.file $srcdir/configure"; then
3415 # If neither matched, then we have a broken ls. This can happen
3416 # if, for instance, CONFIG_SHELL is bash and it inherits a
3417 # broken ls alias from the environment. This has actually
3418 # happened. Such a system could not be considered "sane".
3419 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3420 alias in your environment" "$LINENO" 5
3423 test "$2" = conftest.file
3429 as_fn_error $? "newly created file is older than distributed files!
3430 Check your system clock" "$LINENO" 5
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433 $as_echo "yes" >&6; }
3434 test "$program_prefix" != NONE &&
3435 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3436 # Use a double $ so make ignores it.
3437 test "$program_suffix" != NONE &&
3438 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3439 # Double any \ or $.
3440 # By default was `s,x,x', remove it if useless.
3441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3444 # expand $ac_aux_dir to an absolute path
3445 am_aux_dir=`cd $ac_aux_dir && pwd`
3447 if test x"${MISSING+set}" != xset; then
3450 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3452 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3455 # Use eval to expand $SHELL
3456 if eval "$MISSING --run true"; then
3457 am_missing_run="$MISSING --run "
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3464 if test x"${install_sh}" != xset; then
3467 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3469 install_sh="\${SHELL} $am_aux_dir/install-sh"
3473 # Installed binaries are usually stripped using `strip' when the user
3474 # run `make install-strip'. However `strip' might not be the right
3475 # tool to use in cross-compilation environments, therefore Automake
3476 # will honor the `STRIP' environment variable to overrule this program.
3477 if test "$cross_compiling" != no; then
3478 if test -n "$ac_tool_prefix"; then
3479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}strip; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_STRIP+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$STRIP"; then
3487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 STRIP=$ac_cv_prog_STRIP
3507 if test -n "$STRIP"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3509 $as_echo "$STRIP" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3517 if test -z "$ac_cv_prog_STRIP"; then
3519 # Extract the first word of "strip", so it can be a program name with args.
3520 set dummy strip; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$ac_ct_STRIP"; then
3527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_ac_ct_STRIP="strip"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3547 if test -n "$ac_ct_STRIP"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3549 $as_echo "$ac_ct_STRIP" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3555 if test "x$ac_ct_STRIP" = x; then
3558 case $cross_compiling:$ac_tool_warned in
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3567 STRIP="$ac_cv_prog_STRIP"
3571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3575 if test -z "$MKDIR_P"; then
3576 if ${ac_cv_path_mkdir+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3583 test -z "$as_dir" && as_dir=.
3584 for ac_prog in mkdir gmkdir; do
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3587 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3588 'mkdir (GNU coreutils) '* | \
3589 'mkdir (coreutils) '* | \
3590 'mkdir (fileutils) '4.1*)
3591 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3601 test -d ./--version && rmdir ./--version
3602 if test "${ac_cv_path_mkdir+set}" = set; then
3603 MKDIR_P="$ac_cv_path_mkdir -p"
3605 # As a last resort, use the slow shell script. Don't cache a
3606 # value for MKDIR_P within a source directory, because that will
3607 # break other packages using the cache if that directory is
3608 # removed, or if the value is a relative name.
3609 MKDIR_P="$ac_install_sh -d"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3613 $as_echo "$MKDIR_P" >&6; }
3617 [\\/$]* | ?:[\\/]*) ;;
3618 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3621 for ac_prog in gawk mawk nawk awk
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_prog_AWK+:} false; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$AWK"; then
3631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_AWK="$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test -n "$AWK"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3653 $as_echo "$AWK" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$AWK" && break
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3667 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 cat >conftest.make <<\_ACEOF
3673 @echo '@@@%%%=$(MAKE)=@@@%%%'
3675 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3678 eval ac_cv_prog_make_${ac_make}_set=yes;;
3680 eval ac_cv_prog_make_${ac_make}_set=no;;
3684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 SET_MAKE="MAKE=${MAKE-make}"
3694 rm -rf .tst 2>/dev/null
3695 mkdir .tst 2>/dev/null
3696 if test -d .tst; then
3701 rmdir .tst 2>/dev/null
3703 # Check whether --enable-silent-rules was given.
3704 if test "${enable_silent_rules+set}" = set; then :
3705 enableval=$enable_silent_rules;
3708 case $enable_silent_rules in
3709 yes) AM_DEFAULT_VERBOSITY=0;;
3710 no) AM_DEFAULT_VERBOSITY=1;;
3711 *) AM_DEFAULT_VERBOSITY=1;;
3713 am_make=${MAKE-make}
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3715 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3716 if ${am_cv_make_support_nested_variables+:} false; then :
3717 $as_echo_n "(cached) " >&6
3719 if $as_echo 'TRUE=$(BAR$(V))
3725 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3726 am_cv_make_support_nested_variables=yes
3728 am_cv_make_support_nested_variables=no
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3732 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3733 if test $am_cv_make_support_nested_variables = yes; then
3735 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3737 AM_V=$AM_DEFAULT_VERBOSITY
3738 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3742 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3743 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3744 # is not polluted with repeated "-I."
3745 am__isrc=' -I$(srcdir)'
3746 # test to see if srcdir already configured
3747 if test -f $srcdir/config.status; then
3748 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3752 # test whether we have cygpath
3753 if test -z "$CYGPATH_W"; then
3754 if (cygpath --version) >/dev/null 2>/dev/null; then
3755 CYGPATH_W='cygpath -w'
3762 # Define the identity of the package.
3763 PACKAGE='syncevolution'
3767 cat >>confdefs.h <<_ACEOF
3768 #define PACKAGE "$PACKAGE"
3772 cat >>confdefs.h <<_ACEOF
3773 #define VERSION "$VERSION"
3776 # Some tools Automake needs.
3778 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3781 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3784 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3787 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3790 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3792 # We need awk for the "check" target. The system "awk" is bad on
3794 # Always define AMTAR for backward compatibility. Yes, it's still used
3795 # in the wild :-( We should find a proper way to deprecate it ...
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3800 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3801 # Loop over all known methods to create a tar archive until one works.
3802 _am_tools='gnutar plaintar pax cpio none'
3803 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3804 # Do not fold the above two line into one, because Tru64 sh and
3805 # Solaris sh will not grok spaces in the rhs of `-'.
3806 for _am_tool in $_am_tools
3810 for _am_tar in tar gnutar gtar;
3812 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3813 ($_am_tar --version) >&5 2>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && break
3818 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3819 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3820 am__untar="$_am_tar -xf -"
3823 # Must skip GNU tar: if it does not support --format= it doesn't create
3824 # ustar tarball either.
3825 (tar --version) >/dev/null 2>&1 && continue
3826 am__tar='tar chf - "$$tardir"'
3827 am__tar_='tar chf - "$tardir"'
3828 am__untar='tar xf -'
3831 am__tar='pax -L -x ustar -w "$$tardir"'
3832 am__tar_='pax -L -x ustar -w "$tardir"'
3836 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3837 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3838 am__untar='cpio -i -H ustar -d'
3847 # If the value was cached, stop now. We just wanted to have am__tar
3848 # and am__untar set.
3849 test -n "${am_cv_prog_tar_ustar}" && break
3851 # tar/untar a dummy directory, and stop if the command works
3854 echo GrepMe > conftest.dir/file
3855 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3856 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }
3861 if test -s conftest.tar; then
3862 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3863 ($am__untar <conftest.tar) >&5 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }
3867 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3872 if ${am_cv_prog_tar_ustar+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 am_cv_prog_tar_ustar=$_am_tool
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3879 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3886 DEPDIR="${am__leading_dot}deps"
3888 ac_config_commands="$ac_config_commands depfiles"
3891 am_make=${MAKE-make}
3892 cat > confinc << 'END'
3894 @echo this is the am__doit target
3897 # If we don't find an include directive, just comment out the code.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3899 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3903 # First try GNU make style include.
3904 echo "include confinc" > confmf
3905 # Ignore all kinds of additional output from `make'.
3906 case `$am_make -s -f confmf 2> /dev/null` in #(
3907 *the\ am__doit\ target*)
3913 # Now try BSD make style include.
3914 if test "$am__include" = "#"; then
3915 echo '.include "confinc"' > confmf
3916 case `$am_make -s -f confmf 2> /dev/null` in #(
3917 *the\ am__doit\ target*)
3918 am__include=.include
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3927 $as_echo "$_am_result" >&6; }
3928 rm -f confinc confmf
3930 # Check whether --enable-dependency-tracking was given.
3931 if test "${enable_dependency_tracking+set}" = set; then :
3932 enableval=$enable_dependency_tracking;
3935 if test "x$enable_dependency_tracking" != xno; then
3936 am_depcomp="$ac_aux_dir/depcomp"
3940 if test "x$enable_dependency_tracking" != xno; then
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if ${ac_cv_prog_CC+:} false; then :
3960 $as_echo_n "(cached) " >&6
3962 if test -n "$CC"; then
3963 ac_cv_prog_CC="$CC" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 if test -n "$CC"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3985 $as_echo "$CC" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3993 if test -z "$ac_cv_prog_CC"; then
3995 # Extract the first word of "gcc", so it can be a program name with args.
3996 set dummy gcc; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4000 $as_echo_n "(cached) " >&6
4002 if test -n "$ac_ct_CC"; then
4003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_CC="gcc"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 $as_echo "$ac_ct_CC" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4031 if test "x$ac_ct_CC" = x; then
4034 case $cross_compiling:$ac_tool_warned in
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4046 if test -z "$CC"; then
4047 if test -n "$ac_tool_prefix"; then
4048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4049 set dummy ${ac_tool_prefix}cc; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_CC+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 if test -n "$CC"; then
4056 ac_cv_prog_CC="$CC" # Let the user override the test.
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_CC="${ac_tool_prefix}cc"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 if test -n "$CC"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4078 $as_echo "$CC" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4087 if test -z "$CC"; then
4088 # Extract the first word of "cc", so it can be a program name with args.
4089 set dummy cc; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_CC+:} false; then :
4093 $as_echo_n "(cached) " >&6
4095 if test -n "$CC"; then
4096 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4107 ac_prog_rejected=yes
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 if test $ac_prog_rejected = yes; then
4119 # We found a bogon in the path, so make sure we never use it.
4120 set dummy $ac_cv_prog_CC
4122 if test $# != 0; then
4123 # We chose a different compiler from the bogus one.
4124 # However, it has the same basename, so the bogon will be chosen
4125 # first if we set CC to just the basename; use the full file name.
4127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4133 if test -n "$CC"; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135 $as_echo "$CC" >&6; }
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4143 if test -z "$CC"; then
4144 if test -n "$ac_tool_prefix"; then
4145 for ac_prog in cl.exe
4147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_CC+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -n "$CC"; then
4155 ac_cv_prog_CC="$CC" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 if test -n "$CC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 $as_echo "$CC" >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4184 test -n "$CC" && break
4187 if test -z "$CC"; then
4189 for ac_prog in cl.exe
4191 # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4196 $as_echo_n "(cached) " >&6
4198 if test -n "$ac_ct_CC"; then
4199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208 ac_cv_prog_ac_ct_CC="$ac_prog"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219 if test -n "$ac_ct_CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221 $as_echo "$ac_ct_CC" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4228 test -n "$ac_ct_CC" && break
4231 if test "x$ac_ct_CC" = x; then
4234 case $cross_compiling:$ac_tool_warned in
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned=yes ;;
4247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249 as_fn_error $? "no acceptable C compiler found in \$PATH
4250 See \`config.log' for more details" "$LINENO" 5; }
4252 # Provide some information about the compiler.
4253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4256 for ac_option in --version -v -V -qversion; do
4257 { { ac_try="$ac_compiler $ac_option >&5"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 $as_echo "$ac_try_echo"; } >&5
4264 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4266 if test -s conftest.err; then
4268 ... rest of stderr output deleted ...
4269 10q' conftest.err >conftest.er1
4270 cat conftest.er1 >&5
4272 rm -f conftest.er1 conftest.err
4273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; }
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4288 ac_clean_files_save=$ac_clean_files
4289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4290 # Try to create an executable without -o first, disregard a.out.
4291 # It will help us diagnose broken compilers, and finding out an intuition
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4294 $as_echo_n "checking whether the C compiler works... " >&6; }
4295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4297 # The possible output files:
4298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4301 for ac_file in $ac_files
4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4310 if { { ac_try="$ac_link_default"
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_link_default") 2>&5
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }; then :
4321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4324 # so that the user can short-circuit this test for compilers unknown to
4326 for ac_file in $ac_files ''
4328 test -f "$ac_file" || continue
4330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4333 # We found the default executable, but exeext='' is most
4337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4341 # We set ac_cv_exeext here because the later test for it is not
4342 # safe: cross compilers may not add the suffix if given an `-o'
4343 # argument, so we may need to know it at that point already.
4344 # Even if this section looks crufty: it has the advantage of
4351 test "$ac_cv_exeext" = no && ac_cv_exeext=
4356 if test -z "$ac_file"; then :
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 $as_echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error 77 "C compiler cannot create executables
4365 See \`config.log' for more details" "$LINENO" 5; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 $as_echo_n "checking for C compiler default output file name... " >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4373 $as_echo "$ac_file" >&6; }
4374 ac_exeext=$ac_cv_exeext
4376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4377 ac_clean_files=$ac_clean_files_save
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4379 $as_echo_n "checking for suffix of executables... " >&6; }
4380 if { { ac_try="$ac_link"
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_link") 2>&5
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; then :
4391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4393 # work properly (i.e., refer to `conftest.exe'), while it won't with
4395 for ac_file in conftest.exe conftest conftest.*; do
4396 test -f "$ac_file" || continue
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4408 See \`config.log' for more details" "$LINENO" 5; }
4410 rm -f conftest conftest$ac_cv_exeext
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4412 $as_echo "$ac_cv_exeext" >&6; }
4414 rm -f conftest.$ac_ext
4415 EXEEXT=$ac_cv_exeext
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4423 FILE *f = fopen ("conftest.out", "w");
4424 return ferror (f) || fclose (f) != 0;
4430 ac_clean_files="$ac_clean_files conftest.out"
4431 # Check that the compiler produces executables we can run. If not, either
4432 # the compiler is broken, or we cross compile.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4434 $as_echo_n "checking whether we are cross compiling... " >&6; }
4435 if test "$cross_compiling" != yes; then
4436 { { ac_try="$ac_link"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_link") 2>&5
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 if { ac_try='./conftest$ac_cv_exeext'
4448 { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; }; then
4460 if test "$cross_compiling" = maybe; then
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details" "$LINENO" 5; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4472 $as_echo "$cross_compiling" >&6; }
4474 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4475 ac_clean_files=$ac_clean_files_save
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4477 $as_echo_n "checking for suffix of object files... " >&6; }
4478 if ${ac_cv_objext+:} false; then :
4479 $as_echo_n "(cached) " >&6
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4492 rm -f conftest.o conftest.obj
4493 if { { ac_try="$ac_compile"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_compile") 2>&5
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 for ac_file in conftest.o conftest.obj conftest.*; do
4505 test -f "$ac_file" || continue;
4507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4513 $as_echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error $? "cannot compute suffix of object files: cannot compile
4519 See \`config.log' for more details" "$LINENO" 5; }
4521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4524 $as_echo "$ac_cv_objext" >&6; }
4525 OBJEXT=$ac_cv_objext
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4529 if ${ac_cv_c_compiler_gnu+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4546 if ac_fn_c_try_compile "$LINENO"; then :
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4556 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4562 ac_test_CFLAGS=${CFLAGS+set}
4563 ac_save_CFLAGS=$CFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4565 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4566 if ${ac_cv_prog_cc_g+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 ac_save_c_werror_flag=$ac_c_werror_flag
4570 ac_c_werror_flag=yes
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_c_try_compile "$LINENO"; then :
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_c_werror_flag=$ac_save_c_werror_flag
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4615 if ac_fn_c_try_compile "$LINENO"; then :
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_c_werror_flag=$ac_save_c_werror_flag
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4626 $as_echo "$ac_cv_prog_cc_g" >&6; }
4627 if test "$ac_test_CFLAGS" = set; then
4628 CFLAGS=$ac_save_CFLAGS
4629 elif test $ac_cv_prog_cc_g = yes; then
4630 if test "$GCC" = yes; then
4636 if test "$GCC" = yes; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4643 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4644 if ${ac_cv_prog_cc_c89+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 ac_cv_prog_cc_c89=no
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4655 struct buf { int x; };
4656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4657 static char *e (p, i)
4663 static char *f (char * (*g) (char **, int), char **p, ...)
4668 s = g (p, va_arg (v,int));
4673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4674 function prototypes and stuff, but not '\xHH' hex character constants.
4675 These don't provoke an error unfortunately, instead are silently treated
4676 as 'x'. The following induces an error, until -std is added to get
4677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4678 array size at least. It's necessary to write '\x00'==0 to get something
4679 that's true only with -std. */
4680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4683 inside strings and character constants. */
4685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4687 int test (int i, double x);
4688 struct s1 {int (*f) (int a);};
4689 struct s2 {int (*f) (double a);};
4690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4704 CC="$ac_save_CC $ac_arg"
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_prog_cc_c89=$ac_arg
4708 rm -f core conftest.err conftest.$ac_objext
4709 test "x$ac_cv_prog_cc_c89" != "xno" && break
4711 rm -f conftest.$ac_ext
4716 case "x$ac_cv_prog_cc_c89" in
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4719 $as_echo "none needed" >&6; } ;;
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4722 $as_echo "unsupported" >&6; } ;;
4724 CC="$CC $ac_cv_prog_cc_c89"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4726 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4728 if test "x$ac_cv_prog_cc_c89" != xno; then :
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738 depcc="$CC" am_compiler_list=
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4741 $as_echo_n "checking dependency style of $depcc... " >&6; }
4742 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4743 $as_echo_n "(cached) " >&6
4745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4746 # We make a subdir and do the tests there. Otherwise we can end up
4747 # making bogus files that we don't know about and never remove. For
4748 # instance it was reported that on HP-UX the gcc test will end up
4749 # making a dummy file named `D' -- because `-MD' means `put the output
4753 # Copy depcomp to subdir because otherwise we won't find it if we're
4754 # using a relative directory.
4755 cp "$am_depcomp" conftest.dir
4757 # We will build objects and dependencies in a subdirectory because
4758 # it helps to detect inapplicable dependency modes. For instance
4759 # both Tru64's cc and ICC support -MD to output dependencies as a
4760 # side effect of compilation, but ICC will put the dependencies in
4761 # the current directory while Tru64 will put them in the object
4765 am_cv_CC_dependencies_compiler_type=none
4766 if test "$am_compiler_list" = ""; then
4767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4770 case " $depcc " in #(
4771 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4774 for depmode in $am_compiler_list; do
4775 # Setup a source with many dependencies, because some compilers
4776 # like to wrap large dependency lists on column 80 (with \), and
4777 # we should not choose a depcomp mode which is confused by this.
4779 # We need to recreate these files for each test, as the compiler may
4780 # overwrite some of them when testing with obscure command lines.
4781 # This happens at least with the AIX C compiler.
4783 for i in 1 2 3 4 5 6; do
4784 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4785 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4786 # Solaris 8's {/usr,}/bin/sh.
4787 touch sub/conftst$i.h
4789 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4792 # mode. It turns out that the SunPro C++ compiler does not properly
4793 # handle `-M -o', and we need to detect this. Also, some Intel
4794 # versions had trouble with output in subdirs
4795 am__obj=sub/conftest.${OBJEXT-o}
4796 am__minus_obj="-o $am__obj"
4799 # This depmode causes a compiler race in universal mode.
4800 test "$am__universal" = false || continue
4803 # after this tag, mechanisms are not by side-effect, so they'll
4804 # only be used when explicitly requested
4805 if test "x$enable_dependency_tracking" = xyes; then
4811 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4812 # This compiler won't grok `-c -o', but also, the minuso test has
4813 # not run yet. These depmodes are late enough in the game, and
4814 # so weak that their functioning should not be impacted.
4815 am__obj=conftest.${OBJEXT-o}
4820 if depmode=$depmode \
4821 source=sub/conftest.c object=$am__obj \
4822 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4823 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4824 >/dev/null 2>conftest.err &&
4825 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4826 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4827 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4828 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4829 # icc doesn't choke on unknown options, it will just issue warnings
4830 # or remarks (even with -Werror). So we grep stderr for any message
4831 # that says an option was ignored or not supported.
4832 # When given -MP, icc 7.0 and 7.1 complain thusly:
4833 # icc: Command line warning: ignoring option '-M'; no argument required
4834 # The diagnosis changed in icc 8.0:
4835 # icc: Command line remark: option '-MP' not supported
4836 if (grep 'ignoring option' conftest.err ||
4837 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4838 am_cv_CC_dependencies_compiler_type=$depmode
4847 am_cv_CC_dependencies_compiler_type=none
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4852 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4853 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4856 test "x$enable_dependency_tracking" != xno \
4857 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4859 am__fastdepCC_FALSE='#'
4861 am__fastdepCC_TRUE='#'
4862 am__fastdepCC_FALSE=
4866 if test "x$CC" != xcc; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4868 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4871 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4873 set dummy $CC; ac_cc=`$as_echo "$2" |
4874 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4875 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4889 # Make sure it works both with $CC and with simple cc.
4890 # We do the test twice because some compilers refuse to overwrite an
4891 # existing .o file with -o, though they will create one.
4892 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4894 if { { case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4899 $as_echo "$ac_try_echo"; } >&5
4900 (eval "$ac_try") 2>&5
4902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903 test $ac_status = 0; } &&
4904 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909 $as_echo "$ac_try_echo"; } >&5
4910 (eval "$ac_try") 2>&5
4912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; };
4915 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4916 if test "x$CC" != xcc; then
4917 # Test first that cc exists at all.
4918 if { ac_try='cc -c conftest.$ac_ext >&5'
4919 { { case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4924 $as_echo "$ac_try_echo"; } >&5
4925 (eval "$ac_try") 2>&5
4927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928 test $ac_status = 0; }; }; then
4929 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4931 if { { case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937 (eval "$ac_try") 2>&5
4939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940 test $ac_status = 0; } &&
4941 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4946 $as_echo "$ac_try_echo"; } >&5
4947 (eval "$ac_try") 2>&5
4949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950 test $ac_status = 0; };
4955 # cc exists but doesn't like -o.
4956 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4961 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4963 rm -f core conftest*
4966 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4968 $as_echo "yes" >&6; }
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4973 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4977 # FIXME: we rely on the cache variable name because
4978 # there is no other way.
4980 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4981 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4982 if test "$am_t" != yes; then
4983 # Losing compiler, so override with the script.
4984 # FIXME: It is wrong to rewrite CC.
4985 # But if we don't then we get into trouble of one sort or another.
4986 # A longer-term fix would be to have automake use am__CC in this case,
4987 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4988 CC="$am_aux_dir/compile $CC"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4995 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4996 # Check whether --enable-maintainer-mode was given.
4997 if test "${enable_maintainer_mode+set}" = set; then :
4998 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5000 USE_MAINTAINER_MODE=yes
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5004 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5005 if test $USE_MAINTAINER_MODE = yes; then
5006 MAINTAINER_MODE_TRUE=
5007 MAINTAINER_MODE_FALSE='#'
5009 MAINTAINER_MODE_TRUE='#'
5010 MAINTAINER_MODE_FALSE=
5013 MAINT=$MAINTAINER_MODE_TRUE
5015 # needed for nightly builds where reconfiguration fails under certain chroots
5019 ac_config_headers="$ac_config_headers config.h"
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5033 macro_version='2.4.2'
5034 macro_revision='1.3337'
5048 ltmain="$ac_aux_dir/ltmain.sh"
5050 # Make sure we can run config.sub.
5051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5052 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5055 $as_echo_n "checking build system type... " >&6; }
5056 if ${ac_cv_build+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 ac_build_alias=$build_alias
5060 test "x$ac_build_alias" = x &&
5061 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5062 test "x$ac_build_alias" = x &&
5063 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5065 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5069 $as_echo "$ac_cv_build" >&6; }
5070 case $ac_cv_build in
5072 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5075 ac_save_IFS=$IFS; IFS='-'
5081 # Remember, the first character of IFS is used to create $*,
5082 # except with old shells:
5085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5089 $as_echo_n "checking host system type... " >&6; }
5090 if ${ac_cv_host+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 if test "x$host_alias" = x; then
5094 ac_cv_host=$ac_cv_build
5096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5097 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5102 $as_echo "$ac_cv_host" >&6; }
5105 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5108 ac_save_IFS=$IFS; IFS='-'
5114 # Remember, the first character of IFS is used to create $*,
5115 # except with old shells:
5118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5121 # Backslashify metacharacters that are still active within
5122 # double-quoted strings.
5123 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5125 # Same as above, but do not quote variable references.
5126 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5128 # Sed substitution to delay expansion of an escaped shell variable in a
5129 # double_quote_subst'ed string.
5130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5132 # Sed substitution to delay expansion of an escaped single quote.
5133 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5135 # Sed substitution to avoid accidental globbing in evaled expressions
5136 no_glob_subst='s/\*/\\\*/g'
5138 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5139 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5140 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5143 $as_echo_n "checking how to print strings... " >&6; }
5144 # Test print first, because it will be a builtin if present.
5145 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5146 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5148 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5151 # Use this function as a fallback that always works.
5152 func_fallback_echo ()
5154 eval 'cat <<_LTECHO_EOF
5158 ECHO='func_fallback_echo'
5161 # func_echo_all arg...
5162 # Invoke $ECHO with all args, space-separated.
5169 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5170 $as_echo "printf" >&6; } ;;
5171 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5172 $as_echo "print -r" >&6; } ;;
5173 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5174 $as_echo "cat" >&6; } ;;
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5191 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5192 if ${ac_cv_path_SED+:} false; then :
5193 $as_echo_n "(cached) " >&6
5195 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5196 for ac_i in 1 2 3 4 5 6 7; do
5197 ac_script="$ac_script$as_nl$ac_script"
5199 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5200 { ac_script=; unset ac_script;}
5201 if test -z "$SED"; then
5202 ac_path_SED_found=false
5203 # Loop through the user's path and test for each of PROGNAME-LIST
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_prog in sed gsed; do
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5212 as_fn_executable_p "$ac_path_SED" || continue
5213 # Check for GNU ac_path_SED and select it if it is found.
5214 # Check for GNU $ac_path_SED
5215 case `"$ac_path_SED" --version 2>&1` in
5217 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5220 $as_echo_n 0123456789 >"conftest.in"
5223 cat "conftest.in" "conftest.in" >"conftest.tmp"
5224 mv "conftest.tmp" "conftest.in"
5225 cp "conftest.in" "conftest.nl"
5226 $as_echo '' >> "conftest.nl"
5227 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5229 as_fn_arith $ac_count + 1 && ac_count=$as_val
5230 if test $ac_count -gt ${ac_path_SED_max-0}; then
5231 # Best one so far, save it but keep looking for a better one
5232 ac_cv_path_SED="$ac_path_SED"
5233 ac_path_SED_max=$ac_count
5235 # 10*(2^10) chars as input seems more than enough
5236 test $ac_count -gt 10 && break
5238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241 $ac_path_SED_found && break 3
5246 if test -z "$ac_cv_path_SED"; then
5247 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5255 $as_echo "$ac_cv_path_SED" >&6; }
5256 SED="$ac_cv_path_SED"
5259 test -z "$SED" && SED=sed
5260 Xsed="$SED -e 1s/^X//"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5273 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5274 if ${ac_cv_path_GREP+:} false; then :
5275 $as_echo_n "(cached) " >&6
5277 if test -z "$GREP"; then
5278 ac_path_GREP_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284 test -z "$as_dir" && as_dir=.
5285 for ac_prog in grep ggrep; do
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5288 as_fn_executable_p "$ac_path_GREP" || continue
5289 # Check for GNU ac_path_GREP and select it if it is found.
5290 # Check for GNU $ac_path_GREP
5291 case `"$ac_path_GREP" --version 2>&1` in
5293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5296 $as_echo_n 0123456789 >"conftest.in"
5299 cat "conftest.in" "conftest.in" >"conftest.tmp"
5300 mv "conftest.tmp" "conftest.in"
5301 cp "conftest.in" "conftest.nl"
5302 $as_echo 'GREP' >> "conftest.nl"
5303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305 as_fn_arith $ac_count + 1 && ac_count=$as_val
5306 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5307 # Best one so far, save it but keep looking for a better one
5308 ac_cv_path_GREP="$ac_path_GREP"
5309 ac_path_GREP_max=$ac_count
5311 # 10*(2^10) chars as input seems more than enough
5312 test $ac_count -gt 10 && break
5314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317 $ac_path_GREP_found && break 3
5322 if test -z "$ac_cv_path_GREP"; then
5323 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 ac_cv_path_GREP=$GREP
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5331 $as_echo "$ac_cv_path_GREP" >&6; }
5332 GREP="$ac_cv_path_GREP"
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5336 $as_echo_n "checking for egrep... " >&6; }
5337 if ${ac_cv_path_EGREP+:} false; then :
5338 $as_echo_n "(cached) " >&6
5340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5341 then ac_cv_path_EGREP="$GREP -E"
5343 if test -z "$EGREP"; then
5344 ac_path_EGREP_found=false
5345 # Loop through the user's path and test for each of PROGNAME-LIST
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5350 test -z "$as_dir" && as_dir=.
5351 for ac_prog in egrep; do
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5354 as_fn_executable_p "$ac_path_EGREP" || continue
5355 # Check for GNU ac_path_EGREP and select it if it is found.
5356 # Check for GNU $ac_path_EGREP
5357 case `"$ac_path_EGREP" --version 2>&1` in
5359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5362 $as_echo_n 0123456789 >"conftest.in"
5365 cat "conftest.in" "conftest.in" >"conftest.tmp"
5366 mv "conftest.tmp" "conftest.in"
5367 cp "conftest.in" "conftest.nl"
5368 $as_echo 'EGREP' >> "conftest.nl"
5369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5371 as_fn_arith $ac_count + 1 && ac_count=$as_val
5372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5373 # Best one so far, save it but keep looking for a better one
5374 ac_cv_path_EGREP="$ac_path_EGREP"
5375 ac_path_EGREP_max=$ac_count
5377 # 10*(2^10) chars as input seems more than enough
5378 test $ac_count -gt 10 && break
5380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5383 $ac_path_EGREP_found && break 3
5388 if test -z "$ac_cv_path_EGREP"; then
5389 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5392 ac_cv_path_EGREP=$EGREP
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5398 $as_echo "$ac_cv_path_EGREP" >&6; }
5399 EGREP="$ac_cv_path_EGREP"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5403 $as_echo_n "checking for fgrep... " >&6; }
5404 if ${ac_cv_path_FGREP+:} false; then :
5405 $as_echo_n "(cached) " >&6
5407 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5408 then ac_cv_path_FGREP="$GREP -F"
5410 if test -z "$FGREP"; then
5411 ac_path_FGREP_found=false
5412 # Loop through the user's path and test for each of PROGNAME-LIST
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5417 test -z "$as_dir" && as_dir=.
5418 for ac_prog in fgrep; do
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5421 as_fn_executable_p "$ac_path_FGREP" || continue
5422 # Check for GNU ac_path_FGREP and select it if it is found.
5423 # Check for GNU $ac_path_FGREP
5424 case `"$ac_path_FGREP" --version 2>&1` in
5426 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5429 $as_echo_n 0123456789 >"conftest.in"
5432 cat "conftest.in" "conftest.in" >"conftest.tmp"
5433 mv "conftest.tmp" "conftest.in"
5434 cp "conftest.in" "conftest.nl"
5435 $as_echo 'FGREP' >> "conftest.nl"
5436 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438 as_fn_arith $ac_count + 1 && ac_count=$as_val
5439 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5440 # Best one so far, save it but keep looking for a better one
5441 ac_cv_path_FGREP="$ac_path_FGREP"
5442 ac_path_FGREP_max=$ac_count
5444 # 10*(2^10) chars as input seems more than enough
5445 test $ac_count -gt 10 && break
5447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5450 $ac_path_FGREP_found && break 3
5455 if test -z "$ac_cv_path_FGREP"; then
5456 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5459 ac_cv_path_FGREP=$FGREP
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5465 $as_echo "$ac_cv_path_FGREP" >&6; }
5466 FGREP="$ac_cv_path_FGREP"
5469 test -z "$GREP" && GREP=grep
5489 # Check whether --with-gnu-ld was given.
5490 if test "${with_gnu_ld+set}" = set; then :
5491 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5497 if test "$GCC" = yes; then
5498 # Check if gcc -print-prog-name=ld gives a path.
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5500 $as_echo_n "checking for ld used by $CC... " >&6; }
5503 # gcc leaves a trailing carriage return which upsets mingw
5504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5509 # Accept absolute paths.
5511 re_direlt='/[^/][^/]*/\.\./'
5512 # Canonicalize the pathname of ld
5513 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5514 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5515 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5517 test -z "$LD" && LD="$ac_prog"
5520 # If it fails, then pretend we aren't using GCC.
5524 # If it is relative, then search for the first ld in PATH.
5528 elif test "$with_gnu_ld" = yes; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5530 $as_echo_n "checking for GNU ld... " >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5533 $as_echo_n "checking for non-GNU ld... " >&6; }
5535 if ${lt_cv_path_LD+:} false; then :
5536 $as_echo_n "(cached) " >&6
5538 if test -z "$LD"; then
5539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5540 for ac_dir in $PATH; do
5542 test -z "$ac_dir" && ac_dir=.
5543 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5544 lt_cv_path_LD="$ac_dir/$ac_prog"
5545 # Check to see if the program is GNU ld. I'd rather use --version,
5546 # but apparently some variants of GNU ld only accept -v.
5547 # Break only if it was the GNU/non-GNU ld that we prefer.
5548 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5549 *GNU* | *'with BFD'*)
5550 test "$with_gnu_ld" != no && break
5553 test "$with_gnu_ld" != yes && break
5560 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5565 if test -n "$LD"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5567 $as_echo "$LD" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5572 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5574 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5575 if ${lt_cv_prog_gnu_ld+:} false; then :
5576 $as_echo_n "(cached) " >&6
5578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579 case `$LD -v 2>&1 </dev/null` in
5580 *GNU* | *'with BFD'*)
5581 lt_cv_prog_gnu_ld=yes
5584 lt_cv_prog_gnu_ld=no
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5589 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5590 with_gnu_ld=$lt_cv_prog_gnu_ld
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5601 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5602 if ${lt_cv_path_NM+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$NM"; then
5606 # Let the user override the test.
5609 lt_nm_to_check="${ac_tool_prefix}nm"
5610 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5611 lt_nm_to_check="$lt_nm_to_check nm"
5613 for lt_tmp_nm in $lt_nm_to_check; do
5614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5615 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5617 test -z "$ac_dir" && ac_dir=.
5618 tmp_nm="$ac_dir/$lt_tmp_nm"
5619 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5620 # Check to see if the nm accepts a BSD-compat flag.
5621 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5622 # nm: unknown option "B" ignored
5623 # Tru64's nm complains that /dev/null is an invalid object file
5624 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5625 */dev/null* | *'Invalid file or object type'*)
5626 lt_cv_path_NM="$tmp_nm -B"
5630 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5632 lt_cv_path_NM="$tmp_nm -p"
5636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5637 continue # so that we can try to find one that supports BSD flags
5646 : ${lt_cv_path_NM=no}
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5650 $as_echo "$lt_cv_path_NM" >&6; }
5651 if test "$lt_cv_path_NM" != "no"; then
5654 # Didn't find any BSD compatible name lister, look for dumpbin.
5655 if test -n "$DUMPBIN"; then :
5656 # Let the user override the test.
5658 if test -n "$ac_tool_prefix"; then
5659 for ac_prog in dumpbin "link -dump"
5661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_DUMPBIN+:} false; then :
5666 $as_echo_n "(cached) " >&6
5668 if test -n "$DUMPBIN"; then
5669 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 DUMPBIN=$ac_cv_prog_DUMPBIN
5689 if test -n "$DUMPBIN"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5691 $as_echo "$DUMPBIN" >&6; }
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5698 test -n "$DUMPBIN" && break
5701 if test -z "$DUMPBIN"; then
5702 ac_ct_DUMPBIN=$DUMPBIN
5703 for ac_prog in dumpbin "link -dump"
5705 # Extract the first word of "$ac_prog", so it can be a program name with args.
5706 set dummy $ac_prog; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5710 $as_echo_n "(cached) " >&6
5712 if test -n "$ac_ct_DUMPBIN"; then
5713 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5733 if test -n "$ac_ct_DUMPBIN"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5735 $as_echo "$ac_ct_DUMPBIN" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5742 test -n "$ac_ct_DUMPBIN" && break
5745 if test "x$ac_ct_DUMPBIN" = x; then
5748 case $cross_compiling:$ac_tool_warned in
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752 ac_tool_warned=yes ;;
5754 DUMPBIN=$ac_ct_DUMPBIN
5758 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5760 DUMPBIN="$DUMPBIN -symbols"
5768 if test "$DUMPBIN" != ":"; then
5772 test -z "$NM" && NM=nm
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5780 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5781 if ${lt_cv_nm_interface+:} false; then :
5782 $as_echo_n "(cached) " >&6
5784 lt_cv_nm_interface="BSD nm"
5785 echo "int some_variable = 0;" > conftest.$ac_ext
5786 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5787 (eval "$ac_compile" 2>conftest.err)
5788 cat conftest.err >&5
5789 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5790 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5791 cat conftest.err >&5
5792 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5793 cat conftest.out >&5
5794 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5795 lt_cv_nm_interface="MS dumpbin"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5800 $as_echo "$lt_cv_nm_interface" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5803 $as_echo_n "checking whether ln -s works... " >&6; }
5805 if test "$LN_S" = "ln -s"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807 $as_echo "yes" >&6; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5810 $as_echo "no, using $LN_S" >&6; }
5813 # find the maximum length of command line arguments
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5815 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5816 if ${lt_cv_sys_max_cmd_len+:} false; then :
5817 $as_echo_n "(cached) " >&6
5824 # On DJGPP, this test can blow up pretty badly due to problems in libc
5825 # (any single argument exceeding 2000 bytes causes a buffer overrun
5826 # during glob expansion). Even if it were fixed, the result of this
5827 # check would be larger than it should be.
5828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5832 # Under GNU Hurd, this test is not required because there is
5833 # no limit to the length of command line arguments.
5834 # Libtool will interpret -1 as no limit whatsoever
5835 lt_cv_sys_max_cmd_len=-1;
5838 cygwin* | mingw* | cegcc*)
5839 # On Win9x/ME, this test blows up -- it succeeds, but takes
5840 # about 5 minutes as the teststring grows exponentially.
5841 # Worse, since 9x/ME are not pre-emptively multitasking,
5842 # you end up with a "frozen" computer, even though with patience
5843 # the test eventually succeeds (with a max line length of 256k).
5844 # Instead, let's just punt: use the minimum linelength reported by
5845 # all of the supported platforms: 8192 (on NT/2K/XP).
5846 lt_cv_sys_max_cmd_len=8192;
5850 # On MiNT this can take a long time and run out of memory.
5851 lt_cv_sys_max_cmd_len=8192;
5855 # On AmigaOS with pdksh, this test takes hours, literally.
5856 # So we just punt and use a minimum line length of 8192.
5857 lt_cv_sys_max_cmd_len=8192;
5860 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5861 # This has been around since 386BSD, at least. Likely further.
5862 if test -x /sbin/sysctl; then
5863 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5864 elif test -x /usr/sbin/sysctl; then
5865 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5867 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5869 # And add a safety zone
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5875 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5876 lt_cv_sys_max_cmd_len=196608
5880 # The test takes a long time on OS/2.
5881 lt_cv_sys_max_cmd_len=8192
5885 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5886 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5887 # nice to cause kernel panics so lets avoid the loop below.
5888 # First set a reasonable default.
5889 lt_cv_sys_max_cmd_len=16384
5891 if test -x /sbin/sysconfig; then
5892 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5893 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5898 lt_cv_sys_max_cmd_len=102400
5900 sysv5* | sco5v6* | sysv4.2uw2*)
5901 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5902 if test -n "$kargmax"; then
5903 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5905 lt_cv_sys_max_cmd_len=32768
5909 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5910 if test -n "$lt_cv_sys_max_cmd_len"; then
5911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5914 # Make teststring a little bigger before we do anything with it.
5915 # a 1K string should be a reasonable start.
5916 for i in 1 2 3 4 5 6 7 8 ; do
5917 teststring=$teststring$teststring
5919 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5920 # If test is not a shell built-in, we'll probably end up computing a
5921 # maximum length that is only half of the actual maximum length, but
5923 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5924 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5925 test $i != 17 # 1/2 MB should be enough
5928 teststring=$teststring$teststring
5930 # Only check the string length outside the loop.
5931 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5933 # Add a significant safety factor because C++ compilers can tack on
5934 # massive amounts of additional arguments before passing them to the
5935 # linker. It appears as though 1/2 is a usable value.
5936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5943 if test -n $lt_cv_sys_max_cmd_len ; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5948 $as_echo "none" >&6; }
5950 max_cmd_len=$lt_cv_sys_max_cmd_len
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5962 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5963 # Try some XSI features
5966 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5968 && eval 'test $(( 1 + 1 )) -eq 2 \
5969 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5972 $as_echo "$xsi_shell" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5976 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5978 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5980 && lt_shell_append=yes
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5982 $as_echo "$lt_shell_append" >&6; }
5985 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5995 # test EBCDIC or ASCII
5996 case `echo X|tr X '\101'` in
5997 A) # ASCII based system
5998 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5999 lt_SP2NL='tr \040 \012'
6000 lt_NL2SP='tr \015\012 \040\040'
6002 *) # EBCDIC based system
6003 lt_SP2NL='tr \100 \n'
6004 lt_NL2SP='tr \r\n \100\100'
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6017 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6018 if ${lt_cv_to_host_file_cmd+:} false; then :
6019 $as_echo_n "(cached) " >&6
6024 *-*-mingw* ) # actually msys
6025 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6028 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6030 * ) # otherwise, assume *nix
6031 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6037 *-*-mingw* ) # actually msys
6038 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6041 lt_cv_to_host_file_cmd=func_convert_file_noop
6043 * ) # otherwise, assume *nix
6044 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6048 * ) # unhandled hosts (and "normal" native builds)
6049 lt_cv_to_host_file_cmd=func_convert_file_noop
6055 to_host_file_cmd=$lt_cv_to_host_file_cmd
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6057 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6064 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6065 if ${lt_cv_to_tool_file_cmd+:} false; then :
6066 $as_echo_n "(cached) " >&6
6068 #assume ordinary cross tools, or native build.
6069 lt_cv_to_tool_file_cmd=func_convert_file_noop
6073 *-*-mingw* ) # actually msys
6074 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6082 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6084 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6091 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6092 if ${lt_cv_ld_reload_flag+:} false; then :
6093 $as_echo_n "(cached) " >&6
6095 lt_cv_ld_reload_flag='-r'
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6098 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6099 reload_flag=$lt_cv_ld_reload_flag
6100 case $reload_flag in
6102 *) reload_flag=" $reload_flag" ;;
6104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6106 cygwin* | mingw* | pw32* | cegcc*)
6107 if test "$GCC" != yes; then
6112 if test "$GCC" = yes; then
6113 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6128 if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_OBJDUMP+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 if test -n "$OBJDUMP"; then
6137 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 OBJDUMP=$ac_cv_prog_OBJDUMP
6157 if test -n "$OBJDUMP"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6159 $as_echo "$OBJDUMP" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6167 if test -z "$ac_cv_prog_OBJDUMP"; then
6168 ac_ct_OBJDUMP=$OBJDUMP
6169 # Extract the first word of "objdump", so it can be a program name with args.
6170 set dummy objdump; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 if test -n "$ac_ct_OBJDUMP"; then
6177 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6197 if test -n "$ac_ct_OBJDUMP"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6199 $as_echo "$ac_ct_OBJDUMP" >&6; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6205 if test "x$ac_ct_OBJDUMP" = x; then
6208 case $cross_compiling:$ac_tool_warned in
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212 ac_tool_warned=yes ;;
6214 OBJDUMP=$ac_ct_OBJDUMP
6217 OBJDUMP="$ac_cv_prog_OBJDUMP"
6220 test -z "$OBJDUMP" && OBJDUMP=objdump
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6231 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6232 if ${lt_cv_deplibs_check_method+:} false; then :
6233 $as_echo_n "(cached) " >&6
6235 lt_cv_file_magic_cmd='$MAGIC_CMD'
6236 lt_cv_file_magic_test_file=
6237 lt_cv_deplibs_check_method='unknown'
6238 # Need to set the preceding variable on all platforms that support
6239 # interlibrary dependencies.
6240 # 'none' -- dependencies not supported.
6241 # `unknown' -- same as none, but documents that we really don't know.
6242 # 'pass_all' -- all dependencies passed with no checks.
6243 # 'test_compile' -- check by making test program.
6244 # 'file_magic [[regex]]' -- check by looking for files in library path
6245 # which responds to the $file_magic_cmd with a given extended regex.
6246 # If you have `file' or equivalent on your system and you're not sure
6247 # whether `pass_all' will *always* work, you probably want this one.
6251 lt_cv_deplibs_check_method=pass_all
6255 lt_cv_deplibs_check_method=pass_all
6259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6260 lt_cv_file_magic_cmd='/usr/bin/file -L'
6261 lt_cv_file_magic_test_file=/shlib/libc.so
6265 # func_win32_libid is a shell function defined in ltmain.sh
6266 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6267 lt_cv_file_magic_cmd='func_win32_libid'
6271 # Base MSYS/MinGW do not provide the 'file' command needed by
6272 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6273 # unless we find 'file', for example because we are cross-compiling.
6274 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6275 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6277 lt_cv_file_magic_cmd='func_win32_libid'
6279 # Keep this pattern in sync with the one in func_win32_libid.
6280 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6281 lt_cv_file_magic_cmd='$OBJDUMP -f'
6286 # use the weaker test based on 'objdump'. See mingw*.
6287 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6288 lt_cv_file_magic_cmd='$OBJDUMP -f'
6291 darwin* | rhapsody*)
6292 lt_cv_deplibs_check_method=pass_all
6295 freebsd* | dragonfly*)
6296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6299 # Not sure whether the presence of OpenBSD here was a mistake.
6300 # Let's accept both of them until this is cleared up.
6301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6302 lt_cv_file_magic_cmd=/usr/bin/file
6303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6307 lt_cv_deplibs_check_method=pass_all
6312 lt_cv_deplibs_check_method=pass_all
6315 hpux10.20* | hpux11*)
6316 lt_cv_file_magic_cmd=/usr/bin/file
6319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6324 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6328 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6334 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6338 irix5* | irix6* | nonstopux*)
6340 *-32|*"-32 ") libmagic=32-bit;;
6341 *-n32|*"-n32 ") libmagic=N32;;
6342 *-64|*"-64 ") libmagic=64-bit;;
6343 *) libmagic=never-match;;
6345 lt_cv_deplibs_check_method=pass_all
6348 # This must be glibc/ELF.
6349 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6350 lt_cv_deplibs_check_method=pass_all
6353 netbsd* | netbsdelf*-gnu)
6354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6363 lt_cv_file_magic_cmd=/usr/bin/file
6364 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6368 lt_cv_deplibs_check_method=pass_all
6372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6379 osf3* | osf4* | osf5*)
6380 lt_cv_deplibs_check_method=pass_all
6384 lt_cv_deplibs_check_method=pass_all
6388 lt_cv_deplibs_check_method=pass_all
6391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6392 lt_cv_deplibs_check_method=pass_all
6396 case $host_vendor in
6398 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]'
6399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6402 lt_cv_deplibs_check_method=pass_all
6405 lt_cv_file_magic_cmd='/bin/file'
6406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6409 lt_cv_file_magic_cmd='/bin/file'
6410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6411 lt_cv_file_magic_test_file=/lib/libc.so
6414 lt_cv_deplibs_check_method=pass_all
6417 lt_cv_deplibs_check_method=pass_all
6423 lt_cv_deplibs_check_method=pass_all
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6429 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6433 if test "$build" = "$host"; then
6436 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6439 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6445 file_magic_cmd=$lt_cv_file_magic_cmd
6446 deplibs_check_method=$lt_cv_deplibs_check_method
6447 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_DLLTOOL+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 if test -n "$DLLTOOL"; then
6479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 DLLTOOL=$ac_cv_prog_DLLTOOL
6499 if test -n "$DLLTOOL"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6501 $as_echo "$DLLTOOL" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6509 if test -z "$ac_cv_prog_DLLTOOL"; then
6510 ac_ct_DLLTOOL=$DLLTOOL
6511 # Extract the first word of "dlltool", so it can be a program name with args.
6512 set dummy dlltool; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 if test -n "$ac_ct_DLLTOOL"; then
6519 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6539 if test -n "$ac_ct_DLLTOOL"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6541 $as_echo "$ac_ct_DLLTOOL" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6547 if test "x$ac_ct_DLLTOOL" = x; then
6550 case $cross_compiling:$ac_tool_warned in
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6556 DLLTOOL=$ac_ct_DLLTOOL
6559 DLLTOOL="$ac_cv_prog_DLLTOOL"
6562 test -z "$DLLTOOL" && DLLTOOL=dlltool
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6574 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6575 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 lt_cv_sharedlib_from_linklib_cmd='unknown'
6581 cygwin* | mingw* | pw32* | cegcc*)
6582 # two different shell functions defined in ltmain.sh
6583 # decide which to use based on capabilities of $DLLTOOL
6584 case `$DLLTOOL --help 2>&1` in
6585 *--identify-strict*)
6586 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6589 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6594 # fallback: assume linklib IS sharedlib
6595 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6601 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6602 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6603 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6612 if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_AR+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 if test -n "$AR"; then
6623 ac_cv_prog_AR="$AR" # Let the user override the test.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 if test -n "$AR"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6645 $as_echo "$AR" >&6; }
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6652 test -n "$AR" && break
6655 if test -z "$AR"; then
6659 # Extract the first word of "$ac_prog", so it can be a program name with args.
6660 set dummy $ac_prog; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6664 $as_echo_n "(cached) " >&6
6666 if test -n "$ac_ct_AR"; then
6667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_ac_ct_AR="$ac_prog"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6687 if test -n "$ac_ct_AR"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6689 $as_echo "$ac_ct_AR" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6696 test -n "$ac_ct_AR" && break
6699 if test "x$ac_ct_AR" = x; then
6702 case $cross_compiling:$ac_tool_warned in
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6726 $as_echo_n "checking for archiver @FILE support... " >&6; }
6727 if ${lt_cv_ar_at_file+:} false; then :
6728 $as_echo_n "(cached) " >&6
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 echo conftest.$ac_objext > conftest.lst
6744 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6746 (eval $lt_ar_try) 2>&5
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }
6750 if test "$ac_status" -eq 0; then
6751 # Ensure the archiver fails upon bogus file names.
6752 rm -f conftest.$ac_objext libconftest.a
6753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6754 (eval $lt_ar_try) 2>&5
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; }
6758 if test "$ac_status" -ne 0; then
6762 rm -f conftest.* libconftest.a
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6769 $as_echo "$lt_cv_ar_at_file" >&6; }
6771 if test "x$lt_cv_ar_at_file" = xno; then
6774 archiver_list_spec=$lt_cv_ar_at_file
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}strip; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_STRIP+:} false; then :
6789 $as_echo_n "(cached) " >&6
6791 if test -n "$STRIP"; then
6792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 STRIP=$ac_cv_prog_STRIP
6812 if test -n "$STRIP"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6814 $as_echo "$STRIP" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6822 if test -z "$ac_cv_prog_STRIP"; then
6824 # Extract the first word of "strip", so it can be a program name with args.
6825 set dummy strip; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6829 $as_echo_n "(cached) " >&6
6831 if test -n "$ac_ct_STRIP"; then
6832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841 ac_cv_prog_ac_ct_STRIP="strip"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6852 if test -n "$ac_ct_STRIP"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6854 $as_echo "$ac_ct_STRIP" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6860 if test "x$ac_ct_STRIP" = x; then
6863 case $cross_compiling:$ac_tool_warned in
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6872 STRIP="$ac_cv_prog_STRIP"
6875 test -z "$STRIP" && STRIP=:
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_RANLIB+:} false; then :
6888 $as_echo_n "(cached) " >&6
6890 if test -n "$RANLIB"; then
6891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 RANLIB=$ac_cv_prog_RANLIB
6911 if test -n "$RANLIB"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6913 $as_echo "$RANLIB" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6921 if test -z "$ac_cv_prog_RANLIB"; then
6922 ac_ct_RANLIB=$RANLIB
6923 # Extract the first word of "ranlib", so it can be a program name with args.
6924 set dummy ranlib; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 if test -n "$ac_ct_RANLIB"; then
6931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_RANLIB="ranlib"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953 $as_echo "$ac_ct_RANLIB" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6959 if test "x$ac_ct_RANLIB" = x; then
6962 case $cross_compiling:$ac_tool_warned in
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6968 RANLIB=$ac_ct_RANLIB
6971 RANLIB="$ac_cv_prog_RANLIB"
6974 test -z "$RANLIB" && RANLIB=:
6981 # Determine commands to create old-style static archives.
6982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6983 old_postinstall_cmds='chmod 644 $oldlib'
6984 old_postuninstall_cmds=
6986 if test -n "$RANLIB"; then
6989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7000 lock_old_archive_extraction=yes ;;
7002 lock_old_archive_extraction=no ;;
7043 # If no C compiler was specified, use CC.
7046 # If no C compiler flags were specified, use CFLAGS.
7047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7049 # Allow CC to be a program name with arguments.
7053 # Check for command to grab the raw symbol name followed by C symbol from nm.
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7055 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7056 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7057 $as_echo_n "(cached) " >&6
7060 # These are sane defaults that work on at least a few old systems.
7061 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7063 # Character class describing NM global symbol codes.
7064 symcode='[BCDEGRST]'
7066 # Regexp to match symbols that can be accessed directly from C.
7067 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7069 # Define system-specific variables.
7074 cygwin* | mingw* | pw32* | cegcc*)
7075 symcode='[ABCDGISTW]'
7078 if test "$host_cpu" = ia64; then
7079 symcode='[ABCDEGRST]'
7083 symcode='[BCDEGRST]'
7086 symcode='[BCDEGQRST]'
7097 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7105 # If we're using GNU nm, then use its standard symbol codes.
7106 case `$NM -V 2>&1` in
7107 *GNU* | *'with BFD'*)
7108 symcode='[ABCDGIRSTW]' ;;
7111 # Transform an extracted symbol line into a proper C declaration.
7112 # Some systems (esp. on ia64) link data and code symbols differently,
7113 # so use this general approach.
7114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7116 # Transform an extracted symbol line into symbol name and symbol address
7117 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7118 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7120 # Handle CRLF in mingw tool chain
7124 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7128 # Try without a prefix underscore, then with it.
7129 for ac_symprfx in "" "_"; do
7131 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7132 symxfrm="\\1 $ac_symprfx\\2 \\2"
7134 # Write the raw and C identifiers.
7135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7136 # Fake it for dumpbin and say T for any non-static function
7137 # and D for any global variable.
7138 # Also find C++ and __fastcall symbols from MSVC++,
7139 # which start with @ or ?.
7140 lt_cv_sys_global_symbol_pipe="$AWK '"\
7141 " {last_section=section; section=\$ 3};"\
7142 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7143 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7144 " \$ 0!~/External *\|/{next};"\
7145 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7146 " {if(hide[section]) next};"\
7147 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7148 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7149 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7150 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7151 " ' prfx=^$ac_symprfx"
7153 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7155 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7157 # Check to see that the pipe works correctly.
7161 cat > conftest.$ac_ext <<_LT_EOF
7166 void nm_test_func(void);
7167 void nm_test_func(void){}
7171 int main(){nm_test_var='a';nm_test_func();return(0);}
7174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7175 (eval $ac_compile) 2>&5
7177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178 test $ac_status = 0; }; then
7179 # Now try to grab the symbols.
7181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7182 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; } && test -s "$nlist"; then
7186 # Try sorting and uniquifying the output.
7187 if sort "$nlist" | uniq > "$nlist"T; then
7188 mv -f "$nlist"T "$nlist"
7193 # Make sure that we snagged all the symbols we need.
7194 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7195 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7196 cat <<_LT_EOF > conftest.$ac_ext
7197 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7198 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7199 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7200 relocations are performed -- see ld's documentation on pseudo-relocs. */
7201 # define LT_DLSYM_CONST
7202 #elif defined(__osf__)
7203 /* This system does not cope well with relocations in const data. */
7204 # define LT_DLSYM_CONST
7206 # define LT_DLSYM_CONST const
7214 # Now generate the symbol file.
7215 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7217 cat <<_LT_EOF >> conftest.$ac_ext
7219 /* The mapping between symbol names and symbols. */
7220 LT_DLSYM_CONST struct {
7224 lt__PROGRAM__LTX_preloaded_symbols[] =
7226 { "@PROGRAM@", (void *) 0 },
7228 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7229 cat <<\_LT_EOF >> conftest.$ac_ext
7233 /* This works around a problem in FreeBSD linker */
7234 #ifdef FREEBSD_WORKAROUND
7235 static const void *lt_preloaded_setup() {
7236 return lt__PROGRAM__LTX_preloaded_symbols;
7244 # Now try linking the two files.
7245 mv conftest.$ac_objext conftstm.$ac_objext
7246 lt_globsym_save_LIBS=$LIBS
7247 lt_globsym_save_CFLAGS=$CFLAGS
7248 LIBS="conftstm.$ac_objext"
7249 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7251 (eval $ac_link) 2>&5
7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7257 LIBS=$lt_globsym_save_LIBS
7258 CFLAGS=$lt_globsym_save_CFLAGS
7260 echo "cannot find nm_test_func in $nlist" >&5
7263 echo "cannot find nm_test_var in $nlist" >&5
7266 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7269 echo "$progname: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7272 rm -rf conftest* conftst*
7274 # Do not use the global_symbol_pipe unless it works.
7275 if test "$pipe_works" = yes; then
7278 lt_cv_sys_global_symbol_pipe=
7284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7285 lt_cv_sys_global_symbol_to_cdecl=
7287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7289 $as_echo "failed" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7292 $as_echo "ok" >&6; }
7295 # Response file support.
7296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7297 nm_file_list_spec='@'
7298 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7299 nm_file_list_spec='@'
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7329 $as_echo_n "checking for sysroot... " >&6; }
7331 # Check whether --with-sysroot was given.
7332 if test "${with_sysroot+set}" = set; then :
7333 withval=$with_sysroot;
7340 case ${with_sysroot} in #(
7342 if test "$GCC" = yes; then
7343 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7347 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7353 $as_echo "${with_sysroot}" >&6; }
7354 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7359 $as_echo "${lt_sysroot:-no}" >&6; }
7365 # Check whether --enable-libtool-lock was given.
7366 if test "${enable_libtool_lock+set}" = set; then :
7367 enableval=$enable_libtool_lock;
7370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7372 # Some flags need to be propagated to the compiler or linker for good
7376 # Find out which ABI we are using.
7377 echo 'int i;' > conftest.$ac_ext
7378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7379 (eval $ac_compile) 2>&5
7381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382 test $ac_status = 0; }; then
7383 case `/usr/bin/file conftest.$ac_objext` in
7395 # Find out which ABI we are using.
7396 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398 (eval $ac_compile) 2>&5
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401 test $ac_status = 0; }; then
7402 if test "$lt_cv_prog_gnu_ld" = yes; then
7403 case `/usr/bin/file conftest.$ac_objext` in
7405 LD="${LD-ld} -melf32bsmip"
7408 LD="${LD-ld} -melf32bmipn32"
7411 LD="${LD-ld} -melf64bmip"
7415 case `/usr/bin/file conftest.$ac_objext` in
7431 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7432 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7433 # Find out which ABI we are using.
7434 echo 'int i;' > conftest.$ac_ext
7435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436 (eval $ac_compile) 2>&5
7438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439 test $ac_status = 0; }; then
7440 case `/usr/bin/file conftest.o` in
7443 x86_64-*kfreebsd*-gnu)
7444 LD="${LD-ld} -m elf_i386_fbsd"
7447 LD="${LD-ld} -m elf_i386"
7449 ppc64-*linux*|powerpc64-*linux*)
7450 LD="${LD-ld} -m elf32ppclinux"
7453 LD="${LD-ld} -m elf_s390"
7456 LD="${LD-ld} -m elf32_sparc"
7462 x86_64-*kfreebsd*-gnu)
7463 LD="${LD-ld} -m elf_x86_64_fbsd"
7466 LD="${LD-ld} -m elf_x86_64"
7468 ppc*-*linux*|powerpc*-*linux*)
7469 LD="${LD-ld} -m elf64ppc"
7471 s390*-*linux*|s390*-*tpf*)
7472 LD="${LD-ld} -m elf64_s390"
7475 LD="${LD-ld} -m elf64_sparc"
7485 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7486 SAVE_CFLAGS="$CFLAGS"
7487 CFLAGS="$CFLAGS -belf"
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7489 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7490 if ${lt_cv_cc_needs_belf+:} false; then :
7491 $as_echo_n "(cached) " >&6
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7510 if ac_fn_c_try_link "$LINENO"; then :
7511 lt_cv_cc_needs_belf=yes
7513 lt_cv_cc_needs_belf=no
7515 rm -f core conftest.err conftest.$ac_objext \
7516 conftest$ac_exeext conftest.$ac_ext
7518 ac_cpp='$CPP $CPPFLAGS'
7519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7525 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7526 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7527 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7528 CFLAGS="$SAVE_CFLAGS"
7532 # Find out which ABI we are using.
7533 echo 'int i;' > conftest.$ac_ext
7534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7535 (eval $ac_compile) 2>&5
7537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; }; then
7539 case `/usr/bin/file conftest.o` in
7541 case $lt_cv_prog_gnu_ld in
7545 LD="${LD-ld} -m elf_x86_64"
7548 LD="${LD-ld} -m elf64_sparc"
7551 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7552 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7557 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7569 need_locks="$enable_libtool_lock"
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}mt; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 if test -n "$MANIFEST_TOOL"; then
7580 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7600 if test -n "$MANIFEST_TOOL"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7602 $as_echo "$MANIFEST_TOOL" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7610 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7611 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7612 # Extract the first word of "mt", so it can be a program name with args.
7613 set dummy mt; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$ac_ct_MANIFEST_TOOL"; then
7620 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7640 if test -n "$ac_ct_MANIFEST_TOOL"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7642 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7648 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7651 case $cross_compiling:$ac_tool_warned in
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7657 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7660 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7663 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7665 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7666 if ${lt_cv_path_mainfest_tool+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 lt_cv_path_mainfest_tool=no
7670 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7671 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7672 cat conftest.err >&5
7673 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7674 lt_cv_path_mainfest_tool=yes
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7679 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7680 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7690 rhapsody* | darwin*)
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7697 $as_echo_n "(cached) " >&6
7699 if test -n "$DSYMUTIL"; then
7700 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7720 if test -n "$DSYMUTIL"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7722 $as_echo "$DSYMUTIL" >&6; }
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7730 if test -z "$ac_cv_prog_DSYMUTIL"; then
7731 ac_ct_DSYMUTIL=$DSYMUTIL
7732 # Extract the first word of "dsymutil", so it can be a program name with args.
7733 set dummy dsymutil; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7737 $as_echo_n "(cached) " >&6
7739 if test -n "$ac_ct_DSYMUTIL"; then
7740 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7762 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7768 if test "x$ac_ct_DSYMUTIL" = x; then
7771 case $cross_compiling:$ac_tool_warned in
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7777 DSYMUTIL=$ac_ct_DSYMUTIL
7780 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7783 if test -n "$ac_tool_prefix"; then
7784 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_NMEDIT+:} false; then :
7789 $as_echo_n "(cached) " >&6
7791 if test -n "$NMEDIT"; then
7792 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 NMEDIT=$ac_cv_prog_NMEDIT
7812 if test -n "$NMEDIT"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7814 $as_echo "$NMEDIT" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7822 if test -z "$ac_cv_prog_NMEDIT"; then
7823 ac_ct_NMEDIT=$NMEDIT
7824 # Extract the first word of "nmedit", so it can be a program name with args.
7825 set dummy nmedit; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 if test -n "$ac_ct_NMEDIT"; then
7832 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7852 if test -n "$ac_ct_NMEDIT"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7854 $as_echo "$ac_ct_NMEDIT" >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7860 if test "x$ac_ct_NMEDIT" = x; then
7863 case $cross_compiling:$ac_tool_warned in
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7869 NMEDIT=$ac_ct_NMEDIT
7872 NMEDIT="$ac_cv_prog_NMEDIT"
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_prog_LIPO+:} false; then :
7881 $as_echo_n "(cached) " >&6
7883 if test -n "$LIPO"; then
7884 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 LIPO=$ac_cv_prog_LIPO
7904 if test -n "$LIPO"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7906 $as_echo "$LIPO" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7914 if test -z "$ac_cv_prog_LIPO"; then
7916 # Extract the first word of "lipo", so it can be a program name with args.
7917 set dummy lipo; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7921 $as_echo_n "(cached) " >&6
7923 if test -n "$ac_ct_LIPO"; then
7924 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_ac_ct_LIPO="lipo"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7944 if test -n "$ac_ct_LIPO"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7946 $as_echo "$ac_ct_LIPO" >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7952 if test "x$ac_ct_LIPO" = x; then
7955 case $cross_compiling:$ac_tool_warned in
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7964 LIPO="$ac_cv_prog_LIPO"
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}otool; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_OTOOL+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 if test -n "$OTOOL"; then
7976 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 OTOOL=$ac_cv_prog_OTOOL
7996 if test -n "$OTOOL"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7998 $as_echo "$OTOOL" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8006 if test -z "$ac_cv_prog_OTOOL"; then
8008 # Extract the first word of "otool", so it can be a program name with args.
8009 set dummy otool; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8013 $as_echo_n "(cached) " >&6
8015 if test -n "$ac_ct_OTOOL"; then
8016 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_ac_ct_OTOOL="otool"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8036 if test -n "$ac_ct_OTOOL"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8038 $as_echo "$ac_ct_OTOOL" >&6; }
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8044 if test "x$ac_ct_OTOOL" = x; then
8047 case $cross_compiling:$ac_tool_warned in
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8056 OTOOL="$ac_cv_prog_OTOOL"
8059 if test -n "$ac_tool_prefix"; then
8060 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8061 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_OTOOL64+:} false; then :
8065 $as_echo_n "(cached) " >&6
8067 if test -n "$OTOOL64"; then
8068 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 OTOOL64=$ac_cv_prog_OTOOL64
8088 if test -n "$OTOOL64"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8090 $as_echo "$OTOOL64" >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8098 if test -z "$ac_cv_prog_OTOOL64"; then
8099 ac_ct_OTOOL64=$OTOOL64
8100 # Extract the first word of "otool64", so it can be a program name with args.
8101 set dummy otool64; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8105 $as_echo_n "(cached) " >&6
8107 if test -n "$ac_ct_OTOOL64"; then
8108 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_ac_ct_OTOOL64="otool64"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8128 if test -n "$ac_ct_OTOOL64"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8130 $as_echo "$ac_ct_OTOOL64" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8136 if test "x$ac_ct_OTOOL64" = x; then
8139 case $cross_compiling:$ac_tool_warned in
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8143 ac_tool_warned=yes ;;
8145 OTOOL64=$ac_ct_OTOOL64
8148 OTOOL64="$ac_cv_prog_OTOOL64"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8178 $as_echo_n "checking for -single_module linker flag... " >&6; }
8179 if ${lt_cv_apple_cc_single_mod+:} false; then :
8180 $as_echo_n "(cached) " >&6
8182 lt_cv_apple_cc_single_mod=no
8183 if test -z "${LT_MULTI_MODULE}"; then
8184 # By default we will add the -single_module flag. You can override
8185 # by either setting the environment variable LT_MULTI_MODULE
8186 # non-empty at configure time, or by adding -multi_module to the
8188 rm -rf libconftest.dylib*
8189 echo "int foo(void){return 1;}" > conftest.c
8190 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8191 -dynamiclib -Wl,-single_module conftest.c" >&5
8192 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8193 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8195 # If there is a non-empty error log, and "single_module"
8196 # appears in it, assume the flag caused a linker warning
8197 if test -s conftest.err && $GREP single_module conftest.err; then
8198 cat conftest.err >&5
8199 # Otherwise, if the output was created with a 0 exit code from
8200 # the compiler, it worked.
8201 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8202 lt_cv_apple_cc_single_mod=yes
8204 cat conftest.err >&5
8206 rm -rf libconftest.dylib*
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8211 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8214 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8215 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8216 $as_echo_n "(cached) " >&6
8218 lt_cv_ld_exported_symbols_list=no
8219 save_LDFLAGS=$LDFLAGS
8220 echo "_main" > conftest.sym
8221 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8233 if ac_fn_c_try_link "$LINENO"; then :
8234 lt_cv_ld_exported_symbols_list=yes
8236 lt_cv_ld_exported_symbols_list=no
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 LDFLAGS="$save_LDFLAGS"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8244 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8247 $as_echo_n "checking for -force_load linker flag... " >&6; }
8248 if ${lt_cv_ld_force_load+:} false; then :
8249 $as_echo_n "(cached) " >&6
8251 lt_cv_ld_force_load=no
8252 cat > conftest.c << _LT_EOF
8253 int forced_loaded() { return 2;}
8255 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8256 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8257 echo "$AR cru libconftest.a conftest.o" >&5
8258 $AR cru libconftest.a conftest.o 2>&5
8259 echo "$RANLIB libconftest.a" >&5
8260 $RANLIB libconftest.a 2>&5
8261 cat > conftest.c << _LT_EOF
8262 int main() { return 0;}
8264 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8265 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8267 if test -s conftest.err && $GREP force_load conftest.err; then
8268 cat conftest.err >&5
8269 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8270 lt_cv_ld_force_load=yes
8272 cat conftest.err >&5
8274 rm -f conftest.err libconftest.a conftest conftest.c
8275 rm -rf conftest.dSYM
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8279 $as_echo "$lt_cv_ld_force_load" >&6; }
8281 rhapsody* | darwin1.[012])
8282 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8284 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8285 darwin*) # darwin 5.x on
8286 # if running on 10.5 or later, the deployment target defaults
8287 # to the OS version, if on x86, and 10.4, the deployment
8288 # target defaults to 10.4. Don't you love it?
8289 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8290 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8291 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8293 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8299 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8300 _lt_dar_single_mod='$single_module'
8302 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8303 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8305 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8307 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8308 _lt_dsymutil='~$DSYMUTIL $lib || :'
8316 ac_cpp='$CPP $CPPFLAGS'
8317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8321 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8322 # On Suns, sometimes $CPP names a directory.
8323 if test -n "$CPP" && test -d "$CPP"; then
8326 if test -z "$CPP"; then
8327 if ${ac_cv_prog_CPP+:} false; then :
8328 $as_echo_n "(cached) " >&6
8330 # Double quotes because CPP needs to be expanded
8331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8334 for ac_c_preproc_warn_flag in '' yes
8336 # Use a header file that comes with gcc, so configuring glibc
8337 # with a fresh cross-compiler works.
8338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8339 # <limits.h> exists even on freestanding compilers.
8340 # On the NeXT, cc -E runs the code through the compiler's parser,
8341 # not just through cpp. "Syntax error" is here to catch this case.
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8345 # include <limits.h>
8347 # include <assert.h>
8351 if ac_fn_c_try_cpp "$LINENO"; then :
8354 # Broken: fails on valid input.
8357 rm -f conftest.err conftest.i conftest.$ac_ext
8359 # OK, works on sane cases. Now check whether nonexistent headers
8360 # can be detected and how.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <ac_nonexistent.h>
8365 if ac_fn_c_try_cpp "$LINENO"; then :
8366 # Broken: success on invalid input.
8369 # Passes both tests.
8373 rm -f conftest.err conftest.i conftest.$ac_ext
8376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8377 rm -f conftest.i conftest.err conftest.$ac_ext
8378 if $ac_preproc_ok; then :
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8391 $as_echo "$CPP" >&6; }
8393 for ac_c_preproc_warn_flag in '' yes
8395 # Use a header file that comes with gcc, so configuring glibc
8396 # with a fresh cross-compiler works.
8397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8398 # <limits.h> exists even on freestanding compilers.
8399 # On the NeXT, cc -E runs the code through the compiler's parser,
8400 # not just through cpp. "Syntax error" is here to catch this case.
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8404 # include <limits.h>
8406 # include <assert.h>
8410 if ac_fn_c_try_cpp "$LINENO"; then :
8413 # Broken: fails on valid input.
8416 rm -f conftest.err conftest.i conftest.$ac_ext
8418 # OK, works on sane cases. Now check whether nonexistent headers
8419 # can be detected and how.
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <ac_nonexistent.h>
8424 if ac_fn_c_try_cpp "$LINENO"; then :
8425 # Broken: success on invalid input.
8428 # Passes both tests.
8432 rm -f conftest.err conftest.i conftest.$ac_ext
8435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8436 rm -f conftest.i conftest.err conftest.$ac_ext
8437 if $ac_preproc_ok; then :
8440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8442 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8443 See \`config.log' for more details" "$LINENO" 5; }
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8454 $as_echo_n "checking for ANSI C header files... " >&6; }
8455 if ${ac_cv_header_stdc+:} false; then :
8456 $as_echo_n "(cached) " >&6
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 ac_cv_header_stdc=yes
8476 ac_cv_header_stdc=no
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 if test $ac_cv_header_stdc = yes; then
8481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8488 $EGREP "memchr" >/dev/null 2>&1; then :
8491 ac_cv_header_stdc=no
8497 if test $ac_cv_header_stdc = yes; then
8498 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8505 $EGREP "free" >/dev/null 2>&1; then :
8508 ac_cv_header_stdc=no
8514 if test $ac_cv_header_stdc = yes; then
8515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8516 if test "$cross_compiling" = yes; then :
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8523 #if ((' ' & 0x0FF) == 0x020)
8524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8527 # define ISLOWER(c) \
8528 (('a' <= (c) && (c) <= 'i') \
8529 || ('j' <= (c) && (c) <= 'r') \
8530 || ('s' <= (c) && (c) <= 'z'))
8531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8539 for (i = 0; i < 256; i++)
8540 if (XOR (islower (i), ISLOWER (i))
8541 || toupper (i) != TOUPPER (i))
8546 if ac_fn_c_try_run "$LINENO"; then :
8549 ac_cv_header_stdc=no
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8552 conftest.$ac_objext conftest.beam conftest.$ac_ext
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8558 $as_echo "$ac_cv_header_stdc" >&6; }
8559 if test $ac_cv_header_stdc = yes; then
8561 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8565 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8567 inttypes.h stdint.h unistd.h
8569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8573 cat >>confdefs.h <<_ACEOF
8574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8582 for ac_header in dlfcn.h
8584 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8586 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_DLFCN_H 1
8607 # Check whether --enable-shared was given.
8608 if test "${enable_shared+set}" = set; then :
8609 enableval=$enable_shared; p=${PACKAGE-default}
8611 yes) enable_shared=yes ;;
8612 no) enable_shared=no ;;
8615 # Look at the argument we got. We use all the common list separators.
8616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8617 for pkg in $enableval; do
8619 if test "X$pkg" = "X$p"; then
8638 # Check whether --enable-static was given.
8639 if test "${enable_static+set}" = set; then :
8640 enableval=$enable_static; p=${PACKAGE-default}
8642 yes) enable_static=yes ;;
8643 no) enable_static=no ;;
8646 # Look at the argument we got. We use all the common list separators.
8647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648 for pkg in $enableval; do
8650 if test "X$pkg" = "X$p"; then
8670 # Check whether --with-pic was given.
8671 if test "${with_pic+set}" = set; then :
8672 withval=$with_pic; lt_p=${PACKAGE-default}
8674 yes|no) pic_mode=$withval ;;
8677 # Look at the argument we got. We use all the common list separators.
8678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8679 for lt_pkg in $withval; do
8681 if test "X$lt_pkg" = "X$lt_p"; then
8693 test -z "$pic_mode" && pic_mode=default
8701 # Check whether --enable-fast-install was given.
8702 if test "${enable_fast_install+set}" = set; then :
8703 enableval=$enable_fast_install; p=${PACKAGE-default}
8705 yes) enable_fast_install=yes ;;
8706 no) enable_fast_install=no ;;
8708 enable_fast_install=no
8709 # Look at the argument we got. We use all the common list separators.
8710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8711 for pkg in $enableval; do
8713 if test "X$pkg" = "X$p"; then
8714 enable_fast_install=yes
8721 enable_fast_install=yes
8734 # This can be used to rebuild libtool when needed
8735 LIBTOOL_DEPS="$ltmain"
8737 # Always use our own libtool.
8738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8769 test -z "$LN_S" && LN_S="ln -s"
8784 if test -n "${ZSH_VERSION+set}" ; then
8785 setopt NO_GLOB_SUBST
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8789 $as_echo_n "checking for objdir... " >&6; }
8790 if ${lt_cv_objdir+:} false; then :
8791 $as_echo_n "(cached) " >&6
8793 rm -f .libs 2>/dev/null
8794 mkdir .libs 2>/dev/null
8795 if test -d .libs; then
8798 # MS-DOS does not allow filenames that begin with a dot.
8801 rmdir .libs 2>/dev/null
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8804 $as_echo "$lt_cv_objdir" >&6; }
8805 objdir=$lt_cv_objdir
8811 cat >>confdefs.h <<_ACEOF
8812 #define LT_OBJDIR "$lt_cv_objdir/"
8820 # AIX sometimes has problems with the GCC collect2 program. For some
8821 # reason, if we set the COLLECT_NAMES environment variable, the problems
8822 # vanish in a puff of smoke.
8823 if test "X${COLLECT_NAMES+set}" != Xset; then
8825 export COLLECT_NAMES
8832 can_build_shared=yes
8834 # All known linkers require a `.a' archive for static linking (except MSVC,
8835 # which needs '.lib').
8838 with_gnu_ld="$lt_cv_prog_gnu_ld"
8841 old_CFLAGS="$CFLAGS"
8843 # Set sane defaults for various variables
8844 test -z "$CC" && CC=cc
8845 test -z "$LTCC" && LTCC=$CC
8846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8847 test -z "$LD" && LD=ld
8848 test -z "$ac_objext" && ac_objext=o
8850 for cc_temp in $compiler""; do
8852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8858 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8861 # Only perform the check for file, if the check method requires it
8862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8863 case $deplibs_check_method in
8865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8868 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8869 $as_echo_n "(cached) " >&6
8873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8876 lt_save_MAGIC_CMD="$MAGIC_CMD"
8877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8879 for ac_dir in $ac_dummy; do
8881 test -z "$ac_dir" && ac_dir=.
8882 if test -f $ac_dir/${ac_tool_prefix}file; then
8883 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8884 if test -n "$file_magic_test_file"; then
8885 case $deplibs_check_method in
8887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8890 $EGREP "$file_magic_regex" > /dev/null; then
8895 *** Warning: the command libtool uses to detect shared libraries,
8896 *** $file_magic_cmd, produces output that libtool cannot recognize.
8897 *** The result is that libtool may fail to recognize shared libraries
8898 *** as such. This will affect the creation of libtool libraries that
8899 *** depend on shared libraries, but programs linked with such libtool
8900 *** libraries will work regardless of this problem. Nevertheless, you
8901 *** may want to report the problem to your system manager and/or to
8902 *** bug-libtool@gnu.org
8912 MAGIC_CMD="$lt_save_MAGIC_CMD"
8917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8918 if test -n "$MAGIC_CMD"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8920 $as_echo "$MAGIC_CMD" >&6; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8930 if test -z "$lt_cv_path_MAGIC_CMD"; then
8931 if test -n "$ac_tool_prefix"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8933 $as_echo_n "checking for file... " >&6; }
8934 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8935 $as_echo_n "(cached) " >&6
8939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8942 lt_save_MAGIC_CMD="$MAGIC_CMD"
8943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945 for ac_dir in $ac_dummy; do
8947 test -z "$ac_dir" && ac_dir=.
8948 if test -f $ac_dir/file; then
8949 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8950 if test -n "$file_magic_test_file"; then
8951 case $deplibs_check_method in
8953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956 $EGREP "$file_magic_regex" > /dev/null; then
8961 *** Warning: the command libtool uses to detect shared libraries,
8962 *** $file_magic_cmd, produces output that libtool cannot recognize.
8963 *** The result is that libtool may fail to recognize shared libraries
8964 *** as such. This will affect the creation of libtool libraries that
8965 *** depend on shared libraries, but programs linked with such libtool
8966 *** libraries will work regardless of this problem. Nevertheless, you
8967 *** may want to report the problem to your system manager and/or to
8968 *** bug-libtool@gnu.org
8978 MAGIC_CMD="$lt_save_MAGIC_CMD"
8983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8984 if test -n "$MAGIC_CMD"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 $as_echo "$MAGIC_CMD" >&6; }
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
9002 # Use C for the default configuration in the libtool script
9006 ac_cpp='$CPP $CPPFLAGS'
9007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9012 # Source file extension for C test sources.
9015 # Object file extension for compiled C test sources.
9019 # Code to be used in simple compile tests
9020 lt_simple_compile_test_code="int some_variable = 0;"
9022 # Code to be used in simple link tests
9023 lt_simple_link_test_code='int main(){return(0);}'
9031 # If no C compiler was specified, use CC.
9034 # If no C compiler flags were specified, use CFLAGS.
9035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9037 # Allow CC to be a program name with arguments.
9040 # Save the default compiler, since it gets overwritten when the other
9041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9042 compiler_DEFAULT=$CC
9044 # save warnings/boilerplate of simple test code
9045 ac_outfile=conftest.$ac_objext
9046 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9047 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9048 _lt_compiler_boilerplate=`cat conftest.err`
9051 ac_outfile=conftest.$ac_objext
9052 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9053 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054 _lt_linker_boilerplate=`cat conftest.err`
9059 ## There is no encapsulation within the following macros, do not change
9060 ## the running order or otherwise move them around unless you know exactly
9061 ## what you are doing...
9062 if test -n "$compiler"; then
9064 lt_prog_compiler_no_builtin_flag=
9066 if test "$GCC" = yes; then
9067 case $cc_basename in
9069 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9071 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9075 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9076 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9077 $as_echo_n "(cached) " >&6
9079 lt_cv_prog_compiler_rtti_exceptions=no
9080 ac_outfile=conftest.$ac_objext
9081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9082 lt_compiler_flag="-fno-rtti -fno-exceptions"
9083 # Insert the option either (1) after the last *FLAGS variable, or
9084 # (2) before a word containing "conftest.", or (3) at the end.
9085 # Note that $ac_compile itself does not contain backslashes and begins
9086 # with a dollar sign (not a hyphen), so the echo should work correctly.
9087 # The option is referenced via a variable to avoid confusing sed.
9088 lt_compile=`echo "$ac_compile" | $SED \
9089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9091 -e 's:$: $lt_compiler_flag:'`
9092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9093 (eval "$lt_compile" 2>conftest.err)
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 if (exit $ac_status) && test -s "$ac_outfile"; then
9098 # The compiler can only warn and ignore the option if not recognized
9099 # So say no if there are warnings other than the usual output.
9100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9103 lt_cv_prog_compiler_rtti_exceptions=yes
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9110 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9113 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9125 lt_prog_compiler_wl=
9126 lt_prog_compiler_pic=
9127 lt_prog_compiler_static=
9130 if test "$GCC" = yes; then
9131 lt_prog_compiler_wl='-Wl,'
9132 lt_prog_compiler_static='-static'
9136 # All AIX code is PIC.
9137 if test "$host_cpu" = ia64; then
9138 # AIX 5 now supports IA64 processor
9139 lt_prog_compiler_static='-Bstatic'
9146 # see comment about AmigaOS4 .so support
9147 lt_prog_compiler_pic='-fPIC'
9150 # FIXME: we need at least 68020 code to build shared libraries, but
9151 # adding the `-m68020' flag to GCC prevents building anything better,
9153 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9158 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9159 # PIC is the default for these OSes.
9162 mingw* | cygwin* | pw32* | os2* | cegcc*)
9163 # This hack is so that the source file can tell whether it is being
9164 # built for inclusion in a dll (and should export symbols for example).
9165 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9166 # (--disable-auto-import) libraries
9167 lt_prog_compiler_pic='-DDLL_EXPORT'
9170 darwin* | rhapsody*)
9171 # PIC is the default on this platform
9172 # Common symbols not allowed in MH_DYLIB files
9173 lt_prog_compiler_pic='-fno-common'
9177 # PIC is the default for Haiku.
9178 # The "-static" flag exists, but is broken.
9179 lt_prog_compiler_static=
9183 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9184 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9185 # sets the default TLS model and affects inlining.
9191 lt_prog_compiler_pic='-fPIC'
9197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9198 # Instead, we relocate shared libraries at runtime.
9202 # Just because we use GCC doesn't mean we suddenly get shared libraries
9203 # on systems that don't support them.
9204 lt_prog_compiler_can_build_shared=no
9209 # QNX uses GNU C++, but need to define -shared option too, otherwise
9211 lt_prog_compiler_pic='-fPIC -shared'
9215 if test -d /usr/nec; then
9216 lt_prog_compiler_pic=-Kconform_pic
9221 lt_prog_compiler_pic='-fPIC'
9225 case $cc_basename in
9226 nvcc*) # Cuda Compiler Driver 2.2
9227 lt_prog_compiler_wl='-Xlinker '
9228 if test -n "$lt_prog_compiler_pic"; then
9229 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9234 # PORTME Check for flag to pass linker flags through the system compiler.
9237 lt_prog_compiler_wl='-Wl,'
9238 if test "$host_cpu" = ia64; then
9239 # AIX 5 now supports IA64 processor
9240 lt_prog_compiler_static='-Bstatic'
9242 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9246 mingw* | cygwin* | pw32* | os2* | cegcc*)
9247 # This hack is so that the source file can tell whether it is being
9248 # built for inclusion in a dll (and should export symbols for example).
9249 lt_prog_compiler_pic='-DDLL_EXPORT'
9252 hpux9* | hpux10* | hpux11*)
9253 lt_prog_compiler_wl='-Wl,'
9254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9261 lt_prog_compiler_pic='+Z'
9264 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9265 lt_prog_compiler_static='${wl}-a ${wl}archive'
9268 irix5* | irix6* | nonstopux*)
9269 lt_prog_compiler_wl='-Wl,'
9270 # PIC (with -KPIC) is the default.
9271 lt_prog_compiler_static='-non_shared'
9274 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9275 case $cc_basename in
9276 # old Intel for x86_64 which still supported -KPIC.
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-static'
9282 # icc used to be incompatible with GCC.
9283 # ICC 10 doesn't accept -KPIC any more.
9285 lt_prog_compiler_wl='-Wl,'
9286 lt_prog_compiler_pic='-fPIC'
9287 lt_prog_compiler_static='-static'
9289 # Lahey Fortran 8.1.
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='--shared'
9293 lt_prog_compiler_static='--static'
9296 # NAG Fortran compiler
9297 lt_prog_compiler_wl='-Wl,-Wl,,'
9298 lt_prog_compiler_pic='-PIC'
9299 lt_prog_compiler_static='-Bstatic'
9301 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9302 # Portland Group compilers (*not* the Pentium gcc compiler,
9303 # which looks to be a dead project)
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-fpic'
9306 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_wl='-Wl,'
9310 # All Alpha code is PIC.
9311 lt_prog_compiler_static='-non_shared'
9313 xl* | bgxl* | bgf* | mpixl*)
9314 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9315 lt_prog_compiler_wl='-Wl,'
9316 lt_prog_compiler_pic='-qpic'
9317 lt_prog_compiler_static='-qstaticlink'
9320 case `$CC -V 2>&1 | sed 5q` in
9321 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9322 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 lt_prog_compiler_wl=''
9327 *Sun\ F* | *Sun*Fortran*)
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 lt_prog_compiler_wl='-Qoption ld '
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 lt_prog_compiler_wl='-Wl,'
9338 *Intel*\ [CF]*Compiler*)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_pic='-fPIC'
9341 lt_prog_compiler_static='-static'
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-fpic'
9346 lt_prog_compiler_static='-Bstatic'
9354 lt_prog_compiler_pic='-KPIC'
9355 lt_prog_compiler_static='-Bstatic'
9359 # QNX uses GNU C++, but need to define -shared option too, otherwise
9361 lt_prog_compiler_pic='-fPIC -shared'
9364 osf3* | osf4* | osf5*)
9365 lt_prog_compiler_wl='-Wl,'
9366 # All OSF/1 code is PIC.
9367 lt_prog_compiler_static='-non_shared'
9371 lt_prog_compiler_static='-non_shared'
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 case $cc_basename in
9378 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9379 lt_prog_compiler_wl='-Qoption ld ';;
9381 lt_prog_compiler_wl='-Wl,';;
9386 lt_prog_compiler_wl='-Qoption ld '
9387 lt_prog_compiler_pic='-PIC'
9388 lt_prog_compiler_static='-Bstatic'
9391 sysv4 | sysv4.2uw2* | sysv4.3*)
9392 lt_prog_compiler_wl='-Wl,'
9393 lt_prog_compiler_pic='-KPIC'
9394 lt_prog_compiler_static='-Bstatic'
9398 if test -d /usr/nec ;then
9399 lt_prog_compiler_pic='-Kconform_pic'
9400 lt_prog_compiler_static='-Bstatic'
9404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9411 lt_prog_compiler_wl='-Wl,'
9412 lt_prog_compiler_can_build_shared=no
9416 lt_prog_compiler_pic='-pic'
9417 lt_prog_compiler_static='-Bstatic'
9421 lt_prog_compiler_can_build_shared=no
9427 # For platforms which do not support PIC, -DPIC is meaningless:
9429 lt_prog_compiler_pic=
9432 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9438 if ${lt_cv_prog_compiler_pic+:} false; then :
9439 $as_echo_n "(cached) " >&6
9441 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9444 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9445 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9448 # Check to make sure the PIC flag actually works.
9450 if test -n "$lt_prog_compiler_pic"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9453 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9454 $as_echo_n "(cached) " >&6
9456 lt_cv_prog_compiler_pic_works=no
9457 ac_outfile=conftest.$ac_objext
9458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9460 # Insert the option either (1) after the last *FLAGS variable, or
9461 # (2) before a word containing "conftest.", or (3) at the end.
9462 # Note that $ac_compile itself does not contain backslashes and begins
9463 # with a dollar sign (not a hyphen), so the echo should work correctly.
9464 # The option is referenced via a variable to avoid confusing sed.
9465 lt_compile=`echo "$ac_compile" | $SED \
9466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9468 -e 's:$: $lt_compiler_flag:'`
9469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9470 (eval "$lt_compile" 2>conftest.err)
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 if (exit $ac_status) && test -s "$ac_outfile"; then
9475 # The compiler can only warn and ignore the option if not recognized
9476 # So say no if there are warnings other than the usual output.
9477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler_pic_works=yes
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9487 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9489 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9490 case $lt_prog_compiler_pic in
9492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9495 lt_prog_compiler_pic=
9496 lt_prog_compiler_can_build_shared=no
9512 # Check to make sure the static flag actually works.
9514 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9516 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9517 if ${lt_cv_prog_compiler_static_works+:} false; then :
9518 $as_echo_n "(cached) " >&6
9520 lt_cv_prog_compiler_static_works=no
9521 save_LDFLAGS="$LDFLAGS"
9522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9525 # The linker can only warn and ignore the option if not recognized
9526 # So say no if there are warnings
9527 if test -s conftest.err; then
9528 # Append any errors to the config.log.
9529 cat conftest.err 1>&5
9530 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9532 if diff conftest.exp conftest.er2 >/dev/null; then
9533 lt_cv_prog_compiler_static_works=yes
9536 lt_cv_prog_compiler_static_works=yes
9540 LDFLAGS="$save_LDFLAGS"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9544 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9546 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9549 lt_prog_compiler_static=
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9560 if ${lt_cv_prog_compiler_c_o+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 lt_cv_prog_compiler_c_o=no
9564 $RM -r conftest 2>/dev/null
9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9570 lt_compiler_flag="-o out/conftest2.$ac_objext"
9571 # Insert the option either (1) after the last *FLAGS variable, or
9572 # (2) before a word containing "conftest.", or (3) at the end.
9573 # Note that $ac_compile itself does not contain backslashes and begins
9574 # with a dollar sign (not a hyphen), so the echo should work correctly.
9575 lt_compile=`echo "$ac_compile" | $SED \
9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578 -e 's:$: $lt_compiler_flag:'`
9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9580 (eval "$lt_compile" 2>out/conftest.err)
9582 cat out/conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9586 # The compiler can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
9588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9591 lt_cv_prog_compiler_c_o=yes
9596 # SGI C++ compiler will create directory out/ii_files/ for
9597 # template instantiation
9598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9599 $RM out/* && rmdir out
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9615 if ${lt_cv_prog_compiler_c_o+:} false; then :
9616 $as_echo_n "(cached) " >&6
9618 lt_cv_prog_compiler_c_o=no
9619 $RM -r conftest 2>/dev/null
9623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9625 lt_compiler_flag="-o out/conftest2.$ac_objext"
9626 # Insert the option either (1) after the last *FLAGS variable, or
9627 # (2) before a word containing "conftest.", or (3) at the end.
9628 # Note that $ac_compile itself does not contain backslashes and begins
9629 # with a dollar sign (not a hyphen), so the echo should work correctly.
9630 lt_compile=`echo "$ac_compile" | $SED \
9631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9633 -e 's:$: $lt_compiler_flag:'`
9634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9635 (eval "$lt_compile" 2>out/conftest.err)
9637 cat out/conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9641 # The compiler can only warn and ignore the option if not recognized
9642 # So say no if there are warnings
9643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9646 lt_cv_prog_compiler_c_o=yes
9651 # SGI C++ compiler will create directory out/ii_files/ for
9652 # template instantiation
9653 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9654 $RM out/* && rmdir out
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9661 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9666 hard_links="nottested"
9667 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9668 # do not overwrite the value of need_locks provided by the user
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9670 $as_echo_n "checking if we can lock with hard links... " >&6; }
9673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9675 ln conftest.a conftest.b 2>&5 || hard_links=no
9676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9678 $as_echo "$hard_links" >&6; }
9679 if test "$hard_links" = no; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9681 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9694 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9697 allow_undefined_flag=
9698 always_export_symbols=no
9700 archive_expsym_cmds=
9701 compiler_needs_object=no
9702 enable_shared_with_static_runtimes=no
9703 export_dynamic_flag_spec=
9704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9705 hardcode_automatic=no
9707 hardcode_direct_absolute=no
9708 hardcode_libdir_flag_spec=
9709 hardcode_libdir_separator=
9711 hardcode_shlibpath_var=unsupported
9713 link_all_deplibs=unknown
9716 old_archive_from_new_cmds=
9717 old_archive_from_expsyms_cmds=
9718 thread_safe_flag_spec=
9719 whole_archive_flag_spec=
9720 # include_expsyms should be a list of space-separated symbols to be *always*
9721 # included in the symbol list
9723 # exclude_expsyms can be an extended regexp of symbols to exclude
9724 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9725 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9726 # as well as any symbol that contains `d'.
9727 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9728 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9729 # platforms (ab)use it in PIC code, but their linkers get confused if
9730 # the symbol is explicitly referenced. Since portable code cannot
9731 # rely on this symbol name, it's probably fine to never include it in
9732 # preloaded symbol tables.
9733 # Exclude shared library initialization/finalization symbols.
9734 extract_expsyms_cmds=
9737 cygwin* | mingw* | pw32* | cegcc*)
9738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9739 # When not using gcc, we currently assume that we are using
9740 # Microsoft Visual C++.
9741 if test "$GCC" != yes; then
9746 # we just hope/assume this is gcc and not c89 (= MSVC++)
9752 linux* | k*bsd*-gnu | gnu*)
9759 # On some targets, GNU ld is compatible enough with the native linker
9760 # that we're better off using the native interface for both.
9761 lt_use_gnu_ld_interface=no
9762 if test "$with_gnu_ld" = yes; then
9765 # The AIX port of GNU ld has always aspired to compatibility
9766 # with the native linker. However, as the warning in the GNU ld
9767 # block says, versions before 2.19.5* couldn't really create working
9768 # shared libraries, regardless of the interface used.
9769 case `$LD -v 2>&1` in
9770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9772 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9774 lt_use_gnu_ld_interface=yes
9779 lt_use_gnu_ld_interface=yes
9784 if test "$lt_use_gnu_ld_interface" = yes; then
9785 # If archive_cmds runs LD, not CC, wlarc should be empty
9788 # Set some defaults for GNU ld with shared library support. These
9789 # are reset later if shared libraries are not supported. Putting them
9790 # here allows them to be overridden if necessary.
9791 runpath_var=LD_RUN_PATH
9792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9793 export_dynamic_flag_spec='${wl}--export-dynamic'
9794 # ancient GNU ld didn't support --whole-archive et. al.
9795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9798 whole_archive_flag_spec=
9800 supports_anon_versioning=no
9801 case `$LD -v 2>&1` in
9802 *GNU\ gold*) supports_anon_versioning=yes ;;
9803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9806 *\ 2.11.*) ;; # other 2.11 versions
9807 *) supports_anon_versioning=yes ;;
9810 # See if GNU ld supports shared libraries.
9813 # On AIX/PPC, the GNU linker is very broken
9814 if test "$host_cpu" != ia64; then
9818 *** Warning: the GNU linker, at least up to release 2.19, is reported
9819 *** to be unable to reliably create shared libraries on AIX.
9820 *** Therefore, libtool is disabling shared libraries support. If you
9821 *** really care for shared libraries, you may want to install binutils
9822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9823 *** You will then need to restart the configuration process.
9832 # see comment about AmigaOS4 .so support
9833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 archive_expsym_cmds=''
9837 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)'
9838 hardcode_libdir_flag_spec='-L$libdir'
9839 hardcode_minus_L=yes
9845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9846 allow_undefined_flag=unsupported
9847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9848 # support --undefined. This deserves some investigation. FIXME
9849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9855 cygwin* | mingw* | pw32* | cegcc*)
9856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9857 # as there is no search path for DLLs.
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 export_dynamic_flag_spec='${wl}--export-all-symbols'
9860 allow_undefined_flag=unsupported
9861 always_export_symbols=no
9862 enable_shared_with_static_runtimes=yes
9863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9864 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9866 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9868 # If the export-symbols file already is a .def file (1st line
9869 # is EXPORTS), use it as is; otherwise, prepend...
9870 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9871 cp $export_symbols $output_objdir/$soname.def;
9873 echo EXPORTS > $output_objdir/$soname.def;
9874 cat $export_symbols >> $output_objdir/$soname.def;
9876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884 link_all_deplibs=yes
9889 hardcode_shlibpath_var=no
9890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9891 export_dynamic_flag_spec='${wl}-E'
9892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9893 # Instead, shared libraries are loaded at an image base (0x10000000 by
9894 # default) and relocated if they conflict, which is a slow very memory
9895 # consuming and fragmenting process. To avoid this, we pick a random,
9896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9897 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9898 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9899 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'
9902 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9904 if test "$host_os" = linux-dietlibc; then
9905 case $cc_basename in
9906 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9909 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9910 && test "$tmp_diet" = no
9912 tmp_addflag=' $pic_flag'
9913 tmp_sharedflag='-shared'
9914 case $cc_basename,$host_cpu in
9915 pgcc*) # Portland Group C compiler
9916 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9917 tmp_addflag=' $pic_flag'
9919 pgf77* | pgf90* | pgf95* | pgfortran*)
9920 # Portland Group f77 and f90 compilers
9921 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9922 tmp_addflag=' $pic_flag -Mnomain' ;;
9923 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9924 tmp_addflag=' -i_dynamic' ;;
9925 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9926 tmp_addflag=' -i_dynamic -nofor_main' ;;
9927 ifc* | ifort*) # Intel Fortran compiler
9928 tmp_addflag=' -nofor_main' ;;
9929 lf95*) # Lahey Fortran 8.1
9930 whole_archive_flag_spec=
9931 tmp_sharedflag='--shared' ;;
9932 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9933 tmp_sharedflag='-qmkshrobj'
9935 nvcc*) # Cuda Compiler Driver 2.2
9936 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9937 compiler_needs_object=yes
9940 case `$CC -V 2>&1 | sed 5q` in
9941 *Sun\ C*) # Sun C 5.9
9942 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9943 compiler_needs_object=yes
9944 tmp_sharedflag='-G' ;;
9945 *Sun\ F*) # Sun Fortran 8.3
9946 tmp_sharedflag='-G' ;;
9948 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950 if test "x$supports_anon_versioning" = xyes; then
9951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9953 echo "local: *; };" >> $output_objdir/$libname.ver~
9954 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9957 case $cc_basename in
9958 xlf* | bgf* | bgxlf* | mpixlf*)
9959 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9960 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9963 if test "x$supports_anon_versioning" = xyes; then
9964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9966 echo "local: *; };" >> $output_objdir/$libname.ver~
9967 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9976 netbsd* | netbsdelf*-gnu)
9977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9992 *** create shared libraries on Solaris systems. Therefore, libtool
9993 *** is disabling shared libraries support. We urge you to upgrade GNU
9994 *** binutils to release 2.9.1 or newer. Another option is to modify
9995 *** your PATH or compiler configuration so that the native linker is
9996 *** used, and then restart.
9999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10008 case `$LD -v 2>&1` in
10009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10014 *** reliably create shared libraries on SCO systems. Therefore, libtool
10015 *** is disabling shared libraries support. We urge you to upgrade GNU
10016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10017 *** your PATH or compiler configuration so that the native linker is
10018 *** used, and then restart.
10023 # For security reasons, it is highly recommended that you always
10024 # use absolute paths for naming shared libraries, and exclude the
10025 # DT_RUNPATH tag from executables and libraries. But doing so
10026 # requires that you compile everything twice, which is a pain.
10027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_direct=yes
10042 hardcode_shlibpath_var=no
10046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10055 if test "$ld_shlibs" = no; then
10057 hardcode_libdir_flag_spec=
10058 export_dynamic_flag_spec=
10059 whole_archive_flag_spec=
10062 # PORTME fill in a description of your system's linker (not GNU ld)
10065 allow_undefined_flag=unsupported
10066 always_export_symbols=yes
10067 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'
10068 # Note: this linker hardcodes the directories in LIBPATH if there
10069 # are no directories specified by -L.
10070 hardcode_minus_L=yes
10071 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10072 # Neither direct hardcoding nor static linking is supported with a
10074 hardcode_direct=unsupported
10079 if test "$host_cpu" = ia64; then
10080 # On IA64, the linker does run time linking by default, so we don't
10081 # have to do anything special.
10082 aix_use_runtimelinking=no
10083 exp_sym_flag='-Bexport'
10086 # If we're using GNU nm, then we don't want the "-C" option.
10087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10088 # Also, AIX nm treats weak defined symbols like other global
10089 # defined symbols, whereas GNU nm marks them as "W".
10090 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10091 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10093 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'
10095 aix_use_runtimelinking=no
10097 # Test if we are trying to use run time linking or normal
10098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10099 # need to do runtime linking.
10100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10101 for ld_flag in $LDFLAGS; do
10102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10103 aix_use_runtimelinking=yes
10110 exp_sym_flag='-bexport'
10111 no_entry_flag='-bnoentry'
10114 # When large executables or shared objects are built, AIX ld can
10115 # have problems creating the table of contents. If linking a library
10116 # or program results in "error TOC overflow" add -mminimal-toc to
10117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10121 hardcode_direct=yes
10122 hardcode_direct_absolute=yes
10123 hardcode_libdir_separator=':'
10124 link_all_deplibs=yes
10125 file_list_spec='${wl}-f,'
10127 if test "$GCC" = yes; then
10128 case $host_os in aix4.[012]|aix4.[012].*)
10129 # We only want to do this on AIX 4.2 and lower, the check
10130 # below for broken collect2 doesn't work under 4.3+
10131 collect2name=`${CC} -print-prog-name=collect2`
10132 if test -f "$collect2name" &&
10133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10135 # We have reworked collect2
10138 # We have old collect2
10139 hardcode_direct=unsupported
10140 # It fails to find uninstalled libraries when the uninstalled
10141 # path is not listed in the libpath. Setting hardcode_minus_L
10142 # to unsupported forces relinking
10143 hardcode_minus_L=yes
10144 hardcode_libdir_flag_spec='-L$libdir'
10145 hardcode_libdir_separator=
10149 shared_flag='-shared'
10150 if test "$aix_use_runtimelinking" = yes; then
10151 shared_flag="$shared_flag "'${wl}-G'
10153 link_all_deplibs=no
10156 if test "$host_cpu" = ia64; then
10157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10158 # chokes on -Wl,-G. The following line is correct:
10161 if test "$aix_use_runtimelinking" = yes; then
10162 shared_flag='${wl}-G'
10164 shared_flag='${wl}-bM:SRE'
10169 export_dynamic_flag_spec='${wl}-bexpall'
10170 # It seems that -bexpall does not export symbols beginning with
10171 # underscore (_), so it is better to generate a list of symbols to export.
10172 always_export_symbols=yes
10173 if test "$aix_use_runtimelinking" = yes; then
10174 # Warning - without using the other runtime loading flags (-brtl),
10175 # -berok will link without error, but may produce a broken library.
10176 allow_undefined_flag='-berok'
10177 # Determine the default libpath from the value encoded in an
10178 # empty executable.
10179 if test "${lt_cv_aix_libpath+set}" = set; then
10180 aix_libpath=$lt_cv_aix_libpath
10182 if ${lt_cv_aix_libpath_+:} false; then :
10183 $as_echo_n "(cached) " >&6
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10196 if ac_fn_c_try_link "$LINENO"; then :
10198 lt_aix_libpath_sed='
10199 /Import File Strings/,/^$/ {
10201 s/^0 *\([^ ]*\) *$/\1/
10205 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10206 # Check for a 64-bit object if we didn't find anything.
10207 if test -z "$lt_cv_aix_libpath_"; then
10208 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 if test -z "$lt_cv_aix_libpath_"; then
10214 lt_cv_aix_libpath_="/usr/lib:/lib"
10219 aix_libpath=$lt_cv_aix_libpath_
10222 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10223 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10225 if test "$host_cpu" = ia64; then
10226 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10227 allow_undefined_flag="-z nodefs"
10228 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"
10230 # Determine the default libpath from the value encoded in an
10231 # empty executable.
10232 if test "${lt_cv_aix_libpath+set}" = set; then
10233 aix_libpath=$lt_cv_aix_libpath
10235 if ${lt_cv_aix_libpath_+:} false; then :
10236 $as_echo_n "(cached) " >&6
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10249 if ac_fn_c_try_link "$LINENO"; then :
10251 lt_aix_libpath_sed='
10252 /Import File Strings/,/^$/ {
10254 s/^0 *\([^ ]*\) *$/\1/
10258 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10259 # Check for a 64-bit object if we didn't find anything.
10260 if test -z "$lt_cv_aix_libpath_"; then
10261 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 if test -z "$lt_cv_aix_libpath_"; then
10267 lt_cv_aix_libpath_="/usr/lib:/lib"
10272 aix_libpath=$lt_cv_aix_libpath_
10275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10276 # Warning - without using the other run time loading flags,
10277 # -berok will link without error, but may produce a broken library.
10278 no_undefined_flag=' ${wl}-bernotok'
10279 allow_undefined_flag=' ${wl}-berok'
10280 if test "$with_gnu_ld" = yes; then
10281 # We only use this code for GNU lds that support --whole-archive.
10282 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10284 # Exported symbols can be pulled into shared objects from archives
10285 whole_archive_flag_spec='$convenience'
10287 archive_cmds_need_lc=yes
10288 # This is similar to how AIX traditionally builds its shared libraries.
10289 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'
10297 # see comment about AmigaOS4 .so support
10298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299 archive_expsym_cmds=''
10302 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)'
10303 hardcode_libdir_flag_spec='-L$libdir'
10304 hardcode_minus_L=yes
10310 export_dynamic_flag_spec=-rdynamic
10313 cygwin* | mingw* | pw32* | cegcc*)
10314 # When not using gcc, we currently assume that we are using
10315 # Microsoft Visual C++.
10316 # hardcode_libdir_flag_spec is actually meaningless, as there is
10317 # no search path for DLLs.
10318 case $cc_basename in
10321 hardcode_libdir_flag_spec=' '
10322 allow_undefined_flag=unsupported
10323 always_export_symbols=yes
10325 # Tell ltmain to make .lib files, not .a files.
10327 # Tell ltmain to make .dll files, not .so files.
10329 # FIXME: Setting linknames here is a bad hack.
10330 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10331 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10332 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10334 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10336 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10338 # The linker will not automatically build a static lib if we build a DLL.
10339 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10340 enable_shared_with_static_runtimes=yes
10341 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10344 old_postinstall_cmds='chmod 644 $oldlib'
10345 postlink_cmds='lt_outputfile="@OUTPUT@"~
10346 lt_tool_outputfile="@TOOL_OUTPUT@"~
10347 case $lt_outputfile in
10350 lt_outputfile="$lt_outputfile.exe"
10351 lt_tool_outputfile="$lt_tool_outputfile.exe"
10354 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10355 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10356 $RM "$lt_outputfile.manifest";
10360 # Assume MSVC wrapper
10361 hardcode_libdir_flag_spec=' '
10362 allow_undefined_flag=unsupported
10363 # Tell ltmain to make .lib files, not .a files.
10365 # Tell ltmain to make .dll files, not .so files.
10367 # FIXME: Setting linknames here is a bad hack.
10368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10369 # The linker will automatically build a .lib file if we build a DLL.
10370 old_archive_from_new_cmds='true'
10371 # FIXME: Should let the user specify the lib program.
10372 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10373 enable_shared_with_static_runtimes=yes
10378 darwin* | rhapsody*)
10381 archive_cmds_need_lc=no
10383 hardcode_automatic=yes
10384 hardcode_shlibpath_var=unsupported
10385 if test "$lt_cv_ld_force_load" = "yes"; then
10386 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10389 whole_archive_flag_spec=''
10391 link_all_deplibs=yes
10392 allow_undefined_flag="$_lt_dar_allow_undefined"
10393 case $cc_basename in
10394 ifort*) _lt_dar_can_shared=yes ;;
10395 *) _lt_dar_can_shared=$GCC ;;
10397 if test "$_lt_dar_can_shared" = "yes"; then
10398 output_verbose_link_cmd=func_echo_all
10399 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10400 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10401 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}"
10402 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}"
10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_shlibpath_var=no
10416 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10417 # support. Future versions do this automatically, but an explicit c++rt0.o
10418 # does not break anything, and helps significantly (at the cost of a little
10421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10422 hardcode_libdir_flag_spec='-R$libdir'
10423 hardcode_direct=yes
10424 hardcode_shlibpath_var=no
10427 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10430 hardcode_direct=yes
10431 hardcode_minus_L=yes
10432 hardcode_shlibpath_var=no
10435 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10436 freebsd* | dragonfly*)
10437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10438 hardcode_libdir_flag_spec='-R$libdir'
10439 hardcode_direct=yes
10440 hardcode_shlibpath_var=no
10444 if test "$GCC" = yes; then
10445 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10447 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'
10449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10450 hardcode_libdir_separator=:
10451 hardcode_direct=yes
10453 # hardcode_minus_L: Not really in the search PATH,
10454 # but as the default location of the library.
10455 hardcode_minus_L=yes
10456 export_dynamic_flag_spec='${wl}-E'
10460 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10461 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10463 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10465 if test "$with_gnu_ld" = no; then
10466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10467 hardcode_libdir_separator=:
10468 hardcode_direct=yes
10469 hardcode_direct_absolute=yes
10470 export_dynamic_flag_spec='${wl}-E'
10471 # hardcode_minus_L: Not really in the search PATH,
10472 # but as the default location of the library.
10473 hardcode_minus_L=yes
10478 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10481 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10487 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10496 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10500 # Older versions of the 11.00 compiler do not understand -b yet
10501 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10503 $as_echo_n "checking if $CC understands -b... " >&6; }
10504 if ${lt_cv_prog_compiler__b+:} false; then :
10505 $as_echo_n "(cached) " >&6
10507 lt_cv_prog_compiler__b=no
10508 save_LDFLAGS="$LDFLAGS"
10509 LDFLAGS="$LDFLAGS -b"
10510 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10512 # The linker can only warn and ignore the option if not recognized
10513 # So say no if there are warnings
10514 if test -s conftest.err; then
10515 # Append any errors to the config.log.
10516 cat conftest.err 1>&5
10517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10519 if diff conftest.exp conftest.er2 >/dev/null; then
10520 lt_cv_prog_compiler__b=yes
10523 lt_cv_prog_compiler__b=yes
10527 LDFLAGS="$save_LDFLAGS"
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10531 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10533 if test x"$lt_cv_prog_compiler__b" = xyes; then
10534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10542 if test "$with_gnu_ld" = no; then
10543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10544 hardcode_libdir_separator=:
10549 hardcode_shlibpath_var=no
10552 hardcode_direct=yes
10553 hardcode_direct_absolute=yes
10554 export_dynamic_flag_spec='${wl}-E'
10556 # hardcode_minus_L: Not really in the search PATH,
10557 # but as the default location of the library.
10558 hardcode_minus_L=yes
10564 irix5* | irix6* | nonstopux*)
10565 if test "$GCC" = yes; then
10566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10567 # Try to use the -exported_symbol ld option, if it does not
10568 # work, assume that -exports_file does not work either and
10569 # implicitly export all symbols.
10570 # This should be the same for all languages, so no per-tag cache variable.
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10572 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10573 if ${lt_cv_irix_exported_symbol+:} false; then :
10574 $as_echo_n "(cached) " >&6
10576 save_LDFLAGS="$LDFLAGS"
10577 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580 int foo (void) { return 0; }
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 lt_cv_irix_exported_symbol=yes
10585 lt_cv_irix_exported_symbol=no
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LDFLAGS="$save_LDFLAGS"
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10592 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10593 if test "$lt_cv_irix_exported_symbol" = yes; then
10594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10600 archive_cmds_need_lc='no'
10601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602 hardcode_libdir_separator=:
10604 link_all_deplibs=yes
10607 netbsd* | netbsdelf*-gnu)
10608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10611 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10613 hardcode_libdir_flag_spec='-R$libdir'
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620 hardcode_direct=yes
10621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10622 hardcode_libdir_separator=:
10623 hardcode_shlibpath_var=no
10630 if test -f /usr/libexec/ld.so; then
10631 hardcode_direct=yes
10632 hardcode_shlibpath_var=no
10633 hardcode_direct_absolute=yes
10634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10638 export_dynamic_flag_spec='${wl}-E'
10641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_libdir_flag_spec='-R$libdir'
10646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10657 hardcode_libdir_flag_spec='-L$libdir'
10658 hardcode_minus_L=yes
10659 allow_undefined_flag=unsupported
10660 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'
10661 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10665 if test "$GCC" = yes; then
10666 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10667 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10669 allow_undefined_flag=' -expect_unresolved \*'
10670 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10672 archive_cmds_need_lc='no'
10673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674 hardcode_libdir_separator=:
10677 osf4* | osf5*) # as osf3* with the addition of -msym flag
10678 if test "$GCC" = yes; then
10679 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10680 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10683 allow_undefined_flag=' -expect_unresolved \*'
10684 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10685 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10686 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10688 # Both c and cxx compiler support -rpath directly
10689 hardcode_libdir_flag_spec='-rpath $libdir'
10691 archive_cmds_need_lc='no'
10692 hardcode_libdir_separator=:
10696 no_undefined_flag=' -z defs'
10697 if test "$GCC" = yes; then
10699 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10701 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10703 case `$CC -V 2>&1` in
10706 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10712 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10713 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10714 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10718 hardcode_libdir_flag_spec='-R$libdir'
10719 hardcode_shlibpath_var=no
10721 solaris2.[0-5] | solaris2.[0-5].*) ;;
10723 # The compiler driver will combine and reorder linker options,
10724 # but understands `-z linker_flag'. GCC discards it without `$wl',
10725 # but is careful enough not to reorder.
10726 # Supported since Solaris 2.6 (maybe 2.5.1?)
10727 if test "$GCC" = yes; then
10728 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10730 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10734 link_all_deplibs=yes
10738 if test "x$host_vendor" = xsequent; then
10739 # Use $CC to link under sequent, because it throws in some extra .o
10740 # files that make .init and .fini sections work.
10741 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_libdir_flag_spec='-L$libdir'
10746 hardcode_direct=yes
10747 hardcode_minus_L=yes
10748 hardcode_shlibpath_var=no
10752 case $host_vendor in
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_direct=yes # is this really true???
10758 ## LD is ld it makes a PLAMLIB
10759 ## CC just makes a GrossModule.
10760 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10761 reload_cmds='$CC -r -o $output$reload_objs'
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10769 runpath_var='LD_RUN_PATH'
10770 hardcode_shlibpath_var=no
10774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_shlibpath_var=no
10776 export_dynamic_flag_spec='-Bexport'
10780 if test -d /usr/nec; then
10781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782 hardcode_shlibpath_var=no
10783 runpath_var=LD_RUN_PATH
10784 hardcode_runpath_var=yes
10789 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10790 no_undefined_flag='${wl}-z,text'
10791 archive_cmds_need_lc=no
10792 hardcode_shlibpath_var=no
10793 runpath_var='LD_RUN_PATH'
10795 if test "$GCC" = yes; then
10796 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 sysv5* | sco3.2v5* | sco5v6*)
10805 # Note: We can NOT use -z defs as we might desire, because we do not
10806 # link with -lc, and that would cause any symbols used from libc to
10807 # always be unresolved, which means just about no library would
10808 # ever link correctly. If we're not using GNU ld we use -z text
10809 # though, which does catch some bad symbols but isn't as heavy-handed
10811 no_undefined_flag='${wl}-z,text'
10812 allow_undefined_flag='${wl}-z,nodefs'
10813 archive_cmds_need_lc=no
10814 hardcode_shlibpath_var=no
10815 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10816 hardcode_libdir_separator=':'
10817 link_all_deplibs=yes
10818 export_dynamic_flag_spec='${wl}-Bexport'
10819 runpath_var='LD_RUN_PATH'
10821 if test "$GCC" = yes; then
10822 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10832 hardcode_libdir_flag_spec='-L$libdir'
10833 hardcode_shlibpath_var=no
10841 if test x$host_vendor = xsni; then
10843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10844 export_dynamic_flag_spec='${wl}-Blargedynsym'
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10851 $as_echo "$ld_shlibs" >&6; }
10852 test "$ld_shlibs" = no && can_build_shared=no
10854 with_gnu_ld=$with_gnu_ld
10871 # Do we need to explicitly link libc?
10873 case "x$archive_cmds_need_lc" in
10875 # Assume -lc should be added
10876 archive_cmds_need_lc=yes
10878 if test "$enable_shared" = yes && test "$GCC" = yes; then
10879 case $archive_cmds in
10881 # FIXME: we may have to deal with multi-command sequences.
10884 # Test whether the compiler implicitly links with -lc since on some
10885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10886 # to ld, don't add -lc before -lgcc.
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10888 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10889 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10890 $as_echo_n "(cached) " >&6
10893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10896 (eval $ac_compile) 2>&5
10898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10899 test $ac_status = 0; } 2>conftest.err; then
10902 libobjs=conftest.$ac_objext
10904 wl=$lt_prog_compiler_wl
10905 pic_flag=$lt_prog_compiler_pic
10911 lt_save_allow_undefined_flag=$allow_undefined_flag
10912 allow_undefined_flag=
10913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10914 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10917 test $ac_status = 0; }
10919 lt_cv_archive_cmds_need_lc=no
10921 lt_cv_archive_cmds_need_lc=yes
10923 allow_undefined_flag=$lt_save_allow_undefined_flag
10925 cat conftest.err 1>&5
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10931 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10932 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11091 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11093 if test "$GCC" = yes; then
11095 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11096 *) lt_awk_arg="/^libraries:/" ;;
11099 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11100 *) lt_sed_strip_eq="s,=/,/,g" ;;
11102 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11103 case $lt_search_path_spec in
11105 # if the path contains ";" then we assume it to be the separator
11106 # otherwise default to the standard path separator (i.e. ":") - it is
11107 # assumed that no part of a normal pathname contains ";" but that should
11108 # okay in the real world where ";" in dirpaths is itself problematic.
11109 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11112 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11115 # Ok, now we have the path, separated by spaces, we can step through it
11116 # and add multilib dir if necessary.
11117 lt_tmp_lt_search_path_spec=
11118 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11119 for lt_sys_path in $lt_search_path_spec; do
11120 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11123 test -d "$lt_sys_path" && \
11124 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11127 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11128 BEGIN {RS=" "; FS="/|\n";} {
11131 for (lt_i = NF; lt_i > 0; lt_i--) {
11132 if ($lt_i != "" && $lt_i != ".") {
11133 if ($lt_i == "..") {
11136 if (lt_count == 0) {
11137 lt_foo="/" $lt_i lt_foo;
11144 if (lt_foo != "") { lt_freq[lt_foo]++; }
11145 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11147 # AWK program above erroneously prepends '/' to C:/dos/paths
11150 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11151 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11153 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11155 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11157 library_names_spec=
11158 libname_spec='lib$name'
11162 postuninstall_cmds=
11166 shlibpath_overrides_runpath=unknown
11168 dynamic_linker="$host_os ld.so"
11169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11170 need_lib_prefix=unknown
11171 hardcode_into_libs=no
11173 # when you set need_version to no, make sure it does not cause -set_version
11174 # flags to be left without arguments
11175 need_version=unknown
11179 version_type=linux # correct to gnu/linux during the next big refactor
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11181 shlibpath_var=LIBPATH
11183 # AIX 3 has no versioning support, so we append a major version to the name.
11184 soname_spec='${libname}${release}${shared_ext}$major'
11188 version_type=linux # correct to gnu/linux during the next big refactor
11191 hardcode_into_libs=yes
11192 if test "$host_cpu" = ia64; then
11193 # AIX 5 supports IA64
11194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11195 shlibpath_var=LD_LIBRARY_PATH
11197 # With GCC up to 2.95.x, collect2 would create an import file
11198 # for dependence libraries. The import file would start with
11199 # the line `#! .'. This would cause the generated library to
11200 # depend on `.', always an invalid library. This was fixed in
11201 # development snapshots of GCC prior to 3.0.
11203 aix4 | aix4.[01] | aix4.[01].*)
11204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11206 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11209 can_build_shared=no
11213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11214 # soname into executable. Probably we can add versioning support to
11215 # collect2, so additional links can be useful in future.
11216 if test "$aix_use_runtimelinking" = yes; then
11217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11218 # instead of lib<name>.a to let people know that these are not
11219 # typical AIX shared libraries.
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 # We preserve .a as extension for shared libraries through AIX4.2
11223 # and later when we are not doing run time linking.
11224 library_names_spec='${libname}${release}.a $libname.a'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LIBPATH
11234 # Since July 2007 AmigaOS4 officially supports .so libraries.
11235 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239 library_names_spec='$libname.ixlibrary $libname.a'
11240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11241 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11247 library_names_spec='${libname}${shared_ext}'
11248 dynamic_linker="$host_os ld.so"
11249 shlibpath_var=LIBRARY_PATH
11253 version_type=linux # correct to gnu/linux during the next big refactor
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11261 # the default ld.so.conf also contains /usr/contrib/lib and
11262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11263 # libtool to hard-code these into programs
11266 cygwin* | mingw* | pw32* | cegcc*)
11267 version_type=windows
11272 case $GCC,$cc_basename in
11275 library_names_spec='$libname.dll.a'
11276 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11277 postinstall_cmds='base_file=`basename \${file}`~
11278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11279 dldir=$destdir/`dirname \$dlpath`~
11280 test -d \$dldir || mkdir -p \$dldir~
11281 $install_prog $dir/$dlname \$dldir/$dlname~
11282 chmod a+x \$dldir/$dlname~
11283 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11284 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11287 dlpath=$dir/\$dldll~
11289 shlibpath_overrides_runpath=yes
11293 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11296 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11299 # MinGW DLLs use traditional 'lib' prefix
11300 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11303 # pw32 DLLs use 'pw' prefix rather than 'lib'
11304 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11307 dynamic_linker='Win32 ld.exe'
11312 libname_spec='$name'
11313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314 library_names_spec='${libname}.dll.lib'
11318 sys_lib_search_path_spec=
11321 for lt_path in $LIB
11324 # Let DOS variable expansion print the short 8.3 style file name.
11325 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11326 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11329 # Convert to MSYS style.
11330 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11333 # Convert to unix form, then to dos form, then back to unix form
11334 # but this time dos style (no spaces!) so that the unix form looks
11335 # like /cygdrive/c/PROGRA~1:/cygdr...
11336 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11337 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11338 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11341 sys_lib_search_path_spec="$LIB"
11342 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11343 # It is most probably a Windows format PATH.
11344 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11346 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11348 # FIXME: find the short name or the path components, as spaces are
11349 # common. (e.g. "Program Files" -> "PROGRA~1")
11353 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11354 postinstall_cmds='base_file=`basename \${file}`~
11355 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11356 dldir=$destdir/`dirname \$dlpath`~
11357 test -d \$dldir || mkdir -p \$dldir~
11358 $install_prog $dir/$dlname \$dldir/$dlname'
11359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11360 dlpath=$dir/\$dldll~
11362 shlibpath_overrides_runpath=yes
11363 dynamic_linker='Win32 link.exe'
11367 # Assume MSVC wrapper
11368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11369 dynamic_linker='Win32 ld.exe'
11372 # FIXME: first we should search . and the directory the executable is in
11376 darwin* | rhapsody*)
11377 dynamic_linker="$host_os dyld"
11378 version_type=darwin
11381 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11382 soname_spec='${libname}${release}${major}$shared_ext'
11383 shlibpath_overrides_runpath=yes
11384 shlibpath_var=DYLD_LIBRARY_PATH
11385 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11387 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11388 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11392 version_type=linux # correct to gnu/linux during the next big refactor
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 shlibpath_var=LD_LIBRARY_PATH
11400 freebsd* | dragonfly*)
11401 # DragonFly does not have aout. When/if they implement a new
11402 # versioning mechanism, adjust this.
11403 if test -x /usr/bin/objformat; then
11404 objformat=`/usr/bin/objformat`
11407 freebsd[23].*) objformat=aout ;;
11408 *) objformat=elf ;;
11411 version_type=freebsd-$objformat
11412 case $version_type in
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11423 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=yes
11428 freebsd3.[01]* | freebsdelf3.[01]*)
11429 shlibpath_overrides_runpath=yes
11430 hardcode_into_libs=yes
11432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11434 shlibpath_overrides_runpath=no
11435 hardcode_into_libs=yes
11437 *) # from 4.6 on, and DragonFly
11438 shlibpath_overrides_runpath=yes
11439 hardcode_into_libs=yes
11445 version_type=linux # correct to gnu/linux during the next big refactor
11448 dynamic_linker="$host_os runtime_loader"
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 shlibpath_var=LIBRARY_PATH
11452 shlibpath_overrides_runpath=yes
11453 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11454 hardcode_into_libs=yes
11457 hpux9* | hpux10* | hpux11*)
11458 # Give a soname corresponding to the major version so that dld.sl refuses to
11459 # link against other versions.
11466 hardcode_into_libs=yes
11467 dynamic_linker="$host_os dld.so"
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 if test "X$HPUX_IA64_MODE" = X32; then
11473 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11481 hardcode_into_libs=yes
11482 dynamic_linker="$host_os dld.sl"
11483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11492 dynamic_linker="$host_os dld.sl"
11493 shlibpath_var=SHLIB_PATH
11494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11499 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11500 postinstall_cmds='chmod 555 $lib'
11501 # or fails outright, so override atomically:
11502 install_override_mode=555
11506 version_type=linux # correct to gnu/linux during the next big refactor
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=no
11514 hardcode_into_libs=yes
11517 irix5* | irix6* | nonstopux*)
11519 nonstopux*) version_type=nonstopux ;;
11521 if test "$lt_cv_prog_gnu_ld" = yes; then
11522 version_type=linux # correct to gnu/linux during the next big refactor
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11532 irix5* | nonstopux*)
11533 libsuff= shlibsuff=
11536 case $LD in # libtool.m4 will add one of these switches to LD
11537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11538 libsuff= shlibsuff= libmagic=32-bit;;
11539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11540 libsuff=32 shlibsuff=N32 libmagic=N32;;
11541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11542 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11543 *) libsuff= shlibsuff= libmagic=never-match;;
11547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11548 shlibpath_overrides_runpath=no
11549 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11550 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11551 hardcode_into_libs=yes
11554 # No shared lib support for Linux oldld, aout, or coff.
11555 linux*oldld* | linux*aout* | linux*coff*)
11559 # This must be glibc/ELF.
11560 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11561 version_type=linux # correct to gnu/linux during the next big refactor
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=no
11570 # Some binutils ld are patched to set DT_RUNPATH
11571 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11572 $as_echo_n "(cached) " >&6
11574 lt_cv_shlibpath_overrides_runpath=no
11575 save_LDFLAGS=$LDFLAGS
11576 save_libdir=$libdir
11577 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11578 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11592 lt_cv_shlibpath_overrides_runpath=yes
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LDFLAGS=$save_LDFLAGS
11598 libdir=$save_libdir
11602 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11604 # This implies no fast_install, which is unacceptable.
11605 # Some rework will be needed to allow for fast_install
11606 # before this can be enabled.
11607 hardcode_into_libs=yes
11609 # Append ld.so.conf contents to the search path
11610 if test -f /etc/ld.so.conf; then
11611 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;s/"//g;/^$/d' | tr '\n' ' '`
11612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11615 # We used to test for /lib/ld.so.1 and disable shared libraries on
11616 # powerpc, because MkLinux only supported shared libraries with the
11617 # GNU dynamic linker. Since this was broken with cross compilers,
11618 # most powerpc-linux boxes support dynamic linking these days and
11619 # people can always --disable-shared, the test was removed, and we
11620 # assume the GNU/Linux dynamic linker is in use.
11621 dynamic_linker='GNU/Linux ld.so'
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 shlibpath_overrides_runpath=no
11632 hardcode_into_libs=yes
11633 dynamic_linker='NetBSD ld.elf_so'
11640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11643 dynamic_linker='NetBSD (a.out) ld.so'
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 dynamic_linker='NetBSD ld.elf_so'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11651 hardcode_into_libs=yes
11655 version_type=linux # correct to gnu/linux during the next big refactor
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 shlibpath_overrides_runpath=no
11669 hardcode_into_libs=yes
11670 dynamic_linker='ldqnx.so'
11675 sys_lib_dlsearch_path_spec="/usr/lib"
11677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11679 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11680 *) need_version=no ;;
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11687 openbsd2.[89] | openbsd2.[89].*)
11688 shlibpath_overrides_runpath=no
11691 shlibpath_overrides_runpath=yes
11695 shlibpath_overrides_runpath=yes
11700 libname_spec='$name'
11703 library_names_spec='$libname${shared_ext} $libname.a'
11704 dynamic_linker='OS/2 ld.exe'
11705 shlibpath_var=LIBPATH
11708 osf3* | osf4* | osf5*)
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11724 version_type=linux # correct to gnu/linux during the next big refactor
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=yes
11731 hardcode_into_libs=yes
11732 # ldd complains unless libraries are executable
11733 postinstall_cmds='chmod +x $lib'
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11742 if test "$with_gnu_ld" = yes; then
11749 version_type=linux # correct to gnu/linux during the next big refactor
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 case $host_vendor in
11755 shlibpath_overrides_runpath=no
11757 runpath_var=LD_RUN_PATH
11765 shlibpath_overrides_runpath=no
11766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11772 if test -d /usr/nec ;then
11773 version_type=linux # correct to gnu/linux during the next big refactor
11774 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11775 soname_spec='$libname${shared_ext}.$major'
11776 shlibpath_var=LD_LIBRARY_PATH
11780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11781 version_type=freebsd-elf
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11785 soname_spec='${libname}${release}${shared_ext}$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=yes
11788 hardcode_into_libs=yes
11789 if test "$with_gnu_ld" = yes; then
11790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11799 sys_lib_dlsearch_path_spec='/usr/lib'
11803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11804 version_type=linux # correct to gnu/linux during the next big refactor
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=no
11810 hardcode_into_libs=yes
11814 version_type=linux # correct to gnu/linux during the next big refactor
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11825 $as_echo "$dynamic_linker" >&6; }
11826 test "$dynamic_linker" = no && can_build_shared=no
11828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11829 if test "$GCC" = yes; then
11830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11833 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11834 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11836 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11837 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11932 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11934 if test -n "$hardcode_libdir_flag_spec" ||
11935 test -n "$runpath_var" ||
11936 test "X$hardcode_automatic" = "Xyes" ; then
11938 # We can hardcode non-existent directories.
11939 if test "$hardcode_direct" != no &&
11940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11941 # have to relink, otherwise we might link with an installed library
11942 # when we should be linking with a yet-to-be-installed one
11943 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11944 test "$hardcode_minus_L" != no; then
11945 # Linking always hardcodes the temporary library directory.
11946 hardcode_action=relink
11948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11949 hardcode_action=immediate
11952 # We cannot hardcode anything, or else we can only hardcode existing
11954 hardcode_action=unsupported
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11957 $as_echo "$hardcode_action" >&6; }
11959 if test "$hardcode_action" = relink ||
11960 test "$inherit_rpath" = yes; then
11961 # Fast installation is not supported
11962 enable_fast_install=no
11963 elif test "$shlibpath_overrides_runpath" = yes ||
11964 test "$enable_shared" = no; then
11965 # Fast installation is not necessary
11966 enable_fast_install=needless
11974 if test "x$enable_dlopen" != xyes; then
11975 enable_dlopen=unknown
11976 enable_dlopen_self=unknown
11977 enable_dlopen_self_static=unknown
11984 lt_cv_dlopen="load_add_on"
11986 lt_cv_dlopen_self=yes
11989 mingw* | pw32* | cegcc*)
11990 lt_cv_dlopen="LoadLibrary"
11995 lt_cv_dlopen="dlopen"
12000 # if libdl is installed we need to link against it
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12002 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12003 if ${ac_cv_lib_dl_dlopen+:} false; then :
12004 $as_echo_n "(cached) " >&6
12006 ac_check_lib_save_LIBS=$LIBS
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 ac_cv_lib_dl_dlopen=yes
12029 ac_cv_lib_dl_dlopen=no
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12036 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12037 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12041 lt_cv_dlopen="dyld"
12043 lt_cv_dlopen_self=yes
12050 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12051 if test "x$ac_cv_func_shl_load" = xyes; then :
12052 lt_cv_dlopen="shl_load"
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12055 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12056 if ${ac_cv_lib_dld_shl_load+:} false; then :
12057 $as_echo_n "(cached) " >&6
12059 ac_check_lib_save_LIBS=$LIBS
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12074 return shl_load ();
12079 if ac_fn_c_try_link "$LINENO"; then :
12080 ac_cv_lib_dld_shl_load=yes
12082 ac_cv_lib_dld_shl_load=no
12084 rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12089 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12090 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12091 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12093 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12094 if test "x$ac_cv_func_dlopen" = xyes; then :
12095 lt_cv_dlopen="dlopen"
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12099 if ${ac_cv_lib_dl_dlopen+:} false; then :
12100 $as_echo_n "(cached) " >&6
12102 ac_check_lib_save_LIBS=$LIBS
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12122 if ac_fn_c_try_link "$LINENO"; then :
12123 ac_cv_lib_dl_dlopen=yes
12125 ac_cv_lib_dl_dlopen=no
12127 rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 LIBS=$ac_check_lib_save_LIBS
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12132 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12133 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12137 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12138 if ${ac_cv_lib_svld_dlopen+:} false; then :
12139 $as_echo_n "(cached) " >&6
12141 ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-lsvld $LIBS"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12161 if ac_fn_c_try_link "$LINENO"; then :
12162 ac_cv_lib_svld_dlopen=yes
12164 ac_cv_lib_svld_dlopen=no
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12171 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12172 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12176 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12177 if ${ac_cv_lib_dld_dld_link+:} false; then :
12178 $as_echo_n "(cached) " >&6
12180 ac_check_lib_save_LIBS=$LIBS
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12195 return dld_link ();
12200 if ac_fn_c_try_link "$LINENO"; then :
12201 ac_cv_lib_dld_dld_link=yes
12203 ac_cv_lib_dld_dld_link=no
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12210 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12211 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12212 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12233 if test "x$lt_cv_dlopen" != xno; then
12239 case $lt_cv_dlopen in
12241 save_CPPFLAGS="$CPPFLAGS"
12242 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12244 save_LDFLAGS="$LDFLAGS"
12245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12248 LIBS="$lt_cv_dlopen_libs $LIBS"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12251 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12252 if ${lt_cv_dlopen_self+:} false; then :
12253 $as_echo_n "(cached) " >&6
12255 if test "$cross_compiling" = yes; then :
12256 lt_cv_dlopen_self=cross
12258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12259 lt_status=$lt_dlunknown
12260 cat > conftest.$ac_ext <<_LT_EOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12271 # define LT_DLGLOBAL RTLD_GLOBAL
12274 # define LT_DLGLOBAL DL_GLOBAL
12276 # define LT_DLGLOBAL 0
12280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12281 find out it does not work in some platform. */
12282 #ifndef LT_DLLAZY_OR_NOW
12284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12287 # define LT_DLLAZY_OR_NOW DL_LAZY
12290 # define LT_DLLAZY_OR_NOW RTLD_NOW
12293 # define LT_DLLAZY_OR_NOW DL_NOW
12295 # define LT_DLLAZY_OR_NOW 0
12302 /* When -fvisbility=hidden is used, assume the code has been annotated
12303 correspondingly for the symbols needed. */
12304 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12305 int fnord () __attribute__((visibility("default")));
12308 int fnord () { return 42; }
12311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12312 int status = $lt_dlunknown;
12316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12319 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12320 else puts (dlerror ());
12322 /* dlclose (self); */
12330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12331 (eval $ac_link) 2>&5
12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12335 (./conftest; exit; ) >&5 2>/dev/null
12337 case x$lt_status in
12338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12340 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12343 # compilation failed
12344 lt_cv_dlopen_self=no
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12352 $as_echo "$lt_cv_dlopen_self" >&6; }
12354 if test "x$lt_cv_dlopen_self" = xyes; then
12355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12357 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12358 if ${lt_cv_dlopen_self_static+:} false; then :
12359 $as_echo_n "(cached) " >&6
12361 if test "$cross_compiling" = yes; then :
12362 lt_cv_dlopen_self_static=cross
12364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12365 lt_status=$lt_dlunknown
12366 cat > conftest.$ac_ext <<_LT_EOF
12367 #line $LINENO "configure"
12368 #include "confdefs.h"
12377 # define LT_DLGLOBAL RTLD_GLOBAL
12380 # define LT_DLGLOBAL DL_GLOBAL
12382 # define LT_DLGLOBAL 0
12386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12387 find out it does not work in some platform. */
12388 #ifndef LT_DLLAZY_OR_NOW
12390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12393 # define LT_DLLAZY_OR_NOW DL_LAZY
12396 # define LT_DLLAZY_OR_NOW RTLD_NOW
12399 # define LT_DLLAZY_OR_NOW DL_NOW
12401 # define LT_DLLAZY_OR_NOW 0
12408 /* When -fvisbility=hidden is used, assume the code has been annotated
12409 correspondingly for the symbols needed. */
12410 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12411 int fnord () __attribute__((visibility("default")));
12414 int fnord () { return 42; }
12417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12418 int status = $lt_dlunknown;
12422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12425 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12426 else puts (dlerror ());
12428 /* dlclose (self); */
12436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12437 (eval $ac_link) 2>&5
12439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12440 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12441 (./conftest; exit; ) >&5 2>/dev/null
12443 case x$lt_status in
12444 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12445 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12446 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12449 # compilation failed
12450 lt_cv_dlopen_self_static=no
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12458 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12461 CPPFLAGS="$save_CPPFLAGS"
12462 LDFLAGS="$save_LDFLAGS"
12467 case $lt_cv_dlopen_self in
12468 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12469 *) enable_dlopen_self=unknown ;;
12472 case $lt_cv_dlopen_self_static in
12473 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12474 *) enable_dlopen_self_static=unknown ;;
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12497 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12498 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12502 $as_echo "yes" >&6; }
12504 # FIXME - insert some real tests, host_os isn't really good enough
12507 if test -n "$STRIP" ; then
12508 striplib="$STRIP -x"
12509 old_striplib="$STRIP -S"
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12511 $as_echo "yes" >&6; }
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514 $as_echo "no" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12535 # Report which library types will actually be built
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12537 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12539 $as_echo "$can_build_shared" >&6; }
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12542 $as_echo_n "checking whether to build shared libraries... " >&6; }
12543 test "$can_build_shared" = "no" && enable_shared=no
12545 # On AIX, shared libraries and static libraries use the same namespace, and
12546 # are all built from PIC.
12549 test "$enable_shared" = yes && enable_static=no
12550 if test -n "$RANLIB"; then
12551 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12552 postinstall_cmds='$RANLIB $lib'
12557 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12558 test "$enable_shared" = yes && enable_static=no
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12563 $as_echo "$enable_shared" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12566 $as_echo_n "checking whether to build static libraries... " >&6; }
12567 # Make sure either enable_shared or enable_static is yes.
12568 test "$enable_shared" = yes || enable_static=yes
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12570 $as_echo "$enable_static" >&6; }
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12598 ac_config_commands="$ac_config_commands libtool"
12603 # Only expand once:
12608 ac_cpp='$CXXCPP $CPPFLAGS'
12609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12612 if test -z "$CXX"; then
12613 if test -n "$CCC"; then
12616 if test -n "$ac_tool_prefix"; then
12617 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_prog_CXX+:} false; then :
12624 $as_echo_n "(cached) " >&6
12626 if test -n "$CXX"; then
12627 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 CXX=$ac_cv_prog_CXX
12647 if test -n "$CXX"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12649 $as_echo "$CXX" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12656 test -n "$CXX" && break
12659 if test -z "$CXX"; then
12661 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12663 # Extract the first word of "$ac_prog", so it can be a program name with args.
12664 set dummy $ac_prog; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12668 $as_echo_n "(cached) " >&6
12670 if test -n "$ac_ct_CXX"; then
12671 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12677 test -z "$as_dir" && as_dir=.
12678 for ac_exec_ext in '' $ac_executable_extensions; do
12679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12680 ac_cv_prog_ac_ct_CXX="$ac_prog"
12681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12691 if test -n "$ac_ct_CXX"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12693 $as_echo "$ac_ct_CXX" >&6; }
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12700 test -n "$ac_ct_CXX" && break
12703 if test "x$ac_ct_CXX" = x; then
12706 case $cross_compiling:$ac_tool_warned in
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12710 ac_tool_warned=yes ;;
12718 # Provide some information about the compiler.
12719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12722 for ac_option in --version -v -V -qversion; do
12723 { { ac_try="$ac_compiler $ac_option >&5"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12729 $as_echo "$ac_try_echo"; } >&5
12730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12732 if test -s conftest.err; then
12734 ... rest of stderr output deleted ...
12735 10q' conftest.err >conftest.er1
12736 cat conftest.er1 >&5
12738 rm -f conftest.er1 conftest.err
12739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740 test $ac_status = 0; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12744 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12745 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12746 $as_echo_n "(cached) " >&6
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12762 if ac_fn_cxx_try_compile "$LINENO"; then :
12763 ac_compiler_gnu=yes
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12772 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12773 if test $ac_compiler_gnu = yes; then
12778 ac_test_CXXFLAGS=${CXXFLAGS+set}
12779 ac_save_CXXFLAGS=$CXXFLAGS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12781 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12782 if ${ac_cv_prog_cxx_g+:} false; then :
12783 $as_echo_n "(cached) " >&6
12785 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12786 ac_cxx_werror_flag=yes
12787 ac_cv_prog_cxx_g=no
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12800 if ac_fn_cxx_try_compile "$LINENO"; then :
12801 ac_cv_prog_cxx_g=yes
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12815 if ac_fn_cxx_try_compile "$LINENO"; then :
12818 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12831 if ac_fn_cxx_try_compile "$LINENO"; then :
12832 ac_cv_prog_cxx_g=yes
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12842 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12843 if test "$ac_test_CXXFLAGS" = set; then
12844 CXXFLAGS=$ac_save_CXXFLAGS
12845 elif test $ac_cv_prog_cxx_g = yes; then
12846 if test "$GXX" = yes; then
12852 if test "$GXX" = yes; then
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12864 depcc="$CXX" am_compiler_list=
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12867 $as_echo_n "checking dependency style of $depcc... " >&6; }
12868 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12869 $as_echo_n "(cached) " >&6
12871 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12872 # We make a subdir and do the tests there. Otherwise we can end up
12873 # making bogus files that we don't know about and never remove. For
12874 # instance it was reported that on HP-UX the gcc test will end up
12875 # making a dummy file named `D' -- because `-MD' means `put the output
12877 rm -rf conftest.dir
12879 # Copy depcomp to subdir because otherwise we won't find it if we're
12880 # using a relative directory.
12881 cp "$am_depcomp" conftest.dir
12883 # We will build objects and dependencies in a subdirectory because
12884 # it helps to detect inapplicable dependency modes. For instance
12885 # both Tru64's cc and ICC support -MD to output dependencies as a
12886 # side effect of compilation, but ICC will put the dependencies in
12887 # the current directory while Tru64 will put them in the object
12891 am_cv_CXX_dependencies_compiler_type=none
12892 if test "$am_compiler_list" = ""; then
12893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12895 am__universal=false
12896 case " $depcc " in #(
12897 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12900 for depmode in $am_compiler_list; do
12901 # Setup a source with many dependencies, because some compilers
12902 # like to wrap large dependency lists on column 80 (with \), and
12903 # we should not choose a depcomp mode which is confused by this.
12905 # We need to recreate these files for each test, as the compiler may
12906 # overwrite some of them when testing with obscure command lines.
12907 # This happens at least with the AIX C compiler.
12909 for i in 1 2 3 4 5 6; do
12910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12911 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12912 # Solaris 8's {/usr,}/bin/sh.
12913 touch sub/conftst$i.h
12915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12917 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12918 # mode. It turns out that the SunPro C++ compiler does not properly
12919 # handle `-M -o', and we need to detect this. Also, some Intel
12920 # versions had trouble with output in subdirs
12921 am__obj=sub/conftest.${OBJEXT-o}
12922 am__minus_obj="-o $am__obj"
12925 # This depmode causes a compiler race in universal mode.
12926 test "$am__universal" = false || continue
12929 # after this tag, mechanisms are not by side-effect, so they'll
12930 # only be used when explicitly requested
12931 if test "x$enable_dependency_tracking" = xyes; then
12937 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12938 # This compiler won't grok `-c -o', but also, the minuso test has
12939 # not run yet. These depmodes are late enough in the game, and
12940 # so weak that their functioning should not be impacted.
12941 am__obj=conftest.${OBJEXT-o}
12946 if depmode=$depmode \
12947 source=sub/conftest.c object=$am__obj \
12948 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12949 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12950 >/dev/null 2>conftest.err &&
12951 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12952 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12953 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12954 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12955 # icc doesn't choke on unknown options, it will just issue warnings
12956 # or remarks (even with -Werror). So we grep stderr for any message
12957 # that says an option was ignored or not supported.
12958 # When given -MP, icc 7.0 and 7.1 complain thusly:
12959 # icc: Command line warning: ignoring option '-M'; no argument required
12960 # The diagnosis changed in icc 8.0:
12961 # icc: Command line remark: option '-MP' not supported
12962 if (grep 'ignoring option' conftest.err ||
12963 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12964 am_cv_CXX_dependencies_compiler_type=$depmode
12971 rm -rf conftest.dir
12973 am_cv_CXX_dependencies_compiler_type=none
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12978 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12979 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12982 test "x$enable_dependency_tracking" != xno \
12983 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12984 am__fastdepCXX_TRUE=
12985 am__fastdepCXX_FALSE='#'
12987 am__fastdepCXX_TRUE='#'
12988 am__fastdepCXX_FALSE=
12994 func_stripname_cnf ()
12997 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12998 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13000 } # func_stripname_cnf
13002 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13003 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13004 (test "X$CXX" != "Xg++"))) ; then
13006 ac_cpp='$CXXCPP $CPPFLAGS'
13007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13011 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13012 if test -z "$CXXCPP"; then
13013 if ${ac_cv_prog_CXXCPP+:} false; then :
13014 $as_echo_n "(cached) " >&6
13016 # Double quotes because CXXCPP needs to be expanded
13017 for CXXCPP in "$CXX -E" "/lib/cpp"
13019 ac_preproc_ok=false
13020 for ac_cxx_preproc_warn_flag in '' yes
13022 # Use a header file that comes with gcc, so configuring glibc
13023 # with a fresh cross-compiler works.
13024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025 # <limits.h> exists even on freestanding compilers.
13026 # On the NeXT, cc -E runs the code through the compiler's parser,
13027 # not just through cpp. "Syntax error" is here to catch this case.
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13031 # include <limits.h>
13033 # include <assert.h>
13037 if ac_fn_cxx_try_cpp "$LINENO"; then :
13040 # Broken: fails on valid input.
13043 rm -f conftest.err conftest.i conftest.$ac_ext
13045 # OK, works on sane cases. Now check whether nonexistent headers
13046 # can be detected and how.
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049 #include <ac_nonexistent.h>
13051 if ac_fn_cxx_try_cpp "$LINENO"; then :
13052 # Broken: success on invalid input.
13055 # Passes both tests.
13059 rm -f conftest.err conftest.i conftest.$ac_ext
13062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13063 rm -f conftest.i conftest.err conftest.$ac_ext
13064 if $ac_preproc_ok; then :
13069 ac_cv_prog_CXXCPP=$CXXCPP
13072 CXXCPP=$ac_cv_prog_CXXCPP
13074 ac_cv_prog_CXXCPP=$CXXCPP
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13077 $as_echo "$CXXCPP" >&6; }
13078 ac_preproc_ok=false
13079 for ac_cxx_preproc_warn_flag in '' yes
13081 # Use a header file that comes with gcc, so configuring glibc
13082 # with a fresh cross-compiler works.
13083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13084 # <limits.h> exists even on freestanding compilers.
13085 # On the NeXT, cc -E runs the code through the compiler's parser,
13086 # not just through cpp. "Syntax error" is here to catch this case.
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13090 # include <limits.h>
13092 # include <assert.h>
13096 if ac_fn_cxx_try_cpp "$LINENO"; then :
13099 # Broken: fails on valid input.
13102 rm -f conftest.err conftest.i conftest.$ac_ext
13104 # OK, works on sane cases. Now check whether nonexistent headers
13105 # can be detected and how.
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <ac_nonexistent.h>
13110 if ac_fn_cxx_try_cpp "$LINENO"; then :
13111 # Broken: success on invalid input.
13114 # Passes both tests.
13118 rm -f conftest.err conftest.i conftest.$ac_ext
13121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13122 rm -f conftest.i conftest.err conftest.$ac_ext
13123 if $ac_preproc_ok; then :
13126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13128 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13129 See \`config.log' for more details" "$LINENO" 5; }
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13139 _lt_caught_CXX_error=yes
13143 ac_cpp='$CXXCPP $CPPFLAGS'
13144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13148 archive_cmds_need_lc_CXX=no
13149 allow_undefined_flag_CXX=
13150 always_export_symbols_CXX=no
13151 archive_expsym_cmds_CXX=
13152 compiler_needs_object_CXX=no
13153 export_dynamic_flag_spec_CXX=
13154 hardcode_direct_CXX=no
13155 hardcode_direct_absolute_CXX=no
13156 hardcode_libdir_flag_spec_CXX=
13157 hardcode_libdir_separator_CXX=
13158 hardcode_minus_L_CXX=no
13159 hardcode_shlibpath_var_CXX=unsupported
13160 hardcode_automatic_CXX=no
13161 inherit_rpath_CXX=no
13163 module_expsym_cmds_CXX=
13164 link_all_deplibs_CXX=unknown
13165 old_archive_cmds_CXX=$old_archive_cmds
13166 reload_flag_CXX=$reload_flag
13167 reload_cmds_CXX=$reload_cmds
13168 no_undefined_flag_CXX=
13169 whole_archive_flag_spec_CXX=
13170 enable_shared_with_static_runtimes_CXX=no
13172 # Source file extension for C++ test sources.
13175 # Object file extension for compiled C++ test sources.
13179 # No sense in running all these tests if we already determined that
13180 # the CXX compiler isn't working. Some variables (like enable_shared)
13181 # are currently assumed to apply to all compilers on this platform,
13182 # and will be corrupted by setting them based on a non-working compiler.
13183 if test "$_lt_caught_CXX_error" != yes; then
13184 # Code to be used in simple compile tests
13185 lt_simple_compile_test_code="int some_variable = 0;"
13187 # Code to be used in simple link tests
13188 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13190 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13197 # If no C compiler was specified, use CC.
13200 # If no C compiler flags were specified, use CFLAGS.
13201 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13203 # Allow CC to be a program name with arguments.
13207 # save warnings/boilerplate of simple test code
13208 ac_outfile=conftest.$ac_objext
13209 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13210 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13211 _lt_compiler_boilerplate=`cat conftest.err`
13214 ac_outfile=conftest.$ac_objext
13215 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13216 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13217 _lt_linker_boilerplate=`cat conftest.err`
13221 # Allow CC to be a program name with arguments.
13223 lt_save_CFLAGS=$CFLAGS
13227 lt_save_with_gnu_ld=$with_gnu_ld
13228 lt_save_path_LD=$lt_cv_path_LD
13229 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13230 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13232 $as_unset lt_cv_prog_gnu_ld
13234 if test -n "${lt_cv_path_LDCXX+set}"; then
13235 lt_cv_path_LD=$lt_cv_path_LDCXX
13237 $as_unset lt_cv_path_LD
13239 test -z "${LDCXX+set}" || LD=$LDCXX
13244 for cc_temp in $compiler""; do
13246 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13247 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13252 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13255 if test -n "$compiler"; then
13256 # We don't want -fno-exception when compiling C++ code, so set the
13257 # no_builtin_flag separately
13258 if test "$GXX" = yes; then
13259 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13261 lt_prog_compiler_no_builtin_flag_CXX=
13264 if test "$GXX" = yes; then
13265 # Set up default GNU C++ configuration
13269 # Check whether --with-gnu-ld was given.
13270 if test "${with_gnu_ld+set}" = set; then :
13271 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13277 if test "$GCC" = yes; then
13278 # Check if gcc -print-prog-name=ld gives a path.
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13280 $as_echo_n "checking for ld used by $CC... " >&6; }
13283 # gcc leaves a trailing carriage return which upsets mingw
13284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13289 # Accept absolute paths.
13291 re_direlt='/[^/][^/]*/\.\./'
13292 # Canonicalize the pathname of ld
13293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13297 test -z "$LD" && LD="$ac_prog"
13300 # If it fails, then pretend we aren't using GCC.
13304 # If it is relative, then search for the first ld in PATH.
13305 with_gnu_ld=unknown
13308 elif test "$with_gnu_ld" = yes; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13310 $as_echo_n "checking for GNU ld... " >&6; }
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13313 $as_echo_n "checking for non-GNU ld... " >&6; }
13315 if ${lt_cv_path_LD+:} false; then :
13316 $as_echo_n "(cached) " >&6
13318 if test -z "$LD"; then
13319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13320 for ac_dir in $PATH; do
13322 test -z "$ac_dir" && ac_dir=.
13323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13324 lt_cv_path_LD="$ac_dir/$ac_prog"
13325 # Check to see if the program is GNU ld. I'd rather use --version,
13326 # but apparently some variants of GNU ld only accept -v.
13327 # Break only if it was the GNU/non-GNU ld that we prefer.
13328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13329 *GNU* | *'with BFD'*)
13330 test "$with_gnu_ld" != no && break
13333 test "$with_gnu_ld" != yes && break
13340 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13344 LD="$lt_cv_path_LD"
13345 if test -n "$LD"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13347 $as_echo "$LD" >&6; }
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13352 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13355 if ${lt_cv_prog_gnu_ld+:} false; then :
13356 $as_echo_n "(cached) " >&6
13358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13359 case `$LD -v 2>&1 </dev/null` in
13360 *GNU* | *'with BFD'*)
13361 lt_cv_prog_gnu_ld=yes
13364 lt_cv_prog_gnu_ld=no
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13370 with_gnu_ld=$lt_cv_prog_gnu_ld
13378 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13379 # archiving commands below assume that GNU ld is being used.
13380 if test "$with_gnu_ld" = yes; then
13381 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13382 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13387 # If archive_cmds runs LD, not CC, wlarc should be empty
13388 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13389 # investigate it a little bit more. (MM)
13392 # ancient GNU ld didn't support --whole-archive et. al.
13393 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13394 $GREP 'no-whole-archive' > /dev/null; then
13395 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13397 whole_archive_flag_spec_CXX=
13403 # A generic and very simple default shared library creation
13404 # command for GNU C++ for the case where it uses the native
13405 # linker, instead of GNU ld. If possible, this setting should
13406 # overridden to take advantage of the native linker features on
13407 # the platform it is being used on.
13408 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13411 # Commands to make compiler produce verbose output that lists
13412 # what "hidden" libraries, object files and flags are used when
13413 # linking a shared library.
13414 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13422 # PORTME: fill in a description of your system's C++ link characteristics
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13424 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13428 # FIXME: insert proper C++ library support
13432 if test "$host_cpu" = ia64; then
13433 # On IA64, the linker does run time linking by default, so we don't
13434 # have to do anything special.
13435 aix_use_runtimelinking=no
13436 exp_sym_flag='-Bexport'
13439 aix_use_runtimelinking=no
13441 # Test if we are trying to use run time linking or normal
13442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443 # need to do runtime linking.
13444 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13445 for ld_flag in $LDFLAGS; do
13448 aix_use_runtimelinking=yes
13456 exp_sym_flag='-bexport'
13457 no_entry_flag='-bnoentry'
13460 # When large executables or shared objects are built, AIX ld can
13461 # have problems creating the table of contents. If linking a library
13462 # or program results in "error TOC overflow" add -mminimal-toc to
13463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13466 archive_cmds_CXX=''
13467 hardcode_direct_CXX=yes
13468 hardcode_direct_absolute_CXX=yes
13469 hardcode_libdir_separator_CXX=':'
13470 link_all_deplibs_CXX=yes
13471 file_list_spec_CXX='${wl}-f,'
13473 if test "$GXX" = yes; then
13474 case $host_os in aix4.[012]|aix4.[012].*)
13475 # We only want to do this on AIX 4.2 and lower, the check
13476 # below for broken collect2 doesn't work under 4.3+
13477 collect2name=`${CC} -print-prog-name=collect2`
13478 if test -f "$collect2name" &&
13479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13481 # We have reworked collect2
13484 # We have old collect2
13485 hardcode_direct_CXX=unsupported
13486 # It fails to find uninstalled libraries when the uninstalled
13487 # path is not listed in the libpath. Setting hardcode_minus_L
13488 # to unsupported forces relinking
13489 hardcode_minus_L_CXX=yes
13490 hardcode_libdir_flag_spec_CXX='-L$libdir'
13491 hardcode_libdir_separator_CXX=
13494 shared_flag='-shared'
13495 if test "$aix_use_runtimelinking" = yes; then
13496 shared_flag="$shared_flag "'${wl}-G'
13500 if test "$host_cpu" = ia64; then
13501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13502 # chokes on -Wl,-G. The following line is correct:
13505 if test "$aix_use_runtimelinking" = yes; then
13506 shared_flag='${wl}-G'
13508 shared_flag='${wl}-bM:SRE'
13513 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13514 # It seems that -bexpall does not export symbols beginning with
13515 # underscore (_), so it is better to generate a list of symbols to
13517 always_export_symbols_CXX=yes
13518 if test "$aix_use_runtimelinking" = yes; then
13519 # Warning - without using the other runtime loading flags (-brtl),
13520 # -berok will link without error, but may produce a broken library.
13521 allow_undefined_flag_CXX='-berok'
13522 # Determine the default libpath from the value encoded in an empty
13524 if test "${lt_cv_aix_libpath+set}" = set; then
13525 aix_libpath=$lt_cv_aix_libpath
13527 if ${lt_cv_aix_libpath__CXX+:} false; then :
13528 $as_echo_n "(cached) " >&6
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13541 if ac_fn_cxx_try_link "$LINENO"; then :
13543 lt_aix_libpath_sed='
13544 /Import File Strings/,/^$/ {
13546 s/^0 *\([^ ]*\) *$/\1/
13550 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13551 # Check for a 64-bit object if we didn't find anything.
13552 if test -z "$lt_cv_aix_libpath__CXX"; then
13553 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13556 rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13558 if test -z "$lt_cv_aix_libpath__CXX"; then
13559 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13564 aix_libpath=$lt_cv_aix_libpath__CXX
13567 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13569 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13571 if test "$host_cpu" = ia64; then
13572 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13573 allow_undefined_flag_CXX="-z nodefs"
13574 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"
13576 # Determine the default libpath from the value encoded in an
13577 # empty executable.
13578 if test "${lt_cv_aix_libpath+set}" = set; then
13579 aix_libpath=$lt_cv_aix_libpath
13581 if ${lt_cv_aix_libpath__CXX+:} false; then :
13582 $as_echo_n "(cached) " >&6
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13595 if ac_fn_cxx_try_link "$LINENO"; then :
13597 lt_aix_libpath_sed='
13598 /Import File Strings/,/^$/ {
13600 s/^0 *\([^ ]*\) *$/\1/
13604 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13605 # Check for a 64-bit object if we didn't find anything.
13606 if test -z "$lt_cv_aix_libpath__CXX"; then
13607 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13610 rm -f core conftest.err conftest.$ac_objext \
13611 conftest$ac_exeext conftest.$ac_ext
13612 if test -z "$lt_cv_aix_libpath__CXX"; then
13613 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13618 aix_libpath=$lt_cv_aix_libpath__CXX
13621 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13622 # Warning - without using the other run time loading flags,
13623 # -berok will link without error, but may produce a broken library.
13624 no_undefined_flag_CXX=' ${wl}-bernotok'
13625 allow_undefined_flag_CXX=' ${wl}-berok'
13626 if test "$with_gnu_ld" = yes; then
13627 # We only use this code for GNU lds that support --whole-archive.
13628 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13630 # Exported symbols can be pulled into shared objects from archives
13631 whole_archive_flag_spec_CXX='$convenience'
13633 archive_cmds_need_lc_CXX=yes
13634 # This is similar to how AIX traditionally builds its shared
13636 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'
13642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13643 allow_undefined_flag_CXX=unsupported
13644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13645 # support --undefined. This deserves some investigation. FIXME
13646 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13653 case $cc_basename in
13655 # FIXME: insert proper C++ library support
13661 cygwin* | mingw* | pw32* | cegcc*)
13662 case $GXX,$cc_basename in
13665 # hardcode_libdir_flag_spec is actually meaningless, as there is
13666 # no search path for DLLs.
13667 hardcode_libdir_flag_spec_CXX=' '
13668 allow_undefined_flag_CXX=unsupported
13669 always_export_symbols_CXX=yes
13670 file_list_spec_CXX='@'
13671 # Tell ltmain to make .lib files, not .a files.
13673 # Tell ltmain to make .dll files, not .so files.
13675 # FIXME: Setting linknames here is a bad hack.
13676 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13677 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13678 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13680 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13682 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13684 # The linker will not automatically build a static lib if we build a DLL.
13685 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13686 enable_shared_with_static_runtimes_CXX=yes
13688 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13689 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13690 lt_tool_outputfile="@TOOL_OUTPUT@"~
13691 case $lt_outputfile in
13694 lt_outputfile="$lt_outputfile.exe"
13695 lt_tool_outputfile="$lt_tool_outputfile.exe"
13698 func_to_tool_file "$lt_outputfile"~
13699 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13700 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13701 $RM "$lt_outputfile.manifest";
13706 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13707 # as there is no search path for DLLs.
13708 hardcode_libdir_flag_spec_CXX='-L$libdir'
13709 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13710 allow_undefined_flag_CXX=unsupported
13711 always_export_symbols_CXX=no
13712 enable_shared_with_static_runtimes_CXX=yes
13714 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13715 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'
13716 # If the export-symbols file already is a .def file (1st line
13717 # is EXPORTS), use it as is; otherwise, prepend...
13718 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13719 cp $export_symbols $output_objdir/$soname.def;
13721 echo EXPORTS > $output_objdir/$soname.def;
13722 cat $export_symbols >> $output_objdir/$soname.def;
13724 $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'
13731 darwin* | rhapsody*)
13734 archive_cmds_need_lc_CXX=no
13735 hardcode_direct_CXX=no
13736 hardcode_automatic_CXX=yes
13737 hardcode_shlibpath_var_CXX=unsupported
13738 if test "$lt_cv_ld_force_load" = "yes"; then
13739 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13742 whole_archive_flag_spec_CXX=''
13744 link_all_deplibs_CXX=yes
13745 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13746 case $cc_basename in
13747 ifort*) _lt_dar_can_shared=yes ;;
13748 *) _lt_dar_can_shared=$GCC ;;
13750 if test "$_lt_dar_can_shared" = "yes"; then
13751 output_verbose_link_cmd=func_echo_all
13752 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}"
13753 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13754 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}"
13755 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}"
13756 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13757 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}"
13758 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}"
13768 case $cc_basename in
13770 # FIXME: insert proper C++ library support
13774 # Green Hills C++ Compiler
13775 # FIXME: insert proper C++ library support
13779 # FIXME: insert proper C++ library support
13786 # C++ shared libraries reported to be fairly broken before
13792 archive_cmds_need_lc_CXX=no
13795 freebsd* | dragonfly*)
13796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13802 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13803 link_all_deplibs_CXX=yes
13807 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13808 hardcode_libdir_separator_CXX=:
13809 export_dynamic_flag_spec_CXX='${wl}-E'
13810 hardcode_direct_CXX=yes
13811 hardcode_minus_L_CXX=yes # Not in the search PATH,
13812 # but as the default
13813 # location of the library.
13815 case $cc_basename in
13817 # FIXME: insert proper C++ library support
13821 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'
13822 # Commands to make compiler produce verbose output that lists
13823 # what "hidden" libraries, object files and flags are used when
13824 # linking a shared library.
13826 # There doesn't appear to be a way to prevent this compiler from
13827 # explicitly linking system object files so we need to strip them
13828 # from the output so that they don't get included in the library
13830 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13833 if test "$GXX" = yes; then
13834 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13836 # FIXME: insert proper C++ library support
13844 if test $with_gnu_ld = no; then
13845 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13846 hardcode_libdir_separator_CXX=:
13852 export_dynamic_flag_spec_CXX='${wl}-E'
13858 hardcode_direct_CXX=no
13859 hardcode_shlibpath_var_CXX=no
13862 hardcode_direct_CXX=yes
13863 hardcode_direct_absolute_CXX=yes
13864 hardcode_minus_L_CXX=yes # Not in the search PATH,
13865 # but as the default
13866 # location of the library.
13870 case $cc_basename in
13872 # FIXME: insert proper C++ library support
13878 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13881 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13884 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13887 # Commands to make compiler produce verbose output that lists
13888 # what "hidden" libraries, object files and flags are used when
13889 # linking a shared library.
13891 # There doesn't appear to be a way to prevent this compiler from
13892 # explicitly linking system object files so we need to strip them
13893 # from the output so that they don't get included in the library
13895 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; func_echo_all "$list"'
13898 if test "$GXX" = yes; then
13899 if test $with_gnu_ld = no; then
13902 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13908 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13913 # FIXME: insert proper C++ library support
13921 hardcode_direct_CXX=no
13922 hardcode_shlibpath_var_CXX=no
13923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13924 export_dynamic_flag_spec_CXX='${wl}-E'
13925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13926 # Instead, shared libraries are loaded at an image base (0x10000000 by
13927 # default) and relocated if they conflict, which is a slow very memory
13928 # consuming and fragmenting process. To avoid this, we pick a random,
13929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13931 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'
13932 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'
13935 case $cc_basename in
13938 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13940 # Archives containing C++ object files must be created using
13941 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13942 # necessary to make sure instantiated templates are included
13944 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13947 if test "$GXX" = yes; then
13948 if test "$with_gnu_ld" = no; then
13949 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13951 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13954 link_all_deplibs_CXX=yes
13957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13958 hardcode_libdir_separator_CXX=:
13959 inherit_rpath_CXX=yes
13962 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13963 case $cc_basename in
13965 # Kuck and Associates, Inc. (KAI) C++ Compiler
13967 # KCC will only create a shared library if the output file
13968 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13969 # to its proper name (with version) after linking.
13970 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'
13971 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'
13972 # Commands to make compiler produce verbose output that lists
13973 # what "hidden" libraries, object files and flags are used when
13974 # linking a shared library.
13976 # There doesn't appear to be a way to prevent this compiler from
13977 # explicitly linking system object files so we need to strip them
13978 # from the output so that they don't get included in the library
13980 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; func_echo_all "$list"'
13982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13985 # Archives containing C++ object files must be created using
13986 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13987 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13992 # version 8.0 and above of icpc choke on multiply defined symbols
13993 # if we add $predep_objects and $postdep_objects, however 7.1 and
13994 # earlier do not add the objects themselves.
13995 case `$CC -V 2>&1` in
13997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998 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'
14000 *) # Version 8.0 or newer
14003 ia64*) tmp_idyn=' -i_dynamic';;
14005 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006 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'
14009 archive_cmds_need_lc_CXX=no
14010 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14012 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14015 # Portland Group C++ compiler
14017 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14018 prelink_cmds_CXX='tpldir=Template.dir~
14020 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14021 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14022 old_archive_cmds_CXX='tpldir=Template.dir~
14024 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14025 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14027 archive_cmds_CXX='tpldir=Template.dir~
14029 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14030 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14031 archive_expsym_cmds_CXX='tpldir=Template.dir~
14033 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14034 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14036 *) # Version 6 and above use weak symbols
14037 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14038 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'
14042 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14043 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14044 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14048 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049 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'
14051 runpath_var=LD_RUN_PATH
14052 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14053 hardcode_libdir_separator_CXX=:
14055 # Commands to make compiler produce verbose output that lists
14056 # what "hidden" libraries, object files and flags are used when
14057 # linking a shared library.
14059 # There doesn't appear to be a way to prevent this compiler from
14060 # explicitly linking system object files so we need to strip them
14061 # from the output so that they don't get included in the library
14063 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
14065 xl* | mpixl* | bgxl*)
14066 # IBM XL 8.0 on PPC, with GNU ld
14067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14068 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14069 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 if test "x$supports_anon_versioning" = xyes; then
14071 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073 echo "local: *; };" >> $output_objdir/$libname.ver~
14074 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14078 case `$CC -V 2>&1 | sed 5q` in
14081 no_undefined_flag_CXX=' -zdefs'
14082 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14083 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'
14084 hardcode_libdir_flag_spec_CXX='-R$libdir'
14085 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14086 compiler_needs_object_CXX=yes
14088 # Not sure whether something based on
14089 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14091 output_verbose_link_cmd='func_echo_all'
14093 # Archives containing C++ object files must be created using
14094 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14095 # necessary to make sure instantiated templates are included
14097 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14105 # FIXME: insert proper C++ library support
14110 # FIXME: insert proper C++ library support
14115 case $cc_basename in
14117 # FIXME: insert proper C++ library support
14121 # FIXME: insert proper C++ library support
14128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14129 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14131 hardcode_libdir_flag_spec_CXX='-R$libdir'
14132 hardcode_direct_CXX=yes
14133 hardcode_shlibpath_var_CXX=no
14135 # Workaround some broken pre-1.5 toolchains
14136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14144 # C++ shared libraries are fairly broken
14149 if test -f /usr/libexec/ld.so; then
14150 hardcode_direct_CXX=yes
14151 hardcode_shlibpath_var_CXX=no
14152 hardcode_direct_absolute_CXX=yes
14153 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14155 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14156 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14157 export_dynamic_flag_spec_CXX='${wl}-E'
14158 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14160 output_verbose_link_cmd=func_echo_all
14166 osf3* | osf4* | osf5*)
14167 case $cc_basename in
14169 # Kuck and Associates, Inc. (KAI) C++ Compiler
14171 # KCC will only create a shared library if the output file
14172 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14173 # to its proper name (with version) after linking.
14174 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'
14176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14177 hardcode_libdir_separator_CXX=:
14179 # Archives containing C++ object files must be created using
14180 # the KAI C++ compiler.
14182 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14183 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14187 # Rational C++ 2.4.1
14188 # FIXME: insert proper C++ library support
14194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14195 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14199 allow_undefined_flag_CXX=' -expect_unresolved \*'
14200 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14201 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14202 echo "-hidden">> $lib.exp~
14203 $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~
14205 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14209 hardcode_libdir_separator_CXX=:
14211 # Commands to make compiler produce verbose output that lists
14212 # what "hidden" libraries, object files and flags are used when
14213 # linking a shared library.
14215 # There doesn't appear to be a way to prevent this compiler from
14216 # explicitly linking system object files so we need to strip them
14217 # from the output so that they don't get included in the library
14219 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
14222 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14223 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14226 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14229 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14234 hardcode_libdir_separator_CXX=:
14236 # Commands to make compiler produce verbose output that lists
14237 # what "hidden" libraries, object files and flags are used when
14238 # linking a shared library.
14239 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14242 # FIXME: insert proper C++ library support
14250 # FIXME: insert proper C++ library support
14255 case $cc_basename in
14258 # FIXME: insert proper C++ library support
14263 # FIXME: insert proper C++ library support
14267 # FIXME: insert proper C++ library support
14274 case $cc_basename in
14276 # Sun C++ 4.2, 5.x and Centerline C++
14277 archive_cmds_need_lc_CXX=yes
14278 no_undefined_flag_CXX=' -zdefs'
14279 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14280 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14281 $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'
14283 hardcode_libdir_flag_spec_CXX='-R$libdir'
14284 hardcode_shlibpath_var_CXX=no
14286 solaris2.[0-5] | solaris2.[0-5].*) ;;
14288 # The compiler driver will combine and reorder linker options,
14289 # but understands `-z linker_flag'.
14290 # Supported since Solaris 2.6 (maybe 2.5.1?)
14291 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14294 link_all_deplibs_CXX=yes
14296 output_verbose_link_cmd='func_echo_all'
14298 # Archives containing C++ object files must be created using
14299 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14300 # necessary to make sure instantiated templates are included
14302 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14305 # Green Hills C++ Compiler
14306 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14308 # The C++ compiler must be used to create the archive.
14309 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14312 # GNU C++ compiler with Solaris linker
14313 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14314 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14315 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14316 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14317 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14318 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14320 # Commands to make compiler produce verbose output that lists
14321 # what "hidden" libraries, object files and flags are used when
14322 # linking a shared library.
14323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14325 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14327 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14328 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14329 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14331 # Commands to make compiler produce verbose output that lists
14332 # what "hidden" libraries, object files and flags are used when
14333 # linking a shared library.
14334 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14337 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14339 solaris2.[0-5] | solaris2.[0-5].*) ;;
14341 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14349 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14350 no_undefined_flag_CXX='${wl}-z,text'
14351 archive_cmds_need_lc_CXX=no
14352 hardcode_shlibpath_var_CXX=no
14353 runpath_var='LD_RUN_PATH'
14355 case $cc_basename in
14357 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14361 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14362 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 sysv5* | sco3.2v5* | sco5v6*)
14368 # Note: We can NOT use -z defs as we might desire, because we do not
14369 # link with -lc, and that would cause any symbols used from libc to
14370 # always be unresolved, which means just about no library would
14371 # ever link correctly. If we're not using GNU ld we use -z text
14372 # though, which does catch some bad symbols but isn't as heavy-handed
14374 no_undefined_flag_CXX='${wl}-z,text'
14375 allow_undefined_flag_CXX='${wl}-z,nodefs'
14376 archive_cmds_need_lc_CXX=no
14377 hardcode_shlibpath_var_CXX=no
14378 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14379 hardcode_libdir_separator_CXX=':'
14380 link_all_deplibs_CXX=yes
14381 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14382 runpath_var='LD_RUN_PATH'
14384 case $cc_basename in
14386 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14387 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14388 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14389 '"$old_archive_cmds_CXX"
14390 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14391 '"$reload_cmds_CXX"
14394 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14395 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14401 case $cc_basename in
14403 # NonStop-UX NCC 3.20
14404 # FIXME: insert proper C++ library support
14408 # FIXME: insert proper C++ library support
14415 # FIXME: insert proper C++ library support
14420 # FIXME: insert proper C++ library support
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14426 $as_echo "$ld_shlibs_CXX" >&6; }
14427 test "$ld_shlibs_CXX" = no && can_build_shared=no
14433 ## There is no encapsulation within the following macros, do not change
14434 ## the running order or otherwise move them around unless you know exactly
14435 ## what you are doing...
14436 # Dependencies to place before and after the object being linked:
14437 predep_objects_CXX=
14438 postdep_objects_CXX=
14441 compiler_lib_search_path_CXX=
14443 cat > conftest.$ac_ext <<_LT_EOF
14447 Foo (void) { a = 0; }
14454 _lt_libdeps_save_CFLAGS=$CFLAGS
14455 case "$CC $CFLAGS " in #(
14456 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14457 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14458 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14462 (eval $ac_compile) 2>&5
14464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14465 test $ac_status = 0; }; then
14466 # Parse the compiler output and extract the necessary
14467 # objects, libraries and library flags.
14469 # Sentinel used to keep track of whether or not we are before
14470 # the conftest object file.
14471 pre_test_object_deps_done=no
14473 for p in `eval "$output_verbose_link_cmd"`; do
14474 case ${prev}${p} in
14477 # Some compilers place space between "-{L,R}" and the path.
14478 # Remove the space.
14479 if test $p = "-L" ||
14480 test $p = "-R"; then
14485 # Expand the sysroot to ease extracting the directories later.
14486 if test -z "$prev"; then
14488 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14489 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14490 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14494 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14496 if test "$pre_test_object_deps_done" = no; then
14499 # Internal compiler library paths should come after those
14500 # provided the user. The postdeps already come after the
14501 # user supplied libs so there is no need to process them.
14502 if test -z "$compiler_lib_search_path_CXX"; then
14503 compiler_lib_search_path_CXX="${prev}${p}"
14505 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14508 # The "-l" case would never come before the object being
14509 # linked, so don't bother handling this case.
14512 if test -z "$postdeps_CXX"; then
14513 postdeps_CXX="${prev}${p}"
14515 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14521 *.lto.$objext) ;; # Ignore GCC LTO objects
14523 # This assumes that the test object file only shows up
14524 # once in the compiler output.
14525 if test "$p" = "conftest.$objext"; then
14526 pre_test_object_deps_done=yes
14530 if test "$pre_test_object_deps_done" = no; then
14531 if test -z "$predep_objects_CXX"; then
14532 predep_objects_CXX="$p"
14534 predep_objects_CXX="$predep_objects_CXX $p"
14537 if test -z "$postdep_objects_CXX"; then
14538 postdep_objects_CXX="$p"
14540 postdep_objects_CXX="$postdep_objects_CXX $p"
14545 *) ;; # Ignore the rest.
14553 echo "libtool.m4: error: problem compiling CXX test program"
14556 $RM -f confest.$objext
14557 CFLAGS=$_lt_libdeps_save_CFLAGS
14559 # PORTME: override above test on systems where it is broken
14562 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14563 # hack all around it, let's just trust "g++" to DTRT.
14564 predep_objects_CXX=
14565 postdep_objects_CXX=
14570 case `$CC -V 2>&1 | sed 5q` in
14574 # The more standards-conforming stlport4 library is
14575 # incompatible with the Cstd library. Avoid specifying
14576 # it if it's in CXXFLAGS. Ignore libCrun as
14577 # -library=stlport4 depends on it.
14578 case " $CXX $CXXFLAGS " in
14579 *" -library=stlport4 "*)
14580 solaris_use_stlport4=yes
14584 if test "$solaris_use_stlport4" != yes; then
14585 postdeps_CXX='-library=Cstd -library=Crun'
14592 case $cc_basename in
14594 # The more standards-conforming stlport4 library is
14595 # incompatible with the Cstd library. Avoid specifying
14596 # it if it's in CXXFLAGS. Ignore libCrun as
14597 # -library=stlport4 depends on it.
14598 case " $CXX $CXXFLAGS " in
14599 *" -library=stlport4 "*)
14600 solaris_use_stlport4=yes
14604 # Adding this requires a known-good setup of shared libraries for
14605 # Sun compiler versions before 5.6, else PIC objects from an old
14606 # archive will be linked into the output, leading to subtle bugs.
14607 if test "$solaris_use_stlport4" != yes; then
14608 postdeps_CXX='-library=Cstd -library=Crun'
14616 case " $postdeps_CXX " in
14617 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14619 compiler_lib_search_dirs_CXX=
14620 if test -n "${compiler_lib_search_path_CXX}"; then
14621 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14654 lt_prog_compiler_wl_CXX=
14655 lt_prog_compiler_pic_CXX=
14656 lt_prog_compiler_static_CXX=
14659 # C++ specific cases for pic, static, wl, etc.
14660 if test "$GXX" = yes; then
14661 lt_prog_compiler_wl_CXX='-Wl,'
14662 lt_prog_compiler_static_CXX='-static'
14666 # All AIX code is PIC.
14667 if test "$host_cpu" = ia64; then
14668 # AIX 5 now supports IA64 processor
14669 lt_prog_compiler_static_CXX='-Bstatic'
14676 # see comment about AmigaOS4 .so support
14677 lt_prog_compiler_pic_CXX='-fPIC'
14680 # FIXME: we need at least 68020 code to build shared libraries, but
14681 # adding the `-m68020' flag to GCC prevents building anything better,
14683 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14688 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14689 # PIC is the default for these OSes.
14691 mingw* | cygwin* | os2* | pw32* | cegcc*)
14692 # This hack is so that the source file can tell whether it is being
14693 # built for inclusion in a dll (and should export symbols for example).
14694 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14695 # (--disable-auto-import) libraries
14696 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14698 darwin* | rhapsody*)
14699 # PIC is the default on this platform
14700 # Common symbols not allowed in MH_DYLIB files
14701 lt_prog_compiler_pic_CXX='-fno-common'
14704 # DJGPP does not support shared libraries at all
14705 lt_prog_compiler_pic_CXX=
14708 # PIC is the default for Haiku.
14709 # The "-static" flag exists, but is broken.
14710 lt_prog_compiler_static_CXX=
14713 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14714 # Instead, we relocate shared libraries at runtime.
14717 if test -d /usr/nec; then
14718 lt_prog_compiler_pic_CXX=-Kconform_pic
14722 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14723 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14724 # sets the default TLS model and affects inlining.
14729 lt_prog_compiler_pic_CXX='-fPIC'
14734 # QNX uses GNU C++, but need to define -shared option too, otherwise
14735 # it will coredump.
14736 lt_prog_compiler_pic_CXX='-fPIC -shared'
14739 lt_prog_compiler_pic_CXX='-fPIC'
14745 # All AIX code is PIC.
14746 if test "$host_cpu" = ia64; then
14747 # AIX 5 now supports IA64 processor
14748 lt_prog_compiler_static_CXX='-Bstatic'
14750 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14754 case $cc_basename in
14756 # Green Hills C++ Compiler
14757 # _LT_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"
14761 mingw* | cygwin* | os2* | pw32* | cegcc*)
14762 # This hack is so that the source file can tell whether it is being
14763 # built for inclusion in a dll (and should export symbols for example).
14764 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14767 case $cc_basename in
14769 lt_prog_compiler_pic_CXX='-KPIC'
14772 # Green Hills C++ Compiler
14773 lt_prog_compiler_pic_CXX='-pic'
14779 freebsd* | dragonfly*)
14780 # FreeBSD uses GNU C++
14782 hpux9* | hpux10* | hpux11*)
14783 case $cc_basename in
14785 lt_prog_compiler_wl_CXX='-Wl,'
14786 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14787 if test "$host_cpu" != ia64; then
14788 lt_prog_compiler_pic_CXX='+Z'
14792 lt_prog_compiler_wl_CXX='-Wl,'
14793 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14799 lt_prog_compiler_pic_CXX='+Z'
14808 # This is c89, which is MS Visual C++ (no shared libs)
14809 # Anyone wants to do a port?
14811 irix5* | irix6* | nonstopux*)
14812 case $cc_basename in
14814 lt_prog_compiler_wl_CXX='-Wl,'
14815 lt_prog_compiler_static_CXX='-non_shared'
14816 # CC pic flag -KPIC is the default.
14822 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14823 case $cc_basename in
14826 lt_prog_compiler_wl_CXX='--backend -Wl,'
14827 lt_prog_compiler_pic_CXX='-fPIC'
14830 # old Intel C++ for x86_64 which still supported -KPIC.
14831 lt_prog_compiler_wl_CXX='-Wl,'
14832 lt_prog_compiler_pic_CXX='-KPIC'
14833 lt_prog_compiler_static_CXX='-static'
14836 # Intel C++, used to be incompatible with GCC.
14837 # ICC 10 doesn't accept -KPIC any more.
14838 lt_prog_compiler_wl_CXX='-Wl,'
14839 lt_prog_compiler_pic_CXX='-fPIC'
14840 lt_prog_compiler_static_CXX='-static'
14843 # Portland Group C++ compiler
14844 lt_prog_compiler_wl_CXX='-Wl,'
14845 lt_prog_compiler_pic_CXX='-fpic'
14846 lt_prog_compiler_static_CXX='-Bstatic'
14850 # Make sure the PIC flag is empty. It appears that all Alpha
14851 # Linux and Compaq Tru64 Unix objects are PIC.
14852 lt_prog_compiler_pic_CXX=
14853 lt_prog_compiler_static_CXX='-non_shared'
14855 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14856 # IBM XL 8.0, 9.0 on PPC and BlueGene
14857 lt_prog_compiler_wl_CXX='-Wl,'
14858 lt_prog_compiler_pic_CXX='-qpic'
14859 lt_prog_compiler_static_CXX='-qstaticlink'
14862 case `$CC -V 2>&1 | sed 5q` in
14865 lt_prog_compiler_pic_CXX='-KPIC'
14866 lt_prog_compiler_static_CXX='-Bstatic'
14867 lt_prog_compiler_wl_CXX='-Qoption ld '
14878 case $cc_basename in
14880 lt_prog_compiler_pic_CXX='-W c,exportall'
14886 netbsd* | netbsdelf*-gnu)
14889 # QNX uses GNU C++, but need to define -shared option too, otherwise
14890 # it will coredump.
14891 lt_prog_compiler_pic_CXX='-fPIC -shared'
14893 osf3* | osf4* | osf5*)
14894 case $cc_basename in
14896 lt_prog_compiler_wl_CXX='--backend -Wl,'
14899 # Rational C++ 2.4.1
14900 lt_prog_compiler_pic_CXX='-pic'
14903 # Digital/Compaq C++
14904 lt_prog_compiler_wl_CXX='-Wl,'
14905 # Make sure the PIC flag is empty. It appears that all Alpha
14906 # Linux and Compaq Tru64 Unix objects are PIC.
14907 lt_prog_compiler_pic_CXX=
14908 lt_prog_compiler_static_CXX='-non_shared'
14917 case $cc_basename in
14919 # Sun C++ 4.2, 5.x and Centerline C++
14920 lt_prog_compiler_pic_CXX='-KPIC'
14921 lt_prog_compiler_static_CXX='-Bstatic'
14922 lt_prog_compiler_wl_CXX='-Qoption ld '
14925 # Green Hills C++ Compiler
14926 lt_prog_compiler_pic_CXX='-PIC'
14933 case $cc_basename in
14936 lt_prog_compiler_pic_CXX='-pic'
14937 lt_prog_compiler_static_CXX='-Bstatic'
14941 lt_prog_compiler_pic_CXX='-pic'
14947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14948 case $cc_basename in
14950 lt_prog_compiler_wl_CXX='-Wl,'
14951 lt_prog_compiler_pic_CXX='-KPIC'
14952 lt_prog_compiler_static_CXX='-Bstatic'
14957 case $cc_basename in
14959 # NonStop-UX NCC 3.20
14960 lt_prog_compiler_pic_CXX='-KPIC'
14969 lt_prog_compiler_can_build_shared_CXX=no
14975 # For platforms which do not support PIC, -DPIC is meaningless:
14977 lt_prog_compiler_pic_CXX=
14980 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14986 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14987 $as_echo_n "(cached) " >&6
14989 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14992 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14993 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14996 # Check to make sure the PIC flag actually works.
14998 if test -n "$lt_prog_compiler_pic_CXX"; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15000 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15001 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15002 $as_echo_n "(cached) " >&6
15004 lt_cv_prog_compiler_pic_works_CXX=no
15005 ac_outfile=conftest.$ac_objext
15006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15008 # Insert the option either (1) after the last *FLAGS variable, or
15009 # (2) before a word containing "conftest.", or (3) at the end.
15010 # Note that $ac_compile itself does not contain backslashes and begins
15011 # with a dollar sign (not a hyphen), so the echo should work correctly.
15012 # The option is referenced via a variable to avoid confusing sed.
15013 lt_compile=`echo "$ac_compile" | $SED \
15014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15016 -e 's:$: $lt_compiler_flag:'`
15017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15018 (eval "$lt_compile" 2>conftest.err)
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 if (exit $ac_status) && test -s "$ac_outfile"; then
15023 # The compiler can only warn and ignore the option if not recognized
15024 # So say no if there are warnings other than the usual output.
15025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15027 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15028 lt_cv_prog_compiler_pic_works_CXX=yes
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15035 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15037 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15038 case $lt_prog_compiler_pic_CXX in
15040 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15043 lt_prog_compiler_pic_CXX=
15044 lt_prog_compiler_can_build_shared_CXX=no
15054 # Check to make sure the static flag actually works.
15056 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15058 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15059 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15060 $as_echo_n "(cached) " >&6
15062 lt_cv_prog_compiler_static_works_CXX=no
15063 save_LDFLAGS="$LDFLAGS"
15064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15067 # The linker can only warn and ignore the option if not recognized
15068 # So say no if there are warnings
15069 if test -s conftest.err; then
15070 # Append any errors to the config.log.
15071 cat conftest.err 1>&5
15072 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15074 if diff conftest.exp conftest.er2 >/dev/null; then
15075 lt_cv_prog_compiler_static_works_CXX=yes
15078 lt_cv_prog_compiler_static_works_CXX=yes
15082 LDFLAGS="$save_LDFLAGS"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15086 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15088 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15091 lt_prog_compiler_static_CXX=
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15099 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15100 $as_echo_n "(cached) " >&6
15102 lt_cv_prog_compiler_c_o_CXX=no
15103 $RM -r conftest 2>/dev/null
15107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15109 lt_compiler_flag="-o out/conftest2.$ac_objext"
15110 # Insert the option either (1) after the last *FLAGS variable, or
15111 # (2) before a word containing "conftest.", or (3) at the end.
15112 # Note that $ac_compile itself does not contain backslashes and begins
15113 # with a dollar sign (not a hyphen), so the echo should work correctly.
15114 lt_compile=`echo "$ac_compile" | $SED \
15115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15117 -e 's:$: $lt_compiler_flag:'`
15118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15119 (eval "$lt_compile" 2>out/conftest.err)
15121 cat out/conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15125 # The compiler can only warn and ignore the option if not recognized
15126 # So say no if there are warnings
15127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15130 lt_cv_prog_compiler_c_o_CXX=yes
15135 # SGI C++ compiler will create directory out/ii_files/ for
15136 # template instantiation
15137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15138 $RM out/* && rmdir out
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15145 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15150 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15151 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15152 $as_echo_n "(cached) " >&6
15154 lt_cv_prog_compiler_c_o_CXX=no
15155 $RM -r conftest 2>/dev/null
15159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15161 lt_compiler_flag="-o out/conftest2.$ac_objext"
15162 # Insert the option either (1) after the last *FLAGS variable, or
15163 # (2) before a word containing "conftest.", or (3) at the end.
15164 # Note that $ac_compile itself does not contain backslashes and begins
15165 # with a dollar sign (not a hyphen), so the echo should work correctly.
15166 lt_compile=`echo "$ac_compile" | $SED \
15167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15169 -e 's:$: $lt_compiler_flag:'`
15170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15171 (eval "$lt_compile" 2>out/conftest.err)
15173 cat out/conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15177 # The compiler can only warn and ignore the option if not recognized
15178 # So say no if there are warnings
15179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15182 lt_cv_prog_compiler_c_o_CXX=yes
15187 # SGI C++ compiler will create directory out/ii_files/ for
15188 # template instantiation
15189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15190 $RM out/* && rmdir out
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15197 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15202 hard_links="nottested"
15203 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15204 # do not overwrite the value of need_locks provided by the user
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15206 $as_echo_n "checking if we can lock with hard links... " >&6; }
15209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15211 ln conftest.a conftest.b 2>&5 || hard_links=no
15212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15214 $as_echo "$hard_links" >&6; }
15215 if test "$hard_links" = no; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15217 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15229 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15230 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15233 # If we're using GNU nm, then we don't want the "-C" option.
15234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235 # Also, AIX nm treats weak defined symbols like other global defined
15236 # symbols, whereas GNU nm marks them as "W".
15237 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15238 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15240 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'
15244 export_symbols_cmds_CXX="$ltdll_cmds"
15246 cygwin* | mingw* | cegcc*)
15247 case $cc_basename in
15249 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15252 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15253 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15257 linux* | k*bsd*-gnu | gnu*)
15258 link_all_deplibs_CXX=no
15261 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15266 $as_echo "$ld_shlibs_CXX" >&6; }
15267 test "$ld_shlibs_CXX" = no && can_build_shared=no
15269 with_gnu_ld_CXX=$with_gnu_ld
15277 # Do we need to explicitly link libc?
15279 case "x$archive_cmds_need_lc_CXX" in
15281 # Assume -lc should be added
15282 archive_cmds_need_lc_CXX=yes
15284 if test "$enable_shared" = yes && test "$GCC" = yes; then
15285 case $archive_cmds_CXX in
15287 # FIXME: we may have to deal with multi-command sequences.
15290 # Test whether the compiler implicitly links with -lc since on some
15291 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15292 # to ld, don't add -lc before -lgcc.
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15294 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15295 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15296 $as_echo_n "(cached) " >&6
15299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15302 (eval $ac_compile) 2>&5
15304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15305 test $ac_status = 0; } 2>conftest.err; then
15308 libobjs=conftest.$ac_objext
15310 wl=$lt_prog_compiler_wl_CXX
15311 pic_flag=$lt_prog_compiler_pic_CXX
15317 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15318 allow_undefined_flag_CXX=
15319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15320 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15323 test $ac_status = 0; }
15325 lt_cv_archive_cmds_need_lc_CXX=no
15327 lt_cv_archive_cmds_need_lc_CXX=yes
15329 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15331 cat conftest.err 1>&5
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15337 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15338 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15407 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15409 library_names_spec=
15410 libname_spec='lib$name'
15414 postuninstall_cmds=
15418 shlibpath_overrides_runpath=unknown
15420 dynamic_linker="$host_os ld.so"
15421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15422 need_lib_prefix=unknown
15423 hardcode_into_libs=no
15425 # when you set need_version to no, make sure it does not cause -set_version
15426 # flags to be left without arguments
15427 need_version=unknown
15431 version_type=linux # correct to gnu/linux during the next big refactor
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15433 shlibpath_var=LIBPATH
15435 # AIX 3 has no versioning support, so we append a major version to the name.
15436 soname_spec='${libname}${release}${shared_ext}$major'
15440 version_type=linux # correct to gnu/linux during the next big refactor
15443 hardcode_into_libs=yes
15444 if test "$host_cpu" = ia64; then
15445 # AIX 5 supports IA64
15446 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15447 shlibpath_var=LD_LIBRARY_PATH
15449 # With GCC up to 2.95.x, collect2 would create an import file
15450 # for dependence libraries. The import file would start with
15451 # the line `#! .'. This would cause the generated library to
15452 # depend on `.', always an invalid library. This was fixed in
15453 # development snapshots of GCC prior to 3.0.
15455 aix4 | aix4.[01] | aix4.[01].*)
15456 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15458 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15461 can_build_shared=no
15465 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15466 # soname into executable. Probably we can add versioning support to
15467 # collect2, so additional links can be useful in future.
15468 if test "$aix_use_runtimelinking" = yes; then
15469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15470 # instead of lib<name>.a to let people know that these are not
15471 # typical AIX shared libraries.
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 # We preserve .a as extension for shared libraries through AIX4.2
15475 # and later when we are not doing run time linking.
15476 library_names_spec='${libname}${release}.a $libname.a'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LIBPATH
15486 # Since July 2007 AmigaOS4 officially supports .so libraries.
15487 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 library_names_spec='$libname.ixlibrary $libname.a'
15492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15493 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15499 library_names_spec='${libname}${shared_ext}'
15500 dynamic_linker="$host_os ld.so"
15501 shlibpath_var=LIBRARY_PATH
15505 version_type=linux # correct to gnu/linux during the next big refactor
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15512 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15513 # the default ld.so.conf also contains /usr/contrib/lib and
15514 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15515 # libtool to hard-code these into programs
15518 cygwin* | mingw* | pw32* | cegcc*)
15519 version_type=windows
15524 case $GCC,$cc_basename in
15527 library_names_spec='$libname.dll.a'
15528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15529 postinstall_cmds='base_file=`basename \${file}`~
15530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15531 dldir=$destdir/`dirname \$dlpath`~
15532 test -d \$dldir || mkdir -p \$dldir~
15533 $install_prog $dir/$dlname \$dldir/$dlname~
15534 chmod a+x \$dldir/$dlname~
15535 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15536 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15539 dlpath=$dir/\$dldll~
15541 shlibpath_overrides_runpath=yes
15545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15546 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15550 # MinGW DLLs use traditional 'lib' prefix
15551 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15554 # pw32 DLLs use 'pw' prefix rather than 'lib'
15555 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15558 dynamic_linker='Win32 ld.exe'
15563 libname_spec='$name'
15564 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15565 library_names_spec='${libname}.dll.lib'
15569 sys_lib_search_path_spec=
15572 for lt_path in $LIB
15575 # Let DOS variable expansion print the short 8.3 style file name.
15576 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15577 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15580 # Convert to MSYS style.
15581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15584 # Convert to unix form, then to dos form, then back to unix form
15585 # but this time dos style (no spaces!) so that the unix form looks
15586 # like /cygdrive/c/PROGRA~1:/cygdr...
15587 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15588 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15589 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15592 sys_lib_search_path_spec="$LIB"
15593 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15594 # It is most probably a Windows format PATH.
15595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15599 # FIXME: find the short name or the path components, as spaces are
15600 # common. (e.g. "Program Files" -> "PROGRA~1")
15604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15605 postinstall_cmds='base_file=`basename \${file}`~
15606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15607 dldir=$destdir/`dirname \$dlpath`~
15608 test -d \$dldir || mkdir -p \$dldir~
15609 $install_prog $dir/$dlname \$dldir/$dlname'
15610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15611 dlpath=$dir/\$dldll~
15613 shlibpath_overrides_runpath=yes
15614 dynamic_linker='Win32 link.exe'
15618 # Assume MSVC wrapper
15619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15620 dynamic_linker='Win32 ld.exe'
15623 # FIXME: first we should search . and the directory the executable is in
15627 darwin* | rhapsody*)
15628 dynamic_linker="$host_os dyld"
15629 version_type=darwin
15632 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15633 soname_spec='${libname}${release}${major}$shared_ext'
15634 shlibpath_overrides_runpath=yes
15635 shlibpath_var=DYLD_LIBRARY_PATH
15636 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15642 version_type=linux # correct to gnu/linux during the next big refactor
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 shlibpath_var=LD_LIBRARY_PATH
15650 freebsd* | dragonfly*)
15651 # DragonFly does not have aout. When/if they implement a new
15652 # versioning mechanism, adjust this.
15653 if test -x /usr/bin/objformat; then
15654 objformat=`/usr/bin/objformat`
15657 freebsd[23].*) objformat=aout ;;
15658 *) objformat=elf ;;
15661 version_type=freebsd-$objformat
15662 case $version_type in
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15673 shlibpath_var=LD_LIBRARY_PATH
15676 shlibpath_overrides_runpath=yes
15678 freebsd3.[01]* | freebsdelf3.[01]*)
15679 shlibpath_overrides_runpath=yes
15680 hardcode_into_libs=yes
15682 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15683 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15684 shlibpath_overrides_runpath=no
15685 hardcode_into_libs=yes
15687 *) # from 4.6 on, and DragonFly
15688 shlibpath_overrides_runpath=yes
15689 hardcode_into_libs=yes
15695 version_type=linux # correct to gnu/linux during the next big refactor
15698 dynamic_linker="$host_os runtime_loader"
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 shlibpath_var=LIBRARY_PATH
15702 shlibpath_overrides_runpath=yes
15703 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15704 hardcode_into_libs=yes
15707 hpux9* | hpux10* | hpux11*)
15708 # Give a soname corresponding to the major version so that dld.sl refuses to
15709 # link against other versions.
15716 hardcode_into_libs=yes
15717 dynamic_linker="$host_os dld.so"
15718 shlibpath_var=LD_LIBRARY_PATH
15719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 if test "X$HPUX_IA64_MODE" = X32; then
15723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15731 hardcode_into_libs=yes
15732 dynamic_linker="$host_os dld.sl"
15733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15742 dynamic_linker="$host_os dld.sl"
15743 shlibpath_var=SHLIB_PATH
15744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15749 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15750 postinstall_cmds='chmod 555 $lib'
15751 # or fails outright, so override atomically:
15752 install_override_mode=555
15756 version_type=linux # correct to gnu/linux during the next big refactor
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15767 irix5* | irix6* | nonstopux*)
15769 nonstopux*) version_type=nonstopux ;;
15771 if test "$lt_cv_prog_gnu_ld" = yes; then
15772 version_type=linux # correct to gnu/linux during the next big refactor
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15782 irix5* | nonstopux*)
15783 libsuff= shlibsuff=
15786 case $LD in # libtool.m4 will add one of these switches to LD
15787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15788 libsuff= shlibsuff= libmagic=32-bit;;
15789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15790 libsuff=32 shlibsuff=N32 libmagic=N32;;
15791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15793 *) libsuff= shlibsuff= libmagic=never-match;;
15797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15798 shlibpath_overrides_runpath=no
15799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15801 hardcode_into_libs=yes
15804 # No shared lib support for Linux oldld, aout, or coff.
15805 linux*oldld* | linux*aout* | linux*coff*)
15809 # This must be glibc/ELF.
15810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15811 version_type=linux # correct to gnu/linux during the next big refactor
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15815 soname_spec='${libname}${release}${shared_ext}$major'
15816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=no
15820 # Some binutils ld are patched to set DT_RUNPATH
15821 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15822 $as_echo_n "(cached) " >&6
15824 lt_cv_shlibpath_overrides_runpath=no
15825 save_LDFLAGS=$LDFLAGS
15826 save_libdir=$libdir
15827 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15828 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15840 if ac_fn_cxx_try_link "$LINENO"; then :
15841 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15842 lt_cv_shlibpath_overrides_runpath=yes
15845 rm -f core conftest.err conftest.$ac_objext \
15846 conftest$ac_exeext conftest.$ac_ext
15847 LDFLAGS=$save_LDFLAGS
15848 libdir=$save_libdir
15852 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15854 # This implies no fast_install, which is unacceptable.
15855 # Some rework will be needed to allow for fast_install
15856 # before this can be enabled.
15857 hardcode_into_libs=yes
15859 # Append ld.so.conf contents to the search path
15860 if test -f /etc/ld.so.conf; then
15861 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;s/"//g;/^$/d' | tr '\n' ' '`
15862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15865 # We used to test for /lib/ld.so.1 and disable shared libraries on
15866 # powerpc, because MkLinux only supported shared libraries with the
15867 # GNU dynamic linker. Since this was broken with cross compilers,
15868 # most powerpc-linux boxes support dynamic linking these days and
15869 # people can always --disable-shared, the test was removed, and we
15870 # assume the GNU/Linux dynamic linker is in use.
15871 dynamic_linker='GNU/Linux ld.so'
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 shlibpath_overrides_runpath=no
15882 hardcode_into_libs=yes
15883 dynamic_linker='NetBSD ld.elf_so'
15890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15893 dynamic_linker='NetBSD (a.out) ld.so'
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 dynamic_linker='NetBSD ld.elf_so'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=yes
15901 hardcode_into_libs=yes
15905 version_type=linux # correct to gnu/linux during the next big refactor
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15916 soname_spec='${libname}${release}${shared_ext}$major'
15917 shlibpath_var=LD_LIBRARY_PATH
15918 shlibpath_overrides_runpath=no
15919 hardcode_into_libs=yes
15920 dynamic_linker='ldqnx.so'
15925 sys_lib_dlsearch_path_spec="/usr/lib"
15927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15930 *) need_version=no ;;
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15937 openbsd2.[89] | openbsd2.[89].*)
15938 shlibpath_overrides_runpath=no
15941 shlibpath_overrides_runpath=yes
15945 shlibpath_overrides_runpath=yes
15950 libname_spec='$name'
15953 library_names_spec='$libname${shared_ext} $libname.a'
15954 dynamic_linker='OS/2 ld.exe'
15955 shlibpath_var=LIBPATH
15958 osf3* | osf4* | osf5*)
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15974 version_type=linux # correct to gnu/linux during the next big refactor
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 shlibpath_overrides_runpath=yes
15981 hardcode_into_libs=yes
15982 # ldd complains unless libraries are executable
15983 postinstall_cmds='chmod +x $lib'
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=yes
15992 if test "$with_gnu_ld" = yes; then
15999 version_type=linux # correct to gnu/linux during the next big refactor
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 case $host_vendor in
16005 shlibpath_overrides_runpath=no
16007 runpath_var=LD_RUN_PATH
16015 shlibpath_overrides_runpath=no
16016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16022 if test -d /usr/nec ;then
16023 version_type=linux # correct to gnu/linux during the next big refactor
16024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16025 soname_spec='$libname${shared_ext}.$major'
16026 shlibpath_var=LD_LIBRARY_PATH
16030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16031 version_type=freebsd-elf
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 shlibpath_var=LD_LIBRARY_PATH
16037 shlibpath_overrides_runpath=yes
16038 hardcode_into_libs=yes
16039 if test "$with_gnu_ld" = yes; then
16040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16049 sys_lib_dlsearch_path_spec='/usr/lib'
16053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16054 version_type=linux # correct to gnu/linux during the next big refactor
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=no
16060 hardcode_into_libs=yes
16064 version_type=linux # correct to gnu/linux during the next big refactor
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 shlibpath_var=LD_LIBRARY_PATH
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16075 $as_echo "$dynamic_linker" >&6; }
16076 test "$dynamic_linker" = no && can_build_shared=no
16078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16079 if test "$GCC" = yes; then
16080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16083 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16084 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16086 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16087 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16128 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16129 hardcode_action_CXX=
16130 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16131 test -n "$runpath_var_CXX" ||
16132 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16134 # We can hardcode non-existent directories.
16135 if test "$hardcode_direct_CXX" != no &&
16136 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16137 # have to relink, otherwise we might link with an installed library
16138 # when we should be linking with a yet-to-be-installed one
16139 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16140 test "$hardcode_minus_L_CXX" != no; then
16141 # Linking always hardcodes the temporary library directory.
16142 hardcode_action_CXX=relink
16144 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16145 hardcode_action_CXX=immediate
16148 # We cannot hardcode anything, or else we can only hardcode existing
16150 hardcode_action_CXX=unsupported
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16153 $as_echo "$hardcode_action_CXX" >&6; }
16155 if test "$hardcode_action_CXX" = relink ||
16156 test "$inherit_rpath_CXX" = yes; then
16157 # Fast installation is not supported
16158 enable_fast_install=no
16159 elif test "$shlibpath_overrides_runpath" = yes ||
16160 test "$enable_shared" = no; then
16161 # Fast installation is not necessary
16162 enable_fast_install=needless
16171 fi # test -n "$compiler"
16174 CFLAGS=$lt_save_CFLAGS
16178 with_gnu_ld=$lt_save_with_gnu_ld
16179 lt_cv_path_LDCXX=$lt_cv_path_LD
16180 lt_cv_path_LD=$lt_save_path_LD
16181 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16182 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16183 fi # test "$_lt_caught_CXX_error" != yes
16186 ac_cpp='$CPP $CPPFLAGS'
16187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16193 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16195 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16196 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16197 $as_echo_n "(cached) " >&6
16199 cat >conftest.make <<\_ACEOF
16202 @echo '@@@%%%=$(MAKE)=@@@%%%'
16204 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16205 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16206 *@@@%%%=?*=@@@%%%*)
16207 eval ac_cv_prog_make_${ac_make}_set=yes;;
16209 eval ac_cv_prog_make_${ac_make}_set=no;;
16211 rm -f conftest.make
16213 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16220 SET_MAKE="MAKE=${MAKE-make}"
16224 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
16225 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
16226 # as Debian Etch backport.
16229 # Check whether --with-boost was given.
16230 if test "${with_boost+set}" = set; then :
16231 withval=$with_boost;
16232 if test "$withval" = "no"; then
16234 elif test "$withval" = "yes"; then
16239 ac_boost_path="$withval"
16249 # Check whether --with-boost-libdir was given.
16250 if test "${with_boost_libdir+set}" = set; then :
16251 withval=$with_boost_libdir;
16252 if test -d "$withval"
16254 ac_boost_lib_path="$withval"
16256 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
16260 ac_boost_lib_path=""
16265 if test "x$want_boost" = "xyes"; then
16266 boost_lib_version_req=1.34
16267 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
16268 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
16269 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
16270 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16271 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
16272 boost_lib_version_req_sub_minor="0"
16274 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
16276 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
16281 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
16282 libsubdirs="lib64 lib lib64"
16285 if test "$ac_boost_path" != ""; then
16286 BOOST_CPPFLAGS="-I$ac_boost_path/include"
16287 for ac_boost_path_tmp in $libsubdirs; do
16288 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
16289 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
16293 elif test "$cross_compiling" != yes; then
16294 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
16295 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
16296 for libsubdir in $libsubdirs ; do
16297 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16299 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
16300 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
16306 if test "$ac_boost_lib_path" != ""; then
16307 BOOST_LDFLAGS="-L$ac_boost_lib_path"
16310 CPPFLAGS_SAVED="$CPPFLAGS"
16311 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16314 LDFLAGS_SAVED="$LDFLAGS"
16315 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16320 ac_cpp='$CXXCPP $CPPFLAGS'
16321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16328 #include <boost/version.hpp>
16334 #if BOOST_VERSION >= $WANT_BOOST_VERSION
16335 // Everything is okay
16337 # error Boost version is too old
16344 if ac_fn_cxx_try_compile "$LINENO"; then :
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16347 $as_echo "yes" >&6; }
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 ac_cpp='$CPP $CPPFLAGS'
16355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16362 if test "x$succeeded" != "xyes"; then
16364 if test "$ac_boost_path" != ""; then
16365 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16366 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16367 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16368 V_CHECK=`expr $_version_tmp \> $_version`
16369 if test "$V_CHECK" = "1" ; then
16370 _version=$_version_tmp
16372 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16373 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
16377 if test "$cross_compiling" != yes; then
16378 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
16379 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
16380 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
16381 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
16382 V_CHECK=`expr $_version_tmp \> $_version`
16383 if test "$V_CHECK" = "1" ; then
16384 _version=$_version_tmp
16385 best_path=$ac_boost_path
16391 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
16392 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
16393 if test "$ac_boost_lib_path" = ""; then
16394 for libsubdir in $libsubdirs ; do
16395 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16397 BOOST_LDFLAGS="-L$best_path/$libsubdir"
16401 if test "x$BOOST_ROOT" != "x"; then
16402 for libsubdir in $libsubdirs ; do
16403 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
16405 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
16406 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
16407 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
16408 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
16409 V_CHECK=`expr $stage_version_shorten \>\= $_version`
16410 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
16412 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
16413 BOOST_CPPFLAGS="-I$BOOST_ROOT"
16414 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
16420 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16422 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16426 ac_cpp='$CXXCPP $CPPFLAGS'
16427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16434 #include <boost/version.hpp>
16440 #if BOOST_VERSION >= $WANT_BOOST_VERSION
16441 // Everything is okay
16443 # error Boost version is too old
16450 if ac_fn_cxx_try_compile "$LINENO"; then :
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16453 $as_echo "yes" >&6; }
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 ac_cpp='$CPP $CPPFLAGS'
16461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16467 if test "$succeeded" != "yes" ; then
16468 if test "$_version" = "0" ; then
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: 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
16470 $as_echo "$as_me: 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." >&6;}
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
16473 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
16475 # execute ACTION-IF-NOT-FOUND (if present):
16481 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
16483 # execute ACTION-IF-FOUND (if present):
16487 CPPFLAGS="$CPPFLAGS_SAVED"
16488 LDFLAGS="$LDFLAGS_SAVED"
16493 # TODO: Fix code to pass with -pedantic -Wextra.
16494 # -Wno-unknown-pragmas needed because icalstrdup.h
16495 # currently uses the "#pragma }" trick. Should remove that.
16496 # Fix code to work without deprecated methods: G GDK GDK_PIXBUF CAIRO PANGO GTK
16497 # Check whether --enable-warnings was given.
16498 if test "${enable_warnings+set}" = set; then :
16499 enableval=$enable_warnings; dk_enable_warnings=$enableval
16501 dk_enable_warnings=min
16505 case $ac_compile in
16509 dk_conftest=conftest.${ac_ext-cc}
16514 dk_conftest=conftest.${ac_ext-c}
16518 if test "x$dk_lang" != x; then :
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $dk_lang compiler warning flags to use" >&5
16521 $as_echo_n "checking which $dk_lang compiler warning flags to use... " >&6; }
16523 case $dk_enable_warnings in
16524 no) dk_warning_flags=;;
16525 max) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16526 fatal) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror";;
16527 *) dk_warning_flags="-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations";;
16530 dk_deprecation_flags=
16533 if test "x$dk_warning_flags" != x; then :
16535 # Keep in mind that the dummy source must be devoid of any
16536 # problems that might cause diagnostics.
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539 int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
16542 for dk_flag in $dk_warning_flags
16544 # Test whether the compiler accepts the flag. GCC doesn't bail
16545 # out when given an unsupported flag but prints a warning, so
16546 # check the compiler output instead.
16547 dk_cc_out=`$dk_cc $dk_tested_flags $dk_flag -c "$dk_conftest" 2>&1 || echo failed`
16548 rm -f "conftest.${OBJEXT-o}"
16550 if test "x$dk_cc_out" = x; then :
16552 if test "x$dk_tested_flags" = x; then :
16553 dk_tested_flags=$dk_flag
16555 dk_tested_flags="$dk_tested_flags $dk_flag"
16560 echo "$dk_cc_out" >&5
16565 rm -f "$dk_conftest"
16568 dk_all_flags=$dk_deprecation_flags$dk_tested_flags
16569 SYNCEVO_WFLAGS=$dk_all_flags
16572 test "x$dk_all_flags" != x || dk_all_flags=none
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dk_all_flags" >&5
16574 $as_echo "$dk_all_flags" >&6; }
16579 DEVICE_TYPE=workstation
16582 # Check whether --with-synthesis-src was given.
16583 if test "${with_synthesis_src+set}" = set; then :
16584 withval=$with_synthesis_src; SYNTHESISSRC="$withval"
16585 test "$SYNTHESISSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
16587 SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
16592 # Check whether --with-syncml-engines was given.
16593 if test "${with_syncml_engines+set}" = set; then :
16594 withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
16596 SYNCML_ENGINES=both
16600 case $SYNCML_ENGINES in both|client)
16601 $as_echo "#define ENABLE_SYNCML_CLIENT 1" >>confdefs.h
16603 case $SYNCML_ENGINES in both|server)
16604 $as_echo "#define ENABLE_SYNCML_SERVER 1" >>confdefs.h
16606 case $SYNCML_ENGINES in both|server|client) true;; *) as_fn_error $? "Invalid value for --with-syncml-engines: $SYNCML_ENGINES" "$LINENO" 5;; esac
16609 # Check whether --with-synthesis-username was given.
16610 if test "${with_synthesis_username+set}" = set; then :
16611 withval=$with_synthesis_username; USERNAME="$withval"
16618 # Check whether --with-synthesis-revision was given.
16619 if test "${with_synthesis_revision+set}" = set; then :
16620 withval=$with_synthesis_revision; REVISION="$withval"
16624 # Check whether --enable-shared was given.
16625 if test "${enable_shared+set}" = set; then :
16626 enableval=$enable_shared; enable_shared="$enableval"
16632 # Check whether --enable-static was given.
16633 if test "${enable_static+set}" = set; then :
16634 enableval=$enable_static; enable_static="$enableval"
16640 # Check whether --enable-unit-tests was given.
16641 if test "${enable_unit_tests+set}" = set; then :
16642 enableval=$enable_unit_tests; enable_unit_tests="$enableval"
16644 enable_unit_tests="no"
16647 # Check whether --enable-integration-tests was given.
16648 if test "${enable_integration_tests+set}" = set; then :
16649 enableval=$enable_integration_tests; enable_integration_tests="$enableval"
16651 enable_integration_tests="no"
16655 # Check whether --enable-static-cxx was given.
16656 if test "${enable_static_cxx+set}" = set; then :
16657 enableval=$enable_static_cxx; enable_static_cxx="$enableval"
16659 enable_static_cxx="no"
16663 # Check whether --enable-evolution-compatibility was given.
16664 if test "${enable_evolution_compatibility+set}" = set; then :
16665 enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
16667 enable_evolution_compatibility="no"
16671 # Check whether --enable-developer-mode was given.
16672 if test "${enable_developer_mode+set}" = set; then :
16673 enableval=$enable_developer_mode; enable_developer_mode="$enableval"
16675 enable_developer_mode="no"
16680 # - wrap e_book_from_string() to fix invalid parameter
16681 # - don't use UTF-8 encoding in Perl script
16682 # Check whether --enable-maemo was given.
16683 if test "${enable_maemo+set}" = set; then :
16684 enableval=$enable_maemo;
16685 $as_echo "#define ENABLE_MAEMO 1" >>confdefs.h
16688 MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
16693 for ac_header in signal.h dlfcn.h
16695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16696 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16698 cat >>confdefs.h <<_ACEOF
16699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16707 # cppunit-config is used even when both unit tests and integration tests are disabled.
16708 # Extract the first word of "cppunit-config", so it can be a program name with args.
16709 set dummy cppunit-config; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16711 $as_echo_n "checking for $ac_word... " >&6; }
16712 if ${ac_cv_path_CPPUNIT_CONFIG+:} false; then :
16713 $as_echo_n "(cached) " >&6
16715 case $CPPUNIT_CONFIG in
16717 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
16739 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
16740 if test -n "$CPPUNIT_CONFIG"; then
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
16742 $as_echo "$CPPUNIT_CONFIG" >&6; }
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 $as_echo "no" >&6; }
16750 test "x$CPPUNIT_CONFIG" != 'xno' || as_fn_error $? "\"cppunit-config not found.\"" "$LINENO" 5
16753 #if test "x$enable_unit_tests" = 'xyes' || test "x$enable_integration_tests" = 'xyes'
16755 CPPUNIT_CXXFLAGS=`$CPPUNIT_CONFIG --cflags`
16756 CPPUNIT_LDFLAGS=`$CPPUNIT_CONFIG --libs`
16761 if test "x$enable_unit_tests" = 'xyes'; then
16763 $as_echo "#define ENABLE_UNIT_TESTS 1" >>confdefs.h
16766 if test "x$enable_integration_tests" = 'xyes'; then
16768 $as_echo "#define ENABLE_INTEGRATION_TESTS 1" >>confdefs.h
16771 if test "$enable_unit_tests" = "yes"; then
16772 ENABLE_UNIT_TESTS_TRUE=
16773 ENABLE_UNIT_TESTS_FALSE='#'
16775 ENABLE_UNIT_TESTS_TRUE='#'
16776 ENABLE_UNIT_TESTS_FALSE=
16779 if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
16780 ENABLE_TESTING_TRUE=
16781 ENABLE_TESTING_FALSE='#'
16783 ENABLE_TESTING_TRUE='#'
16784 ENABLE_TESTING_FALSE=
16788 if test $enable_static_cxx = "yes"; then
16790 CORE_LDADD_DEP=libstdc++.a
16794 # Check for transport layer.
16795 # Both curl and libsoup can be enabled and disabled explicitly.
16796 # The default is to use libsoup if available, otherwise curl.
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
16799 $as_echo_n "checking for libcurl... " >&6; }
16800 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
16801 LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16803 $as_echo "yes" >&6; }
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807 $as_echo "no" >&6; }
16818 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16819 if test -n "$ac_tool_prefix"; then
16820 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16821 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16823 $as_echo_n "checking for $ac_word... " >&6; }
16824 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16825 $as_echo_n "(cached) " >&6
16827 case $PKG_CONFIG in
16829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16836 test -z "$as_dir" && as_dir=.
16837 for ac_exec_ext in '' $ac_executable_extensions; do
16838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16850 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16851 if test -n "$PKG_CONFIG"; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16853 $as_echo "$PKG_CONFIG" >&6; }
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856 $as_echo "no" >&6; }
16861 if test -z "$ac_cv_path_PKG_CONFIG"; then
16862 ac_pt_PKG_CONFIG=$PKG_CONFIG
16863 # Extract the first word of "pkg-config", so it can be a program name with args.
16864 set dummy pkg-config; ac_word=$2
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16866 $as_echo_n "checking for $ac_word... " >&6; }
16867 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16868 $as_echo_n "(cached) " >&6
16870 case $ac_pt_PKG_CONFIG in
16872 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16876 for as_dir in $PATH
16879 test -z "$as_dir" && as_dir=.
16880 for ac_exec_ext in '' $ac_executable_extensions; do
16881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16882 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16893 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16894 if test -n "$ac_pt_PKG_CONFIG"; then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16896 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899 $as_echo "no" >&6; }
16902 if test "x$ac_pt_PKG_CONFIG" = x; then
16905 case $cross_compiling:$ac_tool_warned in
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16909 ac_tool_warned=yes ;;
16911 PKG_CONFIG=$ac_pt_PKG_CONFIG
16914 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16918 if test -n "$PKG_CONFIG"; then
16919 _pkg_min_version=0.9.0
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16921 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16922 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16924 $as_echo "yes" >&6; }
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
16934 $as_echo_n "checking for LIBSOUP... " >&6; }
16936 if test -n "$LIBSOUP_CFLAGS"; then
16937 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
16938 elif test -n "$PKG_CONFIG"; then
16939 if test -n "$PKG_CONFIG" && \
16940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
16941 ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; then
16945 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
16946 test "x$?" != "x0" && pkg_failed=yes
16953 if test -n "$LIBSOUP_LIBS"; then
16954 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
16955 elif test -n "$PKG_CONFIG"; then
16956 if test -n "$PKG_CONFIG" && \
16957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\""; } >&5
16958 ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
16960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16961 test $ac_status = 0; }; then
16962 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
16963 test "x$?" != "x0" && pkg_failed=yes
16973 if test $pkg_failed = yes; then
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975 $as_echo "no" >&6; }
16977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16978 _pkg_short_errors_supported=yes
16980 _pkg_short_errors_supported=no
16982 if test $_pkg_short_errors_supported = yes; then
16983 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
16985 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-gnome-2.4" 2>&1`
16987 # Put the nasty error message in config.log where it belongs
16988 echo "$LIBSOUP_PKG_ERRORS" >&5
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
16993 $as_echo_n "checking for LIBSOUP... " >&6; }
16995 if test -n "$LIBSOUP_CFLAGS"; then
16996 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
16997 elif test -n "$PKG_CONFIG"; then
16998 if test -n "$PKG_CONFIG" && \
16999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17000 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17003 test $ac_status = 0; }; then
17004 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17005 test "x$?" != "x0" && pkg_failed=yes
17012 if test -n "$LIBSOUP_LIBS"; then
17013 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17014 elif test -n "$PKG_CONFIG"; then
17015 if test -n "$PKG_CONFIG" && \
17016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17017 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17020 test $ac_status = 0; }; then
17021 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17022 test "x$?" != "x0" && pkg_failed=yes
17032 if test $pkg_failed = yes; then
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034 $as_echo "no" >&6; }
17036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17037 _pkg_short_errors_supported=yes
17039 _pkg_short_errors_supported=no
17041 if test $_pkg_short_errors_supported = yes; then
17042 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17044 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17046 # Put the nasty error message in config.log where it belongs
17047 echo "$LIBSOUP_PKG_ERRORS" >&5
17050 elif test $pkg_failed = untried; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17055 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17056 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17058 $as_echo "yes" >&6; }
17061 elif test $pkg_failed = untried; then
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
17067 $as_echo_n "checking for LIBSOUP... " >&6; }
17069 if test -n "$LIBSOUP_CFLAGS"; then
17070 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
17071 elif test -n "$PKG_CONFIG"; then
17072 if test -n "$PKG_CONFIG" && \
17073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17074 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17077 test $ac_status = 0; }; then
17078 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
17079 test "x$?" != "x0" && pkg_failed=yes
17086 if test -n "$LIBSOUP_LIBS"; then
17087 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
17088 elif test -n "$PKG_CONFIG"; then
17089 if test -n "$PKG_CONFIG" && \
17090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
17091 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
17093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17094 test $ac_status = 0; }; then
17095 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
17096 test "x$?" != "x0" && pkg_failed=yes
17106 if test $pkg_failed = yes; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17108 $as_echo "no" >&6; }
17110 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17111 _pkg_short_errors_supported=yes
17113 _pkg_short_errors_supported=no
17115 if test $_pkg_short_errors_supported = yes; then
17116 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17118 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
17120 # Put the nasty error message in config.log where it belongs
17121 echo "$LIBSOUP_PKG_ERRORS" >&5
17124 elif test $pkg_failed = untried; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17129 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17130 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17132 $as_echo "yes" >&6; }
17136 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
17137 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17139 $as_echo "yes" >&6; }
17142 $as_echo "#define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1" >>confdefs.h
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENOBEX" >&5
17149 $as_echo_n "checking for LIBOPENOBEX... " >&6; }
17151 if test -n "$LIBOPENOBEX_CFLAGS"; then
17152 pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
17153 elif test -n "$PKG_CONFIG"; then
17154 if test -n "$PKG_CONFIG" && \
17155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17156 ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17159 test $ac_status = 0; }; then
17160 pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
17161 test "x$?" != "x0" && pkg_failed=yes
17168 if test -n "$LIBOPENOBEX_LIBS"; then
17169 pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
17170 elif test -n "$PKG_CONFIG"; then
17171 if test -n "$PKG_CONFIG" && \
17172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openobex\""; } >&5
17173 ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
17175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176 test $ac_status = 0; }; then
17177 pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
17178 test "x$?" != "x0" && pkg_failed=yes
17188 if test $pkg_failed = yes; then
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17193 _pkg_short_errors_supported=yes
17195 _pkg_short_errors_supported=no
17197 if test $_pkg_short_errors_supported = yes; then
17198 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openobex" 2>&1`
17200 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openobex" 2>&1`
17202 # Put the nasty error message in config.log where it belongs
17203 echo "$LIBOPENOBEX_PKG_ERRORS" >&5
17206 elif test $pkg_failed = untried; then
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208 $as_echo "no" >&6; }
17211 LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
17212 LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17214 $as_echo "yes" >&6; }
17217 have_bluetooth="no"
17218 if test $have_obex = "yes"; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
17222 $as_echo_n "checking for BLUEZ... " >&6; }
17224 if test -n "$BLUEZ_CFLAGS"; then
17225 pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
17226 elif test -n "$PKG_CONFIG"; then
17227 if test -n "$PKG_CONFIG" && \
17228 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17229 ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17232 test $ac_status = 0; }; then
17233 pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
17234 test "x$?" != "x0" && pkg_failed=yes
17241 if test -n "$BLUEZ_LIBS"; then
17242 pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
17243 elif test -n "$PKG_CONFIG"; then
17244 if test -n "$PKG_CONFIG" && \
17245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez\""; } >&5
17246 ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
17248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17249 test $ac_status = 0; }; then
17250 pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
17251 test "x$?" != "x0" && pkg_failed=yes
17261 if test $pkg_failed = yes; then
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17266 _pkg_short_errors_supported=yes
17268 _pkg_short_errors_supported=no
17270 if test $_pkg_short_errors_supported = yes; then
17271 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez" 2>&1`
17273 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez" 2>&1`
17275 # Put the nasty error message in config.log where it belongs
17276 echo "$BLUEZ_PKG_ERRORS" >&5
17279 elif test $pkg_failed = untried; then
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17281 $as_echo "no" >&6; }
17284 BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
17285 BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17287 $as_echo "yes" >&6; }
17290 if test $have_bluez = "yes"; then
17291 have_bluetooth="yes"
17304 # Check whether --with-ca-certificates was given.
17305 if test "${with_ca_certificates+set}" = set; then :
17306 withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
17311 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
17312 if test "$have_libsoup" = "yes"; then
17313 default_http_transport="libsoup"
17314 elif test "$have_libcurl" = "yes"; then
17315 default_http_transport="libcurl"
17318 # Check whether --enable-libcurl was given.
17319 if test "${enable_libcurl+set}" = set; then :
17320 enableval=$enable_libcurl; if test "$enableval" = "yes"; then
17321 test "$have_libcurl" = "yes" || as_fn_error $? "libcurl not found" "$LINENO" 5
17322 TRANSPORT="$TRANSPORT libcurl"
17323 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17324 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17326 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17329 libcurl_disabled="yes"
17332 if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
17333 TRANSPORT="$TRANSPORT libcurl"
17334 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
17335 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
17337 $as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
17343 # Check whether --enable-libsoup was given.
17344 if test "${enable_libsoup+set}" = set; then :
17345 enableval=$enable_libsoup; if test "$enableval" = "yes"; then
17346 test "$have_libsoup" = "yes" || as_fn_error $? "libsoup not found" "$LINENO" 5
17347 TRANSPORT="$TRANSPORT libsoup"
17348 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17349 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17351 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17354 libsoup_disabled="yes"
17357 if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
17358 TRANSPORT="$TRANSPORT libsoup"
17359 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
17360 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
17362 $as_echo "#define ENABLE_LIBSOUP 1" >>confdefs.h
17368 # SoupTransportAgent depends on glib
17369 case "$TRANSPORT" in *libsoup*) need_glib=yes;; esac
17371 bluetooth_disabled=no
17372 # Check whether --enable-bluetooth was given.
17373 if test "${enable_bluetooth+set}" = set; then :
17374 enableval=$enable_bluetooth; enable_bluetooth="$enableval"
17375 if test "$enableval" = "no"; then
17376 bluetooth_disabled=yes
17380 enable_bluetooth="$have_bluetooth"
17384 if test "$enable_bluetooth" = "yes"; then
17385 # currently we need Bluetooth and OBEX support
17386 test "$have_bluetooth" = "yes" || as_fn_error $? "openobex or bluez not found" "$LINENO" 5
17389 ac_cpp='$CPP $CPPFLAGS'
17390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17394 CFLAGS_old="$CFLAGS"
17395 CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
17396 # test in this order:
17397 # - recent libbluetooth (no _safe variant, base function has bufsize)
17398 # - intermediate with _safe
17399 # - else assume old-style (no bufsize, no _safe)
17401 # The source code checks the signature both by via pointer assignment and calling
17402 # it (better safe than sorry). One these should fail if the signature is not right.
17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h. */
17406 #include <bluetooth/sdp.h>
17407 #include <bluetooth/sdp_lib.h>
17408 sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17411 uint8_t *pdata = NULL;
17413 sdp_extract_pdu(pdata, 100, &scanned);
17417 if ac_fn_c_try_compile "$LINENO"; then :
17419 $as_echo "#define HAVE_BLUEZ_BUFSIZE 1" >>confdefs.h
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17425 #include <bluetooth/sdp.h>
17426 #include <bluetooth/sdp_lib.h>
17427 sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
17428 sdp_extract_pdu_safe;
17430 uint8_t *pdata = NULL;
17432 sdp_extract_pdu_safe(pdata, 100, &scanned);
17436 if ac_fn_c_try_compile "$LINENO"; then :
17438 $as_echo "#define HAVE_BLUEZ_SAFE 1" >>confdefs.h
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17444 CFLAGS="$CFLAGS_old"
17446 if test "$have_obex" = "yes"; then
17448 $as_echo "#define ENABLE_OBEX 1" >>confdefs.h
17451 if test "$have_bluez" = "yes"; then
17453 $as_echo "#define ENABLE_BLUETOOTH 1" >>confdefs.h
17457 if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
17459 ENABLE_OBEX_FALSE='#'
17461 ENABLE_OBEX_TRUE='#'
17465 if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
17466 ENABLE_BLUETOOTH_TRUE=
17467 ENABLE_BLUETOOTH_FALSE='#'
17469 ENABLE_BLUETOOTH_TRUE='#'
17470 ENABLE_BLUETOOTH_FALSE=
17474 if test ! "$TRANSPORT" &&
17475 test "$libsoup_disabled" != "yes" &&
17476 test "$libcurl_disabled" != "yes" &&
17477 test "$bluetooth_disabled" != "yes" &&
17478 test "$have_bluetooth" != "yes" ; then
17479 as_fn_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)" "$LINENO" 5
17482 # for libsoup we must specify the SSL certificate file outself
17483 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
17484 # Debian and Red Hat paths
17485 CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
17488 cat >>confdefs.h <<_ACEOF
17489 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
17496 # Check whether --enable-ssl-certificate-check was given.
17497 if test "${enable_ssl_certificate_check+set}" = set; then :
17498 enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
17500 enable_ssl_certificate_check="yes"
17503 if test "$enable_ssl_certificate_check" = "yes"; then
17505 $as_echo "#define ENABLE_SSL_CERTIFICATE_CHECK 1" >>confdefs.h
17509 # for dbus interface file mangling
17510 # Extract the first word of "xsltproc", so it can be a program name with args.
17511 set dummy xsltproc; ac_word=$2
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17513 $as_echo_n "checking for $ac_word... " >&6; }
17514 if ${ac_cv_path_XSLT+:} false; then :
17515 $as_echo_n "(cached) " >&6
17519 ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
17522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17523 for as_dir in $PATH
17526 test -z "$as_dir" && as_dir=.
17527 for ac_exec_ext in '' $ac_executable_extensions; do
17528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17529 ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
17530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17540 XSLT=$ac_cv_path_XSLT
17541 if test -n "$XSLT"; then
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT" >&5
17543 $as_echo "$XSLT" >&6; }
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17546 $as_echo "no" >&6; }
17552 # Changes in GTK3 mean that supporting both GTK3 and GTK2 in the same codebase
17553 # is difficult. We want to support GTK2 for the time being so the code is forked.
17554 # Check whether --enable-gtk was given.
17555 if test "${enable_gtk+set}" = set; then :
17556 enableval=$enable_gtk; if test "$enableval" = "3" ; then
17557 gtk_version=gtk+-3.0
17558 elif test "$enableval" = "2" ; then
17559 gtk_version=gtk+-2.0
17561 as_fn_error $? "Unknown gtk version: '$enableval'" "$LINENO" 5
17565 if test -n "$PKG_CONFIG" && \
17566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
17567 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
17569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17570 test $ac_status = 0; }; then
17571 gtk_version=gtk+-3.0
17573 gtk_version=gtk+-2.0
17579 if test "$gtk_version" = "gtk+-2.0"; then
17581 COND_GTK2_FALSE='#'
17588 # Check whether --enable-gui was given.
17589 if test "${enable_gui+set}" = set; then :
17590 enableval=$enable_gui; if test "$enableval" = "gtk" ; then
17592 elif test "$enableval" = "yes" ; then
17594 elif test "$enableval" = "moblin" ; then
17596 elif test "$enableval" = "no" ; then
17598 elif test "$enableval" = "all" ; then
17601 as_fn_error $? "Unknown gui type: '$enableval'" "$LINENO" 5
17609 if test "$enable_gui" != "no"; then
17618 # Check whether --enable-core was given.
17619 if test "${enable_core+set}" = set; then :
17620 enableval=$enable_core; enable_core="$enableval"
17625 if test "$enable_core" = "yes"; then
17627 COND_CORE_FALSE='#'
17634 # Check whether --enable-dbus-service was given.
17635 if test "${enable_dbus_service+set}" = set; then :
17636 enableval=$enable_dbus_service; enable_dbus_service="$enableval"
17638 if test $enable_gui = "no"; then
17639 enable_dbus_service="no"
17641 enable_dbus_service="yes"
17645 if test "$enable_dbus_service" = "yes"; then
17647 COND_DBUS_FALSE='#'
17655 # Check whether --with-gio-gdbus was given.
17656 if test "${with_gio_gdbus+set}" = set; then :
17657 withval=$with_gio_gdbus; with_gio_gdbus="$withval"
17659 if test -n "$PKG_CONFIG" && \
17660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.30\""; } >&5
17661 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.30") 2>&5
17663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17664 test $ac_status = 0; }; then
17665 with_gio_gdbus="yes"
17667 with_gio_gdbus="no"
17671 if test "x$with_gio_gdbus" = "xyes"; then
17672 COND_GIO_GDBUS_TRUE=
17673 COND_GIO_GDBUS_FALSE='#'
17675 COND_GIO_GDBUS_TRUE='#'
17676 COND_GIO_GDBUS_FALSE=
17680 # We only need to check for dbus-1 if gio-gdbus is not used.
17682 # Local sync depends on D-Bus communication between parent
17683 # and child process (works without a D-Bus daemon), and local
17684 # sync is not an optional feature. Could be made one if
17685 # someone is interested enough.
17687 # Therefore, at the moment, either libdbus or gio-gdbus are needed
17688 # unconditionally. glib is needed in all cases now.
17690 if test "x$with_gio_gdbus" = "xyes"; then :
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
17694 $as_echo_n "checking for DBUS... " >&6; }
17696 if test -n "$DBUS_CFLAGS"; then
17697 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
17698 elif test -n "$PKG_CONFIG"; then
17699 if test -n "$PKG_CONFIG" && \
17700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17701 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17704 test $ac_status = 0; }; then
17705 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
17706 test "x$?" != "x0" && pkg_failed=yes
17713 if test -n "$DBUS_LIBS"; then
17714 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
17715 elif test -n "$PKG_CONFIG"; then
17716 if test -n "$PKG_CONFIG" && \
17717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
17718 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
17720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17721 test $ac_status = 0; }; then
17722 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
17723 test "x$?" != "x0" && pkg_failed=yes
17733 if test $pkg_failed = yes; then
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735 $as_echo "no" >&6; }
17737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17738 _pkg_short_errors_supported=yes
17740 _pkg_short_errors_supported=no
17742 if test $_pkg_short_errors_supported = yes; then
17743 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
17745 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
17747 # Put the nasty error message in config.log where it belongs
17748 echo "$DBUS_PKG_ERRORS" >&5
17750 as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
17754 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17755 installed software in a non-standard prefix.
17757 Alternatively, you may set the environment variables DBUS_CFLAGS
17758 and DBUS_LIBS to avoid the need to call pkg-config.
17759 See the pkg-config man page for more details." "$LINENO" 5
17760 elif test $pkg_failed = untried; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762 $as_echo "no" >&6; }
17763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17765 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17766 is in your PATH or set the PKG_CONFIG environment variable to the full
17767 path to pkg-config.
17769 Alternatively, you may set the environment variables DBUS_CFLAGS
17770 and DBUS_LIBS to avoid the need to call pkg-config.
17771 See the pkg-config man page for more details.
17773 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17774 See \`config.log' for more details" "$LINENO" 5; }
17776 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
17777 DBUS_LIBS=$pkg_cv_DBUS_LIBS
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17779 $as_echo "yes" >&6; }
17783 $as_echo "#define WITH_GIO_GDBUS /**/" >>confdefs.h
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
17789 $as_echo_n "checking for DBUS... " >&6; }
17791 if test -n "$DBUS_CFLAGS"; then
17792 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
17793 elif test -n "$PKG_CONFIG"; then
17794 if test -n "$PKG_CONFIG" && \
17795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
17796 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
17798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17799 test $ac_status = 0; }; then
17800 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
17801 test "x$?" != "x0" && pkg_failed=yes
17808 if test -n "$DBUS_LIBS"; then
17809 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
17810 elif test -n "$PKG_CONFIG"; then
17811 if test -n "$PKG_CONFIG" && \
17812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
17813 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
17815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17816 test $ac_status = 0; }; then
17817 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
17818 test "x$?" != "x0" && pkg_failed=yes
17828 if test $pkg_failed = yes; then
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17832 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17833 _pkg_short_errors_supported=yes
17835 _pkg_short_errors_supported=no
17837 if test $_pkg_short_errors_supported = yes; then
17838 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
17840 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
17842 # Put the nasty error message in config.log where it belongs
17843 echo "$DBUS_PKG_ERRORS" >&5
17845 as_fn_error $? "libdbus-1 is required" "$LINENO" 5
17846 elif test $pkg_failed = untried; then
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17849 as_fn_error $? "libdbus-1 is required" "$LINENO" 5
17851 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
17852 DBUS_LIBS=$pkg_cv_DBUS_LIBS
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17854 $as_echo "yes" >&6; }
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
17858 $as_echo_n "checking for dbus_watch_get_unix_fd in -ldbus-1... " >&6; }
17859 if ${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+:} false; then :
17860 $as_echo_n "(cached) " >&6
17862 ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-ldbus-1 $LIBS"
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17867 /* Override any GCC internal prototype to avoid an error.
17868 Use char because int might match the return type of a GCC
17869 builtin and then its argument prototype would still apply. */
17873 char dbus_watch_get_unix_fd ();
17877 return dbus_watch_get_unix_fd ();
17882 if ac_fn_c_try_link "$LINENO"; then :
17883 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
17885 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
17887 rm -f core conftest.err conftest.$ac_objext \
17888 conftest$ac_exeext conftest.$ac_ext
17889 LIBS=$ac_check_lib_save_LIBS
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
17892 $as_echo "$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
17893 if test "x$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" = xyes; then :
17897 $as_echo "#define NEED_DBUS_WATCH_GET_UNIX_FD 1" >>confdefs.h
17903 if test $enable_dbus_service = "yes"; then
17904 if test -z "$XSLT"; then
17905 as_fn_error $? "xsltproc not found, is required for D-Bus service" "$LINENO" 5
17907 # Recent libnotify releases work with gtk+-2.0 and gtk+-3.0.
17908 # Check whether --enable-notify was given.
17909 if test "${enable_notify+set}" = set; then :
17910 enableval=$enable_notify; enable_notify="$enableval"
17912 if test -n "$PKG_CONFIG" && \
17913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
17914 ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
17916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17917 test $ac_status = 0; }; then
17918 enable_notify="yes"
17924 if test "x$enable_notify" = "xyes"; then :
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
17928 $as_echo_n "checking for LIBNOTIFY... " >&6; }
17930 if test -n "$LIBNOTIFY_CFLAGS"; then
17931 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
17932 elif test -n "$PKG_CONFIG"; then
17933 if test -n "$PKG_CONFIG" && \
17934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
17935 ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
17937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938 test $ac_status = 0; }; then
17939 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify $gtk_version" 2>/dev/null`
17940 test "x$?" != "x0" && pkg_failed=yes
17947 if test -n "$LIBNOTIFY_LIBS"; then
17948 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
17949 elif test -n "$PKG_CONFIG"; then
17950 if test -n "$PKG_CONFIG" && \
17951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify \$gtk_version\""; } >&5
17952 ($PKG_CONFIG --exists --print-errors "libnotify $gtk_version") 2>&5
17954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17955 test $ac_status = 0; }; then
17956 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify $gtk_version" 2>/dev/null`
17957 test "x$?" != "x0" && pkg_failed=yes
17967 if test $pkg_failed = yes; then
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17969 $as_echo "no" >&6; }
17971 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17972 _pkg_short_errors_supported=yes
17974 _pkg_short_errors_supported=no
17976 if test $_pkg_short_errors_supported = yes; then
17977 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
17979 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify $gtk_version" 2>&1`
17981 # Put the nasty error message in config.log where it belongs
17982 echo "$LIBNOTIFY_PKG_ERRORS" >&5
17984 as_fn_error $? "Package requirements (libnotify $gtk_version) were not met:
17986 $LIBNOTIFY_PKG_ERRORS
17988 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17989 installed software in a non-standard prefix.
17991 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
17992 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
17993 See the pkg-config man page for more details." "$LINENO" 5
17994 elif test $pkg_failed = untried; then
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17996 $as_echo "no" >&6; }
17997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17999 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18000 is in your PATH or set the PKG_CONFIG environment variable to the full
18001 path to pkg-config.
18003 Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
18004 and LIBNOTIFY_LIBS to avoid the need to call pkg-config.
18005 See the pkg-config man page for more details.
18007 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18008 See \`config.log' for more details" "$LINENO" 5; }
18010 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
18011 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18013 $as_echo "yes" >&6; }
18017 $as_echo "#define HAS_NOTIFY 1" >>confdefs.h
18021 # Check whether --enable-notify-compatibility was given.
18022 if test "${enable_notify_compatibility+set}" = set; then :
18023 enableval=$enable_notify_compatibility; enable_notify_compat="$enableval"
18025 enable_notify_compat="no"
18029 if test "$enable_notify_compat" = "yes"; then
18031 $as_echo "#define NOTIFY_COMPATIBILITY 1" >>confdefs.h
18033 LIBNOTIFY_LIBS="`echo $LIBNOTIFY_LIBS | sed -e 's/\(-lnotify\|^ *libnotify.la\)/-ldl/'`"
18036 # Here we're using QtGui too because mlite fails to depend on it,
18037 # despite using QAction.
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MLITE" >&5
18041 $as_echo_n "checking for MLITE... " >&6; }
18043 if test -n "$MLITE_CFLAGS"; then
18044 pkg_cv_MLITE_CFLAGS="$MLITE_CFLAGS"
18045 elif test -n "$PKG_CONFIG"; then
18046 if test -n "$PKG_CONFIG" && \
18047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18048 ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18051 test $ac_status = 0; }; then
18052 pkg_cv_MLITE_CFLAGS=`$PKG_CONFIG --cflags "mlite QtGui" 2>/dev/null`
18053 test "x$?" != "x0" && pkg_failed=yes
18060 if test -n "$MLITE_LIBS"; then
18061 pkg_cv_MLITE_LIBS="$MLITE_LIBS"
18062 elif test -n "$PKG_CONFIG"; then
18063 if test -n "$PKG_CONFIG" && \
18064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mlite QtGui\""; } >&5
18065 ($PKG_CONFIG --exists --print-errors "mlite QtGui") 2>&5
18067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18068 test $ac_status = 0; }; then
18069 pkg_cv_MLITE_LIBS=`$PKG_CONFIG --libs "mlite QtGui" 2>/dev/null`
18070 test "x$?" != "x0" && pkg_failed=yes
18080 if test $pkg_failed = yes; then
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18082 $as_echo "no" >&6; }
18084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18085 _pkg_short_errors_supported=yes
18087 _pkg_short_errors_supported=no
18089 if test $_pkg_short_errors_supported = yes; then
18090 MLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mlite QtGui" 2>&1`
18092 MLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mlite QtGui" 2>&1`
18094 # Put the nasty error message in config.log where it belongs
18095 echo "$MLITE_PKG_ERRORS" >&5
18098 elif test $pkg_failed = untried; then
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18100 $as_echo "no" >&6; }
18103 MLITE_CFLAGS=$pkg_cv_MLITE_CFLAGS
18104 MLITE_LIBS=$pkg_cv_MLITE_LIBS
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18106 $as_echo "yes" >&6; }
18109 # Check whether --enable-mlite was given.
18110 if test "${enable_mlite+set}" = set; then :
18111 enableval=$enable_mlite; enable_mlite="$enableval"
18112 test "$enableval" = "no" || test $HAVE_MLITE = "yes" || as_fn_error $? "required mlite package not found" "$LINENO" 5
18117 if test $enable_mlite = "yes"; then
18119 $as_echo "#define HAS_MLITE 1" >>confdefs.h
18122 # don't use mlite, even if found
18127 $as_echo "#define DBUS_SERVICE 1" >>confdefs.h
18130 # Check whether --enable-dbus-service-pim was given.
18131 if test "${enable_dbus_service_pim+set}" = set; then :
18132 enableval=$enable_dbus_service_pim; enable_dbus_pim="$enableval"
18134 enable_dbus_pim="no"
18137 case "$enable_dbus_pim" in
18140 if test "$enable_dbus_pim" = "yes"; then
18141 enable_dbus_pim=boost
18143 if ! test -r "$srcdir/src/dbus/server/pim/locale-factory-$enable_dbus_pim.cpp"; then
18144 as_fn_error $? "invalid value '$enable_dbus_pim' for --enable-dbus-service-pim, $srcdir/src/dbus/server/pim/locale-factory-$enable_dbus_pim.cpp does not exist or is not readable" "$LINENO" 5
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOLKS" >&5
18149 $as_echo_n "checking for FOLKS... " >&6; }
18151 if test -n "$FOLKS_CFLAGS"; then
18152 pkg_cv_FOLKS_CFLAGS="$FOLKS_CFLAGS"
18153 elif test -n "$PKG_CONFIG"; then
18154 if test -n "$PKG_CONFIG" && \
18155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18156 ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18159 test $ac_status = 0; }; then
18160 pkg_cv_FOLKS_CFLAGS=`$PKG_CONFIG --cflags "folks folks-eds" 2>/dev/null`
18161 test "x$?" != "x0" && pkg_failed=yes
18168 if test -n "$FOLKS_LIBS"; then
18169 pkg_cv_FOLKS_LIBS="$FOLKS_LIBS"
18170 elif test -n "$PKG_CONFIG"; then
18171 if test -n "$PKG_CONFIG" && \
18172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"folks folks-eds\""; } >&5
18173 ($PKG_CONFIG --exists --print-errors "folks folks-eds") 2>&5
18175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176 test $ac_status = 0; }; then
18177 pkg_cv_FOLKS_LIBS=`$PKG_CONFIG --libs "folks folks-eds" 2>/dev/null`
18178 test "x$?" != "x0" && pkg_failed=yes
18188 if test $pkg_failed = yes; then
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190 $as_echo "no" >&6; }
18192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18193 _pkg_short_errors_supported=yes
18195 _pkg_short_errors_supported=no
18197 if test $_pkg_short_errors_supported = yes; then
18198 FOLKS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "folks folks-eds" 2>&1`
18200 FOLKS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "folks folks-eds" 2>&1`
18202 # Put the nasty error message in config.log where it belongs
18203 echo "$FOLKS_PKG_ERRORS" >&5
18205 as_fn_error $? "Package requirements (folks folks-eds) were not met:
18209 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18210 installed software in a non-standard prefix.
18212 Alternatively, you may set the environment variables FOLKS_CFLAGS
18213 and FOLKS_LIBS to avoid the need to call pkg-config.
18214 See the pkg-config man page for more details." "$LINENO" 5
18215 elif test $pkg_failed = untried; then
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18221 is in your PATH or set the PKG_CONFIG environment variable to the full
18222 path to pkg-config.
18224 Alternatively, you may set the environment variables FOLKS_CFLAGS
18225 and FOLKS_LIBS to avoid the need to call pkg-config.
18226 See the pkg-config man page for more details.
18228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18229 See \`config.log' for more details" "$LINENO" 5; }
18231 FOLKS_CFLAGS=$pkg_cv_FOLKS_CFLAGS
18232 FOLKS_LIBS=$pkg_cv_FOLKS_LIBS
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18234 $as_echo "yes" >&6; }
18238 $as_echo "#define ENABLE_DBUS_PIM 1" >>confdefs.h
18240 DBUS_PIM_PLUGIN=$enable_dbus_pim
18243 case "$enable_dbus_pim" in
18247 # Check whether --with-boost-locale was given.
18248 if test "${with_boost_locale+set}" = set; then :
18249 withval=$with_boost_locale;
18250 if test "$withval" = "no"; then
18252 elif test "$withval" = "yes"; then
18254 ax_boost_user_locale_lib=""
18257 ax_boost_user_locale_lib="$withval"
18266 if test "x$want_boost" = "xyes"; then
18269 CPPFLAGS_SAVED="$CPPFLAGS"
18270 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18273 LDFLAGS_SAVED="$LDFLAGS"
18274 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Locale library is available" >&5
18278 $as_echo_n "checking whether the Boost::Locale library is available... " >&6; }
18279 if ${ax_cv_boost_locale+:} false; then :
18280 $as_echo_n "(cached) " >&6
18283 ac_cpp='$CXXCPP $CPPFLAGS'
18284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288 CXXFLAGS_SAVE=$CXXFLAGS
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18292 #include <boost/locale.hpp>
18296 boost::locale::generator gen;
18297 std::locale::global(gen(""));
18302 if ac_fn_cxx_try_compile "$LINENO"; then :
18303 ax_cv_boost_locale=yes
18305 ax_cv_boost_locale=no
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 CXXFLAGS=$CXXFLAGS_SAVE
18310 ac_cpp='$CPP $CPPFLAGS'
18311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_locale" >&5
18318 $as_echo "$ax_cv_boost_locale" >&6; }
18319 if test "x$ax_cv_boost_locale" = "xyes"; then
18323 $as_echo "#define HAVE_BOOST_LOCALE /**/" >>confdefs.h
18325 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
18327 LDFLAGS_SAVE=$LDFLAGS
18328 if test "x$ax_boost_user_locale_lib" = "x"; then
18329 for libextension in `ls $BOOSTLIBDIR/libboost_locale*.so* $BOOSTLIBDIR/libboost_locale*.dylib* $BOOSTLIBDIR/libboost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_locale.*\)\.so.*$;\1;' -e 's;^lib\(boost_locale.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_locale.*\)\.a.*$;\1;'` ; do
18330 ax_lib=${libextension}
18331 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18333 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18334 if eval \${$as_ac_Lib+:} false; then :
18335 $as_echo_n "(cached) " >&6
18337 ac_check_lib_save_LIBS=$LIBS
18338 LIBS="-l$ax_lib $LIBS"
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h. */
18342 /* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18357 if ac_fn_c_try_link "$LINENO"; then :
18358 eval "$as_ac_Lib=yes"
18360 eval "$as_ac_Lib=no"
18362 rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18366 eval ac_res=\$$as_ac_Lib
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18368 $as_echo "$ac_res" >&6; }
18369 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18370 BOOST_LOCALE_LIB="-l$ax_lib"; link_locale="yes"; break
18376 if test "x$link_locale" != "xyes"; then
18377 for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` ; do
18378 ax_lib=${libextension}
18379 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18381 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18382 if eval \${$as_ac_Lib+:} false; then :
18383 $as_echo_n "(cached) " >&6
18385 ac_check_lib_save_LIBS=$LIBS
18386 LIBS="-l$ax_lib $LIBS"
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18390 /* Override any GCC internal prototype to avoid an error.
18391 Use char because int might match the return type of a GCC
18392 builtin and then its argument prototype would still apply. */
18405 if ac_fn_c_try_link "$LINENO"; then :
18406 eval "$as_ac_Lib=yes"
18408 eval "$as_ac_Lib=no"
18410 rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412 LIBS=$ac_check_lib_save_LIBS
18414 eval ac_res=\$$as_ac_Lib
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18416 $as_echo "$ac_res" >&6; }
18417 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18418 BOOST_LOCALE_LIB="-l$ax_lib"; link_locale="yes"; break
18427 for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
18428 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18430 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18431 if eval \${$as_ac_Lib+:} false; then :
18432 $as_echo_n "(cached) " >&6
18434 ac_check_lib_save_LIBS=$LIBS
18435 LIBS="-l$ax_lib $LIBS"
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18454 if ac_fn_c_try_link "$LINENO"; then :
18455 eval "$as_ac_Lib=yes"
18457 eval "$as_ac_Lib=no"
18459 rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18463 eval ac_res=\$$as_ac_Lib
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18465 $as_echo "$ac_res" >&6; }
18466 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18467 BOOST_LOCALE_LIB="-l$ax_lib"; link_locale="yes"; break
18475 if test "x$ax_lib" = "x"; then
18476 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
18478 if test "x$link_locale" = "xno"; then
18479 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
18483 CPPFLAGS="$CPPFLAGS_SAVED"
18484 LDFLAGS="$LDFLAGS_SAVED"
18487 # AX_BOOST_LOCALE incorrectly puts -L/... into LDFLAGS.
18488 # That's broken because it then overrides the search path
18489 # for *all* libraries in a link, not just for boost. Fix
18490 # this by putting the LDFLAGS before the lib and leaving
18491 # DBUS_PIM_PLUGIN_LDFLAGS empty (for now - might have to
18492 # be revised if there ever are any boost flags which need
18493 # to go to the start of the link line).
18494 DBUS_PIM_PLUGIN_LIBS='$(BOOST_LDFLAGS) $(BOOST_LOCALE_LIB)'
18495 DBUS_PIM_PLUGIN_LDFLAGS=
18496 # We need to call ICU directly for the Han->Latin transformation.
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18500 $as_echo_n "checking for ICU... " >&6; }
18502 if test -n "$ICU_CFLAGS"; then
18503 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18504 elif test -n "$PKG_CONFIG"; then
18505 if test -n "$PKG_CONFIG" && \
18506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18507 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18510 test $ac_status = 0; }; then
18511 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18512 test "x$?" != "x0" && pkg_failed=yes
18519 if test -n "$ICU_LIBS"; then
18520 pkg_cv_ICU_LIBS="$ICU_LIBS"
18521 elif test -n "$PKG_CONFIG"; then
18522 if test -n "$PKG_CONFIG" && \
18523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18524 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18527 test $ac_status = 0; }; then
18528 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
18529 test "x$?" != "x0" && pkg_failed=yes
18539 if test $pkg_failed = yes; then
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18544 _pkg_short_errors_supported=yes
18546 _pkg_short_errors_supported=no
18548 if test $_pkg_short_errors_supported = yes; then
18549 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
18551 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
18553 # Put the nasty error message in config.log where it belongs
18554 echo "$ICU_PKG_ERRORS" >&5
18556 as_fn_error $? "Package requirements (icu-uc) were not met:
18560 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18561 installed software in a non-standard prefix.
18563 Alternatively, you may set the environment variables ICU_CFLAGS
18564 and ICU_LIBS to avoid the need to call pkg-config.
18565 See the pkg-config man page for more details." "$LINENO" 5
18566 elif test $pkg_failed = untried; then
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568 $as_echo "no" >&6; }
18569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18571 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18572 is in your PATH or set the PKG_CONFIG environment variable to the full
18573 path to pkg-config.
18575 Alternatively, you may set the environment variables ICU_CFLAGS
18576 and ICU_LIBS to avoid the need to call pkg-config.
18577 See the pkg-config man page for more details.
18579 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18580 See \`config.log' for more details" "$LINENO" 5; }
18582 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18583 ICU_LIBS=$pkg_cv_ICU_LIBS
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18585 $as_echo "yes" >&6; }
18594 # http://code.google.com/p/libphonenumber/
18596 ac_cpp='$CXXCPP $CPPFLAGS'
18597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18601 SAVED_CPPFLAGS=$CPPFLAGS
18602 CPPFLAGS="$CPPFLAGS ${PHONENUMBERS_CFLAGS}"
18604 for ac_header in phonenumbers/phonenumberutil.h
18606 ac_fn_cxx_check_header_mongrel "$LINENO" "phonenumbers/phonenumberutil.h" "ac_cv_header_phonenumbers_phonenumberutil_h" "$ac_includes_default"
18607 if test "x$ac_cv_header_phonenumbers_phonenumberutil_h" = xyes; then :
18608 cat >>confdefs.h <<_ACEOF
18609 #define HAVE_PHONENUMBERS_PHONENUMBERUTIL_H 1
18617 if test ! "$PHONENUMBERS_LIBS"; then
18618 PHONENUMBERS_LIBS=-lphonenumber
18620 LIBS="$LIBS $PHONENUMBERS_LIBS"
18621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h. */
18623 #include <phonenumbers/phonenumberutil.h>
18627 i18n::phonenumbers::PhoneNumberUtil::GetInstance()
18632 if ac_fn_cxx_try_link "$LINENO"; then :
18635 as_fn_error $? "libphonebook not found, set PHONENUMBERS_CFLAGS and PHONENUMBERS_LIBS." "$LINENO" 5
18637 rm -f core conftest.err conftest.$ac_objext \
18638 conftest$ac_exeext conftest.$ac_ext
18642 CPPFLAGS=$SAVED_CPPFLAGS
18646 if test "$enable_notify_compat" = "yes"; then
18647 NOTIFY_COMPATIBILITY_TRUE=
18648 NOTIFY_COMPATIBILITY_FALSE='#'
18650 NOTIFY_COMPATIBILITY_TRUE='#'
18651 NOTIFY_COMPATIBILITY_FALSE=
18654 if test "$enable_dbus_pim" != "no"; then
18655 COND_DBUS_PIM_TRUE=
18656 COND_DBUS_PIM_FALSE='#'
18658 COND_DBUS_PIM_TRUE='#'
18659 COND_DBUS_PIM_FALSE=
18671 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
18674 cat >>confdefs.h <<_ACEOF
18675 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
18679 if test $enable_gui != "no" || test $enable_dbus_service = "yes"; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18682 $as_echo_n "checking whether NLS is requested... " >&6; }
18683 # Check whether --enable-nls was given.
18684 if test "${enable_nls+set}" = set; then :
18685 enableval=$enable_nls; USE_NLS=$enableval
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18691 $as_echo "$USE_NLS" >&6; }
18696 case "$am__api_version" in
18698 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18704 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18705 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
18706 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18707 if test -n "0.37.1"; then
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.37.1" >&5
18709 $as_echo_n "checking for intltool >= 0.37.1... " >&6; }
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18711 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18712 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18713 as_fn_error $? "Your intltool is too old. You need intltool 0.37.1 or later." "$LINENO" 5
18716 # Extract the first word of "intltool-update", so it can be a program name with args.
18717 set dummy intltool-update; ac_word=$2
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18719 $as_echo_n "checking for $ac_word... " >&6; }
18720 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
18721 $as_echo_n "(cached) " >&6
18723 case $INTLTOOL_UPDATE in
18725 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729 for as_dir in $PATH
18732 test -z "$as_dir" && as_dir=.
18733 for ac_exec_ext in '' $ac_executable_extensions; do
18734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
18736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18746 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
18747 if test -n "$INTLTOOL_UPDATE"; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
18749 $as_echo "$INTLTOOL_UPDATE" >&6; }
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18756 # Extract the first word of "intltool-merge", so it can be a program name with args.
18757 set dummy intltool-merge; ac_word=$2
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18759 $as_echo_n "checking for $ac_word... " >&6; }
18760 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
18761 $as_echo_n "(cached) " >&6
18763 case $INTLTOOL_MERGE in
18765 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
18768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18769 for as_dir in $PATH
18772 test -z "$as_dir" && as_dir=.
18773 for ac_exec_ext in '' $ac_executable_extensions; do
18774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18775 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
18776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18786 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
18787 if test -n "$INTLTOOL_MERGE"; then
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
18789 $as_echo "$INTLTOOL_MERGE" >&6; }
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792 $as_echo "no" >&6; }
18796 # Extract the first word of "intltool-extract", so it can be a program name with args.
18797 set dummy intltool-extract; ac_word=$2
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18799 $as_echo_n "checking for $ac_word... " >&6; }
18800 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
18801 $as_echo_n "(cached) " >&6
18803 case $INTLTOOL_EXTRACT in
18805 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
18808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18809 for as_dir in $PATH
18812 test -z "$as_dir" && as_dir=.
18813 for ac_exec_ext in '' $ac_executable_extensions; do
18814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18815 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
18816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18826 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
18827 if test -n "$INTLTOOL_EXTRACT"; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
18829 $as_echo "$INTLTOOL_EXTRACT" >&6; }
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832 $as_echo "no" >&6; }
18836 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
18837 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
18840 if test -z "$AM_DEFAULT_VERBOSITY"; then
18841 AM_DEFAULT_VERBOSITY=1
18845 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
18846 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
18847 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
18852 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
18853 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
18854 intltool__v_merge_options_0='-q'
18859 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18860 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18861 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18862 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18863 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
18864 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18865 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18866 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18867 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18868 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18869 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18870 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
18871 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
18873 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
18875 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18876 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18877 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18878 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18879 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18880 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18881 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18979 # Check the gettext tools to make sure they are GNU
18980 # Extract the first word of "xgettext", so it can be a program name with args.
18981 set dummy xgettext; ac_word=$2
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18983 $as_echo_n "checking for $ac_word... " >&6; }
18984 if ${ac_cv_path_XGETTEXT+:} false; then :
18985 $as_echo_n "(cached) " >&6
18989 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18993 for as_dir in $PATH
18996 test -z "$as_dir" && as_dir=.
18997 for ac_exec_ext in '' $ac_executable_extensions; do
18998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18999 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19010 XGETTEXT=$ac_cv_path_XGETTEXT
19011 if test -n "$XGETTEXT"; then
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19013 $as_echo "$XGETTEXT" >&6; }
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016 $as_echo "no" >&6; }
19020 # Extract the first word of "msgmerge", so it can be a program name with args.
19021 set dummy msgmerge; ac_word=$2
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023 $as_echo_n "checking for $ac_word... " >&6; }
19024 if ${ac_cv_path_MSGMERGE+:} false; then :
19025 $as_echo_n "(cached) " >&6
19029 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033 for as_dir in $PATH
19036 test -z "$as_dir" && as_dir=.
19037 for ac_exec_ext in '' $ac_executable_extensions; do
19038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19039 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050 MSGMERGE=$ac_cv_path_MSGMERGE
19051 if test -n "$MSGMERGE"; then
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19053 $as_echo "$MSGMERGE" >&6; }
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19060 # Extract the first word of "msgfmt", so it can be a program name with args.
19061 set dummy msgfmt; ac_word=$2
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19063 $as_echo_n "checking for $ac_word... " >&6; }
19064 if ${ac_cv_path_MSGFMT+:} false; then :
19065 $as_echo_n "(cached) " >&6
19069 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19073 for as_dir in $PATH
19076 test -z "$as_dir" && as_dir=.
19077 for ac_exec_ext in '' $ac_executable_extensions; do
19078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19079 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19090 MSGFMT=$ac_cv_path_MSGFMT
19091 if test -n "$MSGFMT"; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19093 $as_echo "$MSGFMT" >&6; }
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19100 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19101 set dummy gmsgfmt; ac_word=$2
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19103 $as_echo_n "checking for $ac_word... " >&6; }
19104 if ${ac_cv_path_GMSGFMT+:} false; then :
19105 $as_echo_n "(cached) " >&6
19109 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19113 for as_dir in $PATH
19116 test -z "$as_dir" && as_dir=.
19117 for ac_exec_ext in '' $ac_executable_extensions; do
19118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19119 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19127 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19131 GMSGFMT=$ac_cv_path_GMSGFMT
19132 if test -n "$GMSGFMT"; then
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19134 $as_echo "$GMSGFMT" >&6; }
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19141 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
19142 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19144 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
19145 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
19146 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
19147 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
19148 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19151 # Extract the first word of "perl", so it can be a program name with args.
19152 set dummy perl; ac_word=$2
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19154 $as_echo_n "checking for $ac_word... " >&6; }
19155 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
19156 $as_echo_n "(cached) " >&6
19158 case $INTLTOOL_PERL in
19160 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
19163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19164 for as_dir in $PATH
19167 test -z "$as_dir" && as_dir=.
19168 for ac_exec_ext in '' $ac_executable_extensions; do
19169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19170 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
19171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19181 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
19182 if test -n "$INTLTOOL_PERL"; then
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
19184 $as_echo "$INTLTOOL_PERL" >&6; }
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19187 $as_echo "no" >&6; }
19191 if test -z "$INTLTOOL_PERL"; then
19192 as_fn_error $? "perl not found" "$LINENO" 5
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
19195 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
19196 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
19197 if test $? -ne 0; then
19198 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
19200 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
19202 $as_echo "$IT_PERL_VERSION" >&6; }
19204 if test "x" != "xno-xml"; then
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
19206 $as_echo_n "checking for XML::Parser... " >&6; }
19207 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19209 $as_echo "ok" >&6; }
19211 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
19215 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19218 # Set DATADIRNAME correctly if it is not set yet
19219 # (copied from glib-gettext.m4)
19220 if test -z "$DATADIRNAME"; then
19221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222 /* end confdefs.h. */
19227 extern int _nl_msg_cat_cntr;
19228 return _nl_msg_cat_cntr
19233 if ac_fn_cxx_try_link "$LINENO"; then :
19238 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19239 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19251 rm -f core conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19259 GETTEXT_PACKAGE=syncevolution
19261 cat >>confdefs.h <<_ACEOF
19262 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19266 for ac_header in locale.h
19268 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_locale_h" = xyes; then :
19270 cat >>confdefs.h <<_ACEOF
19271 #define HAVE_LOCALE_H 1
19278 if test $ac_cv_header_locale_h = yes; then
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19280 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19281 if ${am_cv_val_LC_MESSAGES+:} false; then :
19282 $as_echo_n "(cached) " >&6
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19286 #include <locale.h>
19295 if ac_fn_cxx_try_link "$LINENO"; then :
19296 am_cv_val_LC_MESSAGES=yes
19298 am_cv_val_LC_MESSAGES=no
19300 rm -f core conftest.err conftest.$ac_objext \
19301 conftest$ac_exeext conftest.$ac_ext
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19304 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19305 if test $am_cv_val_LC_MESSAGES = yes; then
19307 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19314 gt_cv_have_gettext=no
19320 ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19321 if test "x$ac_cv_header_libintl_h" = xyes; then :
19322 gt_cv_func_dgettext_libintl="no"
19323 libintl_extra_libs=""
19326 # First check in libc
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19329 $as_echo_n "checking for ngettext in libc... " >&6; }
19330 if ${gt_cv_func_ngettext_libc+:} false; then :
19331 $as_echo_n "(cached) " >&6
19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19336 #include <libintl.h>
19341 return !ngettext ("","", 1)
19346 if ac_fn_cxx_try_link "$LINENO"; then :
19347 gt_cv_func_ngettext_libc=yes
19349 gt_cv_func_ngettext_libc=no
19351 rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19356 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19358 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19360 $as_echo_n "checking for dgettext in libc... " >&6; }
19361 if ${gt_cv_func_dgettext_libc+:} false; then :
19362 $as_echo_n "(cached) " >&6
19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19367 #include <libintl.h>
19372 return !dgettext ("","")
19377 if ac_fn_cxx_try_link "$LINENO"; then :
19378 gt_cv_func_dgettext_libc=yes
19380 gt_cv_func_dgettext_libc=no
19382 rm -f core conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19387 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19390 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19391 for ac_func in bind_textdomain_codeset
19393 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19394 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19395 cat >>confdefs.h <<_ACEOF
19396 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19405 # If we don't have everything we want, check in libintl
19407 if test "$gt_cv_func_dgettext_libc" != "yes" \
19408 || test "$gt_cv_func_ngettext_libc" != "yes" \
19409 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19412 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19413 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
19414 $as_echo_n "(cached) " >&6
19416 ac_check_lib_save_LIBS=$LIBS
19417 LIBS="-lintl $LIBS"
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19427 char bindtextdomain ();
19431 return bindtextdomain ();
19436 if ac_fn_cxx_try_link "$LINENO"; then :
19437 ac_cv_lib_intl_bindtextdomain=yes
19439 ac_cv_lib_intl_bindtextdomain=no
19441 rm -f core conftest.err conftest.$ac_objext \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19446 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19447 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19449 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19450 if ${ac_cv_lib_intl_ngettext+:} false; then :
19451 $as_echo_n "(cached) " >&6
19453 ac_check_lib_save_LIBS=$LIBS
19454 LIBS="-lintl $LIBS"
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19458 /* Override any GCC internal prototype to avoid an error.
19459 Use char because int might match the return type of a GCC
19460 builtin and then its argument prototype would still apply. */
19468 return ngettext ();
19473 if ac_fn_cxx_try_link "$LINENO"; then :
19474 ac_cv_lib_intl_ngettext=yes
19476 ac_cv_lib_intl_ngettext=no
19478 rm -f core conftest.err conftest.$ac_objext \
19479 conftest$ac_exeext conftest.$ac_ext
19480 LIBS=$ac_check_lib_save_LIBS
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19483 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19484 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19486 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19487 if ${ac_cv_lib_intl_dgettext+:} false; then :
19488 $as_echo_n "(cached) " >&6
19490 ac_check_lib_save_LIBS=$LIBS
19491 LIBS="-lintl $LIBS"
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19505 return dgettext ();
19510 if ac_fn_cxx_try_link "$LINENO"; then :
19511 ac_cv_lib_intl_dgettext=yes
19513 ac_cv_lib_intl_dgettext=no
19515 rm -f core conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19520 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19521 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19522 gt_cv_func_dgettext_libintl=yes
19530 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19532 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19536 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19537 if ${ac_cv_lib_intl_ngettext+:} false; then :
19538 $as_echo_n "(cached) " >&6
19540 ac_check_lib_save_LIBS=$LIBS
19541 LIBS="-lintl -liconv $LIBS"
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19545 /* Override any GCC internal prototype to avoid an error.
19546 Use char because int might match the return type of a GCC
19547 builtin and then its argument prototype would still apply. */
19555 return ngettext ();
19560 if ac_fn_cxx_try_link "$LINENO"; then :
19561 ac_cv_lib_intl_ngettext=yes
19563 ac_cv_lib_intl_ngettext=no
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19570 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19571 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19573 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19574 if ${ac_cv_lib_intl_dcgettext+:} false; then :
19575 $as_echo_n "(cached) " >&6
19577 ac_check_lib_save_LIBS=$LIBS
19578 LIBS="-lintl -liconv $LIBS"
19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19582 /* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19592 return dcgettext ();
19597 if ac_fn_cxx_try_link "$LINENO"; then :
19598 ac_cv_lib_intl_dcgettext=yes
19600 ac_cv_lib_intl_dcgettext=no
19602 rm -f core conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
19604 LIBS=$ac_check_lib_save_LIBS
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19607 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19608 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
19609 gt_cv_func_dgettext_libintl=yes
19610 libintl_extra_libs=-liconv
19622 # If we found libintl, then check in it for bind_textdomain_codeset();
19623 # we'll prefer libc if neither have bind_textdomain_codeset(),
19624 # and both have dgettext and ngettext
19626 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19627 glib_save_LIBS="$LIBS"
19628 LIBS="$LIBS -lintl $libintl_extra_libs"
19629 unset ac_cv_func_bind_textdomain_codeset
19630 for ac_func in bind_textdomain_codeset
19632 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19633 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19634 cat >>confdefs.h <<_ACEOF
19635 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19641 LIBS="$glib_save_LIBS"
19643 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19644 gt_cv_func_dgettext_libc=no
19646 if test "$gt_cv_func_dgettext_libc" = "yes" \
19647 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19648 gt_cv_func_dgettext_libintl=no
19654 if test "$gt_cv_func_dgettext_libc" = "yes" \
19655 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19656 gt_cv_have_gettext=yes
19659 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19660 INTLLIBS="-lintl $libintl_extra_libs"
19663 if test "$gt_cv_have_gettext" = "yes"; then
19665 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19667 # Extract the first word of "msgfmt", so it can be a program name with args.
19668 set dummy msgfmt; ac_word=$2
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19670 $as_echo_n "checking for $ac_word... " >&6; }
19671 if ${ac_cv_path_MSGFMT+:} false; then :
19672 $as_echo_n "(cached) " >&6
19676 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19680 for ac_dir in $PATH; do
19681 test -z "$ac_dir" && ac_dir=.
19682 if test -f $ac_dir/$ac_word; then
19683 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19684 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19690 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19694 MSGFMT="$ac_cv_path_MSGFMT"
19695 if test "$MSGFMT" != "no"; then
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19697 $as_echo "$MSGFMT" >&6; }
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19700 $as_echo "no" >&6; }
19702 if test "$MSGFMT" != "no"; then
19703 glib_save_LIBS="$LIBS"
19704 LIBS="$LIBS $INTLLIBS"
19705 for ac_func in dcgettext
19707 ac_fn_cxx_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19708 if test "x$ac_cv_func_dcgettext" = xyes; then :
19709 cat >>confdefs.h <<_ACEOF
19710 #define HAVE_DCGETTEXT 1
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
19718 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
19719 cat >conftest.foo <<_ACEOF
19723 "Content-Type: text/plain; charset=UTF-8\n"
19724 "Project-Id-Version: test 1.0\n"
19725 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
19726 "Last-Translator: test <foo@bar.xx>\n"
19727 "Language-Team: C <LL@li.org>\n"
19728 "MIME-Version: 1.0\n"
19729 "Content-Transfer-Encoding: 8bit\n"
19732 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
19733 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
19735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19736 test $ac_status = 0; }; then
19737 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19738 $as_echo "yes" >&6; }
19739 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19740 $as_echo "no" >&6; }
19741 echo "$as_me: failed input was:" >&5
19742 sed 's/^/| /' conftest.foo >&5
19745 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19746 set dummy gmsgfmt; ac_word=$2
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19748 $as_echo_n "checking for $ac_word... " >&6; }
19749 if ${ac_cv_path_GMSGFMT+:} false; then :
19750 $as_echo_n "(cached) " >&6
19754 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19758 for as_dir in $PATH
19761 test -z "$as_dir" && as_dir=.
19762 for ac_exec_ext in '' $ac_executable_extensions; do
19763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19764 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19772 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19776 GMSGFMT=$ac_cv_path_GMSGFMT
19777 if test -n "$GMSGFMT"; then
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19779 $as_echo "$GMSGFMT" >&6; }
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19786 # Extract the first word of "xgettext", so it can be a program name with args.
19787 set dummy xgettext; ac_word=$2
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19789 $as_echo_n "checking for $ac_word... " >&6; }
19790 if ${ac_cv_path_XGETTEXT+:} false; then :
19791 $as_echo_n "(cached) " >&6
19793 case "$XGETTEXT" in
19795 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19799 for ac_dir in $PATH; do
19800 test -z "$ac_dir" && ac_dir=.
19801 if test -f $ac_dir/$ac_word; then
19802 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19803 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19809 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19813 XGETTEXT="$ac_cv_path_XGETTEXT"
19814 if test "$XGETTEXT" != ":"; then
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19816 $as_echo "$XGETTEXT" >&6; }
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19819 $as_echo "no" >&6; }
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19828 extern int _nl_msg_cat_cntr;
19829 return _nl_msg_cat_cntr
19834 if ac_fn_cxx_try_link "$LINENO"; then :
19840 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19841 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19860 rm -f core conftest.err conftest.$ac_objext \
19861 conftest$ac_exeext conftest.$ac_ext
19862 LIBS="$glib_save_LIBS"
19865 gt_cv_have_gettext=no
19873 if test "$gt_cv_have_gettext" = "yes" ; then
19875 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19879 if test "$XGETTEXT" != ":"; then
19880 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19884 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19889 # We need to process the po/ directory.
19892 ac_config_commands="$ac_config_commands default-1"
19895 for lang in $ALL_LINGUAS; do
19896 GMOFILES="$GMOFILES $lang.gmo"
19897 POFILES="$POFILES $lang.po"
19912 if test "$gt_cv_have_gettext" = "yes"; then
19913 if test "x$ALL_LINGUAS" = "x"; then
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19917 $as_echo_n "checking for catalogs to be installed... " >&6; }
19919 for presentlang in $ALL_LINGUAS; do
19921 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19922 desiredlanguages="$LINGUAS"
19924 desiredlanguages="$ALL_LINGUAS"
19926 for desiredlang in $desiredlanguages; do
19927 # Use the presentlang catalog if desiredlang is
19928 # a. equal to presentlang, or
19929 # b. a variant of presentlang (because in this case,
19930 # presentlang can be used as a fallback for messages
19931 # which are not translated in the desiredlang catalog).
19932 case "$desiredlang" in
19933 "$presentlang"*) useit=yes;;
19936 if test $useit = yes; then
19937 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
19940 LINGUAS=$NEW_LINGUAS
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19942 $as_echo "$LINGUAS" >&6; }
19945 if test -n "$LINGUAS"; then
19946 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
19951 if test -n "$ac_aux_dir"; then
19952 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
19954 if test -z "$MKINSTALLDIRS"; then
19955 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
19959 test -d po || mkdir po
19960 if test "x$srcdir" != "x."; then
19961 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19962 posrcprefix="$srcdir/"
19964 posrcprefix="../$srcdir/"
19970 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19971 < $srcdir/po/POTFILES.in > po/POTFILES
19973 SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
19976 # decide which sync-ui(s) we are building:
19977 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
19979 if test $gtk_version = "gtk+-3.0"; then
19980 gtk_dir=src/gtk3-ui
19985 case $enable_gui in
19986 all) GUI_PROGRAMS=${gtk_dir}'/sync-ui-gtk${EXEEXT} '${gtk_dir}'/sync-ui-moblin${EXEEXT}'; GUI_DESKTOP_FILES="${gtk_dir}/sync-gtk.desktop ${gtk_dir}/sync-moblin.desktop";;
19987 gtk|moblin) GUI_PROGRAMS=${gtk_dir}'/sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="${gtk_dir}/sync.desktop";;
19988 no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
19989 *) as_fn_error $? "Unknown enable_gui type: '$enable_gui'" "$LINENO" 5
19992 if test $enable_gui != "no"; then
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
19996 $as_echo_n "checking for DBUS_GLIB... " >&6; }
19998 if test -n "$DBUS_GLIB_CFLAGS"; then
19999 pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
20000 elif test -n "$PKG_CONFIG"; then
20001 if test -n "$PKG_CONFIG" && \
20002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20003 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20006 test $ac_status = 0; }; then
20007 pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
20008 test "x$?" != "x0" && pkg_failed=yes
20015 if test -n "$DBUS_GLIB_LIBS"; then
20016 pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
20017 elif test -n "$PKG_CONFIG"; then
20018 if test -n "$PKG_CONFIG" && \
20019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\""; } >&5
20020 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
20022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20023 test $ac_status = 0; }; then
20024 pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
20025 test "x$?" != "x0" && pkg_failed=yes
20035 if test $pkg_failed = yes; then
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20037 $as_echo "no" >&6; }
20039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20040 _pkg_short_errors_supported=yes
20042 _pkg_short_errors_supported=no
20044 if test $_pkg_short_errors_supported = yes; then
20045 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20047 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-glib-1 glib-2.0" 2>&1`
20049 # Put the nasty error message in config.log where it belongs
20050 echo "$DBUS_GLIB_PKG_ERRORS" >&5
20052 as_fn_error $? "Package requirements (dbus-glib-1 glib-2.0) were not met:
20054 $DBUS_GLIB_PKG_ERRORS
20056 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20057 installed software in a non-standard prefix.
20059 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20060 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20061 See the pkg-config man page for more details." "$LINENO" 5
20062 elif test $pkg_failed = untried; then
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20064 $as_echo "no" >&6; }
20065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20067 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20068 is in your PATH or set the PKG_CONFIG environment variable to the full
20069 path to pkg-config.
20071 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
20072 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
20073 See the pkg-config man page for more details.
20075 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20076 See \`config.log' for more details" "$LINENO" 5; }
20078 DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
20079 DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20081 $as_echo "yes" >&6; }
20084 # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
20085 set dummy dbus-binding-tool; ac_word=$2
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20087 $as_echo_n "checking for $ac_word... " >&6; }
20088 if ${ac_cv_path_DBUS_BINDING_TOOL+:} false; then :
20089 $as_echo_n "(cached) " >&6
20091 case $DBUS_BINDING_TOOL in
20093 ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
20096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in $PATH
20100 test -z "$as_dir" && as_dir=.
20101 for ac_exec_ext in '' $ac_executable_extensions; do
20102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20103 ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
20104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20114 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
20115 if test -n "$DBUS_BINDING_TOOL"; then
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_BINDING_TOOL" >&5
20117 $as_echo "$DBUS_BINDING_TOOL" >&6; }
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20120 $as_echo "no" >&6; }
20124 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
20125 set dummy glib-genmarshal; ac_word=$2
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20127 $as_echo_n "checking for $ac_word... " >&6; }
20128 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
20129 $as_echo_n "(cached) " >&6
20131 case $GLIB_GENMARSHAL in
20133 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
20136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20137 for as_dir in $PATH
20140 test -z "$as_dir" && as_dir=.
20141 for ac_exec_ext in '' $ac_executable_extensions; do
20142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20143 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
20144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20154 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
20155 if test -n "$GLIB_GENMARSHAL"; then
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
20157 $as_echo "$GLIB_GENMARSHAL" >&6; }
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20160 $as_echo "no" >&6; }
20165 gui_modules="$gtk_version glib-2.0 dbus-glib-1 >= 0.60 gio-2.0 gio-unix-2.0"
20166 if test $enable_gui = "moblin"; then
20168 $as_echo "#define USE_MOBLIN_UX 1" >>confdefs.h
20172 # gtk3 provides a switch widget, otherwise we need mx-gtk
20173 if test $gtk_version != "gtk+-3.0" &&
20174 test $enable_gui = "moblin" -o $enable_gui = "all"; then
20175 gui_modules="$gui_modules mx-gtk-1.0"
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX_GTK_0_99_1" >&5
20180 $as_echo_n "checking for MX_GTK_0_99_1... " >&6; }
20182 if test -n "$MX_GTK_0_99_1_CFLAGS"; then
20183 pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
20184 elif test -n "$PKG_CONFIG"; then
20185 if test -n "$PKG_CONFIG" && \
20186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20187 ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20190 test $ac_status = 0; }; then
20191 pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20192 test "x$?" != "x0" && pkg_failed=yes
20199 if test -n "$MX_GTK_0_99_1_LIBS"; then
20200 pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
20201 elif test -n "$PKG_CONFIG"; then
20202 if test -n "$PKG_CONFIG" && \
20203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\""; } >&5
20204 ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
20206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20207 test $ac_status = 0; }; then
20208 pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
20209 test "x$?" != "x0" && pkg_failed=yes
20219 if test $pkg_failed = yes; then
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20221 $as_echo "no" >&6; }
20223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20224 _pkg_short_errors_supported=yes
20226 _pkg_short_errors_supported=no
20228 if test $_pkg_short_errors_supported = yes; then
20229 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20231 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mx-gtk-1.0 >= 0.99.1" 2>&1`
20233 # Put the nasty error message in config.log where it belongs
20234 echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
20236 have_mx_gtk_0_99_1="no"
20237 elif test $pkg_failed = untried; then
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20239 $as_echo "no" >&6; }
20240 have_mx_gtk_0_99_1="no"
20242 MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
20243 MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20245 $as_echo "yes" >&6; }
20246 have_mx_gtk_0_99_1="yes"
20248 if test $have_mx_gtk_0_99_1 = "yes"; then
20250 $as_echo "#define MX_GTK_0_99_1 1" >>confdefs.h
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQUE" >&5
20258 $as_echo_n "checking for UNIQUE... " >&6; }
20260 if test -n "$UNIQUE_CFLAGS"; then
20261 pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
20262 elif test -n "$PKG_CONFIG"; then
20263 if test -n "$PKG_CONFIG" && \
20264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20265 ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20268 test $ac_status = 0; }; then
20269 pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
20270 test "x$?" != "x0" && pkg_failed=yes
20277 if test -n "$UNIQUE_LIBS"; then
20278 pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
20279 elif test -n "$PKG_CONFIG"; then
20280 if test -n "$PKG_CONFIG" && \
20281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unique-1.0\""; } >&5
20282 ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
20284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20285 test $ac_status = 0; }; then
20286 pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
20287 test "x$?" != "x0" && pkg_failed=yes
20297 if test $pkg_failed = yes; then
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20299 $as_echo "no" >&6; }
20301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20302 _pkg_short_errors_supported=yes
20304 _pkg_short_errors_supported=no
20306 if test $_pkg_short_errors_supported = yes; then
20307 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unique-1.0" 2>&1`
20309 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unique-1.0" 2>&1`
20311 # Put the nasty error message in config.log where it belongs
20312 echo "$UNIQUE_PKG_ERRORS" >&5
20315 elif test $pkg_failed = untried; then
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20317 $as_echo "no" >&6; }
20320 UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
20321 UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20323 $as_echo "yes" >&6; }
20326 if test $have_unique = "yes"; then
20327 gui_modules="$gui_modules unique-1.0"
20329 $as_echo "#define ENABLE_UNIQUE 1" >>confdefs.h
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_2_18" >&5
20336 $as_echo_n "checking for GTK_2_18... " >&6; }
20338 if test -n "$GTK_2_18_CFLAGS"; then
20339 pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
20340 elif test -n "$PKG_CONFIG"; then
20341 if test -n "$PKG_CONFIG" && \
20342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20343 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20346 test $ac_status = 0; }; then
20347 pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
20348 test "x$?" != "x0" && pkg_failed=yes
20355 if test -n "$GTK_2_18_LIBS"; then
20356 pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
20357 elif test -n "$PKG_CONFIG"; then
20358 if test -n "$PKG_CONFIG" && \
20359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
20360 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
20362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20363 test $ac_status = 0; }; then
20364 pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
20365 test "x$?" != "x0" && pkg_failed=yes
20375 if test $pkg_failed = yes; then
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20377 $as_echo "no" >&6; }
20379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20380 _pkg_short_errors_supported=yes
20382 _pkg_short_errors_supported=no
20384 if test $_pkg_short_errors_supported = yes; then
20385 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20387 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
20389 # Put the nasty error message in config.log where it belongs
20390 echo "$GTK_2_18_PKG_ERRORS" >&5
20393 elif test $pkg_failed = untried; then
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20395 $as_echo "no" >&6; }
20398 GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
20399 GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20401 $as_echo "yes" >&6; }
20402 have_gtk_2_18="yes"
20404 if test $have_gtk_2_18 = "yes"; then
20406 $as_echo "#define GTK_2_18 1" >>confdefs.h
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUI" >&5
20413 $as_echo_n "checking for GUI... " >&6; }
20415 if test -n "$GUI_CFLAGS"; then
20416 pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
20417 elif test -n "$PKG_CONFIG"; then
20418 if test -n "$PKG_CONFIG" && \
20419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20420 ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20423 test $ac_status = 0; }; then
20424 pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
20425 test "x$?" != "x0" && pkg_failed=yes
20432 if test -n "$GUI_LIBS"; then
20433 pkg_cv_GUI_LIBS="$GUI_LIBS"
20434 elif test -n "$PKG_CONFIG"; then
20435 if test -n "$PKG_CONFIG" && \
20436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\""; } >&5
20437 ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
20439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20440 test $ac_status = 0; }; then
20441 pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
20442 test "x$?" != "x0" && pkg_failed=yes
20452 if test $pkg_failed = yes; then
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20454 $as_echo "no" >&6; }
20456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20457 _pkg_short_errors_supported=yes
20459 _pkg_short_errors_supported=no
20461 if test $_pkg_short_errors_supported = yes; then
20462 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$gui_modules" 2>&1`
20464 GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$gui_modules" 2>&1`
20466 # Put the nasty error message in config.log where it belongs
20467 echo "$GUI_PKG_ERRORS" >&5
20469 as_fn_error $? "Package requirements ($gui_modules) were not met:
20473 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20474 installed software in a non-standard prefix.
20476 Alternatively, you may set the environment variables GUI_CFLAGS
20477 and GUI_LIBS to avoid the need to call pkg-config.
20478 See the pkg-config man page for more details." "$LINENO" 5
20479 elif test $pkg_failed = untried; then
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20481 $as_echo "no" >&6; }
20482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20484 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20485 is in your PATH or set the PKG_CONFIG environment variable to the full
20486 path to pkg-config.
20488 Alternatively, you may set the environment variables GUI_CFLAGS
20489 and GUI_LIBS to avoid the need to call pkg-config.
20490 See the pkg-config man page for more details.
20492 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20493 See \`config.log' for more details" "$LINENO" 5; }
20495 GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
20496 GUI_LIBS=$pkg_cv_GUI_LIBS
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20502 elif test "$enable_dbus_service" = "yes"; then
20503 # syncevo-dbus-server needs localization
20506 INTLTOOL_UPDATE="true"
20516 # C++ regular expression support is required often enough to make it
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRECPP" >&5
20521 $as_echo_n "checking for PCRECPP... " >&6; }
20523 if test -n "$PCRECPP_CFLAGS"; then
20524 pkg_cv_PCRECPP_CFLAGS="$PCRECPP_CFLAGS"
20525 elif test -n "$PKG_CONFIG"; then
20526 if test -n "$PKG_CONFIG" && \
20527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20528 ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20531 test $ac_status = 0; }; then
20532 pkg_cv_PCRECPP_CFLAGS=`$PKG_CONFIG --cflags "libpcrecpp" 2>/dev/null`
20533 test "x$?" != "x0" && pkg_failed=yes
20540 if test -n "$PCRECPP_LIBS"; then
20541 pkg_cv_PCRECPP_LIBS="$PCRECPP_LIBS"
20542 elif test -n "$PKG_CONFIG"; then
20543 if test -n "$PKG_CONFIG" && \
20544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp\""; } >&5
20545 ($PKG_CONFIG --exists --print-errors "libpcrecpp") 2>&5
20547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20548 test $ac_status = 0; }; then
20549 pkg_cv_PCRECPP_LIBS=`$PKG_CONFIG --libs "libpcrecpp" 2>/dev/null`
20550 test "x$?" != "x0" && pkg_failed=yes
20560 if test $pkg_failed = yes; then
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20562 $as_echo "no" >&6; }
20564 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20565 _pkg_short_errors_supported=yes
20567 _pkg_short_errors_supported=no
20569 if test $_pkg_short_errors_supported = yes; then
20570 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcrecpp" 2>&1`
20572 PCRECPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcrecpp" 2>&1`
20574 # Put the nasty error message in config.log where it belongs
20575 echo "$PCRECPP_PKG_ERRORS" >&5
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20578 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20579 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20580 $as_echo_n "(cached) " >&6
20582 ac_check_lib_save_LIBS=$LIBS
20583 LIBS="-lpcrecpp $LIBS"
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20596 if ac_fn_cxx_try_link "$LINENO"; then :
20597 ac_cv_lib_pcrecpp_main=yes
20599 ac_cv_lib_pcrecpp_main=no
20601 rm -f core conftest.err conftest.$ac_objext \
20602 conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20606 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20607 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20608 PCRECPP_LIBS=-lpcrecpp
20611 as_fn_error $? "pcrecpp not found" "$LINENO" 5
20615 elif test $pkg_failed = untried; then
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 $as_echo "no" >&6; }
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcrecpp" >&5
20619 $as_echo_n "checking for main in -lpcrecpp... " >&6; }
20620 if ${ac_cv_lib_pcrecpp_main+:} false; then :
20621 $as_echo_n "(cached) " >&6
20623 ac_check_lib_save_LIBS=$LIBS
20624 LIBS="-lpcrecpp $LIBS"
20625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626 /* end confdefs.h. */
20637 if ac_fn_cxx_try_link "$LINENO"; then :
20638 ac_cv_lib_pcrecpp_main=yes
20640 ac_cv_lib_pcrecpp_main=no
20642 rm -f core conftest.err conftest.$ac_objext \
20643 conftest$ac_exeext conftest.$ac_ext
20644 LIBS=$ac_check_lib_save_LIBS
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcrecpp_main" >&5
20647 $as_echo "$ac_cv_lib_pcrecpp_main" >&6; }
20648 if test "x$ac_cv_lib_pcrecpp_main" = xyes; then :
20649 PCRECPP_LIBS=-lpcrecpp
20652 as_fn_error $? "pcrecpp not found" "$LINENO" 5
20657 PCRECPP_CFLAGS=$pkg_cv_PCRECPP_CFLAGS
20658 PCRECPP_LIBS=$pkg_cv_PCRECPP_LIBS
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20660 $as_echo "yes" >&6; }
20664 # need rst2man for man pages
20666 # Check whether --with-rst2man was given.
20667 if test "${with_rst2man+set}" = set; then :
20668 withval=$with_rst2man; RST2MAN=$withval
20669 if test "$RST2MAN" = "yes"; then
20670 # Extract the first word of "rst2man", so it can be a program name with args.
20671 set dummy rst2man; ac_word=$2
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20673 $as_echo_n "checking for $ac_word... " >&6; }
20674 if ${ac_cv_path_RST2MAN+:} false; then :
20675 $as_echo_n "(cached) " >&6
20679 ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20683 for as_dir in $PATH
20686 test -z "$as_dir" && as_dir=.
20687 for ac_exec_ext in '' $ac_executable_extensions; do
20688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20689 ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20697 test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
20701 RST2MAN=$ac_cv_path_RST2MAN
20702 if test -n "$RST2MAN"; then
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
20704 $as_echo "$RST2MAN" >&6; }
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707 $as_echo "no" >&6; }
20712 test "$RST2MAN" = "no" || test -x "$RST2MAN" || as_fn_error $? "--with-rst2man=$RST2MAN: tool not found" "$LINENO" 5
20714 # Extract the first word of "rst2man", so it can be a program name with args.
20715 set dummy rst2man; ac_word=$2
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20717 $as_echo_n "checking for $ac_word... " >&6; }
20718 if ${ac_cv_path_RST2MAN+:} false; then :
20719 $as_echo_n "(cached) " >&6
20723 ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
20726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20727 for as_dir in $PATH
20730 test -z "$as_dir" && as_dir=.
20731 for ac_exec_ext in '' $ac_executable_extensions; do
20732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20733 ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
20734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20741 test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
20745 RST2MAN=$ac_cv_path_RST2MAN
20746 if test -n "$RST2MAN"; then
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
20748 $as_echo "$RST2MAN" >&6; }
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20751 $as_echo "no" >&6; }
20757 if test "$RST2MAN" != "no"; then
20758 COND_MAN_PAGES_TRUE=
20759 COND_MAN_PAGES_FALSE='#'
20761 COND_MAN_PAGES_TRUE='#'
20762 COND_MAN_PAGES_FALSE=
20766 # need rst2html for HTML version of README
20768 # Check whether --with-rst2html was given.
20769 if test "${with_rst2html+set}" = set; then :
20770 withval=$with_rst2html; RST2HTML=$withval
20771 if test "$RST2HTML" = "yes"; then
20772 # Extract the first word of "rst2html", so it can be a program name with args.
20773 set dummy rst2html; ac_word=$2
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20775 $as_echo_n "checking for $ac_word... " >&6; }
20776 if ${ac_cv_path_RST2HTML+:} false; then :
20777 $as_echo_n "(cached) " >&6
20781 ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
20784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20785 for as_dir in $PATH
20788 test -z "$as_dir" && as_dir=.
20789 for ac_exec_ext in '' $ac_executable_extensions; do
20790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20791 ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
20792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20799 test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
20803 RST2HTML=$ac_cv_path_RST2HTML
20804 if test -n "$RST2HTML"; then
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
20806 $as_echo "$RST2HTML" >&6; }
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20809 $as_echo "no" >&6; }
20814 test "$RST2HTML" = "no" || test -x "$RST2HTML" || as_fn_error $? "--with-rst2html=$RST2HTML: tool not found" "$LINENO" 5
20816 # Extract the first word of "rst2html", so it can be a program name with args.
20817 set dummy rst2html; ac_word=$2
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20819 $as_echo_n "checking for $ac_word... " >&6; }
20820 if ${ac_cv_path_RST2HTML+:} false; then :
20821 $as_echo_n "(cached) " >&6
20825 ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
20828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20829 for as_dir in $PATH
20832 test -z "$as_dir" && as_dir=.
20833 for ac_exec_ext in '' $ac_executable_extensions; do
20834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20835 ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
20836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20843 test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
20847 RST2HTML=$ac_cv_path_RST2HTML
20848 if test -n "$RST2HTML"; then
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
20850 $as_echo "$RST2HTML" >&6; }
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20853 $as_echo "no" >&6; }
20859 if test "$RST2HTML" != "no"; then
20860 COND_HTML_README_TRUE=
20861 COND_HTML_README_FALSE='#'
20863 COND_HTML_README_TRUE='#'
20864 COND_HTML_README_FALSE=
20868 # absolute patch to source of Synthesis client library
20869 SYNTHESIS_SRC=no-synthesis-source
20871 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
20872 # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
20873 CLEAN_CLIENT_SRC=synthesis-workdir
20874 SYNTHESIS_SRC=$PWD/src/synthesis-workdir
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
20877 $as_echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
20878 case "$SYNTHESISSRC" in
20879 *.git) protocol=git;;
20880 *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
20881 *) protocol="file";;
20887 # use existing copy of the sources
20889 case "$SYNTHESISSRC" in
20890 /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
20891 *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
20895 SYNTHESISSRCREV="$SYNTHESISSRC"
20896 if test "$REVISION"; then
20897 revarg="-r $REVISION "
20898 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
20901 SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
20904 if test -d $SYNTHESIS_SRC ; then
20905 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
20907 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
20911 if test -d $SYNTHESIS_SRC ; then
20912 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || as_fn_error $? "updating from $SYNTHESISSRC failed" "$LINENO" 5
20914 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || as_fn_error $? "cloning $SYNTHESISSRC failed" "$LINENO" 5
20916 if test "$REVISION"; then
20917 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
20918 ( set -x; cd $SYNTHESIS_SRC &&
20919 (git checkout "$REVISION" ||
20920 git checkout "tags/$REVISION" ||
20921 git checkout "origin/$REVISION") ) || as_fn_error $? "checking out $SYNTHESISSRC failed" "$LINENO" 5
20925 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
20926 # use existing copy of the sources; beware of
20927 # out-of-tree compilation
20929 /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
20930 *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
20932 elif test "$enable_shared" = "no"; then
20933 # link against engine
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
20937 $as_echo_n "checking for SYNTHESIS... " >&6; }
20939 if test -n "$SYNTHESIS_CFLAGS"; then
20940 pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
20941 elif test -n "$PKG_CONFIG"; then
20942 if test -n "$PKG_CONFIG" && \
20943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
20944 ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
20946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20947 test $ac_status = 0; }; then
20948 pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4" 2>/dev/null`
20949 test "x$?" != "x0" && pkg_failed=yes
20956 if test -n "$SYNTHESIS_LIBS"; then
20957 pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
20958 elif test -n "$PKG_CONFIG"; then
20959 if test -n "$PKG_CONFIG" && \
20960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4\""; } >&5
20961 ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4") 2>&5
20963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20964 test $ac_status = 0; }; then
20965 pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4" 2>/dev/null`
20966 test "x$?" != "x0" && pkg_failed=yes
20976 if test $pkg_failed = yes; then
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20978 $as_echo "no" >&6; }
20980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20981 _pkg_short_errors_supported=yes
20983 _pkg_short_errors_supported=no
20985 if test $_pkg_short_errors_supported = yes; then
20986 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
20988 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4" 2>&1`
20990 # Put the nasty error message in config.log where it belongs
20991 echo "$SYNTHESIS_PKG_ERRORS" >&5
20993 as_fn_error $? "Package requirements (synthesis >= 3.4) were not met:
20995 $SYNTHESIS_PKG_ERRORS
20997 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20998 installed software in a non-standard prefix.
21000 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21001 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21002 See the pkg-config man page for more details." "$LINENO" 5
21003 elif test $pkg_failed = untried; then
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005 $as_echo "no" >&6; }
21006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21008 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21009 is in your PATH or set the PKG_CONFIG environment variable to the full
21010 path to pkg-config.
21012 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21013 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21014 See the pkg-config man page for more details.
21016 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21017 See \`config.log' for more details" "$LINENO" 5; }
21019 SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21020 SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022 $as_echo "yes" >&6; }
21025 SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis -lsmltk"
21027 # link against SDK alone, except in client-test
21028 #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
21029 #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
21031 # can't use the SDK alone because of sysync::SySyncDebugPuts()
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYNTHESIS" >&5
21035 $as_echo_n "checking for SYNTHESIS... " >&6; }
21037 if test -n "$SYNTHESIS_CFLAGS"; then
21038 pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
21039 elif test -n "$PKG_CONFIG"; then
21040 if test -n "$PKG_CONFIG" && \
21041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21042 ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21045 test $ac_status = 0; }; then
21046 pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.16.10" 2>/dev/null`
21047 test "x$?" != "x0" && pkg_failed=yes
21054 if test -n "$SYNTHESIS_LIBS"; then
21055 pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
21056 elif test -n "$PKG_CONFIG"; then
21057 if test -n "$PKG_CONFIG" && \
21058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21059 ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21062 test $ac_status = 0; }; then
21063 pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.16.10" 2>/dev/null`
21064 test "x$?" != "x0" && pkg_failed=yes
21074 if test $pkg_failed = yes; then
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21076 $as_echo "no" >&6; }
21078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21079 _pkg_short_errors_supported=yes
21081 _pkg_short_errors_supported=no
21083 if test $_pkg_short_errors_supported = yes; then
21084 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21086 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21088 # Put the nasty error message in config.log where it belongs
21089 echo "$SYNTHESIS_PKG_ERRORS" >&5
21091 as_fn_error $? "Package requirements (synthesis >= 3.4.0.16.10) were not met:
21093 $SYNTHESIS_PKG_ERRORS
21095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21096 installed software in a non-standard prefix.
21098 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21099 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21100 See the pkg-config man page for more details." "$LINENO" 5
21101 elif test $pkg_failed = untried; then
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21103 $as_echo "no" >&6; }
21104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21106 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21107 is in your PATH or set the PKG_CONFIG environment variable to the full
21108 path to pkg-config.
21110 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
21111 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
21112 See the pkg-config man page for more details.
21114 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21115 See \`config.log' for more details" "$LINENO" 5; }
21117 SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
21118 SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21120 $as_echo "yes" >&6; }
21123 SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
21126 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
21127 ( cd $SYNTHESIS_SRC && ( test -f configure || sh autogen.sh ) ) || as_fn_error $? "--with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" "$LINENO" 5
21129 SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
21130 chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
21132 # use local copy of the sources, with dependencies
21133 # to trigger building the synthesis library
21134 SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
21135 SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
21136 SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21138 if test "x$enable_core" = "xno" && test "x$enable_gui" != "xno"; then
21139 # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
21140 SYNTHESIS_SUBDIR_INCLUDES=src/synthesis-includes
21143 if test "$enable_shared" = "no"; then
21144 # link against the engines that were enabled
21145 case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la";; esac
21147 $as_echo "#define ENABLE_SYNCML_LINKED 1" >>confdefs.h
21150 # It would be nice if we could avoid linking against libsynthesis.la here.
21151 # This doesn't work at the moment because sysync::SySyncDebugPuts()
21152 # is called directly by the libsynthesissdk instead of going through
21153 # the normal C function pointer lookup.
21154 SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la $SYNTHESIS_SUBDIR/src/libsmltk.la"
21156 SYNTHESIS_DEP=$SYNTHESIS_LIBS
21158 # for linking client-test
21159 SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring the Synthesis library " >&5
21162 $as_echo "$as_me: configuring the Synthesis library " >&6;}
21163 if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
21164 as_fn_error $? "configuring Synthesis library failed " "$LINENO" 5
21167 # do the version check with the .pc files prepared by the configure step above
21168 export PKG_CONFIG_PATH=$SYNTHESIS_SUBDIR:$PKG_CONFIG_PATH
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WITH_SYNTHESIS_SRC" >&5
21172 $as_echo_n "checking for WITH_SYNTHESIS_SRC... " >&6; }
21174 if test -n "$WITH_SYNTHESIS_SRC_CFLAGS"; then
21175 pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS="$WITH_SYNTHESIS_SRC_CFLAGS"
21176 elif test -n "$PKG_CONFIG"; then
21177 if test -n "$PKG_CONFIG" && \
21178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21179 ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21182 test $ac_status = 0; }; then
21183 pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS=`$PKG_CONFIG --cflags "synthesis >= 3.4.0.16.10" 2>/dev/null`
21184 test "x$?" != "x0" && pkg_failed=yes
21191 if test -n "$WITH_SYNTHESIS_SRC_LIBS"; then
21192 pkg_cv_WITH_SYNTHESIS_SRC_LIBS="$WITH_SYNTHESIS_SRC_LIBS"
21193 elif test -n "$PKG_CONFIG"; then
21194 if test -n "$PKG_CONFIG" && \
21195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"synthesis >= 3.4.0.16.10\""; } >&5
21196 ($PKG_CONFIG --exists --print-errors "synthesis >= 3.4.0.16.10") 2>&5
21198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21199 test $ac_status = 0; }; then
21200 pkg_cv_WITH_SYNTHESIS_SRC_LIBS=`$PKG_CONFIG --libs "synthesis >= 3.4.0.16.10" 2>/dev/null`
21201 test "x$?" != "x0" && pkg_failed=yes
21211 if test $pkg_failed = yes; then
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21216 _pkg_short_errors_supported=yes
21218 _pkg_short_errors_supported=no
21220 if test $_pkg_short_errors_supported = yes; then
21221 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21223 WITH_SYNTHESIS_SRC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "synthesis >= 3.4.0.16.10" 2>&1`
21225 # Put the nasty error message in config.log where it belongs
21226 echo "$WITH_SYNTHESIS_SRC_PKG_ERRORS" >&5
21228 as_fn_error $? "need at least libsynthesis >= 3.4.0.16.10; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21229 elif test $pkg_failed = untried; then
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21231 $as_echo "no" >&6; }
21232 as_fn_error $? "need at least libsynthesis >= 3.4.0.16.10; the latest libsynthesis for SyncEvolution is the one from http://cgit.freedesktop.org/SyncEvolution/" "$LINENO" 5
21234 WITH_SYNTHESIS_SRC_CFLAGS=$pkg_cv_WITH_SYNTHESIS_SRC_CFLAGS
21235 WITH_SYNTHESIS_SRC_LIBS=$pkg_cv_WITH_SYNTHESIS_SRC_LIBS
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21237 $as_echo "yes" >&6; }
21253 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
21256 # GNOME Bluetooth Panel plugin
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEBLUETOOTH" >&5
21260 $as_echo_n "checking for GNOMEBLUETOOTH... " >&6; }
21262 if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
21263 pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
21264 elif test -n "$PKG_CONFIG"; then
21265 if test -n "$PKG_CONFIG" && \
21266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21267 ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21270 test $ac_status = 0; }; then
21271 pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21272 test "x$?" != "x0" && pkg_failed=yes
21279 if test -n "$GNOMEBLUETOOTH_LIBS"; then
21280 pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
21281 elif test -n "$PKG_CONFIG"; then
21282 if test -n "$PKG_CONFIG" && \
21283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\""; } >&5
21284 ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
21286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21287 test $ac_status = 0; }; then
21288 pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
21289 test "x$?" != "x0" && pkg_failed=yes
21299 if test $pkg_failed = yes; then
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21301 $as_echo "no" >&6; }
21303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21304 _pkg_short_errors_supported=yes
21306 _pkg_short_errors_supported=no
21308 if test $_pkg_short_errors_supported = yes; then
21309 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21311 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>&1`
21313 # Put the nasty error message in config.log where it belongs
21314 echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
21317 elif test $pkg_failed = untried; then
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 $as_echo "no" >&6; }
21322 GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
21323 GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21325 $as_echo "yes" >&6; }
21327 GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
21332 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
21333 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then :
21334 enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
21336 enable_gnome_bluetooth_panel="no"
21340 if test "$enable_gnome_bluetooth_panel" = "yes"; then
21341 test "$have_gbt" = "yes" || as_fn_error $? "--enable-gnome-bluetooth-panel requires
21342 pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" "$LINENO" 5
21344 if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
21345 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
21346 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
21348 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
21349 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
21353 # Check whether --enable-doc was given.
21354 if test "${enable_doc+set}" = set; then :
21355 enableval=$enable_doc; enable_doc="$enableval"
21361 if test "$enable_doc" != "no"; then
21376 # vvvvvvvvvvvvvv src/backends/activesync/configure-sub.in vvvvvvvvvvvvvv
21379 # Check whether --enable-activesync was given.
21380 if test "${enable_activesync+set}" = set; then :
21381 enableval=$enable_activesync; enable_activesync="$enableval"
21383 enable_activesync="no"
21386 BACKENDS="$BACKENDS activesync"
21387 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ACTIVESYNC"
21388 for source in activesync
21390 SYNCSOURCES="$SYNCSOURCES src/backends/activesync/syncactivesync.la"
21396 # Check whether --with-activesyncd-src was given.
21397 if test "${with_activesyncd_src+set}" = set; then :
21398 withval=$with_activesyncd_src; ACTIVESYNCDSRC="$withval"
21399 test "$ACTIVESYNCDSRC" != "yes" || as_fn_error $? "--with-synthesis-src requires a parameter (base directory, svn URL or git URL)" "$LINENO" 5
21405 if test "$enable_activesync" = "yes" && test "$ACTIVESYNCDSRC" != ""; then
21406 BUILD_ACTIVESYNCD_TRUE=
21407 BUILD_ACTIVESYNCD_FALSE='#'
21409 BUILD_ACTIVESYNCD_TRUE='#'
21410 BUILD_ACTIVESYNCD_FALSE=
21414 if test "$enable_activesync" = "yes"; then
21415 if test "$ACTIVESYNCDSRC" != ""; then
21416 # brute-force dependency on any file in the source repo
21417 LIBEASCLIENT_LA_DEPENDENCIES=`find "$ACTIVESYNCDSRC"/* -type f -printf '%p ' `
21419 mkdir -p src/backends/activesync/activesyncd/build
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&5
21421 $as_echo "$as_me: configuring activesyncd using the $ACTIVESYNCDSRC source code" >&6;}
21422 ( set -x; cd src/backends/activesync/activesyncd/build &&
21423 $ACTIVESYNCDSRC/configure --disable-eplugin --disable-camel-backend --prefix=`pwd`/../install) ||
21424 as_fn_error $? "configuring activesyncd failed" "$LINENO" 5
21426 # hard-coded replacement for pkg-config: necessary because
21427 # .pc file not installed yet
21428 EASCLIENT_LIBS=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21429 EASCLIENT_DEPENDENCIES=src/backends/activesync/activesyncd/install/lib/libeasclient.la
21430 EASCLIENT_CFLAGS=-Isrc/backends/activesync/activesyncd/install/include/eas-daemon/eas-client
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EASCLIENT" >&5
21438 $as_echo_n "checking for EASCLIENT... " >&6; }
21440 if test -n "$EASCLIENT_CFLAGS"; then
21441 pkg_cv_EASCLIENT_CFLAGS="$EASCLIENT_CFLAGS"
21442 elif test -n "$PKG_CONFIG"; then
21443 if test -n "$PKG_CONFIG" && \
21444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21445 ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21448 test $ac_status = 0; }; then
21449 pkg_cv_EASCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libeasclient" 2>/dev/null`
21450 test "x$?" != "x0" && pkg_failed=yes
21457 if test -n "$EASCLIENT_LIBS"; then
21458 pkg_cv_EASCLIENT_LIBS="$EASCLIENT_LIBS"
21459 elif test -n "$PKG_CONFIG"; then
21460 if test -n "$PKG_CONFIG" && \
21461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeasclient\""; } >&5
21462 ($PKG_CONFIG --exists --print-errors "libeasclient") 2>&5
21464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21465 test $ac_status = 0; }; then
21466 pkg_cv_EASCLIENT_LIBS=`$PKG_CONFIG --libs "libeasclient" 2>/dev/null`
21467 test "x$?" != "x0" && pkg_failed=yes
21477 if test $pkg_failed = yes; then
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21479 $as_echo "no" >&6; }
21481 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21482 _pkg_short_errors_supported=yes
21484 _pkg_short_errors_supported=no
21486 if test $_pkg_short_errors_supported = yes; then
21487 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeasclient" 2>&1`
21489 EASCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeasclient" 2>&1`
21491 # Put the nasty error message in config.log where it belongs
21492 echo "$EASCLIENT_PKG_ERRORS" >&5
21494 as_fn_error $? "Package requirements (libeasclient) were not met:
21496 $EASCLIENT_PKG_ERRORS
21498 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21499 installed software in a non-standard prefix.
21501 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21502 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21503 See the pkg-config man page for more details." "$LINENO" 5
21504 elif test $pkg_failed = untried; then
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506 $as_echo "no" >&6; }
21507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21509 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21510 is in your PATH or set the PKG_CONFIG environment variable to the full
21511 path to pkg-config.
21513 Alternatively, you may set the environment variables EASCLIENT_CFLAGS
21514 and EASCLIENT_LIBS to avoid the need to call pkg-config.
21515 See the pkg-config man page for more details.
21517 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21518 See \`config.log' for more details" "$LINENO" 5; }
21520 EASCLIENT_CFLAGS=$pkg_cv_EASCLIENT_CFLAGS
21521 EASCLIENT_LIBS=$pkg_cv_EASCLIENT_LIBS
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21523 $as_echo "yes" >&6; }
21528 $as_echo "#define ENABLE_ACTIVESYNC 1" >>confdefs.h
21534 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EASCLIENT_CFLAGS"
21535 # ^^^^^^^^^^^^^^ src/backends/activesync/configure-sub.in ^^^^^^^^^^^^^^
21537 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
21539 ADDRESSBOOK_CFLAGS=
21541 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
21544 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
21547 # Check whether --enable-addressbook was given.
21548 if test "${enable_addressbook+set}" = set; then :
21549 enableval=$enable_addressbook; enable_addressbook="$enableval"
21551 enable_addressbook="no"
21555 BACKENDS="$BACKENDS addressbook"
21556 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ADDRESSBOOK"
21557 for source in addressbook
21559 SYNCSOURCES="$SYNCSOURCES src/backends/addressbook/syncaddressbook.la"
21564 if test "$enable_addressbook" = "yes"; then
21566 $as_echo "#define ENABLE_ADDRESSBOOK 1" >>confdefs.h
21568 DEVICE_TYPE=MacOS_X
21574 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
21576 # vvvvvvvvvvvvvv src/backends/akonadi/configure-sub.in vvvvvvvvvvvvvv
21578 for ac_prog in qmake qmake-qt4
21580 # Extract the first word of "$ac_prog", so it can be a program name with args.
21581 set dummy $ac_prog; ac_word=$2
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21583 $as_echo_n "checking for $ac_word... " >&6; }
21584 if ${ac_cv_prog_QMAKE+:} false; then :
21585 $as_echo_n "(cached) " >&6
21587 if test -n "$QMAKE"; then
21588 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
21590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21591 for as_dir in $PATH
21594 test -z "$as_dir" && as_dir=.
21595 for ac_exec_ext in '' $ac_executable_extensions; do
21596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21597 ac_cv_prog_QMAKE="$ac_prog"
21598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21607 QMAKE=$ac_cv_prog_QMAKE
21608 if test -n "$QMAKE"; then
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
21610 $as_echo "$QMAKE" >&6; }
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21613 $as_echo "no" >&6; }
21617 test -n "$QMAKE" && break
21621 # Check for Akonadi. There is no .pc file for it,
21622 # so fall back to normal header file and library checking.
21623 # kdepimlibs5-dev >= 4.3 provides the necessary files.
21625 if ! test "$KDEPIM_CFLAGS"; then
21626 KDEPIM_CFLAGS="-I`kde4-config --path include` -I`kde4-config --path include`/KDE"
21627 if test "$QMAKE"; then
21628 KDEPIM_CFLAGS="$KDEPIM_CFLAGS -I`$QMAKE -query QT_INSTALL_HEADERS`"
21631 if ! test "$KDEPIM_LIBS"; then
21632 KDEPIM_LIBS="-L`kde4-config --install lib` -lakonadi-kde `pkg-config --libs QtDBus` -lQtCore -lkdeui -lkdecore"
21635 ac_cpp='$CXXCPP $CPPFLAGS'
21636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21640 old_CPPFLAGS="$CPPFLAGS"
21641 CPPFLAGS="$CPPFLAGS $KDEPIM_CFLAGS"
21642 for ac_header in Akonadi/Collection
21644 ac_fn_cxx_check_header_mongrel "$LINENO" "Akonadi/Collection" "ac_cv_header_Akonadi_Collection" "$ac_includes_default"
21645 if test "x$ac_cv_header_Akonadi_Collection" = xyes; then :
21646 cat >>confdefs.h <<_ACEOF
21647 #define HAVE_AKONADI_COLLECTION 1
21656 CPPFLAGS="$old_CPPFLAGS"
21658 ac_cpp='$CXXCPP $CPPFLAGS'
21659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21664 # In contrast to the Evolution backend, the Akonadi backend is
21665 # currently considered optional. "configure" will enable it only
21666 # if explicitly enabled (was turned on automatically previously,
21667 # for example on Ubuntu Hardy, and didn't compile).
21669 # Check whether --enable-akonadi was given.
21670 if test "${enable_akonadi+set}" = set; then :
21671 enableval=$enable_akonadi; enable_akonadi="$enableval"
21672 test $AKONADIFOUND = "yes" || test $enable_akonadi = "no" || as_fn_error $? "akonadi.pc not found. Install it to compile with the Akonadi backend enabled." "$LINENO" 5
21678 BACKENDS="$BACKENDS akonadi"
21679 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_AKONADI"
21680 for source in akonadi
21682 SYNCSOURCES="$SYNCSOURCES src/backends/akonadi/syncakonadi.la"
21687 if test "$enable_akonadi" = "yes"; then
21688 # conditional compilation in preprocessor
21690 $as_echo "#define ENABLE_AKONADI 1" >>confdefs.h
21693 # avoid unneeded dependencies on Akonadi
21700 # conditional compilation in make
21701 if test "$enable_akonadi" = "yes"; then
21702 ENABLE_AKONADI_TRUE=
21703 ENABLE_AKONADI_FALSE='#'
21705 ENABLE_AKONADI_TRUE='#'
21706 ENABLE_AKONADI_FALSE=
21710 # let others include Akonadi backend's header file
21711 # (not strictly necessary, could be avoided by not
21712 # including Akonadi header files in public header file
21714 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $KDEPIM_CFLAGS"
21715 # ^^^^^^^^^^^^^^ src/backends/akonadi/configure-sub.in ^^^^^^^^^^^^^^
21717 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
21720 Please install the development packages of Evolution and/or
21721 set the PKG_CONFIG_PATH variable so that it points towards
21722 the .pc files of libedataserver, libecal and libebook (the
21723 latter two are optional).
21725 You can check that these packages are available by running
21726 pkg-config --list-all."
21728 evomissing="No compatible evolution-data-server was found.
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPACKAGE" >&5
21734 $as_echo_n "checking for EPACKAGE... " >&6; }
21736 if test -n "$EPACKAGE_CFLAGS"; then
21737 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
21738 elif test -n "$PKG_CONFIG"; then
21739 if test -n "$PKG_CONFIG" && \
21740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21741 ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21744 test $ac_status = 0; }; then
21745 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2" 2>/dev/null`
21746 test "x$?" != "x0" && pkg_failed=yes
21753 if test -n "$EPACKAGE_LIBS"; then
21754 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
21755 elif test -n "$PKG_CONFIG"; then
21756 if test -n "$PKG_CONFIG" && \
21757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2\""; } >&5
21758 ($PKG_CONFIG --exists --print-errors "libedataserver-1.2") 2>&5
21760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21761 test $ac_status = 0; }; then
21762 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2" 2>/dev/null`
21763 test "x$?" != "x0" && pkg_failed=yes
21773 if test $pkg_failed = yes; then
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21775 $as_echo "no" >&6; }
21777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21778 _pkg_short_errors_supported=yes
21780 _pkg_short_errors_supported=no
21782 if test $_pkg_short_errors_supported = yes; then
21783 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
21785 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2" 2>&1`
21787 # Put the nasty error message in config.log where it belongs
21788 echo "$EPACKAGE_PKG_ERRORS" >&5
21791 elif test $pkg_failed = untried; then
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21793 $as_echo "no" >&6; }
21796 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
21797 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21799 $as_echo "yes" >&6; }
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECAL" >&5
21805 $as_echo_n "checking for ECAL... " >&6; }
21807 if test -n "$ECAL_CFLAGS"; then
21808 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
21809 elif test -n "$PKG_CONFIG"; then
21810 if test -n "$PKG_CONFIG" && \
21811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
21812 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
21814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21815 test $ac_status = 0; }; then
21816 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
21817 test "x$?" != "x0" && pkg_failed=yes
21824 if test -n "$ECAL_LIBS"; then
21825 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
21826 elif test -n "$PKG_CONFIG"; then
21827 if test -n "$PKG_CONFIG" && \
21828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
21829 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
21831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21832 test $ac_status = 0; }; then
21833 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
21834 test "x$?" != "x0" && pkg_failed=yes
21844 if test $pkg_failed = yes; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21846 $as_echo "no" >&6; }
21848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21849 _pkg_short_errors_supported=yes
21851 _pkg_short_errors_supported=no
21853 if test $_pkg_short_errors_supported = yes; then
21854 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
21856 ECAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
21858 # Put the nasty error message in config.log where it belongs
21859 echo "$ECAL_PKG_ERRORS" >&5
21862 elif test $pkg_failed = untried; then
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21867 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
21868 ECAL_LIBS=$pkg_cv_ECAL_LIBS
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21870 $as_echo "yes" >&6; }
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK" >&5
21876 $as_echo_n "checking for EBOOK... " >&6; }
21878 if test -n "$EBOOK_CFLAGS"; then
21879 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
21880 elif test -n "$PKG_CONFIG"; then
21881 if test -n "$PKG_CONFIG" && \
21882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
21883 ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
21885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21886 test $ac_status = 0; }; then
21887 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2" 2>/dev/null`
21888 test "x$?" != "x0" && pkg_failed=yes
21895 if test -n "$EBOOK_LIBS"; then
21896 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
21897 elif test -n "$PKG_CONFIG"; then
21898 if test -n "$PKG_CONFIG" && \
21899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2\""; } >&5
21900 ($PKG_CONFIG --exists --print-errors "libebook-1.2") 2>&5
21902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21903 test $ac_status = 0; }; then
21904 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2" 2>/dev/null`
21905 test "x$?" != "x0" && pkg_failed=yes
21915 if test $pkg_failed = yes; then
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21917 $as_echo "no" >&6; }
21919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21920 _pkg_short_errors_supported=yes
21922 _pkg_short_errors_supported=no
21924 if test $_pkg_short_errors_supported = yes; then
21925 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2" 2>&1`
21927 EBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2" 2>&1`
21929 # Put the nasty error message in config.log where it belongs
21930 echo "$EBOOK_PKG_ERRORS" >&5
21933 elif test $pkg_failed = untried; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935 $as_echo "no" >&6; }
21938 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
21939 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941 $as_echo "yes" >&6; }
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK_VERSION" >&5
21948 $as_echo_n "checking for EBOOK_VERSION... " >&6; }
21950 if test -n "$EBOOK_VERSION_CFLAGS"; then
21951 pkg_cv_EBOOK_VERSION_CFLAGS="$EBOOK_VERSION_CFLAGS"
21952 elif test -n "$PKG_CONFIG"; then
21953 if test -n "$PKG_CONFIG" && \
21954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
21955 ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
21957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21958 test $ac_status = 0; }; then
21959 pkg_cv_EBOOK_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2 >= 3.3" 2>/dev/null`
21960 test "x$?" != "x0" && pkg_failed=yes
21967 if test -n "$EBOOK_VERSION_LIBS"; then
21968 pkg_cv_EBOOK_VERSION_LIBS="$EBOOK_VERSION_LIBS"
21969 elif test -n "$PKG_CONFIG"; then
21970 if test -n "$PKG_CONFIG" && \
21971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
21972 ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
21974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975 test $ac_status = 0; }; then
21976 pkg_cv_EBOOK_VERSION_LIBS=`$PKG_CONFIG --libs "libebook-1.2 >= 3.3" 2>/dev/null`
21977 test "x$?" != "x0" && pkg_failed=yes
21987 if test $pkg_failed = yes; then
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 $as_echo "no" >&6; }
21991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21992 _pkg_short_errors_supported=yes
21994 _pkg_short_errors_supported=no
21996 if test $_pkg_short_errors_supported = yes; then
21997 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
21999 EBOOK_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
22001 # Put the nasty error message in config.log where it belongs
22002 echo "$EBOOK_VERSION_PKG_ERRORS" >&5
22005 elif test $pkg_failed = untried; then
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007 $as_echo "no" >&6; }
22010 EBOOK_VERSION_CFLAGS=$pkg_cv_EBOOK_VERSION_CFLAGS
22011 EBOOK_VERSION_LIBS=$pkg_cv_EBOOK_VERSION_LIBS
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22013 $as_echo "yes" >&6; }
22015 $as_echo "#define HAVE_E_CONTACT_INLINE_LOCAL_PHOTOS 1" >>confdefs.h
22020 # Check whether --enable-ebook was given.
22021 if test "${enable_ebook+set}" = set; then :
22022 enableval=$enable_ebook; enable_ebook="$enableval"
22024 test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
22025 as_fn_error $? "libebook not found. Use --disable-ebook to compile without or install the necessary development files." "$LINENO" 5
22029 BACKENDS="$BACKENDS ebook"
22030 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_EBOOK"
22031 for source in evolution
22033 SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncebook.la"
22038 # Check whether --enable-ecal was given.
22039 if test "${enable_ecal+set}" = set; then :
22040 enableval=$enable_ecal; enable_ecal="$enableval"
22042 test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
22043 as_fn_error $? "libecal not found. Use --disable-ecal to compile without or install the necessary development files." "$LINENO" 5
22047 BACKENDS="$BACKENDS ecal"
22048 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_ECAL"
22049 for source in evolution
22051 SYNCSOURCES="$SYNCSOURCES src/backends/evolution/syncecal.la"
22057 if test "$enable_ebook" = "yes"; then
22058 test "x${EBOOKFOUND}" = "xyes" || as_fn_error $? "--enable-ebook requires pkg-config information for libebook, which was not found" "$LINENO" 5
22060 $as_echo "#define ENABLE_EBOOK 1" >>confdefs.h
22068 if test "$enable_ecal" = "yes"; then
22070 ENABLE_ECAL_FALSE='#'
22072 ENABLE_ECAL_TRUE='#'
22076 if test "$enable_ecal" = "yes"; then
22078 test "x${ECALFOUND}" = "xyes" || as_fn_error $? "--enable-ecal requires pkg-config information for libecal, which was not found\"" "$LINENO" 5
22080 $as_echo "#define ENABLE_ECAL 1" >>confdefs.h
22088 if test "$enable_evo" = "yes"; then
22090 if test "$EDSFOUND" = "yes"; then
22092 $as_echo "#define HAVE_EDS 1" >>confdefs.h
22095 as_fn_error $? "$evomissing" "$LINENO" 5
22097 # Only the EClient code supports the API in EDS 3.5.x.
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDS_VERSION" >&5
22101 $as_echo_n "checking for EDS_VERSION... " >&6; }
22103 if test -n "$EDS_VERSION_CFLAGS"; then
22104 pkg_cv_EDS_VERSION_CFLAGS="$EDS_VERSION_CFLAGS"
22105 elif test -n "$PKG_CONFIG"; then
22106 if test -n "$PKG_CONFIG" && \
22107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.5\""; } >&5
22108 ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 2>&5
22110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22111 test $ac_status = 0; }; then
22112 pkg_cv_EDS_VERSION_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2 >= 3.5" 2>/dev/null`
22113 test "x$?" != "x0" && pkg_failed=yes
22120 if test -n "$EDS_VERSION_LIBS"; then
22121 pkg_cv_EDS_VERSION_LIBS="$EDS_VERSION_LIBS"
22122 elif test -n "$PKG_CONFIG"; then
22123 if test -n "$PKG_CONFIG" && \
22124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.5\""; } >&5
22125 ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.5") 2>&5
22127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22128 test $ac_status = 0; }; then
22129 pkg_cv_EDS_VERSION_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2 >= 3.5" 2>/dev/null`
22130 test "x$?" != "x0" && pkg_failed=yes
22140 if test $pkg_failed = yes; then
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 $as_echo "no" >&6; }
22144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22145 _pkg_short_errors_supported=yes
22147 _pkg_short_errors_supported=no
22149 if test $_pkg_short_errors_supported = yes; then
22150 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22152 EDS_VERSION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2 >= 3.5" 2>&1`
22154 # Put the nasty error message in config.log where it belongs
22155 echo "$EDS_VERSION_PKG_ERRORS" >&5
22157 CFLAGS_old="$CFLAGS"
22158 CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22159 for ac_header in libedataserver/eds-version.h
22161 ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22162 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22163 cat >>confdefs.h <<_ACEOF
22164 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22171 CFLAGS="$CFLAGS_old"
22172 elif test $pkg_failed = untried; then
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22174 $as_echo "no" >&6; }
22175 CFLAGS_old="$CFLAGS"
22176 CFLAGS="$CFLAGS $EPACKAGE_CFLAGS"
22177 for ac_header in libedataserver/eds-version.h
22179 ac_fn_cxx_check_header_mongrel "$LINENO" "libedataserver/eds-version.h" "ac_cv_header_libedataserver_eds_version_h" "$ac_includes_default"
22180 if test "x$ac_cv_header_libedataserver_eds_version_h" = xyes; then :
22181 cat >>confdefs.h <<_ACEOF
22182 #define HAVE_LIBEDATASERVER_EDS_VERSION_H 1
22189 CFLAGS="$CFLAGS_old"
22191 EDS_VERSION_CFLAGS=$pkg_cv_EDS_VERSION_CFLAGS
22192 EDS_VERSION_LIBS=$pkg_cv_EDS_VERSION_LIBS
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22194 $as_echo "yes" >&6; }
22196 $as_echo "#define USE_EDS_CLIENT 1" >>confdefs.h
22198 # When using it, then we also need libebook-contacts-1.2
22199 # for the ESourceBackendSummary extension.
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOKCONTACTS" >&5
22203 $as_echo_n "checking for EBOOKCONTACTS... " >&6; }
22205 if test -n "$EBOOKCONTACTS_CFLAGS"; then
22206 pkg_cv_EBOOKCONTACTS_CFLAGS="$EBOOKCONTACTS_CFLAGS"
22207 elif test -n "$PKG_CONFIG"; then
22208 if test -n "$PKG_CONFIG" && \
22209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-contacts-1.2\""; } >&5
22210 ($PKG_CONFIG --exists --print-errors "libebook-contacts-1.2") 2>&5
22212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22213 test $ac_status = 0; }; then
22214 pkg_cv_EBOOKCONTACTS_CFLAGS=`$PKG_CONFIG --cflags "libebook-contacts-1.2" 2>/dev/null`
22215 test "x$?" != "x0" && pkg_failed=yes
22222 if test -n "$EBOOKCONTACTS_LIBS"; then
22223 pkg_cv_EBOOKCONTACTS_LIBS="$EBOOKCONTACTS_LIBS"
22224 elif test -n "$PKG_CONFIG"; then
22225 if test -n "$PKG_CONFIG" && \
22226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-contacts-1.2\""; } >&5
22227 ($PKG_CONFIG --exists --print-errors "libebook-contacts-1.2") 2>&5
22229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230 test $ac_status = 0; }; then
22231 pkg_cv_EBOOKCONTACTS_LIBS=`$PKG_CONFIG --libs "libebook-contacts-1.2" 2>/dev/null`
22232 test "x$?" != "x0" && pkg_failed=yes
22242 if test $pkg_failed = yes; then
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 $as_echo "no" >&6; }
22246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22247 _pkg_short_errors_supported=yes
22249 _pkg_short_errors_supported=no
22251 if test $_pkg_short_errors_supported = yes; then
22252 EBOOKCONTACTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-contacts-1.2" 2>&1`
22254 EBOOKCONTACTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-contacts-1.2" 2>&1`
22256 # Put the nasty error message in config.log where it belongs
22257 echo "$EBOOKCONTACTS_PKG_ERRORS" >&5
22259 as_fn_error $? "Package requirements (libebook-contacts-1.2) were not met:
22261 $EBOOKCONTACTS_PKG_ERRORS
22263 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22264 installed software in a non-standard prefix.
22266 Alternatively, you may set the environment variables EBOOKCONTACTS_CFLAGS
22267 and EBOOKCONTACTS_LIBS to avoid the need to call pkg-config.
22268 See the pkg-config man page for more details." "$LINENO" 5
22269 elif test $pkg_failed = untried; then
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271 $as_echo "no" >&6; }
22272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22274 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22275 is in your PATH or set the PKG_CONFIG environment variable to the full
22276 path to pkg-config.
22278 Alternatively, you may set the environment variables EBOOKCONTACTS_CFLAGS
22279 and EBOOKCONTACTS_LIBS to avoid the need to call pkg-config.
22280 See the pkg-config man page for more details.
22282 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22283 See \`config.log' for more details" "$LINENO" 5; }
22285 EBOOKCONTACTS_CFLAGS=$pkg_cv_EBOOKCONTACTS_CFLAGS
22286 EBOOKCONTACTS_LIBS=$pkg_cv_EBOOKCONTACTS_LIBS
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22288 $as_echo "yes" >&6; }
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_new_direct in -lebook-1.2" >&5
22292 $as_echo_n "checking for e_book_client_new_direct in -lebook-1.2... " >&6; }
22293 if ${ac_cv_lib_ebook_1_2_e_book_client_new_direct+:} false; then :
22294 $as_echo_n "(cached) " >&6
22296 ac_check_lib_save_LIBS=$LIBS
22297 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h. */
22301 /* Override any GCC internal prototype to avoid an error.
22302 Use char because int might match the return type of a GCC
22303 builtin and then its argument prototype would still apply. */
22307 char e_book_client_new_direct ();
22311 return e_book_client_new_direct ();
22316 if ac_fn_cxx_try_link "$LINENO"; then :
22317 ac_cv_lib_ebook_1_2_e_book_client_new_direct=yes
22319 ac_cv_lib_ebook_1_2_e_book_client_new_direct=no
22321 rm -f core conftest.err conftest.$ac_objext \
22322 conftest$ac_exeext conftest.$ac_ext
22323 LIBS=$ac_check_lib_save_LIBS
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&5
22326 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_new_direct" >&6; }
22327 if test "x$ac_cv_lib_ebook_1_2_e_book_client_new_direct" = xyes; then :
22329 $as_echo "#define HAVE_E_BOOK_CLIENT_NEW_DIRECT 1" >>confdefs.h
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for e_book_client_connect_direct_sync in -lebook-1.2" >&5
22336 $as_echo_n "checking for e_book_client_connect_direct_sync in -lebook-1.2... " >&6; }
22337 if ${ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync+:} false; then :
22338 $as_echo_n "(cached) " >&6
22340 ac_check_lib_save_LIBS=$LIBS
22341 LIBS="-lebook-1.2 $EDS_VERSION_LIBS $LIBS"
22342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22345 /* Override any GCC internal prototype to avoid an error.
22346 Use char because int might match the return type of a GCC
22347 builtin and then its argument prototype would still apply. */
22351 char e_book_client_connect_direct_sync ();
22355 return e_book_client_connect_direct_sync ();
22360 if ac_fn_cxx_try_link "$LINENO"; then :
22361 ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=yes
22363 ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync=no
22365 rm -f core conftest.err conftest.$ac_objext \
22366 conftest$ac_exeext conftest.$ac_ext
22367 LIBS=$ac_check_lib_save_LIBS
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&5
22370 $as_echo "$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" >&6; }
22371 if test "x$ac_cv_lib_ebook_1_2_e_book_client_connect_direct_sync" = xyes; then :
22373 $as_echo "#define HAVE_E_BOOK_CLIENT_CONNECT_DIRECT_SYNC 1" >>confdefs.h
22386 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS $EBOOKCONTACTS_CFLAGS"
22387 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
22389 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
22397 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
22400 # Check whether --enable-file was given.
22401 if test "${enable_file+set}" = set; then :
22402 enableval=$enable_file; enable_file="$enableval"
22408 BACKENDS="$BACKENDS file"
22409 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_FILE"
22412 SYNCSOURCES="$SYNCSOURCES src/backends/file/syncfile.la"
22417 if test "$enable_file" = "yes"; then
22419 $as_echo "#define ENABLE_FILE 1" >>confdefs.h
22422 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
22424 # vvvvvvvvvvvvvv src/backends/gnome/configure-sub.in vvvvvvvvvvvvvv
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING" >&5
22428 $as_echo_n "checking for KEYRING... " >&6; }
22430 if test -n "$KEYRING_CFLAGS"; then
22431 pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
22432 elif test -n "$PKG_CONFIG"; then
22433 if test -n "$PKG_CONFIG" && \
22434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\""; } >&5
22435 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
22437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22438 test $ac_status = 0; }; then
22439 pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
22440 test "x$?" != "x0" && pkg_failed=yes
22447 if test -n "$KEYRING_LIBS"; then
22448 pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
22449 elif test -n "$PKG_CONFIG"; then
22450 if test -n "$PKG_CONFIG" && \
22451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\""; } >&5
22452 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
22454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455 test $ac_status = 0; }; then
22456 pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
22457 test "x$?" != "x0" && pkg_failed=yes
22467 if test $pkg_failed = yes; then
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22469 $as_echo "no" >&6; }
22471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22472 _pkg_short_errors_supported=yes
22474 _pkg_short_errors_supported=no
22476 if test $_pkg_short_errors_supported = yes; then
22477 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-keyring-1" 2>&1`
22479 KEYRING_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-keyring-1" 2>&1`
22481 # Put the nasty error message in config.log where it belongs
22482 echo "$KEYRING_PKG_ERRORS" >&5
22485 elif test $pkg_failed = untried; then
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22487 $as_echo "no" >&6; }
22490 KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
22491 KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22493 $as_echo "yes" >&6; }
22496 # Check whether --enable-gnome-keyring was given.
22497 if test "${enable_gnome_keyring+set}" = set; then :
22498 enableval=$enable_gnome_keyring; enable_gnome_keyring="$enableval"
22499 test "$enable_gnome_keyring" = "yes" || test "$enable_gnome_keyring" = "no" || as_fn_error $? "invalid value for --enable-gnome-keyring: $enable_gnome_keyring" "$LINENO" 5
22500 test "$enable_gnome_keyring" = "no" || test "$HAVE_KEYRING" = "yes" || as_fn_error $? "gnome-keyring-1 pkg not found, needed for --enable-gnome-keyring" "$LINENO" 5
22502 enable_gnome_keyring="$HAVE_KEYRING"
22505 if test $enable_gnome_keyring = "yes"; then
22507 $as_echo "#define USE_GNOME_KEYRING 1" >>confdefs.h
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEYRING_2_20" >&5
22512 $as_echo_n "checking for KEYRING_2_20... " >&6; }
22514 if test -n "$KEYRING_2_20_CFLAGS"; then
22515 pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
22516 elif test -n "$PKG_CONFIG"; then
22517 if test -n "$PKG_CONFIG" && \
22518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \""; } >&5
22519 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
22521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522 test $ac_status = 0; }; then
22523 pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
22524 test "x$?" != "x0" && pkg_failed=yes
22531 if test -n "$KEYRING_2_20_LIBS"; then
22532 pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
22533 elif test -n "$PKG_CONFIG"; then
22534 if test -n "$PKG_CONFIG" && \
22535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \""; } >&5
22536 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
22538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22539 test $ac_status = 0; }; then
22540 pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
22541 test "x$?" != "x0" && pkg_failed=yes
22551 if test $pkg_failed = yes; then
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22556 _pkg_short_errors_supported=yes
22558 _pkg_short_errors_supported=no
22560 if test $_pkg_short_errors_supported = yes; then
22561 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-keyring-1 >= 2.20 " 2>&1`
22563 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-keyring-1 >= 2.20 " 2>&1`
22565 # Put the nasty error message in config.log where it belongs
22566 echo "$KEYRING_2_20_PKG_ERRORS" >&5
22569 elif test $pkg_failed = untried; then
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22571 $as_echo "no" >&6; }
22574 KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
22575 KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22577 $as_echo "yes" >&6; }
22579 $as_echo "#define GNOME_KEYRING_220 1" >>confdefs.h
22582 # link into static executables, similar to a SyncSource
22583 SYNCSOURCES="$SYNCSOURCES src/backends/gnome/platformgnome.la"
22585 # ^^^^^^^^^^^^^^ src/backends/gnome/configure-sub.in ^^^^^^^^^^^^^^
22587 # vvvvvvvvvvvvvv src/backends/kcalextended/configure-sub.in vvvvvvvvvvvvvv
22589 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
22592 # Check whether --enable-kcalextended was given.
22593 if test "${enable_kcalextended+set}" = set; then :
22594 enableval=$enable_kcalextended; enable_kcalextended="$enableval"
22596 enable_kcalextended="no"
22600 BACKENDS="$BACKENDS kcalextended"
22601 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_KCALEXTENDED"
22602 for source in kcalextended
22604 SYNCSOURCES="$SYNCSOURCES src/backends/kcalextended/synckcalextended.la"
22609 if test "$enable_kcalextended" = "yes"; then
22611 $as_echo "#define ENABLE_KCALEXTENDED 1" >>confdefs.h
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KCALEXTENDED" >&5
22616 $as_echo_n "checking for KCALEXTENDED... " >&6; }
22618 if test -n "$KCALEXTENDED_CFLAGS"; then
22619 pkg_cv_KCALEXTENDED_CFLAGS="$KCALEXTENDED_CFLAGS"
22620 elif test -n "$PKG_CONFIG"; then
22621 if test -n "$PKG_CONFIG" && \
22622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22623 ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; then
22627 pkg_cv_KCALEXTENDED_CFLAGS=`$PKG_CONFIG --cflags "libmkcal libkcalcoren" 2>/dev/null`
22628 test "x$?" != "x0" && pkg_failed=yes
22635 if test -n "$KCALEXTENDED_LIBS"; then
22636 pkg_cv_KCALEXTENDED_LIBS="$KCALEXTENDED_LIBS"
22637 elif test -n "$PKG_CONFIG"; then
22638 if test -n "$PKG_CONFIG" && \
22639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\""; } >&5
22640 ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
22642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22643 test $ac_status = 0; }; then
22644 pkg_cv_KCALEXTENDED_LIBS=`$PKG_CONFIG --libs "libmkcal libkcalcoren" 2>/dev/null`
22645 test "x$?" != "x0" && pkg_failed=yes
22655 if test $pkg_failed = yes; then
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22657 $as_echo "no" >&6; }
22659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22660 _pkg_short_errors_supported=yes
22662 _pkg_short_errors_supported=no
22664 if test $_pkg_short_errors_supported = yes; then
22665 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22667 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmkcal libkcalcoren" 2>&1`
22669 # Put the nasty error message in config.log where it belongs
22670 echo "$KCALEXTENDED_PKG_ERRORS" >&5
22672 as_fn_error $? "Package requirements (libmkcal libkcalcoren) were not met:
22674 $KCALEXTENDED_PKG_ERRORS
22676 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22677 installed software in a non-standard prefix.
22679 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22680 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22681 See the pkg-config man page for more details." "$LINENO" 5
22682 elif test $pkg_failed = untried; then
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22687 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22688 is in your PATH or set the PKG_CONFIG environment variable to the full
22689 path to pkg-config.
22691 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
22692 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
22693 See the pkg-config man page for more details.
22695 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22696 See \`config.log' for more details" "$LINENO" 5; }
22698 KCALEXTENDED_CFLAGS=$pkg_cv_KCALEXTENDED_CFLAGS
22699 KCALEXTENDED_LIBS=$pkg_cv_KCALEXTENDED_LIBS
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22701 $as_echo "yes" >&6; }
22705 # ^^^^^^^^^^^^^^ src/backends/kcalextended/configure-sub.in ^^^^^^^^^^^^^^
22707 # vvvvvvvvvvvvvv src/backends/kde/configure-sub.in vvvvvvvvvvvvvv
22708 # first check for qmake-qt4, because qmake may point to qmake-qt3.
22709 for ac_prog in qmake-qt4 qmake
22711 # Extract the first word of "$ac_prog", so it can be a program name with args.
22712 set dummy $ac_prog; ac_word=$2
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22714 $as_echo_n "checking for $ac_word... " >&6; }
22715 if ${ac_cv_prog_QMAKE+:} false; then :
22716 $as_echo_n "(cached) " >&6
22718 if test -n "$QMAKE"; then
22719 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
22721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22722 for as_dir in $PATH
22725 test -z "$as_dir" && as_dir=.
22726 for ac_exec_ext in '' $ac_executable_extensions; do
22727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22728 ac_cv_prog_QMAKE="$ac_prog"
22729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22738 QMAKE=$ac_cv_prog_QMAKE
22739 if test -n "$QMAKE"; then
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
22741 $as_echo "$QMAKE" >&6; }
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22744 $as_echo "no" >&6; }
22748 test -n "$QMAKE" && break
22752 if test "x$QMAKE" != 'x'
22754 # Extract the first word of "kde4-config", so it can be a program name with args.
22755 set dummy kde4-config; ac_word=$2
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22757 $as_echo_n "checking for $ac_word... " >&6; }
22758 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
22759 $as_echo_n "(cached) " >&6
22761 case $KDE4_CONFIG in
22763 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
22766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22767 for as_dir in $PATH
22770 test -z "$as_dir" && as_dir=.
22771 for ac_exec_ext in '' $ac_executable_extensions; do
22772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22773 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22781 test -z "$ac_cv_path_KDE4_CONFIG" && ac_cv_path_KDE4_CONFIG="no"
22785 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
22786 if test -n "$KDE4_CONFIG"; then
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
22788 $as_echo "$KDE4_CONFIG" >&6; }
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791 $as_echo "no" >&6; }
22796 if test "x$KDE4_CONFIG" != 'xno'
22798 KDEKWALLETFOUND=yes
22799 if ! test "$KDE_KWALLET_CFLAGS"; then
22800 KDE_KWALLET_CFLAGS="-I`$KDE4_CONFIG --path include` -I`$KDE4_CONFIG --path include`/KDE `pkg-config --cflags QtDBus QtCore`"
22802 if ! test "$KDE_KWALLET_LIBS"; then
22803 KDE_KWALLET_LIBS="-lkdeui -lkdecore -L`kde4-config --install lib` `pkg-config --libs QtDBus QtCore`"
22806 ac_cpp='$CXXCPP $CPPFLAGS'
22807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22811 old_CPPFLAGS="$CPPFLAGS"
22812 CPPFLAGS="$CPPFLAGS $KDE_KWALLET_CFLAGS"
22813 for ac_header in kwallet.h
22815 ac_fn_cxx_check_header_mongrel "$LINENO" "kwallet.h" "ac_cv_header_kwallet_h" "$ac_includes_default"
22816 if test "x$ac_cv_header_kwallet_h" = xyes; then :
22817 cat >>confdefs.h <<_ACEOF
22818 #define HAVE_KWALLET_H 1
22827 CPPFLAGS="$old_CPPFLAGS"
22829 ac_cpp='$CXXCPP $CPPFLAGS'
22830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22841 # In contrast to the GNOME KEYRING, the KWallet is
22842 # currently considered optional. "configure" will never enable
22843 # by default, because that is a change that might not be
22844 # expected by traditional users.
22845 # Check whether --enable-kwallet was given.
22846 if test "${enable_kwallet+set}" = set; then :
22847 enableval=$enable_kwallet; use_kde_kwallet="$enableval"
22848 test $KDEKWALLETFOUND = "yes" || test "$use_kde_kwallet" = "no" || as_fn_error $? "kwallet.pc not found. Install it to compile with the KWallet enabled." "$LINENO" 5
22850 use_kde_kwallet="no"
22854 if test "$use_kde_kwallet" = "yes"; then
22855 # conditional compilation in preprocessor
22857 $as_echo "#define USE_KDE_KWALLET 1" >>confdefs.h
22859 # link into static executables, similar to a SyncSource
22860 SYNCSOURCES="$SYNCSOURCES src/backends/kde/platformkde.la"
22861 # TODO: KWallet needs Qt. Enable the Qt check in
22862 # configure-post.in, otherwise it fails to compiler
22863 # when none of the backends ask for Qt.
22865 # avoid unneeded dependencies on KWallet
22866 KDE_KWALLET_CFLAGS=
22872 # conditional compilation in make
22873 if test "$use_kde_kwallet" = "yes"; then
22874 USE_KDE_KWALLET_TRUE=
22875 USE_KDE_KWALLET_FALSE='#'
22877 USE_KDE_KWALLET_TRUE='#'
22878 USE_KDE_KWALLET_FALSE=
22881 # ^^^^^^^^^^^^^^ src/backends/kde/configure-sub.in ^^^^^^^^^^^^^^
22883 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCALB" >&5
22888 $as_echo_n "checking for MCALB... " >&6; }
22890 if test -n "$MCALB_CFLAGS"; then
22891 pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
22892 elif test -n "$PKG_CONFIG"; then
22893 if test -n "$PKG_CONFIG" && \
22894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
22895 ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
22897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898 test $ac_status = 0; }; then
22899 pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
22900 test "x$?" != "x0" && pkg_failed=yes
22907 if test -n "$MCALB_LIBS"; then
22908 pkg_cv_MCALB_LIBS="$MCALB_LIBS"
22909 elif test -n "$PKG_CONFIG"; then
22910 if test -n "$PKG_CONFIG" && \
22911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"calendar-backend\""; } >&5
22912 ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
22914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915 test $ac_status = 0; }; then
22916 pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
22917 test "x$?" != "x0" && pkg_failed=yes
22927 if test $pkg_failed = yes; then
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 $as_echo "no" >&6; }
22931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22932 _pkg_short_errors_supported=yes
22934 _pkg_short_errors_supported=no
22936 if test $_pkg_short_errors_supported = yes; then
22937 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "calendar-backend" 2>&1`
22939 MCALB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "calendar-backend" 2>&1`
22941 # Put the nasty error message in config.log where it belongs
22942 echo "$MCALB_PKG_ERRORS" >&5
22945 elif test $pkg_failed = untried; then
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22947 $as_echo "no" >&6; }
22950 MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
22951 MCALB_LIBS=$pkg_cv_MCALB_LIBS
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22953 $as_echo "yes" >&6; }
22958 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
22961 # Check whether --enable-maemocal was given.
22962 if test "${enable_maemocal+set}" = set; then :
22963 enableval=$enable_maemocal; enable_maemocal="$enableval"
22965 enable_maemocal="no"
22969 BACKENDS="$BACKENDS maemocal"
22970 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_MAEMOCAL"
22971 for source in maemo
22973 SYNCSOURCES="$SYNCSOURCES src/backends/maemo/syncmaemocal.la"
22978 if test "$enable_maemocal" = "yes"; then
22979 test "x${MCALBFOUND}" = "xyes" || as_fn_error $? "--enable-maemocal requires pkg-config information for calendar-backend, which was not found" "$LINENO" 5
22981 $as_echo "#define ENABLE_MAEMO_CALENDAR 1" >>confdefs.h
22984 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
22986 # vvvvvvvvvvvvvv src/backends/pbap/configure-sub.in vvvvvvvvvvvvvv
22994 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $PBAP_CFLAGS"
22997 # Check whether --enable-pbap was given.
22998 if test "${enable_pbap+set}" = set; then :
22999 enableval=$enable_pbap; enable_pbap="$enableval"
23005 BACKENDS="$BACKENDS pbap"
23006 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_PBAP"
23009 SYNCSOURCES="$SYNCSOURCES src/backends/pbap/syncpbap.la"
23014 if test "$enable_pbap" = "yes"; then
23016 $as_echo "#define ENABLE_PBAP 1" >>confdefs.h
23020 # ^^^^^^^^^^^^^^ src/backends/pbap/configure-sub.in ^^^^^^^^^^^^^^
23022 # vvvvvvvvvvvvvv src/backends/qtcontacts/configure-sub.in vvvvvvvvvvvvvv
23024 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
23027 # Check whether --enable-qtcontacts was given.
23028 if test "${enable_qtcontacts+set}" = set; then :
23029 enableval=$enable_qtcontacts; enable_qtcontacts="$enableval"
23031 enable_qtcontacts="no"
23035 BACKENDS="$BACKENDS qtcontacts"
23036 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_QTCONTACTS"
23037 for source in qtcontacts
23039 SYNCSOURCES="$SYNCSOURCES src/backends/qtcontacts/syncqtcontacts.la"
23044 if test "$enable_qtcontacts" = "yes"; then
23046 $as_echo "#define ENABLE_QTCONTACTS 1" >>confdefs.h
23048 # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
23049 # setting QT_* flags.
23050 need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
23051 qt_config="$qt_config +mobility"
23053 MOBILITY += contacts versit"
23056 # ^^^^^^^^^^^^^^ src/backends/qtcontacts/configure-sub.in ^^^^^^^^^^^^^^
23058 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
23063 $as_echo_n "checking for SQLITE... " >&6; }
23065 if test -n "$SQLITE_CFLAGS"; then
23066 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
23067 elif test -n "$PKG_CONFIG"; then
23068 if test -n "$PKG_CONFIG" && \
23069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23070 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073 test $ac_status = 0; }; then
23074 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
23075 test "x$?" != "x0" && pkg_failed=yes
23082 if test -n "$SQLITE_LIBS"; then
23083 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
23084 elif test -n "$PKG_CONFIG"; then
23085 if test -n "$PKG_CONFIG" && \
23086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
23087 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; }; then
23091 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
23092 test "x$?" != "x0" && pkg_failed=yes
23102 if test $pkg_failed = yes; then
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23104 $as_echo "no" >&6; }
23106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23107 _pkg_short_errors_supported=yes
23109 _pkg_short_errors_supported=no
23111 if test $_pkg_short_errors_supported = yes; then
23112 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
23114 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
23116 # Put the nasty error message in config.log where it belongs
23117 echo "$SQLITE_PKG_ERRORS" >&5
23120 elif test $pkg_failed = untried; then
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23122 $as_echo "no" >&6; }
23125 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
23126 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23128 $as_echo "yes" >&6; }
23133 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
23136 # Check whether --enable-sqlite was given.
23137 if test "${enable_sqlite+set}" = set; then :
23138 enableval=$enable_sqlite; enable_sqlite="$enableval"
23144 BACKENDS="$BACKENDS sqlite"
23145 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_SQLITE"
23146 for source in sqlite
23148 SYNCSOURCES="$SYNCSOURCES src/backends/sqlite/syncsqlite.la"
23153 if test "$enable_sqlite" = "yes"; then
23154 test "x${SQLITEFOUND}" = "xyes" || as_fn_error $? "--enable-sqlite requires pkg-config information for sqlite3, which was not found" "$LINENO" 5
23156 $as_echo "#define ENABLE_SQLITE 1" >>confdefs.h
23159 # avoid linking against it if not needed
23163 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
23165 # vvvvvvvvvvvvvv src/backends/webdav/configure-sub.in vvvvvvvvvvvvvv
23168 # Check whether --enable-dav was given.
23169 if test "${enable_dav+set}" = set; then :
23170 enableval=$enable_dav; enable_dav="$enableval"
23176 BACKENDS="$BACKENDS dav"
23177 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_DAV"
23178 for source in webdav
23180 SYNCSOURCES="$SYNCSOURCES src/backends/webdav/syncdav.la"
23185 if test "$enable_dav" = "yes"; then
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23190 $as_echo_n "checking for NEON... " >&6; }
23192 if test -n "$NEON_CFLAGS"; then
23193 pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23194 elif test -n "$PKG_CONFIG"; then
23195 if test -n "$PKG_CONFIG" && \
23196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23197 ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200 test $ac_status = 0; }; then
23201 pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.29" 2>/dev/null`
23202 test "x$?" != "x0" && pkg_failed=yes
23209 if test -n "$NEON_LIBS"; then
23210 pkg_cv_NEON_LIBS="$NEON_LIBS"
23211 elif test -n "$PKG_CONFIG"; then
23212 if test -n "$PKG_CONFIG" && \
23213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.29\""; } >&5
23214 ($PKG_CONFIG --exists --print-errors "neon >= 0.29") 2>&5
23216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23217 test $ac_status = 0; }; then
23218 pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.29" 2>/dev/null`
23219 test "x$?" != "x0" && pkg_failed=yes
23229 if test $pkg_failed = yes; then
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23231 $as_echo "no" >&6; }
23233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23234 _pkg_short_errors_supported=yes
23236 _pkg_short_errors_supported=no
23238 if test $_pkg_short_errors_supported = yes; then
23239 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23241 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.29" 2>&1`
23243 # Put the nasty error message in config.log where it belongs
23244 echo "$NEON_PKG_ERRORS" >&5
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23249 $as_echo_n "checking for NEON... " >&6; }
23251 if test -n "$NEON_CFLAGS"; then
23252 pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23253 elif test -n "$PKG_CONFIG"; then
23254 if test -n "$PKG_CONFIG" && \
23255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23256 ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23259 test $ac_status = 0; }; then
23260 pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
23261 test "x$?" != "x0" && pkg_failed=yes
23268 if test -n "$NEON_LIBS"; then
23269 pkg_cv_NEON_LIBS="$NEON_LIBS"
23270 elif test -n "$PKG_CONFIG"; then
23271 if test -n "$PKG_CONFIG" && \
23272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23273 ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23276 test $ac_status = 0; }; then
23277 pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
23278 test "x$?" != "x0" && pkg_failed=yes
23288 if test $pkg_failed = yes; then
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23290 $as_echo "no" >&6; }
23292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23293 _pkg_short_errors_supported=yes
23295 _pkg_short_errors_supported=no
23297 if test $_pkg_short_errors_supported = yes; then
23298 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23300 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23302 # Put the nasty error message in config.log where it belongs
23303 echo "$NEON_PKG_ERRORS" >&5
23305 as_fn_error $? "Package requirements (neon >= 0.27) were not met:
23309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23310 installed software in a non-standard prefix.
23312 Alternatively, you may set the environment variables NEON_CFLAGS
23313 and NEON_LIBS to avoid the need to call pkg-config.
23314 See the pkg-config man page for more details." "$LINENO" 5
23315 elif test $pkg_failed = untried; then
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23317 $as_echo "no" >&6; }
23318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23320 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
23321 is in your PATH or set the PKG_CONFIG environment variable to the full
23322 path to pkg-config.
23324 Alternatively, you may set the environment variables NEON_CFLAGS
23325 and NEON_LIBS to avoid the need to call pkg-config.
23326 See the pkg-config man page for more details.
23328 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23329 See \`config.log' for more details" "$LINENO" 5; }
23331 NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23332 NEON_LIBS=$pkg_cv_NEON_LIBS
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23334 $as_echo "yes" >&6; }
23337 elif test $pkg_failed = untried; then
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23339 $as_echo "no" >&6; }
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
23343 $as_echo_n "checking for NEON... " >&6; }
23345 if test -n "$NEON_CFLAGS"; then
23346 pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
23347 elif test -n "$PKG_CONFIG"; then
23348 if test -n "$PKG_CONFIG" && \
23349 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23350 ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23353 test $ac_status = 0; }; then
23354 pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27" 2>/dev/null`
23355 test "x$?" != "x0" && pkg_failed=yes
23362 if test -n "$NEON_LIBS"; then
23363 pkg_cv_NEON_LIBS="$NEON_LIBS"
23364 elif test -n "$PKG_CONFIG"; then
23365 if test -n "$PKG_CONFIG" && \
23366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27\""; } >&5
23367 ($PKG_CONFIG --exists --print-errors "neon >= 0.27") 2>&5
23369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23370 test $ac_status = 0; }; then
23371 pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27" 2>/dev/null`
23372 test "x$?" != "x0" && pkg_failed=yes
23382 if test $pkg_failed = yes; then
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23384 $as_echo "no" >&6; }
23386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23387 _pkg_short_errors_supported=yes
23389 _pkg_short_errors_supported=no
23391 if test $_pkg_short_errors_supported = yes; then
23392 NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23394 NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27" 2>&1`
23396 # Put the nasty error message in config.log where it belongs
23397 echo "$NEON_PKG_ERRORS" >&5
23399 as_fn_error $? "Package requirements (neon >= 0.27) were not met:
23403 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23404 installed software in a non-standard prefix.
23406 Alternatively, you may set the environment variables NEON_CFLAGS
23407 and NEON_LIBS to avoid the need to call pkg-config.
23408 See the pkg-config man page for more details." "$LINENO" 5
23409 elif test $pkg_failed = untried; then
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23411 $as_echo "no" >&6; }
23412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23414 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
23415 is in your PATH or set the PKG_CONFIG environment variable to the full
23416 path to pkg-config.
23418 Alternatively, you may set the environment variables NEON_CFLAGS
23419 and NEON_LIBS to avoid the need to call pkg-config.
23420 See the pkg-config man page for more details.
23422 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23423 See \`config.log' for more details" "$LINENO" 5; }
23425 NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23426 NEON_LIBS=$pkg_cv_NEON_LIBS
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23428 $as_echo "yes" >&6; }
23432 NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
23433 NEON_LIBS=$pkg_cv_NEON_LIBS
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23435 $as_echo "yes" >&6; }
23437 $as_echo "#define HAVE_LIBNEON_SYSTEM_PROXY 1" >>confdefs.h
23440 $as_echo "#define HAVE_LIBNEON_OPTIONS 1" >>confdefs.h
23444 $as_echo "#define ENABLE_DAV 1" >>confdefs.h
23447 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
23449 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $NEON_CFLAGS"
23452 # Check whether --enable-neon-compatibility was given.
23453 if test "${enable_neon_compatibility+set}" = set; then :
23454 enableval=$enable_neon_compatibility; enable_neon_compat="$enableval"
23456 enable_neon_compat="no"
23460 if test "$enable_neon_compat" = "yes"; then
23462 $as_echo "#define NEON_COMPATIBILITY 1" >>confdefs.h
23464 NEON_LIBS="`echo $NEON_LIBS | sed -e 's/\(-lneon\(-gnutls\)*\|^ *libneon\(-gnutls\)*.la\)/-ldl/'`"
23466 if test "$enable_neon_compat" = "yes"; then
23467 NEON_COMPATIBILITY_TRUE=
23468 NEON_COMPATIBILITY_FALSE='#'
23470 NEON_COMPATIBILITY_TRUE='#'
23471 NEON_COMPATIBILITY_FALSE=
23474 # ^^^^^^^^^^^^^^ src/backends/webdav/configure-sub.in ^^^^^^^^^^^^^^
23476 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
23481 # Check whether --enable-xmlrpc was given.
23482 if test "${enable_xmlrpc+set}" = set; then :
23483 enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
23489 BACKENDS="$BACKENDS xmlrpc"
23490 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_XMLRPC"
23491 for source in xmlrpc
23493 SYNCSOURCES="$SYNCSOURCES src/backends/xmlrpc/syncxmlrpc.la"
23498 if test "$enable_xmlrpc" = "yes"; then
23500 # Extract the first word of "xmlrpc-c-config", so it can be a program name with args.
23501 set dummy xmlrpc-c-config; ac_word=$2
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23503 $as_echo_n "checking for $ac_word... " >&6; }
23504 if ${ac_cv_path_XMLRPC_C_CONFIG+:} false; then :
23505 $as_echo_n "(cached) " >&6
23507 case $XMLRPC_C_CONFIG in
23509 ac_cv_path_XMLRPC_C_CONFIG="$XMLRPC_C_CONFIG" # Let the user override the test with a path.
23512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23513 for as_dir in $PATH
23516 test -z "$as_dir" && as_dir=.
23517 for ac_exec_ext in '' $ac_executable_extensions; do
23518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23519 ac_cv_path_XMLRPC_C_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23527 test -z "$ac_cv_path_XMLRPC_C_CONFIG" && ac_cv_path_XMLRPC_C_CONFIG="no"
23531 XMLRPC_C_CONFIG=$ac_cv_path_XMLRPC_C_CONFIG
23532 if test -n "$XMLRPC_C_CONFIG"; then
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLRPC_C_CONFIG" >&5
23534 $as_echo "$XMLRPC_C_CONFIG" >&6; }
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23537 $as_echo "no" >&6; }
23542 test "x$XMLRPC_C_CONFIG" != 'xno' || as_fn_error $? "--enable-xmlrpc requires xmlrpc-c-config, which was not found" "$LINENO" 5
23544 XMLRPC_CFLAGS=`$XMLRPC_C_CONFIG c++2 client --cflags`
23545 XMLRPC_LIBS=`$XMLRPC_C_CONFIG c++2 client --libs`
23549 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
23552 $as_echo "#define ENABLE_XMLRPC 1" >>confdefs.h
23555 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
23562 # Check whether --enable-qt-dbus was given.
23563 if test "${enable_qt_dbus+set}" = set; then :
23564 enableval=$enable_qt_dbus; enable_qt_dbus="$enableval"
23566 enable_qt_dbus="no"
23570 if test "$enable_qt_dbus" = "yes"; then
23572 $as_echo "#define ENABLE_QT_DBUS 1" >>confdefs.h
23574 need_qt_modules="$need_qt_modules +dbus"
23575 # Extract the first word of "qdbusxml2cpp", so it can be a program name with args.
23576 set dummy qdbusxml2cpp; ac_word=$2
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23578 $as_echo_n "checking for $ac_word... " >&6; }
23579 if ${ac_cv_path_QDBUSXML_TO_CPP+:} false; then :
23580 $as_echo_n "(cached) " >&6
23582 case $QDBUSXML_TO_CPP in
23584 ac_cv_path_QDBUSXML_TO_CPP="$QDBUSXML_TO_CPP" # Let the user override the test with a path.
23587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23588 for as_dir in $PATH
23591 test -z "$as_dir" && as_dir=.
23592 for ac_exec_ext in '' $ac_executable_extensions; do
23593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23594 ac_cv_path_QDBUSXML_TO_CPP="$as_dir/$ac_word$ac_exec_ext"
23595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23602 test -z "$ac_cv_path_QDBUSXML_TO_CPP" && ac_cv_path_QDBUSXML_TO_CPP="no"
23606 QDBUSXML_TO_CPP=$ac_cv_path_QDBUSXML_TO_CPP
23607 if test -n "$QDBUSXML_TO_CPP"; then
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QDBUSXML_TO_CPP" >&5
23609 $as_echo "$QDBUSXML_TO_CPP" >&6; }
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23612 $as_echo "no" >&6; }
23616 test "x$QDBUSXML_TO_CPP" != 'xno' || as_fn_error $? "--enable-qt-dbus requires qdbusxml2cpp, which was not found" "$LINENO" 5
23619 if test "$enable_qt_dbus" = "yes"; then
23620 ENABLE_QT_DBUS_TRUE=
23621 ENABLE_QT_DBUS_FALSE='#'
23623 ENABLE_QT_DBUS_TRUE='#'
23624 ENABLE_QT_DBUS_FALSE=
23629 ac_config_files="$ac_config_files src/dbus/qt/syncevolution-qt-dbus.pc"
23636 backend_is_enabled () {
23637 eval echo \${enable_${1}}
23639 for backend in $BACKENDS; do
23640 if test `backend_is_enabled $backend` = "yes"; then
23642 SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
23646 if test "$enable_any" = "no"; then
23647 as_fn_error $? "no backend enabled - refusing to continue: $anymissing" "$LINENO" 5
23650 if test "$need_glib" = "yes"; then
23651 # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
23652 # three GNOME libs. Assume we have all three unless one of
23653 # the checks fails.
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
23659 $as_echo_n "checking for GLIB... " >&6; }
23661 if test -n "$GLIB_CFLAGS"; then
23662 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
23663 elif test -n "$PKG_CONFIG"; then
23664 if test -n "$PKG_CONFIG" && \
23665 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
23666 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
23668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23669 test $ac_status = 0; }; then
23670 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
23671 test "x$?" != "x0" && pkg_failed=yes
23678 if test -n "$GLIB_LIBS"; then
23679 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
23680 elif test -n "$PKG_CONFIG"; then
23681 if test -n "$PKG_CONFIG" && \
23682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\""; } >&5
23683 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
23685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23686 test $ac_status = 0; }; then
23687 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
23688 test "x$?" != "x0" && pkg_failed=yes
23698 if test $pkg_failed = yes; then
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23700 $as_echo "no" >&6; }
23702 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23703 _pkg_short_errors_supported=yes
23705 _pkg_short_errors_supported=no
23707 if test $_pkg_short_errors_supported = yes; then
23708 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""glib-2.0"" 2>&1`
23710 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""glib-2.0"" 2>&1`
23712 # Put the nasty error message in config.log where it belongs
23713 echo "$GLIB_PKG_ERRORS" >&5
23716 elif test $pkg_failed = untried; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23718 $as_echo "no" >&6; }
23721 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
23722 GLIB_LIBS=$pkg_cv_GLIB_LIBS
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23727 # This check here is broken on Ubuntu 8.04: it calls glib-config,
23728 # which isn't found, but the error is not detected by configure.
23729 #if test "x${GLIBFOUND}" = "xno"; then
23730 # PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
23736 $as_echo_n "checking for GTHREAD... " >&6; }
23738 if test -n "$GTHREAD_CFLAGS"; then
23739 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
23740 elif test -n "$PKG_CONFIG"; then
23741 if test -n "$PKG_CONFIG" && \
23742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
23743 ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
23745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746 test $ac_status = 0; }; then
23747 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 2>/dev/null`
23748 test "x$?" != "x0" && pkg_failed=yes
23755 if test -n "$GTHREAD_LIBS"; then
23756 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
23757 elif test -n "$PKG_CONFIG"; then
23758 if test -n "$PKG_CONFIG" && \
23759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\""; } >&5
23760 ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
23762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23763 test $ac_status = 0; }; then
23764 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 2>/dev/null`
23765 test "x$?" != "x0" && pkg_failed=yes
23775 if test $pkg_failed = yes; then
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23777 $as_echo "no" >&6; }
23779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23780 _pkg_short_errors_supported=yes
23782 _pkg_short_errors_supported=no
23784 if test $_pkg_short_errors_supported = yes; then
23785 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
23787 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gthread-2.0"" 2>&1`
23789 # Put the nasty error message in config.log where it belongs
23790 echo "$GTHREAD_PKG_ERRORS" >&5
23793 elif test $pkg_failed = untried; then
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23798 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
23799 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23801 $as_echo "yes" >&6; }
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
23807 $as_echo_n "checking for GOBJECT... " >&6; }
23809 if test -n "$GOBJECT_CFLAGS"; then
23810 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
23811 elif test -n "$PKG_CONFIG"; then
23812 if test -n "$PKG_CONFIG" && \
23813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
23814 ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; then
23818 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
23819 test "x$?" != "x0" && pkg_failed=yes
23826 if test -n "$GOBJECT_LIBS"; then
23827 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
23828 elif test -n "$PKG_CONFIG"; then
23829 if test -n "$PKG_CONFIG" && \
23830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\""; } >&5
23831 ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
23833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23834 test $ac_status = 0; }; then
23835 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
23836 test "x$?" != "x0" && pkg_failed=yes
23846 if test $pkg_failed = yes; then
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 $as_echo "no" >&6; }
23850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23851 _pkg_short_errors_supported=yes
23853 _pkg_short_errors_supported=no
23855 if test $_pkg_short_errors_supported = yes; then
23856 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
23858 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gobject-2.0"" 2>&1`
23860 # Put the nasty error message in config.log where it belongs
23861 echo "$GOBJECT_PKG_ERRORS" >&5
23864 elif test $pkg_failed = untried; then
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866 $as_echo "no" >&6; }
23869 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
23870 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23872 $as_echo "yes" >&6; }
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
23878 $as_echo_n "checking for GIO... " >&6; }
23880 if test -n "$GIO_CFLAGS"; then
23881 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
23882 elif test -n "$PKG_CONFIG"; then
23883 if test -n "$PKG_CONFIG" && \
23884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
23885 ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
23887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23888 test $ac_status = 0; }; then
23889 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags ""gio-2.0"" 2>/dev/null`
23890 test "x$?" != "x0" && pkg_failed=yes
23897 if test -n "$GIO_LIBS"; then
23898 pkg_cv_GIO_LIBS="$GIO_LIBS"
23899 elif test -n "$PKG_CONFIG"; then
23900 if test -n "$PKG_CONFIG" && \
23901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gio-2.0\"\""; } >&5
23902 ($PKG_CONFIG --exists --print-errors ""gio-2.0"") 2>&5
23904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905 test $ac_status = 0; }; then
23906 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs ""gio-2.0"" 2>/dev/null`
23907 test "x$?" != "x0" && pkg_failed=yes
23917 if test $pkg_failed = yes; then
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23919 $as_echo "no" >&6; }
23921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23922 _pkg_short_errors_supported=yes
23924 _pkg_short_errors_supported=no
23926 if test $_pkg_short_errors_supported = yes; then
23927 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""gio-2.0"" 2>&1`
23929 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""gio-2.0"" 2>&1`
23931 # Put the nasty error message in config.log where it belongs
23932 echo "$GIO_PKG_ERRORS" >&5
23935 elif test $pkg_failed = untried; then
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23937 $as_echo "no" >&6; }
23940 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
23941 GIO_LIBS=$pkg_cv_GIO_LIBS
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23943 $as_echo "yes" >&6; }
23947 if test "x${GLIBFOUND}" = "xyes"; then
23949 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
23952 as_fn_error $? "not all GNOME libraries found" "$LINENO" 5
23954 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
23957 if test "$need_ical" = "yes"; then
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
23961 $as_echo_n "checking for LIBICAL... " >&6; }
23963 if test -n "$LIBICAL_CFLAGS"; then
23964 pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
23965 elif test -n "$PKG_CONFIG"; then
23966 if test -n "$PKG_CONFIG" && \
23967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
23968 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
23970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971 test $ac_status = 0; }; then
23972 pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
23973 test "x$?" != "x0" && pkg_failed=yes
23980 if test -n "$LIBICAL_LIBS"; then
23981 pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
23982 elif test -n "$PKG_CONFIG"; then
23983 if test -n "$PKG_CONFIG" && \
23984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
23985 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
23987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988 test $ac_status = 0; }; then
23989 pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
23990 test "x$?" != "x0" && pkg_failed=yes
24000 if test $pkg_failed = yes; then
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24002 $as_echo "no" >&6; }
24004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24005 _pkg_short_errors_supported=yes
24007 _pkg_short_errors_supported=no
24009 if test $_pkg_short_errors_supported = yes; then
24010 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
24012 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
24014 # Put the nasty error message in config.log where it belongs
24015 echo "$LIBICAL_PKG_ERRORS" >&5
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24020 $as_echo_n "checking for LIBICAL... " >&6; }
24022 if test -n "$LIBICAL_CFLAGS"; then
24023 pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24024 elif test -n "$PKG_CONFIG"; then
24025 if test -n "$PKG_CONFIG" && \
24026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24027 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030 test $ac_status = 0; }; then
24031 pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24032 test "x$?" != "x0" && pkg_failed=yes
24039 if test -n "$LIBICAL_LIBS"; then
24040 pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24041 elif test -n "$PKG_CONFIG"; then
24042 if test -n "$PKG_CONFIG" && \
24043 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24044 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24047 test $ac_status = 0; }; then
24048 pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24049 test "x$?" != "x0" && pkg_failed=yes
24059 if test $pkg_failed = yes; then
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24063 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24064 _pkg_short_errors_supported=yes
24066 _pkg_short_errors_supported=no
24068 if test $_pkg_short_errors_supported = yes; then
24069 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24071 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24073 # Put the nasty error message in config.log where it belongs
24074 echo "$LIBICAL_PKG_ERRORS" >&5
24076 as_fn_error $? "Package requirements (libecal-1.2) were not met:
24078 $LIBICAL_PKG_ERRORS
24080 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24081 installed software in a non-standard prefix.
24083 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24084 and LIBICAL_LIBS to avoid the need to call pkg-config.
24085 See the pkg-config man page for more details." "$LINENO" 5
24086 elif test $pkg_failed = untried; then
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24088 $as_echo "no" >&6; }
24089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24091 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
24092 is in your PATH or set the PKG_CONFIG environment variable to the full
24093 path to pkg-config.
24095 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24096 and LIBICAL_LIBS to avoid the need to call pkg-config.
24097 See the pkg-config man page for more details.
24099 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24100 See \`config.log' for more details" "$LINENO" 5; }
24102 LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24103 LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24105 $as_echo "yes" >&6; }
24108 elif test $pkg_failed = untried; then
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24110 $as_echo "no" >&6; }
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL" >&5
24114 $as_echo_n "checking for LIBICAL... " >&6; }
24116 if test -n "$LIBICAL_CFLAGS"; then
24117 pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
24118 elif test -n "$PKG_CONFIG"; then
24119 if test -n "$PKG_CONFIG" && \
24120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24121 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; then
24125 pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
24126 test "x$?" != "x0" && pkg_failed=yes
24133 if test -n "$LIBICAL_LIBS"; then
24134 pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
24135 elif test -n "$PKG_CONFIG"; then
24136 if test -n "$PKG_CONFIG" && \
24137 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\""; } >&5
24138 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; then
24142 pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
24143 test "x$?" != "x0" && pkg_failed=yes
24153 if test $pkg_failed = yes; then
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24155 $as_echo "no" >&6; }
24157 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24158 _pkg_short_errors_supported=yes
24160 _pkg_short_errors_supported=no
24162 if test $_pkg_short_errors_supported = yes; then
24163 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libecal-1.2" 2>&1`
24165 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libecal-1.2" 2>&1`
24167 # Put the nasty error message in config.log where it belongs
24168 echo "$LIBICAL_PKG_ERRORS" >&5
24170 as_fn_error $? "Package requirements (libecal-1.2) were not met:
24172 $LIBICAL_PKG_ERRORS
24174 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24175 installed software in a non-standard prefix.
24177 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24178 and LIBICAL_LIBS to avoid the need to call pkg-config.
24179 See the pkg-config man page for more details." "$LINENO" 5
24180 elif test $pkg_failed = untried; then
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24182 $as_echo "no" >&6; }
24183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24185 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
24186 is in your PATH or set the PKG_CONFIG environment variable to the full
24187 path to pkg-config.
24189 Alternatively, you may set the environment variables LIBICAL_CFLAGS
24190 and LIBICAL_LIBS to avoid the need to call pkg-config.
24191 See the pkg-config man page for more details.
24193 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24194 See \`config.log' for more details" "$LINENO" 5; }
24196 LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24197 LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24199 $as_echo "yes" >&6; }
24203 LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
24204 LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24206 $as_echo "yes" >&6; }
24210 $as_echo "#define ENABLE_ICAL 1" >>confdefs.h
24213 if test "$need_ical" = "yes"; then
24215 ENABLE_ICAL_FALSE='#'
24217 ENABLE_ICAL_TRUE='#'
24223 # Check for Qt if some backend needs it.
24224 if test "$need_qt_modules"; then
24225 echo "$as_me: this is autotroll.m4 serial 5" >&5
24227 test x"$TROLL" != x && echo 'ViM rox emacs.'
24230 # Check whether --with-qt was given.
24231 if test "${with_qt+set}" = set; then :
24232 withval=$with_qt; QT_PATH=$withval
24236 # this is a hack to get decent flow control with 'break'
24237 for _qt_ignored in once; do
24241 if test -d /usr/local/Trolltech; then
24242 # Try to find the latest version.
24243 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
24244 | xargs | sed 's/ */:/g'`
24246 # Path to which recent MacPorts (~v1.7) install Qt4.
24247 test -d /opt/local/libexec/qt4-mac/bin \
24248 && tmp_qt_paths="$tmp_qt_paths:/opt/local/libexec/qt4-mac/bin"
24252 for ac_prog in qmake qmake-qt4 qmake-qt3
24254 # Extract the first word of "$ac_prog", so it can be a program name with args.
24255 set dummy $ac_prog; ac_word=$2
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24257 $as_echo_n "checking for $ac_word... " >&6; }
24258 if ${ac_cv_path_QMAKE+:} false; then :
24259 $as_echo_n "(cached) " >&6
24263 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
24266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24267 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
24268 for as_dir in $as_dummy
24271 test -z "$as_dir" && as_dir=.
24272 for ac_exec_ext in '' $ac_executable_extensions; do
24273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24274 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
24275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24285 QMAKE=$ac_cv_path_QMAKE
24286 if test -n "$QMAKE"; then
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
24288 $as_echo "$QMAKE" >&6; }
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24291 $as_echo "no" >&6; }
24295 test -n "$QMAKE" && break
24297 test -n "$QMAKE" || QMAKE="missing"
24299 if test x"$QMAKE" = xmissing; then
24300 as_fn_error $? "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
24304 # Find moc (Meta Object Compiler).
24306 for ac_prog in moc moc-qt4 moc-qt3
24308 # Extract the first word of "$ac_prog", so it can be a program name with args.
24309 set dummy $ac_prog; ac_word=$2
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24311 $as_echo_n "checking for $ac_word... " >&6; }
24312 if ${ac_cv_path_MOC+:} false; then :
24313 $as_echo_n "(cached) " >&6
24317 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
24320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24321 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24322 for as_dir in $as_dummy
24325 test -z "$as_dir" && as_dir=.
24326 for ac_exec_ext in '' $ac_executable_extensions; do
24327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24328 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
24329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24339 MOC=$ac_cv_path_MOC
24340 if test -n "$MOC"; then
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
24342 $as_echo "$MOC" >&6; }
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24345 $as_echo "no" >&6; }
24349 test -n "$MOC" && break
24351 test -n "$MOC" || MOC="missing"
24353 if test x"$MOC" = xmissing; then
24354 as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
24358 # Find uic (User Interface Compiler).
24360 for ac_prog in uic uic-qt4 uic-qt3 uic3
24362 # Extract the first word of "$ac_prog", so it can be a program name with args.
24363 set dummy $ac_prog; ac_word=$2
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24365 $as_echo_n "checking for $ac_word... " >&6; }
24366 if ${ac_cv_path_UIC+:} false; then :
24367 $as_echo_n "(cached) " >&6
24371 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
24374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24375 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24376 for as_dir in $as_dummy
24379 test -z "$as_dir" && as_dir=.
24380 for ac_exec_ext in '' $ac_executable_extensions; do
24381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24382 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
24383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24393 UIC=$ac_cv_path_UIC
24394 if test -n "$UIC"; then
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
24396 $as_echo "$UIC" >&6; }
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399 $as_echo "no" >&6; }
24403 test -n "$UIC" && break
24405 test -n "$UIC" || UIC="missing"
24407 if test x"$UIC" = xmissing; then
24408 as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
24412 # Find rcc (Qt Resource Compiler).
24416 # Extract the first word of "$ac_prog", so it can be a program name with args.
24417 set dummy $ac_prog; ac_word=$2
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24419 $as_echo_n "checking for $ac_word... " >&6; }
24420 if ${ac_cv_path_RCC+:} false; then :
24421 $as_echo_n "(cached) " >&6
24425 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
24428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24429 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
24430 for as_dir in $as_dummy
24433 test -z "$as_dir" && as_dir=.
24434 for ac_exec_ext in '' $ac_executable_extensions; do
24435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24436 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
24437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24447 RCC=$ac_cv_path_RCC
24448 if test -n "$RCC"; then
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
24450 $as_echo "$RCC" >&6; }
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24453 $as_echo "no" >&6; }
24457 test -n "$RCC" && break
24459 test -n "$RCC" || RCC="false"
24461 if test x"$UIC" = xfalse; then
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
24463 Try using --with-qt." >&5
24464 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
24465 Try using --with-qt." >&2;}
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
24469 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
24475 at_qmake_args='-spec macx-g++'
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
24479 $as_echo "$at_darwin" >&6; }
24481 # If we don't know the path to Qt, guess it from the path to qmake.
24482 if test x"$QT_PATH" = x; then
24483 QT_PATH=`dirname "$QMAKE"`
24485 if test x"$QT_PATH" = x; then
24486 as_fn_error $? "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
24491 # Get ready to build a test-app with Qt.
24492 if mkdir conftest.dir && cd conftest.dir; then :; else
24493 as_fn_error $? "Cannot mkdir conftest.dir or cd to that directory." "$LINENO" 5
24497 cat >conftest.h <<_ASEOF
24500 class Foo: public QObject
24507 void setValue(int value);
24509 void valueChanged(int newValue);
24515 cat >conftest.cpp <<_ASEOF
24516 #include "conftest.h"
24520 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
24523 void Foo::setValue(int value)
24533 if $QMAKE -project; then :; else
24534 as_fn_error $? "Calling $QMAKE -project failed." "$LINENO" 5
24538 # Find the .pro file generated by qmake.
24539 pro_file='conftest.dir.pro'
24540 test -f $pro_file || pro_file=`echo *.pro`
24541 if test -f "$pro_file"; then :; else
24542 as_fn_error $? "Can't find the .pro file generated by Qmake." "$LINENO" 5
24546 # Tweak the value of QT in the .pro file for -gui $need_qt_modules.
24549 for at_mod in -gui $need_qt_modules; do
24550 at_mod=`echo "$at_mod" | sed 's/^-//; tough
24559 echo "$qt_conf" | sed 1d >>"$pro_file"
24562 # Tweak the value of CONFIG in the .pro file for $qt_config.
24565 for at_mod in $qt_config; do
24566 at_mod=`echo "$at_mod" | sed 's/^-//; tough
24575 echo "$qt_conf" | sed 1d >>"$pro_file"
24578 # Add the extra-settings the user wants to set in the .pro
24579 echo "$qt_misc" >>"$pro_file"
24582 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
24583 sed 's/^/| /' "$pro_file" >&5
24585 if $QMAKE $at_qmake_args; then :; else
24586 as_fn_error $? "Calling $QMAKE $at_qmake_args failed." "$LINENO" 5
24590 # QMake has a very annoying misfeature: sometimes it generates Makefiles
24591 # where all the references to the files from the Qt installation are
24592 # relative. We can't use them as-is because if we take, say, a
24593 # -I../../usr/include/Qt from that Makefile, the flag is invalid as soon
24594 # as we use it in another (sub) directory. So what this perl pass does is
24595 # that it rewrite all relative paths to absolute paths. Another problem
24596 # when building on Cygwin is that QMake mixes paths with blackslashes and
24597 # forward slashes and paths must be handled with extra care because of the
24598 # stupid Windows drive letters.
24599 echo "$as_me:$LINENO: fixing the Makefiles:" Makefile* >&5
24600 cat >fixmk.pl <<\EOF
24602 use Cwd qw(cwd abs_path);
24603 # This variable is useful on Cygwin for the following reason: Say that you are
24604 # in `/' (that is, in fact you are in C:/cygwin, or something like that) if you
24605 # `cd ..' then obviously you remain in `/' (that is in C:/cygwin). QMake
24606 # generates paths that are relative to C:/ (or another driver letter, whatever)
24607 # so the trick to get the `..' resolved properly is to prepend the absolute
24608 # path of the current working directory in a Windows-style. C:/cygwin/../ will
24609 # properly become C:/.
24615 if ($^O eq "cygwin") {
24618 $d = `cygpath --mixed '$d'`;
24625 my $p = $d . shift;
24626 # print "r2a p=$p";
24627 -e $p || return $p;
24629 $p = `cygpath --mixed '$p'`;
24633 # Do not use abs_path on Cygwin: it incorrectly resolves the paths that are
24634 # relative to C:/ rather than `/'.
24637 # print " -> $p\n";
24642 # Only useful on Cygwin.
24643 sub back2forward($)
24646 # print "b2f p=$p";
24647 -e $p || return $p;
24648 $p = `cygpath --mixed '$p'`;
24650 # print " -> $p\n";
24655 foreach my $mk (@ARGV)
24657 next if $mk =~ /~$/;
24658 open(MK, $mk) or die("open $mk: $!");
24659 # print "mk=$mk\n";
24660 my $file = join("", <MK>);
24661 close(MK) or die("close $mk: $!");
24662 rename $mk, $mk . "~" or die("rename $mk: $!");
24663 $file =~ s{(?:\.\.[\\/])+(?:[^"'\s:]+)}{rel2abs($&)}gse;
24664 $file =~ s{(?:[a-zA-Z]:[\\/])?(?:[^"\s]+\\[^"\s:]+)+}
24665 {back2forward($&)}gse if $cygwin;
24666 open(MK, ">", $mk) or die("open >$mk: $!");
24668 close(MK) or die("close >$mk: $!");
24669 print "$mk: updated $r2a relative paths and $b2f backslash-style paths\n";
24675 perl >&5 -w fixmk.pl Makefile* ||
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to fix the Makefiles generated by $QMAKE" >&5
24677 $as_echo "$as_me: WARNING: failed to fix the Makefiles generated by $QMAKE" >&2;}
24680 # Try to compile a simple Qt app.
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
24682 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
24683 if ${at_cv_qt_build+:} false; then :
24684 $as_echo_n "(cached) " >&6
24689 if $MAKE >&5 2>&1; then
24690 at_cv_qt_build='ok, looks like Qt 4'
24692 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
24694 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
24695 if $MAKE >&5 2>&1; then
24696 at_cv_qt_build='ok, looks like Qt 3'
24698 # Sometimes (such as on Debian) build will fail because Qt hasn't been
24699 # installed in debug mode and qmake tries (by default) to build apps in
24700 # debug mode => Try again in release mode.
24701 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
24704 # Tweak the value of CONFIG in the .pro file for +release.
24707 for at_mod in +release; do
24708 at_mod=`echo "$at_mod" | sed 's/^-//; tough
24717 echo "$qt_conf" | sed 1d >>"$pro_file"
24720 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
24721 if $MAKE >&5 2>&1; then
24722 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
24724 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
24726 sed 's/<QObject>/<qobject.h>/' conftest.h >tmp.h && mv tmp.h conftest.h
24727 if $MAKE >&5 2>&1; then
24728 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
24731 echo "$as_me:$LINENO: failed program was:" >&5
24732 sed 's/^/| /' conftest.h >&5
24733 echo "$as_me:$LINENO: failed program was:" >&5
24734 sed 's/^/| /' conftest.cpp >&5
24735 fi # if make with Qt3-style #include and release mode forced.
24736 fi # if make with Qt4-style #include and release mode forced.
24737 fi # if make with Qt3-style #include.
24738 fi # if make with Qt4-style #include.
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
24742 $as_echo "$at_cv_qt_build" >&6; }
24743 if test x"$at_cv_qt_build" = xko; then
24744 as_fn_error $? "Cannot build a test Qt program" "$LINENO" 5
24748 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/[^0-9]*//g'`
24751 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
24752 # It starts by removing the beginning of the line, removing references to
24753 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
24754 # all variable uses by QT_.
24755 qt_sed_filter='s///;
24758 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
24760 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
24761 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
24762 # Makefile.Release. The reason is that the main difference is that release
24763 # uses -Os and debug -g. We can override -Os by passing another -O but we
24764 # usually don't override -g.
24765 if test -f Makefile.Release; then
24766 at_mfile='Makefile.Release'
24768 at_mfile='Makefile'
24770 if test -f $at_mfile; then :; else
24771 as_fn_error $? "Cannot find the Makefile generated by qmake." "$LINENO" 5
24776 # Find the DEFINES of Qt (should have been named CPPFLAGS).
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
24778 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
24779 if ${at_cv_env_QT_DEFINES+:} false; then :
24780 $as_echo_n "(cached) " >&6
24782 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
24785 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
24786 QT_DEFINES=$at_cv_env_QT_DEFINES
24789 # Find the CFLAGS of Qt (We can use Qt in C?!)
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
24791 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
24792 if ${at_cv_env_QT_CFLAGS+:} false; then :
24793 $as_echo_n "(cached) " >&6
24795 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
24798 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
24799 QT_CFLAGS=$at_cv_env_QT_CFLAGS
24802 # Find the CXXFLAGS of Qt.
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
24804 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
24805 if ${at_cv_env_QT_CXXFLAGS+:} false; then :
24806 $as_echo_n "(cached) " >&6
24808 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
24811 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
24812 QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
24815 # Find the INCPATH of Qt.
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
24817 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
24818 if ${at_cv_env_QT_INCPATH+:} false; then :
24819 $as_echo_n "(cached) " >&6
24821 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
24824 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
24825 QT_INCPATH=$at_cv_env_QT_INCPATH
24828 QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
24831 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
24833 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
24834 if ${at_cv_env_QT_LDFLAGS+:} false; then :
24835 $as_echo_n "(cached) " >&6
24837 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
24840 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
24841 QT_LFLAGS=$at_cv_env_QT_LDFLAGS
24843 QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
24846 # Find the LIBS of Qt.
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
24848 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
24849 if ${at_cv_env_QT_LIBS+:} false; then :
24850 $as_echo_n "(cached) " >&6
24852 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
24853 if test x$at_darwin = xyes; then
24854 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
24855 # -F properly. The "bug" has been fixed on 22 October 2006
24856 # by Peter O'Gorman but we provide backward compatibility here.
24857 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
24858 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
24863 $as_echo "$at_cv_env_QT_LIBS" >&6; }
24864 QT_LIBS=$at_cv_env_QT_LIBS
24867 cd .. && rm -rf conftest.dir
24869 # Run the user code
24872 done # end hack (useless for to be able to use break)
24876 # determine from where we can get a SHA-256 implementation
24878 if test "$GLIBFOUND" = "yes"; then
24879 # only use glib if we need it anyway, also has to be at lease 2.16
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB216" >&5
24883 $as_echo_n "checking for GLIB216... " >&6; }
24885 if test -n "$GLIB216_CFLAGS"; then
24886 pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
24887 elif test -n "$PKG_CONFIG"; then
24888 if test -n "$PKG_CONFIG" && \
24889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
24890 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; then
24894 pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
24895 test "x$?" != "x0" && pkg_failed=yes
24902 if test -n "$GLIB216_LIBS"; then
24903 pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
24904 elif test -n "$PKG_CONFIG"; then
24905 if test -n "$PKG_CONFIG" && \
24906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
24907 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
24909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910 test $ac_status = 0; }; then
24911 pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
24912 test "x$?" != "x0" && pkg_failed=yes
24922 if test $pkg_failed = yes; then
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24924 $as_echo "no" >&6; }
24926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24927 _pkg_short_errors_supported=yes
24929 _pkg_short_errors_supported=no
24931 if test $_pkg_short_errors_supported = yes; then
24932 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
24934 GLIB216_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
24936 # Put the nasty error message in config.log where it belongs
24937 echo "$GLIB216_PKG_ERRORS" >&5
24940 elif test $pkg_failed = untried; then
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24942 $as_echo "no" >&6; }
24945 GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
24946 GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24948 $as_echo "yes" >&6; }
24950 $as_echo "#define USE_SHA256 1" >>confdefs.h
24955 if test "$have_sha" = "no"; then
24956 # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
24957 # file and a simple API.
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
24961 $as_echo_n "checking for NSS... " >&6; }
24963 if test -n "$NSS_CFLAGS"; then
24964 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
24965 elif test -n "$PKG_CONFIG"; then
24966 if test -n "$PKG_CONFIG" && \
24967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
24968 ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
24970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24971 test $ac_status = 0; }; then
24972 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
24973 test "x$?" != "x0" && pkg_failed=yes
24980 if test -n "$NSS_LIBS"; then
24981 pkg_cv_NSS_LIBS="$NSS_LIBS"
24982 elif test -n "$PKG_CONFIG"; then
24983 if test -n "$PKG_CONFIG" && \
24984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"nss\"\""; } >&5
24985 ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
24987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24988 test $ac_status = 0; }; then
24989 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
24990 test "x$?" != "x0" && pkg_failed=yes
25000 if test $pkg_failed = yes; then
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25002 $as_echo "no" >&6; }
25004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25005 _pkg_short_errors_supported=yes
25007 _pkg_short_errors_supported=no
25009 if test $_pkg_short_errors_supported = yes; then
25010 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""nss"" 2>&1`
25012 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""nss"" 2>&1`
25014 # Put the nasty error message in config.log where it belongs
25015 echo "$NSS_PKG_ERRORS" >&5
25018 elif test $pkg_failed = untried; then
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25020 $as_echo "no" >&6; }
25023 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
25024 NSS_LIBS=$pkg_cv_NSS_LIBS
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25026 $as_echo "yes" >&6; }
25028 $as_echo "#define USE_SHA256 2" >>confdefs.h
25034 if test "$enable_shared" = "yes"; then
25035 ENABLE_MODULES_TRUE=
25036 ENABLE_MODULES_FALSE='#'
25038 ENABLE_MODULES_TRUE='#'
25039 ENABLE_MODULES_FALSE=
25042 if test "$enable_shared" = "yes"; then
25044 $as_echo "#define ENABLE_MODULES 1" >>confdefs.h
25051 if test "$host" = "arm-apple-darwin"; then
25053 $as_echo "#define IPHONE 1" >>confdefs.h
25058 if test "$enable_evolution_compatibility" = "yes"; then
25060 $as_echo "#define EVOLUTION_COMPATIBILITY 1" >>confdefs.h
25062 # don't link against libs wrapped by eds_abi_wrapper (no longer limited to EDS alone...)
25068 if test "$enable_evolution_compatibility" = "yes"; then
25069 ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
25070 ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
25072 ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
25073 ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICAL_AVAILABLE" >&5
25079 $as_echo_n "checking for LIBICAL_AVAILABLE... " >&6; }
25081 if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
25082 pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
25083 elif test -n "$PKG_CONFIG"; then
25084 if test -n "$PKG_CONFIG" && \
25085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25086 ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25089 test $ac_status = 0; }; then
25090 pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
25091 test "x$?" != "x0" && pkg_failed=yes
25098 if test -n "$LIBICAL_AVAILABLE_LIBS"; then
25099 pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
25100 elif test -n "$PKG_CONFIG"; then
25101 if test -n "$PKG_CONFIG" && \
25102 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\""; } >&5
25103 ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; then
25107 pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
25108 test "x$?" != "x0" && pkg_failed=yes
25118 if test $pkg_failed = yes; then
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25120 $as_echo "no" >&6; }
25122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25123 _pkg_short_errors_supported=yes
25125 _pkg_short_errors_supported=no
25127 if test $_pkg_short_errors_supported = yes; then
25128 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25130 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical >= 0.43" 2>&1`
25132 # Put the nasty error message in config.log where it belongs
25133 echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
25136 elif test $pkg_failed = untried; then
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25138 $as_echo "no" >&6; }
25141 LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
25142 LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25144 $as_echo "yes" >&6; }
25146 $as_echo "#define HAVE_LIBICAL_R 1" >>confdefs.h
25150 if test "$enable_developer_mode" = "yes"; then
25151 BACKENDS_SEARCH_DIRECTORY="`pwd`/src/backends/"
25153 BACKENDS_SEARCH_DIRECTORY='$(libdir)/syncevolution/backends/'
25156 BACKENDS_DIRECTORY='$(libdir)/syncevolution/backends'
25160 # for ActiveSync backend
25161 syncevo_backenddir='$(libdir)'/syncevolution/backends
25165 cat >>confdefs.h <<_ACEOF
25166 #define DEVICE_TYPE "$DEVICE_TYPE"
25170 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
25172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25173 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25174 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25175 cat >>confdefs.h <<_ACEOF
25176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25185 $as_echo "#define SYNTHESIS 1" >>confdefs.h
25188 # fallback for lack of --with-docdir support in older automake
25189 if test ! "$docdir"; then
25190 docdir = ${datadir}/doc/syncevolution
25194 # Check whether --enable-dbus-timeout-hack was given.
25195 if test "${enable_dbus_timeout_hack+set}" = set; then :
25196 enableval=$enable_dbus_timeout_hack; enable_dbus_timeout_hack=$enableval
25198 if test $enable_ebook = "yes" || test $enable_ecal = "yes"; then
25199 enable_dbus_timeout_hack="yes"
25203 if test "$enable_dbus_timeout_hack" = "yes"; then
25205 $as_echo "#define ENABLE_DBUS_TIMEOUT_HACK 1" >>confdefs.h
25209 # Avoid hard-coding paths in backends. These names are chosen so
25210 # that a backend can alternatively use its own top-level configure
25211 # with PKG_CHECK_MODULES(SYNCEVOLUTION, "syncevolution") to set them.
25212 # need absolute path, use pwd instead of relative $srcdir
25214 # When adding something here, remember to also update syncevolution.pc.in.
25215 # -lrt is for clock_gettime() in the Timespec.h inline functions.
25216 SYNCEVOLUTION_CFLAGS=-I`cd $srcdir && pwd`/src
25217 # Linker flags including libsyncevolution.la and some libs.
25218 SYNCEVOLUTION_LIBS="src/syncevo/libsyncevolution.la -lrt"
25222 # invoking syncevolution binary is allowed to fail when cross-compiling
25223 if test "$cross_compiling" = "yes"; then
25224 COND_CROSS_COMPILING_TRUE=
25225 COND_CROSS_COMPILING_FALSE='#'
25227 COND_CROSS_COMPILING_TRUE='#'
25228 COND_CROSS_COMPILING_FALSE=
25232 ac_config_files="$ac_config_files Makefile src/syncevo/syncevolution.pc src/synthesis-includes/Makefile po/Makefile.in src/dbus/glib/syncevo-dbus.pc"
25234 cat >confcache <<\_ACEOF
25235 # This file is a shell script that caches the results of configure
25236 # tests run on this system so they can be shared between configure
25237 # scripts and configure runs, see configure's option --config-cache.
25238 # It is not useful on other systems. If it contains results you don't
25239 # want to keep, you may remove or edit it.
25241 # config.status only pays attention to the cache file if you give it
25242 # the --recheck option to rerun configure.
25244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25246 # following values.
25250 # The following way of writing the cache mishandles newlines in values,
25251 # but we know of no workaround that is simple, portable, and efficient.
25252 # So, we kill variables containing newlines.
25253 # Ultrix sh set writes to stderr and can't be redirected directly,
25254 # and sets the high bit in the cache file unless we assign to the vars.
25256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25257 eval ac_val=\$$ac_var
25261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25265 _ | IFS | as_nl) ;; #(
25266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25267 *) { eval $ac_var=; unset $ac_var;} ;;
25273 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25274 *${as_nl}ac_space=\ *)
25275 # `set' does not quote correctly, so add quotes: double-quote
25276 # substitution turns \\\\ into \\, and sed turns \\ into \.
25279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25282 # `set' quotes correctly as required by POSIX, so do not add quotes.
25283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25294 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25296 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25297 if test -w "$cache_file"; then
25298 if test "x$cache_file" != "x/dev/null"; then
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25300 $as_echo "$as_me: updating cache $cache_file" >&6;}
25301 if test ! -f "$cache_file" || test -h "$cache_file"; then
25302 cat confcache >"$cache_file"
25304 case $cache_file in #(
25306 mv -f confcache "$cache_file"$$ &&
25307 mv -f "$cache_file"$$ "$cache_file" ;; #(
25309 mv -f confcache "$cache_file" ;;
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25321 # Let make expand exec_prefix.
25322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25324 DEFS=-DHAVE_CONFIG_H
25329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25330 # 1. Remove the extension, and $U if already installed.
25331 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25332 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25334 # will be set to the directory where LIBOBJS objects are built.
25335 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25336 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25338 LIBOBJS=$ac_libobjs
25340 LTLIBOBJS=$ac_ltlibobjs
25343 if test -n "$EXEEXT"; then
25345 am__EXEEXT_FALSE='#'
25347 am__EXEEXT_TRUE='#'
25351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25352 as_fn_error $? "conditional \"AMDEP\" was never defined.
25353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25356 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25359 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25360 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25363 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25364 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25367 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
25368 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
25369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25371 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
25372 as_fn_error $? "conditional \"ENABLE_TESTING\" was never defined.
25373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25375 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
25376 as_fn_error $? "conditional \"ENABLE_OBEX\" was never defined.
25377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25379 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
25380 as_fn_error $? "conditional \"ENABLE_BLUETOOTH\" was never defined.
25381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25383 if test -z "${COND_GTK2_TRUE}" && test -z "${COND_GTK2_FALSE}"; then
25384 as_fn_error $? "conditional \"COND_GTK2\" was never defined.
25385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25387 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
25388 as_fn_error $? "conditional \"COND_GUI\" was never defined.
25389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25391 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
25392 as_fn_error $? "conditional \"COND_CORE\" was never defined.
25393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25395 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
25396 as_fn_error $? "conditional \"COND_DBUS\" was never defined.
25397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25399 if test -z "${COND_GIO_GDBUS_TRUE}" && test -z "${COND_GIO_GDBUS_FALSE}"; then
25400 as_fn_error $? "conditional \"COND_GIO_GDBUS\" was never defined.
25401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25403 if test -z "${NOTIFY_COMPATIBILITY_TRUE}" && test -z "${NOTIFY_COMPATIBILITY_FALSE}"; then
25404 as_fn_error $? "conditional \"NOTIFY_COMPATIBILITY\" was never defined.
25405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25407 if test -z "${COND_DBUS_PIM_TRUE}" && test -z "${COND_DBUS_PIM_FALSE}"; then
25408 as_fn_error $? "conditional \"COND_DBUS_PIM\" was never defined.
25409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25412 ac_config_commands="$ac_config_commands po/stamp-it"
25415 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
25416 as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
25417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25419 if test -z "${COND_HTML_README_TRUE}" && test -z "${COND_HTML_README_FALSE}"; then
25420 as_fn_error $? "conditional \"COND_HTML_README\" was never defined.
25421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25423 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
25424 as_fn_error $? "conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
25425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25427 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
25428 as_fn_error $? "conditional \"COND_DOC\" was never defined.
25429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25431 if test -z "${BUILD_ACTIVESYNCD_TRUE}" && test -z "${BUILD_ACTIVESYNCD_FALSE}"; then
25432 as_fn_error $? "conditional \"BUILD_ACTIVESYNCD\" was never defined.
25433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25435 if test -z "${ENABLE_AKONADI_TRUE}" && test -z "${ENABLE_AKONADI_FALSE}"; then
25436 as_fn_error $? "conditional \"ENABLE_AKONADI\" was never defined.
25437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25439 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
25440 as_fn_error $? "conditional \"ENABLE_ECAL\" was never defined.
25441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25443 if test -z "${USE_KDE_KWALLET_TRUE}" && test -z "${USE_KDE_KWALLET_FALSE}"; then
25444 as_fn_error $? "conditional \"USE_KDE_KWALLET\" was never defined.
25445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25447 if test -z "${NEON_COMPATIBILITY_TRUE}" && test -z "${NEON_COMPATIBILITY_FALSE}"; then
25448 as_fn_error $? "conditional \"NEON_COMPATIBILITY\" was never defined.
25449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25451 if test -z "${ENABLE_QT_DBUS_TRUE}" && test -z "${ENABLE_QT_DBUS_FALSE}"; then
25452 as_fn_error $? "conditional \"ENABLE_QT_DBUS\" was never defined.
25453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25455 if test -z "${ENABLE_ICAL_TRUE}" && test -z "${ENABLE_ICAL_FALSE}"; then
25456 as_fn_error $? "conditional \"ENABLE_ICAL\" was never defined.
25457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25459 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
25460 as_fn_error $? "conditional \"ENABLE_MODULES\" was never defined.
25461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25463 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
25464 as_fn_error $? "conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
25465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25467 if test -z "${COND_CROSS_COMPILING_TRUE}" && test -z "${COND_CROSS_COMPILING_FALSE}"; then
25468 as_fn_error $? "conditional \"COND_CROSS_COMPILING\" was never defined.
25469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25472 : "${CONFIG_STATUS=./config.status}"
25474 ac_clean_files_save=$ac_clean_files
25475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25477 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25479 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25481 # Generated by $as_me.
25482 # Run this file to recreate the current configuration.
25483 # Compiler output produced by configure, useful for debugging
25484 # configure, is in config.log if it exists.
25487 ac_cs_recheck=false
25490 SHELL=\${CONFIG_SHELL-$SHELL}
25493 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25494 ## -------------------- ##
25495 ## M4sh Initialization. ##
25496 ## -------------------- ##
25498 # Be more Bourne compatible
25499 DUALCASE=1; export DUALCASE # for MKS sh
25500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25503 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25504 # is contrary to our usage. Disable this feature.
25505 alias -g '${1+"$@"}'='"$@"'
25506 setopt NO_GLOB_SUBST
25508 case `(set -o) 2>/dev/null` in #(
25520 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25521 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25524 # Prefer a ksh shell builtin over an external printf program on Solaris,
25525 # but without wasting forks for bash or zsh.
25526 if test -z "$BASH_VERSION$ZSH_VERSION" \
25527 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25528 as_echo='print -r --'
25529 as_echo_n='print -rn --'
25530 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25531 as_echo='printf %s\n'
25532 as_echo_n='printf %s'
25534 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25535 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25536 as_echo_n='/usr/ucb/echo -n'
25538 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25539 as_echo_n_body='eval
25543 expr "X$arg" : "X\\(.*\\)$as_nl";
25544 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25546 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25548 export as_echo_n_body
25549 as_echo_n='sh -c $as_echo_n_body as_echo'
25551 export as_echo_body
25552 as_echo='sh -c $as_echo_body as_echo'
25555 # The user is always right.
25556 if test "${PATH_SEPARATOR+set}" != set; then
25558 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25559 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25566 # We need space, tab and new line, in precisely that order. Quoting is
25567 # there to prevent editors from complaining about space-tab.
25568 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25569 # splitting by setting IFS to empty value.)
25572 # Find who we are. Look in the path if we contain no directory separator.
25575 *[\\/]* ) as_myself=$0 ;;
25576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25577 for as_dir in $PATH
25580 test -z "$as_dir" && as_dir=.
25581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25587 # We did not find ourselves, most probably we were run as `sh COMMAND'
25588 # in which case we are not to be found in the path.
25589 if test "x$as_myself" = x; then
25592 if test ! -f "$as_myself"; then
25593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25597 # Unset variables that we do not need and which cause bugs (e.g. in
25598 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25599 # suppresses any "Segmentation fault" message there. '((' could
25600 # trigger a bug in pdksh 5.2.14.
25601 for as_var in BASH_ENV ENV MAIL MAILPATH
25602 do eval test x\${$as_var+set} = xset \
25603 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25619 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25620 # ----------------------------------------
25621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25623 # script with STATUS, using 1 if that was 0.
25626 as_status=$1; test $as_status -eq 0 && as_status=1
25628 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25631 $as_echo "$as_me: error: $2" >&2
25632 as_fn_exit $as_status
25636 # as_fn_set_status STATUS
25637 # -----------------------
25638 # Set $? to STATUS, without forking.
25639 as_fn_set_status ()
25642 } # as_fn_set_status
25644 # as_fn_exit STATUS
25645 # -----------------
25646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25650 as_fn_set_status $1
25656 # Portably unset VAR.
25659 { eval $1=; unset $1;}
25661 as_unset=as_fn_unset
25662 # as_fn_append VAR VALUE
25663 # ----------------------
25664 # Append the text in VALUE to the end of the definition contained in VAR. Take
25665 # advantage of any shell optimizations that allow amortized linear growth over
25666 # repeated appends, instead of the typical quadratic growth present in naive
25668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25669 eval 'as_fn_append ()
25680 # as_fn_arith ARG...
25681 # ------------------
25682 # Perform arithmetic evaluation on the ARGs, and store the result in the
25683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25684 # must be portable across $(()) and expr.
25685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25686 eval 'as_fn_arith ()
25693 as_val=`expr "$@" || test $? -eq 1`
25698 if expr a : '\(a\)' >/dev/null 2>&1 &&
25699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25706 as_basename=basename
25711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25717 as_me=`$as_basename -- "$0" ||
25718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25719 X"$0" : 'X\(//\)$' \| \
25720 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25722 sed '/^.*\/\([^/][^/]*\)\/*$/{
25736 # Avoid depending upon Character Ranges.
25737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25740 as_cr_digits='0123456789'
25741 as_cr_alnum=$as_cr_Letters$as_cr_digits
25743 ECHO_C= ECHO_N= ECHO_T=
25744 case `echo -n x` in #(((((
25746 case `echo 'xy\c'` in
25747 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25756 rm -f conf$$ conf$$.exe conf$$.file
25757 if test -d conf$$.dir; then
25758 rm -f conf$$.dir/conf$$.file
25761 mkdir conf$$.dir 2>/dev/null
25763 if (echo >conf$$.file) 2>/dev/null; then
25764 if ln -s conf$$.file conf$$ 2>/dev/null; then
25766 # ... but there are two gotchas:
25767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25769 # In both cases, we have to default to `cp -pR'.
25770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25772 elif ln conf$$.file conf$$ 2>/dev/null; then
25780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25781 rmdir conf$$.dir 2>/dev/null
25786 # Create "$as_dir" as a directory, including parents if necessary.
25791 -*) as_dir=./$as_dir;;
25793 test -d "$as_dir" || eval $as_mkdir_p || {
25797 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25798 *) as_qdir=$as_dir;;
25800 as_dirs="'$as_qdir' $as_dirs"
25801 as_dir=`$as_dirname -- "$as_dir" ||
25802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25803 X"$as_dir" : 'X\(//\)[^/]' \| \
25804 X"$as_dir" : 'X\(//\)$' \| \
25805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25806 $as_echo X"$as_dir" |
25807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25811 /^X\(\/\/\)[^/].*/{
25824 test -d "$as_dir" && break
25826 test -z "$as_dirs" || eval "mkdir $as_dirs"
25827 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25831 if mkdir -p . 2>/dev/null; then
25832 as_mkdir_p='mkdir -p "$as_dir"'
25834 test -d ./-p && rmdir ./-p
25839 # as_fn_executable_p FILE
25840 # -----------------------
25841 # Test if FILE is an executable regular file.
25842 as_fn_executable_p ()
25844 test -f "$1" && test -x "$1"
25845 } # as_fn_executable_p
25846 as_test_x='test -x'
25847 as_executable_p=as_fn_executable_p
25849 # Sed expression to map a string onto a valid CPP name.
25850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25852 # Sed expression to map a string onto a valid variable name.
25853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25857 ## ----------------------------------- ##
25858 ## Main body of $CONFIG_STATUS script. ##
25859 ## ----------------------------------- ##
25861 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25864 # Save the log message, to keep $0 and so on meaningful, and to
25865 # report actual input values of CONFIG_FILES etc. instead of their
25866 # values after options handling.
25868 This file was extended by syncevolution $as_me 1.3.99.4, which was
25869 generated by GNU Autoconf 2.69. Invocation command line was
25871 CONFIG_FILES = $CONFIG_FILES
25872 CONFIG_HEADERS = $CONFIG_HEADERS
25873 CONFIG_LINKS = $CONFIG_LINKS
25874 CONFIG_COMMANDS = $CONFIG_COMMANDS
25877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25882 case $ac_config_files in *"
25883 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25886 case $ac_config_headers in *"
25887 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25892 # Files that config.status was made for.
25893 config_files="$ac_config_files"
25894 config_headers="$ac_config_headers"
25895 config_commands="$ac_config_commands"
25899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25901 \`$as_me' instantiates files and other configuration actions
25902 from templates according to the current configuration. Unless the files
25903 and actions are specified as TAGs, all are instantiated by default.
25905 Usage: $0 [OPTION]... [TAG]...
25907 -h, --help print this help, then exit
25908 -V, --version print version number and configuration settings, then exit
25909 --config print configuration, then exit
25910 -q, --quiet, --silent
25911 do not print progress messages
25912 -d, --debug don't remove temporary files
25913 --recheck update $as_me by reconfiguring in the same conditions
25914 --file=FILE[:TEMPLATE]
25915 instantiate the configuration file FILE
25916 --header=FILE[:TEMPLATE]
25917 instantiate the configuration header FILE
25919 Configuration files:
25922 Configuration headers:
25925 Configuration commands:
25928 Report bugs to the package provider."
25931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25932 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25934 syncevolution config.status 1.3.99.4
25935 configured by $0, generated by GNU Autoconf 2.69,
25936 with options \\"\$ac_cs_config\\"
25938 Copyright (C) 2012 Free Software Foundation, Inc.
25939 This config.status script is free software; the Free Software Foundation
25940 gives unlimited permission to copy, distribute and modify it."
25947 test -n "\$AWK" || AWK=awk
25950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25951 # The default lists apply if the user does not specify any file.
25957 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25974 # Handling of the options.
25975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25978 $as_echo "$ac_cs_version"; exit ;;
25979 --config | --confi | --conf | --con | --co | --c )
25980 $as_echo "$ac_cs_config"; exit ;;
25981 --debug | --debu | --deb | --de | --d | -d )
25983 --file | --fil | --fi | --f )
25986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25987 '') as_fn_error $? "missing file argument" ;;
25989 as_fn_append CONFIG_FILES " '$ac_optarg'"
25990 ac_need_defaults=false;;
25991 --header | --heade | --head | --hea )
25994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25996 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25997 ac_need_defaults=false;;
25999 # Conflict between --help and --header
26000 as_fn_error $? "ambiguous option: \`$1'
26001 Try \`$0 --help' for more information.";;
26002 --help | --hel | -h )
26003 $as_echo "$ac_cs_usage"; exit ;;
26004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26005 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26008 # This is an error.
26009 -*) as_fn_error $? "unrecognized option: \`$1'
26010 Try \`$0 --help' for more information." ;;
26012 *) as_fn_append ac_config_targets " $1"
26013 ac_need_defaults=false ;;
26019 ac_configure_extra_args=
26021 if $ac_cs_silent; then
26023 ac_configure_extra_args="$ac_configure_extra_args --silent"
26027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26028 if \$ac_cs_recheck; then
26029 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26032 CONFIG_SHELL='$SHELL'
26033 export CONFIG_SHELL
26038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26043 ## Running $as_me. ##
26049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26053 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26056 # The HP-UX ksh and POSIX shell print the target directory to stdout
26057 # if CDPATH is set.
26058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26060 sed_quote_subst='$sed_quote_subst'
26061 double_quote_subst='$double_quote_subst'
26062 delay_variable_subst='$delay_variable_subst'
26063 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26064 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26065 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26066 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26067 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26068 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26069 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26070 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26071 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26072 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26073 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26074 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26075 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26076 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26077 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26078 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26079 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26080 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26081 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26082 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26083 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26084 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26085 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26086 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26087 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26088 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26089 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26090 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26091 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26092 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26093 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26094 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26095 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26096 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26097 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26098 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26099 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26100 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26101 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26102 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26103 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26104 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26105 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26106 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26107 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26108 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26109 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26110 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26111 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26112 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26113 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26114 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26115 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26116 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26117 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26118 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26120 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26121 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26122 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26123 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26124 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26125 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26126 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26127 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26128 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26129 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26130 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26131 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26132 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26133 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26134 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26135 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26136 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26137 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26138 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26139 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26140 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26141 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26142 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26143 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26144 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26145 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26146 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26147 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26148 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26149 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26150 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26151 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26152 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26153 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26154 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26155 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26156 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26157 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26158 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26159 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26160 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26161 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26162 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26163 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26164 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26165 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26166 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26167 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26168 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26169 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26170 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26171 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26172 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26173 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26174 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26175 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26176 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26177 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26178 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26179 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26180 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26181 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26182 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26183 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26184 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26185 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26186 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26187 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26188 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26189 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26190 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26191 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26192 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26193 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26194 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26195 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26196 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26197 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26198 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26199 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26200 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26201 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26202 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26203 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26204 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26205 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26206 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26207 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26208 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26209 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26210 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26211 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26212 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26213 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26214 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26215 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26216 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26217 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26218 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26219 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26220 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26221 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26222 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26223 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26224 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26225 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26226 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26227 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26228 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26229 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26230 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26231 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26232 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26233 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26234 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26235 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26236 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26237 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26238 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26239 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26240 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26241 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26242 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26243 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26244 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26245 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26246 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26249 LTCFLAGS='$LTCFLAGS'
26250 compiler='$compiler_DEFAULT'
26252 # A function that is used when there is no print builtin or printf.
26253 func_fallback_echo ()
26255 eval 'cat <<_LTECHO_EOF
26260 # Quote evaled strings.
26275 deplibs_check_method \
26280 sharedlib_from_linklib_cmd \
26283 archiver_list_spec \
26289 lt_cv_sys_global_symbol_pipe \
26290 lt_cv_sys_global_symbol_to_cdecl \
26291 lt_cv_sys_global_symbol_to_c_name_address \
26292 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26293 nm_file_list_spec \
26294 lt_prog_compiler_no_builtin_flag \
26295 lt_prog_compiler_pic \
26296 lt_prog_compiler_wl \
26297 lt_prog_compiler_static \
26298 lt_cv_prog_compiler_c_o \
26307 export_dynamic_flag_spec \
26308 whole_archive_flag_spec \
26309 compiler_needs_object \
26311 allow_undefined_flag \
26312 no_undefined_flag \
26313 hardcode_libdir_flag_spec \
26314 hardcode_libdir_separator \
26318 variables_saved_for_relink \
26320 library_names_spec \
26322 install_override_mode \
26326 compiler_lib_search_dirs \
26331 compiler_lib_search_path \
26335 lt_prog_compiler_no_builtin_flag_CXX \
26336 lt_prog_compiler_pic_CXX \
26337 lt_prog_compiler_wl_CXX \
26338 lt_prog_compiler_static_CXX \
26339 lt_cv_prog_compiler_c_o_CXX \
26340 export_dynamic_flag_spec_CXX \
26341 whole_archive_flag_spec_CXX \
26342 compiler_needs_object_CXX \
26344 allow_undefined_flag_CXX \
26345 no_undefined_flag_CXX \
26346 hardcode_libdir_flag_spec_CXX \
26347 hardcode_libdir_separator_CXX \
26348 exclude_expsyms_CXX \
26349 include_expsyms_CXX \
26350 file_list_spec_CXX \
26351 compiler_lib_search_dirs_CXX \
26352 predep_objects_CXX \
26353 postdep_objects_CXX \
26356 compiler_lib_search_path_CXX; do
26357 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26358 *[\\\\\\\`\\"\\\$]*)
26359 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26362 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26367 # Double-quote double-evaled strings.
26368 for var in reload_cmds \
26369 old_postinstall_cmds \
26370 old_postuninstall_cmds \
26372 extract_expsyms_cmds \
26373 old_archive_from_new_cmds \
26374 old_archive_from_expsyms_cmds \
26376 archive_expsym_cmds \
26378 module_expsym_cmds \
26379 export_symbols_cmds \
26383 postuninstall_cmds \
26385 sys_lib_search_path_spec \
26386 sys_lib_dlsearch_path_spec \
26388 old_archive_cmds_CXX \
26389 old_archive_from_new_cmds_CXX \
26390 old_archive_from_expsyms_cmds_CXX \
26392 archive_expsym_cmds_CXX \
26394 module_expsym_cmds_CXX \
26395 export_symbols_cmds_CXX \
26397 postlink_cmds_CXX; do
26398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26399 *[\\\\\\\`\\"\\\$]*)
26400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26408 ac_aux_dir='$ac_aux_dir'
26409 xsi_shell='$xsi_shell'
26410 lt_shell_append='$lt_shell_append'
26412 # See if we are running on zsh, and set the options which allow our
26413 # commands through without removal of \ escapes INIT.
26414 if test -n "\${ZSH_VERSION+set}" ; then
26415 setopt NO_GLOB_SUBST
26421 TIMESTAMP='$TIMESTAMP'
26433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26435 # Handling of arguments.
26436 for ac_config_target in $ac_config_targets
26438 case $ac_config_target in
26439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26441 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26442 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26443 "src/dbus/qt/syncevolution-qt-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/qt/syncevolution-qt-dbus.pc" ;;
26444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26445 "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
26446 "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
26447 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26448 "src/dbus/glib/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/glib/syncevo-dbus.pc" ;;
26449 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
26451 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26456 # If the user did not use the arguments to specify the items to instantiate,
26457 # then the envvar interface is used. Set only those that are not.
26458 # We use the long form for the default assignment because of an extremely
26459 # bizarre bug on SunOS 4.1.3.
26460 if $ac_need_defaults; then
26461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26466 # Have a temporary directory for convenience. Make it in the build tree
26467 # simply because there is no reason against having it here, and in addition,
26468 # creating and moving files from /tmp can sometimes cause problems.
26469 # Hook for its removal unless debugging.
26470 # Note that there is a small window in which the directory will not be cleaned:
26471 # after its creation but before its name has been assigned to `$tmp'.
26475 trap 'exit_status=$?
26476 : "${ac_tmp:=$tmp}"
26477 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26479 trap 'as_fn_exit 1' 1 2 13 15
26481 # Create a (secure) tmp directory for tmp files.
26484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26488 tmp=./conf$$-$RANDOM
26489 (umask 077 && mkdir "$tmp")
26490 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26493 # Set up the scripts for CONFIG_FILES section.
26494 # No need to generate them if there are no CONFIG_FILES.
26495 # This happens for instance with `./config.status config.h'.
26496 if test -n "$CONFIG_FILES"; then
26499 ac_cr=`echo X | tr X '\015'`
26500 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26501 # But we know of no other shell where ac_cr would be empty at this
26502 # point, so we can use a bashism as a fallback.
26503 if test "x$ac_cr" = x; then
26504 eval ac_cr=\$\'\\r\'
26506 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26507 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26510 ac_cs_awk_cr=$ac_cr
26513 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26518 echo "cat >conf$$subs.awk <<_ACEOF" &&
26519 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26521 } >conf$$subs.sh ||
26522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26523 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26525 for ac_last_try in false false false false false :; do
26526 . ./conf$$subs.sh ||
26527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26530 if test $ac_delim_n = $ac_delim_num; then
26532 elif $ac_last_try; then
26533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26538 rm -f conf$$subs.sh
26540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26541 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26545 s/^/S["/; s/!.*/"]=/
26555 s/\(.\{148\}\)..*/\1/
26557 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26562 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26569 s/\(.\{148\}\)..*/\1/
26571 s/["\\]/\\&/g; s/^/"/; s/$/"/
26575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26580 ' <conf$$subs.awk | sed '
26585 ' >>$CONFIG_STATUS || ac_write_fail=1
26586 rm -f conf$$subs.awk
26587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26589 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26590 for (key in S) S_is_set[key] = 1
26596 nfields = split(line, field, "@")
26598 len = length(field[1])
26599 for (i = 2; i < nfields; i++) {
26601 keylen = length(key)
26602 if (S_is_set[key]) {
26604 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26605 len += length(value) + length(field[++i])
26616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26617 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26618 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26621 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26622 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26625 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26626 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26627 # trailing colons and then remove the whole line if VPATH becomes empty
26628 # (actually we leave an empty line to preserve line numbers).
26629 if test "x$srcdir" = x.; then
26630 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26649 fi # test -n "$CONFIG_FILES"
26651 # Set up the scripts for CONFIG_HEADERS section.
26652 # No need to generate them if there are no CONFIG_HEADERS.
26653 # This happens for instance with `./config.status Makefile'.
26654 if test -n "$CONFIG_HEADERS"; then
26655 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26659 # Transform confdefs.h into an awk script `defines.awk', embedded as
26660 # here-document in config.status, that substitutes the proper values into
26661 # config.h.in to produce config.h.
26663 # Create a delimiter string that does not exist in confdefs.h, to ease
26664 # handling of long lines.
26666 for ac_last_try in false false :; do
26667 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26668 if test -z "$ac_tt"; then
26670 elif $ac_last_try; then
26671 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26677 # For the awk script, D is an array of macro values keyed by name,
26678 # likewise P contains macro parameters if any. Preserve backslash
26679 # newline sequences.
26681 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26683 s/.\{148\}/&'"$ac_delim"'/g
26686 s/^[ ]*#[ ]*define[ ][ ]*/ /
26693 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26695 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26699 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26700 D["\1"]=" \3\\\\\\n"\\/p
26702 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26707 s/.\{148\}/&'"$ac_delim"'/g
26712 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26715 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26717 ' <confdefs.h | sed '
26718 s/'"$ac_delim"'/"\\\
26719 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26722 for (key in D) D_is_set[key] = 1
26725 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26727 split(line, arg, " ")
26728 if (arg[1] == "#") {
26732 defundef = substr(arg[1], 2)
26735 split(mac1, mac2, "(") #)
26737 prefix = substr(line, 1, index(line, defundef) - 1)
26738 if (D_is_set[macro]) {
26739 # Preserve the white space surrounding the "#".
26740 print prefix "define", macro P[macro] D[macro]
26743 # Replace #undef with comments. This is necessary, for example,
26744 # in the case of _POSIX_SOURCE, which is predefined and required
26745 # on some systems where configure will not decide to define it.
26746 if (defundef == "undef") {
26747 print "/*", prefix defundef, macro, "*/"
26755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26756 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26757 fi # test -n "$CONFIG_HEADERS"
26760 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26765 :[FHLC]) ac_mode=$ac_tag; continue;;
26767 case $ac_mode$ac_tag in
26769 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26770 :[FH]-) ac_tag=-:-;;
26771 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26788 -) ac_f="$ac_tmp/stdin";;
26789 *) # Look for the file first in the build tree, then in the source tree
26790 # (if the path is not absolute). The absolute path cannot be DOS-style,
26791 # because $ac_f cannot contain `:'.
26795 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26797 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26799 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26800 as_fn_append ac_file_inputs " '$ac_f'"
26803 # Let's still pretend it is `configure' which instantiates (i.e., don't
26804 # use $as_me), people would be surprised to read:
26805 # /* config.h. Generated by config.status. */
26806 configure_input='Generated from '`
26807 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26809 if test x"$ac_file" != x-; then
26810 configure_input="$ac_file. $configure_input"
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26812 $as_echo "$as_me: creating $ac_file" >&6;}
26814 # Neutralize special characters interpreted by sed in replacement strings.
26815 case $configure_input in #(
26816 *\&* | *\|* | *\\* )
26817 ac_sed_conf_input=`$as_echo "$configure_input" |
26818 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26819 *) ac_sed_conf_input=$configure_input;;
26823 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26829 ac_dir=`$as_dirname -- "$ac_file" ||
26830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26831 X"$ac_file" : 'X\(//\)[^/]' \| \
26832 X"$ac_file" : 'X\(//\)$' \| \
26833 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26834 $as_echo X"$ac_file" |
26835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26839 /^X\(\/\/\)[^/].*/{
26852 as_dir="$ac_dir"; as_fn_mkdir_p
26856 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26858 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26859 # A ".." for each directory in $ac_dir_suffix.
26860 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26861 case $ac_top_builddir_sub in
26862 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26863 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26866 ac_abs_top_builddir=$ac_pwd
26867 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26868 # for backward compatibility:
26869 ac_top_builddir=$ac_top_build_prefix
26872 .) # We are building in place.
26874 ac_top_srcdir=$ac_top_builddir_sub
26875 ac_abs_top_srcdir=$ac_pwd ;;
26876 [\\/]* | ?:[\\/]* ) # Absolute name.
26877 ac_srcdir=$srcdir$ac_dir_suffix;
26878 ac_top_srcdir=$srcdir
26879 ac_abs_top_srcdir=$srcdir ;;
26880 *) # Relative name.
26881 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26882 ac_top_srcdir=$ac_top_build_prefix$srcdir
26883 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26885 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26895 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26896 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26898 ac_MKDIR_P=$MKDIR_P
26900 [\\/$]* | ?:[\\/]* ) ;;
26901 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26906 # If the template does not know about datarootdir, expand it.
26907 # FIXME: This hack should be removed a few years after 2.60.
26908 ac_datarootdir_hack=; ac_datarootdir_seen=
26919 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26920 *datarootdir*) ac_datarootdir_seen=yes;;
26921 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26923 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26926 ac_datarootdir_hack='
26927 s&@datadir@&$datadir&g
26928 s&@docdir@&$docdir&g
26929 s&@infodir@&$infodir&g
26930 s&@localedir@&$localedir&g
26931 s&@mandir@&$mandir&g
26932 s&\\\${datarootdir}&$datarootdir&g' ;;
26936 # Neutralize VPATH when `$srcdir' = `.'.
26937 # Shell code in configure.ac might set extrasub.
26938 # FIXME: do we really want to maintain this feature?
26939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26940 ac_sed_extra="$ac_vpsub
26943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26946 s|@configure_input@|$ac_sed_conf_input|;t t
26947 s&@top_builddir@&$ac_top_builddir_sub&;t t
26948 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26949 s&@srcdir@&$ac_srcdir&;t t
26950 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26951 s&@top_srcdir@&$ac_top_srcdir&;t t
26952 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26953 s&@builddir@&$ac_builddir&;t t
26954 s&@abs_builddir@&$ac_abs_builddir&;t t
26955 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26956 s&@INSTALL@&$ac_INSTALL&;t t
26957 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26958 $ac_datarootdir_hack
26960 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26961 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26963 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26964 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26965 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26966 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26968 which seems to be undefined. Please make sure it is defined" >&5
26969 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26970 which seems to be undefined. Please make sure it is defined" >&2;}
26972 rm -f "$ac_tmp/stdin"
26974 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26975 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26983 if test x"$ac_file" != x-; then
26985 $as_echo "/* $configure_input */" \
26986 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26987 } >"$ac_tmp/config.h" \
26988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26989 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26991 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26994 mv "$ac_tmp/config.h" "$ac_file" \
26995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26998 $as_echo "/* $configure_input */" \
26999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27000 || as_fn_error $? "could not create -" "$LINENO" 5
27002 # Compute "$ac_file"'s index in $config_headers.
27005 for _am_header in $config_headers :; do
27006 case $_am_header in
27007 $_am_arg | $_am_arg:* )
27010 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27013 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27014 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27015 X"$_am_arg" : 'X\(//\)[^/]' \| \
27016 X"$_am_arg" : 'X\(//\)$' \| \
27017 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27018 $as_echo X"$_am_arg" |
27019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27023 /^X\(\/\/\)[^/].*/{
27035 s/.*/./; q'`/stamp-h$_am_stamp_count
27038 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27039 $as_echo "$as_me: executing $ac_file commands" >&6;}
27044 case $ac_file$ac_mode in
27045 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27046 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27047 # are listed without --file. Let's play safe and only enable the eval
27048 # if we detect the quoting.
27049 case $CONFIG_FILES in
27050 *\'*) eval set x "$CONFIG_FILES" ;;
27051 *) set x $CONFIG_FILES ;;
27056 # Strip MF so we end up with the name of the file.
27057 mf=`echo "$mf" | sed -e 's/:.*$//'`
27058 # Check whether this is an Automake generated Makefile or not.
27059 # We used to match only the files named `Makefile.in', but
27060 # some people rename them; so instead we look at the file content.
27061 # Grep'ing the first line is not enough: some people post-process
27062 # each Makefile.in and add a new line on top of each file to say so.
27063 # Grep'ing the whole file is not good either: AIX grep has a line
27064 # limit of 2048, but all sed's we know have understand at least 4000.
27065 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27066 dirpart=`$as_dirname -- "$mf" ||
27067 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27068 X"$mf" : 'X\(//\)[^/]' \| \
27069 X"$mf" : 'X\(//\)$' \| \
27070 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27076 /^X\(\/\/\)[^/].*/{
27092 # Extract the definition of DEPDIR, am__include, and am__quote
27093 # from the Makefile without running `make'.
27094 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27095 test -z "$DEPDIR" && continue
27096 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27097 test -z "am__include" && continue
27098 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27099 # When using ansi2knr, U may be empty or an underscore; expand it
27100 U=`sed -n 's/^U = //p' < "$mf"`
27101 # Find all dependency output files, they are included files with
27102 # $(DEPDIR) in their names. We invoke sed twice because it is the
27103 # simplest approach to changing $(DEPDIR) to its actual value in the
27105 for file in `sed -n "
27106 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27107 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27108 # Make sure the directory exists.
27109 test -f "$dirpart/$file" && continue
27110 fdir=`$as_dirname -- "$file" ||
27111 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27112 X"$file" : 'X\(//\)[^/]' \| \
27113 X"$file" : 'X\(//\)$' \| \
27114 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27115 $as_echo X"$file" |
27116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27120 /^X\(\/\/\)[^/].*/{
27133 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27134 # echo "creating $dirpart/$file"
27135 echo '# dummy' > "$dirpart/$file"
27142 # See if we are running on zsh, and set the options which allow our
27143 # commands through without removal of \ escapes.
27144 if test -n "${ZSH_VERSION+set}" ; then
27145 setopt NO_GLOB_SUBST
27148 cfgfile="${ofile}T"
27149 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27152 cat <<_LT_EOF >> "$cfgfile"
27155 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27156 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27158 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27160 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27161 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27163 # Written by Gordon Matzigkeit, 1996
27165 # This file is part of GNU Libtool.
27167 # GNU Libtool is free software; you can redistribute it and/or
27168 # modify it under the terms of the GNU General Public License as
27169 # published by the Free Software Foundation; either version 2 of
27170 # the License, or (at your option) any later version.
27172 # As a special exception to the GNU General Public License,
27173 # if you distribute this file as part of a program or library that
27174 # is built using GNU Libtool, you may include this file under the
27175 # same distribution terms that you use for the rest of that program.
27177 # GNU Libtool is distributed in the hope that it will be useful,
27178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27180 # GNU General Public License for more details.
27182 # You should have received a copy of the GNU General Public License
27183 # along with GNU Libtool; see the file COPYING. If not, a copy
27184 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27185 # obtained by writing to the Free Software Foundation, Inc.,
27186 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27189 # The names of the tagged configurations supported by this script.
27190 available_tags="CXX "
27192 # ### BEGIN LIBTOOL CONFIG
27194 # Which release of libtool.m4 was used?
27195 macro_version=$macro_version
27196 macro_revision=$macro_revision
27198 # Whether or not to build shared libraries.
27199 build_libtool_libs=$enable_shared
27201 # Whether or not to build static libraries.
27202 build_old_libs=$enable_static
27204 # What type of objects to build.
27207 # Whether or not to optimize for fast installation.
27208 fast_install=$enable_fast_install
27210 # Shell to use when invoking shell scripts.
27213 # An echo program that protects backslashes.
27216 # The PATH separator for the build system.
27217 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27220 host_alias=$host_alias
27224 # The build system.
27225 build_alias=$build_alias
27229 # A sed program that does not truncate output.
27232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27233 Xsed="\$SED -e 1s/^X//"
27235 # A grep program that handles long lines.
27241 # A literal string matcher.
27244 # A BSD- or MS-compatible name lister.
27247 # Whether we need soft or hard links.
27250 # What is the maximum length of a command?
27251 max_cmd_len=$max_cmd_len
27253 # Object file suffix (normally "o").
27256 # Executable file suffix (normally "").
27259 # whether the shell understands "unset".
27262 # turn spaces into newlines.
27265 # turn newlines into spaces.
27268 # convert \$build file names to \$host format.
27269 to_host_file_cmd=$lt_cv_to_host_file_cmd
27271 # convert \$build files to toolchain format.
27272 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27274 # An object symbol dumper.
27275 OBJDUMP=$lt_OBJDUMP
27277 # Method to check whether dependent libraries are shared objects.
27278 deplibs_check_method=$lt_deplibs_check_method
27280 # Command to use when deplibs_check_method = "file_magic".
27281 file_magic_cmd=$lt_file_magic_cmd
27283 # How to find potential files when deplibs_check_method = "file_magic".
27284 file_magic_glob=$lt_file_magic_glob
27286 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27287 want_nocaseglob=$lt_want_nocaseglob
27289 # DLL creation program.
27290 DLLTOOL=$lt_DLLTOOL
27292 # Command to associate shared and link libraries.
27293 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27298 # Flags to create an archive.
27299 AR_FLAGS=$lt_AR_FLAGS
27301 # How to feed a file listing to the archiver.
27302 archiver_list_spec=$lt_archiver_list_spec
27304 # A symbol stripping program.
27307 # Commands used to install an old-style archive.
27309 old_postinstall_cmds=$lt_old_postinstall_cmds
27310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27312 # Whether to use a lock for old archive extraction.
27313 lock_old_archive_extraction=$lock_old_archive_extraction
27318 # LTCC compiler flags.
27319 LTCFLAGS=$lt_CFLAGS
27321 # Take the output of nm and produce a listing of raw symbols and C names.
27322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27324 # Transform the output of nm in a proper C declaration.
27325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27327 # Transform the output of nm in a C name address pair.
27328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27330 # Transform the output of nm in a C name address pair when lib prefix is needed.
27331 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27333 # Specify filename containing input files for \$NM.
27334 nm_file_list_spec=$lt_nm_file_list_spec
27336 # The root where to search for dependent libraries,and in which our libraries should be installed.
27337 lt_sysroot=$lt_sysroot
27339 # The name of the directory that contains temporary libtool files.
27342 # Used to examine libraries when file_magic_cmd begins with "file".
27343 MAGIC_CMD=$MAGIC_CMD
27345 # Must we lock files when doing compilation?
27346 need_locks=$lt_need_locks
27349 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27352 DSYMUTIL=$lt_DSYMUTIL
27354 # Tool to change global to local symbols on Mac OS X.
27357 # Tool to manipulate fat objects and archives on Mac OS X.
27360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27364 OTOOL64=$lt_OTOOL64
27366 # Old archive suffix (normally "a").
27369 # Shared library suffix (normally ".so").
27370 shrext_cmds=$lt_shrext_cmds
27372 # The commands to extract the exported symbol list from a shared archive.
27373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27375 # Variables whose values should be saved in libtool wrapper scripts and
27376 # restored at link time.
27377 variables_saved_for_relink=$lt_variables_saved_for_relink
27379 # Do we need the "lib" prefix for modules?
27380 need_lib_prefix=$need_lib_prefix
27382 # Do we need a version for libraries?
27383 need_version=$need_version
27385 # Library versioning type.
27386 version_type=$version_type
27388 # Shared library runtime path variable.
27389 runpath_var=$runpath_var
27391 # Shared library path variable.
27392 shlibpath_var=$shlibpath_var
27394 # Is shlibpath searched before the hard-coded library search path?
27395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27397 # Format of library name prefix.
27398 libname_spec=$lt_libname_spec
27400 # List of archive names. First name is the real one, the rest are links.
27401 # The last name is the one that the linker finds with -lNAME
27402 library_names_spec=$lt_library_names_spec
27404 # The coded name of the library, if different from the real name.
27405 soname_spec=$lt_soname_spec
27407 # Permission mode override for installation of shared libraries.
27408 install_override_mode=$lt_install_override_mode
27410 # Command to use after installation of a shared archive.
27411 postinstall_cmds=$lt_postinstall_cmds
27413 # Command to use after uninstallation of a shared archive.
27414 postuninstall_cmds=$lt_postuninstall_cmds
27416 # Commands used to finish a libtool library installation in a directory.
27417 finish_cmds=$lt_finish_cmds
27419 # As "finish_cmds", except a single script fragment to be evaled but
27421 finish_eval=$lt_finish_eval
27423 # Whether we should hardcode library paths into libraries.
27424 hardcode_into_libs=$hardcode_into_libs
27426 # Compile-time system search path for libraries.
27427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27429 # Run-time system search path for libraries.
27430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27432 # Whether dlopen is supported.
27433 dlopen_support=$enable_dlopen
27435 # Whether dlopen of programs is supported.
27436 dlopen_self=$enable_dlopen_self
27438 # Whether dlopen of statically linked programs is supported.
27439 dlopen_self_static=$enable_dlopen_self_static
27441 # Commands to strip libraries.
27442 old_striplib=$lt_old_striplib
27443 striplib=$lt_striplib
27446 # The linker used to build libraries.
27449 # How to create reloadable object files.
27450 reload_flag=$lt_reload_flag
27451 reload_cmds=$lt_reload_cmds
27453 # Commands used to build an old-style archive.
27454 old_archive_cmds=$lt_old_archive_cmds
27456 # A language specific compiler.
27459 # Is the compiler the GNU compiler?
27462 # Compiler flag to turn off builtin functions.
27463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27465 # Additional compiler flags for building library objects.
27466 pic_flag=$lt_lt_prog_compiler_pic
27468 # How to pass a linker flag through the compiler.
27469 wl=$lt_lt_prog_compiler_wl
27471 # Compiler flag to prevent dynamic linking.
27472 link_static_flag=$lt_lt_prog_compiler_static
27474 # Does compiler simultaneously support -c and -o options?
27475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27477 # Whether or not to add -lc for building shared libraries.
27478 build_libtool_need_lc=$archive_cmds_need_lc
27480 # Whether or not to disallow shared libs when runtime libs are static.
27481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27483 # Compiler flag to allow reflexive dlopens.
27484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27486 # Compiler flag to generate shared objects directly from archives.
27487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27489 # Whether the compiler copes with passing no objects directly.
27490 compiler_needs_object=$lt_compiler_needs_object
27492 # Create an old-style archive from a shared archive.
27493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27495 # Create a temporary old-style archive to link instead of a shared archive.
27496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27498 # Commands used to build a shared archive.
27499 archive_cmds=$lt_archive_cmds
27500 archive_expsym_cmds=$lt_archive_expsym_cmds
27502 # Commands used to build a loadable module if different from building
27503 # a shared archive.
27504 module_cmds=$lt_module_cmds
27505 module_expsym_cmds=$lt_module_expsym_cmds
27507 # Whether we are building with GNU ld or not.
27508 with_gnu_ld=$lt_with_gnu_ld
27510 # Flag that allows shared libraries with undefined symbols to be built.
27511 allow_undefined_flag=$lt_allow_undefined_flag
27513 # Flag that enforces no undefined symbols.
27514 no_undefined_flag=$lt_no_undefined_flag
27516 # Flag to hardcode \$libdir into a binary during linking.
27517 # This must work even if \$libdir does not exist
27518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27520 # Whether we need a single "-rpath" flag with a separated argument.
27521 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27524 # DIR into the resulting binary.
27525 hardcode_direct=$hardcode_direct
27527 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27528 # DIR into the resulting binary and the resulting library dependency is
27529 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27530 # library is relocated.
27531 hardcode_direct_absolute=$hardcode_direct_absolute
27533 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27534 # into the resulting binary.
27535 hardcode_minus_L=$hardcode_minus_L
27537 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27538 # into the resulting binary.
27539 hardcode_shlibpath_var=$hardcode_shlibpath_var
27541 # Set to "yes" if building a shared library automatically hardcodes DIR
27542 # into the library and all subsequent libraries and executables linked
27544 hardcode_automatic=$hardcode_automatic
27546 # Set to yes if linker adds runtime paths of dependent libraries
27547 # to runtime path list.
27548 inherit_rpath=$inherit_rpath
27550 # Whether libtool must link a program against all its dependency libraries.
27551 link_all_deplibs=$link_all_deplibs
27553 # Set to "yes" if exported symbols are required.
27554 always_export_symbols=$always_export_symbols
27556 # The commands to list exported symbols.
27557 export_symbols_cmds=$lt_export_symbols_cmds
27559 # Symbols that should not be listed in the preloaded symbols.
27560 exclude_expsyms=$lt_exclude_expsyms
27562 # Symbols that must always be exported.
27563 include_expsyms=$lt_include_expsyms
27565 # Commands necessary for linking programs (against libraries) with templates.
27566 prelink_cmds=$lt_prelink_cmds
27568 # Commands necessary for finishing linking programs.
27569 postlink_cmds=$lt_postlink_cmds
27571 # Specify filename containing input files.
27572 file_list_spec=$lt_file_list_spec
27574 # How to hardcode a shared library path into an executable.
27575 hardcode_action=$hardcode_action
27577 # The directories searched by this compiler when creating a shared library.
27578 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27580 # Dependencies to place before and after the objects being linked to
27581 # create a shared library.
27582 predep_objects=$lt_predep_objects
27583 postdep_objects=$lt_postdep_objects
27584 predeps=$lt_predeps
27585 postdeps=$lt_postdeps
27587 # The library search path used internally by the compiler when linking
27588 # a shared library.
27589 compiler_lib_search_path=$lt_compiler_lib_search_path
27591 # ### END LIBTOOL CONFIG
27597 cat <<\_LT_EOF >> "$cfgfile"
27598 # AIX sometimes has problems with the GCC collect2 program. For some
27599 # reason, if we set the COLLECT_NAMES environment variable, the problems
27600 # vanish in a puff of smoke.
27601 if test "X${COLLECT_NAMES+set}" != Xset; then
27603 export COLLECT_NAMES
27610 ltmain="$ac_aux_dir/ltmain.sh"
27613 # We use sed instead of cat because bash on DJGPP gets confused if
27614 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27615 # text mode, it properly converts lines to CR/LF. This bash problem
27616 # is reportedly fixed, but why not run on old versions too?
27617 sed '$q' "$ltmain" >> "$cfgfile" \
27618 || (rm -f "$cfgfile"; exit 1)
27620 if test x"$xsi_shell" = xyes; then
27621 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27625 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27626 \ * ) func_dirname_result="${3}" ;;\
27628 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27629 && mv -f "$cfgfile.tmp" "$cfgfile" \
27630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27631 test 0 -eq $? || _lt_function_replace_fail=:
27634 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27637 \ func_basename_result="${1##*/}"\
27638 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27639 && mv -f "$cfgfile.tmp" "$cfgfile" \
27640 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27641 test 0 -eq $? || _lt_function_replace_fail=:
27644 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27645 func_dirname_and_basename ()\
27648 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27649 \ * ) func_dirname_result="${3}" ;;\
27651 \ func_basename_result="${1##*/}"\
27652 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27653 && mv -f "$cfgfile.tmp" "$cfgfile" \
27654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27655 test 0 -eq $? || _lt_function_replace_fail=:
27658 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27661 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27662 \ # positional parameters, so assign one to ordinary parameter first.\
27663 \ func_stripname_result=${3}\
27664 \ func_stripname_result=${func_stripname_result#"${1}"}\
27665 \ func_stripname_result=${func_stripname_result%"${2}"}\
27666 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27667 && mv -f "$cfgfile.tmp" "$cfgfile" \
27668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27669 test 0 -eq $? || _lt_function_replace_fail=:
27672 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27673 func_split_long_opt ()\
27675 \ func_split_long_opt_name=${1%%=*}\
27676 \ func_split_long_opt_arg=${1#*=}\
27677 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27678 && mv -f "$cfgfile.tmp" "$cfgfile" \
27679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27680 test 0 -eq $? || _lt_function_replace_fail=:
27683 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27684 func_split_short_opt ()\
27686 \ func_split_short_opt_arg=${1#??}\
27687 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27688 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27689 && mv -f "$cfgfile.tmp" "$cfgfile" \
27690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27691 test 0 -eq $? || _lt_function_replace_fail=:
27694 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27698 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27699 \ *) func_lo2o_result=${1} ;;\
27701 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27702 && mv -f "$cfgfile.tmp" "$cfgfile" \
27703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27704 test 0 -eq $? || _lt_function_replace_fail=:
27707 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27710 func_xform_result=${1%.*}.lo\
27711 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27712 && mv -f "$cfgfile.tmp" "$cfgfile" \
27713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27714 test 0 -eq $? || _lt_function_replace_fail=:
27717 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27720 func_arith_result=$(( $* ))\
27721 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27722 && mv -f "$cfgfile.tmp" "$cfgfile" \
27723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27724 test 0 -eq $? || _lt_function_replace_fail=:
27727 sed -e '/^func_len ()$/,/^} # func_len /c\
27730 func_len_result=${#1}\
27731 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27732 && mv -f "$cfgfile.tmp" "$cfgfile" \
27733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27734 test 0 -eq $? || _lt_function_replace_fail=:
27738 if test x"$lt_shell_append" = xyes; then
27739 sed -e '/^func_append ()$/,/^} # func_append /c\
27742 eval "${1}+=\\${2}"\
27743 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27744 && mv -f "$cfgfile.tmp" "$cfgfile" \
27745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27746 test 0 -eq $? || _lt_function_replace_fail=:
27749 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27750 func_append_quoted ()\
27752 \ func_quote_for_eval "${2}"\
27753 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27754 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27755 && mv -f "$cfgfile.tmp" "$cfgfile" \
27756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27757 test 0 -eq $? || _lt_function_replace_fail=:
27760 # Save a `func_append' function call where possible by direct use of '+='
27761 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27762 && mv -f "$cfgfile.tmp" "$cfgfile" \
27763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27764 test 0 -eq $? || _lt_function_replace_fail=:
27766 # Save a `func_append' function call even when '+=' is not available
27767 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27768 && mv -f "$cfgfile.tmp" "$cfgfile" \
27769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27770 test 0 -eq $? || _lt_function_replace_fail=:
27773 if test x"$_lt_function_replace_fail" = x":"; then
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27775 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27779 mv -f "$cfgfile" "$ofile" ||
27780 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27784 cat <<_LT_EOF >> "$ofile"
27786 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27788 # The linker used to build libraries.
27791 # How to create reloadable object files.
27792 reload_flag=$lt_reload_flag_CXX
27793 reload_cmds=$lt_reload_cmds_CXX
27795 # Commands used to build an old-style archive.
27796 old_archive_cmds=$lt_old_archive_cmds_CXX
27798 # A language specific compiler.
27799 CC=$lt_compiler_CXX
27801 # Is the compiler the GNU compiler?
27804 # Compiler flag to turn off builtin functions.
27805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27807 # Additional compiler flags for building library objects.
27808 pic_flag=$lt_lt_prog_compiler_pic_CXX
27810 # How to pass a linker flag through the compiler.
27811 wl=$lt_lt_prog_compiler_wl_CXX
27813 # Compiler flag to prevent dynamic linking.
27814 link_static_flag=$lt_lt_prog_compiler_static_CXX
27816 # Does compiler simultaneously support -c and -o options?
27817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27819 # Whether or not to add -lc for building shared libraries.
27820 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27822 # Whether or not to disallow shared libs when runtime libs are static.
27823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27825 # Compiler flag to allow reflexive dlopens.
27826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27828 # Compiler flag to generate shared objects directly from archives.
27829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27831 # Whether the compiler copes with passing no objects directly.
27832 compiler_needs_object=$lt_compiler_needs_object_CXX
27834 # Create an old-style archive from a shared archive.
27835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27837 # Create a temporary old-style archive to link instead of a shared archive.
27838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27840 # Commands used to build a shared archive.
27841 archive_cmds=$lt_archive_cmds_CXX
27842 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27844 # Commands used to build a loadable module if different from building
27845 # a shared archive.
27846 module_cmds=$lt_module_cmds_CXX
27847 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27849 # Whether we are building with GNU ld or not.
27850 with_gnu_ld=$lt_with_gnu_ld_CXX
27852 # Flag that allows shared libraries with undefined symbols to be built.
27853 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27855 # Flag that enforces no undefined symbols.
27856 no_undefined_flag=$lt_no_undefined_flag_CXX
27858 # Flag to hardcode \$libdir into a binary during linking.
27859 # This must work even if \$libdir does not exist
27860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27862 # Whether we need a single "-rpath" flag with a separated argument.
27863 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27865 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27866 # DIR into the resulting binary.
27867 hardcode_direct=$hardcode_direct_CXX
27869 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27870 # DIR into the resulting binary and the resulting library dependency is
27871 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27872 # library is relocated.
27873 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27875 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27876 # into the resulting binary.
27877 hardcode_minus_L=$hardcode_minus_L_CXX
27879 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27880 # into the resulting binary.
27881 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27883 # Set to "yes" if building a shared library automatically hardcodes DIR
27884 # into the library and all subsequent libraries and executables linked
27886 hardcode_automatic=$hardcode_automatic_CXX
27888 # Set to yes if linker adds runtime paths of dependent libraries
27889 # to runtime path list.
27890 inherit_rpath=$inherit_rpath_CXX
27892 # Whether libtool must link a program against all its dependency libraries.
27893 link_all_deplibs=$link_all_deplibs_CXX
27895 # Set to "yes" if exported symbols are required.
27896 always_export_symbols=$always_export_symbols_CXX
27898 # The commands to list exported symbols.
27899 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27901 # Symbols that should not be listed in the preloaded symbols.
27902 exclude_expsyms=$lt_exclude_expsyms_CXX
27904 # Symbols that must always be exported.
27905 include_expsyms=$lt_include_expsyms_CXX
27907 # Commands necessary for linking programs (against libraries) with templates.
27908 prelink_cmds=$lt_prelink_cmds_CXX
27910 # Commands necessary for finishing linking programs.
27911 postlink_cmds=$lt_postlink_cmds_CXX
27913 # Specify filename containing input files.
27914 file_list_spec=$lt_file_list_spec_CXX
27916 # How to hardcode a shared library path into an executable.
27917 hardcode_action=$hardcode_action_CXX
27919 # The directories searched by this compiler when creating a shared library.
27920 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27922 # Dependencies to place before and after the objects being linked to
27923 # create a shared library.
27924 predep_objects=$lt_predep_objects_CXX
27925 postdep_objects=$lt_postdep_objects_CXX
27926 predeps=$lt_predeps_CXX
27927 postdeps=$lt_postdeps_CXX
27929 # The library search path used internally by the compiler when linking
27930 # a shared library.
27931 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27933 # ### END LIBTOOL TAG CONFIG: CXX
27937 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
27938 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
27941 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
27942 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
27944 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
27949 '"s|^| $ac_top_srcdir/|" \
27950 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
27952 sed '/^POTFILES =/,/[^\\]$/ {
27956 ' "po/Makefile.in" >"po/Makefile"
27957 rm -f "po/Makefile.tmp"
27958 mv "po/stamp-it.tmp" "po/stamp-it"
27967 ac_clean_files=$ac_clean_files_save
27969 test $ac_write_fail = 0 ||
27970 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27973 # configure is writing to config.log, and then calls config.status.
27974 # config.status does its own redirection, appending to config.log.
27975 # Unfortunately, on DOS this fails, as config.log is still kept open
27976 # by configure, so config.status won't be able to write to it; its
27977 # output is simply discarded. So we exec the FD to /dev/null,
27978 # effectively closing config.log, so it can be properly (re)opened and
27979 # appended to by config.status. When coming back to configure, we
27980 # need to make the FD available again.
27981 if test "$no_create" != yes; then
27983 ac_config_status_args=
27984 test "$silent" = yes &&
27985 ac_config_status_args="$ac_config_status_args --quiet"
27987 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27989 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27990 # would make configure fail if this is the last instruction.
27991 $ac_cs_success || as_fn_exit 1
27993 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27995 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28000 echo CONFIGURATION SUMMARY
28001 echo "Core SyncEvolution: $enable_core"
28002 for backend in $BACKENDS; do
28003 eval echo $backend: \${enable_${backend}}
28005 echo "DBus service: $enable_dbus_service"
28006 echo "org._01.pim support in DBus service: $enable_dbus_pim"
28007 echo "Notifications: $enable_notify"
28008 echo "GIO GDBus: $with_gio_gdbus"
28009 echo "GNOME keyring: $enable_gnome_keyring"
28010 if test "$enable_gui" = "no"; then
28011 echo "UI (DBus client): no"
28013 echo "UI (DBus client): $enable_gui (using $gtk_version)"
28015 echo "Bluetooth transport: $have_bluetooth"
28016 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
28017 echo "SHA-256: $have_sha"
28018 echo "API documentation: $enable_doc"
28019 echo "D-Bus Timeout Hack: $enable_dbus_timeout_hack"