2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.2.8.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='5.2.8'
571 PACKAGE_STRING='bacula 5.2.8'
575 ac_unique_file="src/version.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='LTLIBOBJS
640 SHARED_CATALOG_TARGETS
711 TRAY_MONITOR_CPPFLAGS
720 INTL_LIBTOOL_SUFFIX_PREFIX
727 BUILD_INCLUDED_LIBINTL
758 HAVE_OPENBSD_OS_FALSE
762 HAVE_FREEBSD_OS_FALSE
774 INCLUDE_UNINSTALL_TARGET
775 INCLUDE_INSTALL_TARGET
779 LIBTOOL_UNINSTALL_TARGET
780 LIBTOOL_INSTALL_TARGET
781 DEFAULT_SHARED_OBJECT_TYPE
863 LIBBACFIND_LT_RELEASE
864 LIBBACCATS_LT_RELEASE
909 program_transform_name
920 ac_subst_files='MCOMMON'
922 enable_option_checking
936 with_included_gettext
975 with_mon_dir_password
1000 ac_precious_vars='build_alias
1018 # Initialize some variables set by options.
1020 ac_init_version=false
1021 ac_unrecognized_opts=
1022 ac_unrecognized_sep=
1023 # The variables have the same names as the options, with
1024 # dashes changed to underlines.
1025 cache_file=/dev/null
1032 program_transform_name=s,x,x,
1040 # Installation directory options.
1041 # These are left unexpanded so users can "make install exec_prefix=/foo"
1042 # and all the variables that are supposed to be based on exec_prefix
1043 # by default will actually change.
1044 # Use braces instead of parens because sh, perl, etc. also accept them.
1045 # (The list follows the same order as the GNU Coding Standards.)
1046 bindir='${exec_prefix}/bin'
1047 sbindir='${exec_prefix}/sbin'
1048 libexecdir='${exec_prefix}/libexec'
1049 datarootdir='${prefix}/share'
1050 datadir='${datarootdir}'
1051 sysconfdir='${prefix}/etc'
1052 sharedstatedir='${prefix}/com'
1053 localstatedir='${prefix}/var'
1054 includedir='${prefix}/include'
1055 oldincludedir='/usr/include'
1056 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1057 infodir='${datarootdir}/info'
1062 libdir='${exec_prefix}/lib'
1063 localedir='${datarootdir}/locale'
1064 mandir='${datarootdir}/man'
1070 # If the previous option needs an argument, assign it.
1071 if test -n "$ac_prev"; then
1072 eval $ac_prev=\$ac_option
1078 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1083 # Accept the important Cygnus configure options, so we can diagnose typos.
1085 case $ac_dashdash$ac_option in
1089 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1091 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1092 bindir=$ac_optarg ;;
1094 -build | --build | --buil | --bui | --bu)
1095 ac_prev=build_alias ;;
1096 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1097 build_alias=$ac_optarg ;;
1099 -cache-file | --cache-file | --cache-fil | --cache-fi \
1100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1101 ac_prev=cache_file ;;
1102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1104 cache_file=$ac_optarg ;;
1106 --config-cache | -C)
1107 cache_file=config.cache ;;
1109 -datadir | --datadir | --datadi | --datad)
1111 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1112 datadir=$ac_optarg ;;
1114 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1115 | --dataroo | --dataro | --datar)
1116 ac_prev=datarootdir ;;
1117 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1118 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1119 datarootdir=$ac_optarg ;;
1121 -disable-* | --disable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid feature name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_$ac_useropt"
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval enable_$ac_useropt=no ;;
1137 -docdir | --docdir | --docdi | --doc | --do)
1139 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1140 docdir=$ac_optarg ;;
1142 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1144 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1145 dvidir=$ac_optarg ;;
1147 -enable-* | --enable-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid feature name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "enable_$ac_useropt"
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval enable_$ac_useropt=\$ac_optarg ;;
1163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1165 | --exec | --exe | --ex)
1166 ac_prev=exec_prefix ;;
1167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1169 | --exec=* | --exe=* | --ex=*)
1170 exec_prefix=$ac_optarg ;;
1172 -gas | --gas | --ga | --g)
1173 # Obsolete; use --with-gas.
1176 -help | --help | --hel | --he | -h)
1177 ac_init_help=long ;;
1178 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1179 ac_init_help=recursive ;;
1180 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1181 ac_init_help=short ;;
1183 -host | --host | --hos | --ho)
1184 ac_prev=host_alias ;;
1185 -host=* | --host=* | --hos=* | --ho=*)
1186 host_alias=$ac_optarg ;;
1188 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1190 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1192 htmldir=$ac_optarg ;;
1194 -includedir | --includedir | --includedi | --included | --include \
1195 | --includ | --inclu | --incl | --inc)
1196 ac_prev=includedir ;;
1197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1198 | --includ=* | --inclu=* | --incl=* | --inc=*)
1199 includedir=$ac_optarg ;;
1201 -infodir | --infodir | --infodi | --infod | --info | --inf)
1203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1204 infodir=$ac_optarg ;;
1206 -libdir | --libdir | --libdi | --libd)
1208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1209 libdir=$ac_optarg ;;
1211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1212 | --libexe | --libex | --libe)
1213 ac_prev=libexecdir ;;
1214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1215 | --libexe=* | --libex=* | --libe=*)
1216 libexecdir=$ac_optarg ;;
1218 -localedir | --localedir | --localedi | --localed | --locale)
1219 ac_prev=localedir ;;
1220 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1221 localedir=$ac_optarg ;;
1223 -localstatedir | --localstatedir | --localstatedi | --localstated \
1224 | --localstate | --localstat | --localsta | --localst | --locals)
1225 ac_prev=localstatedir ;;
1226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1227 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1228 localstatedir=$ac_optarg ;;
1230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1233 mandir=$ac_optarg ;;
1235 -nfp | --nfp | --nf)
1236 # Obsolete; use --without-fp.
1239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1240 | --no-cr | --no-c | -n)
1243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1249 | --oldin | --oldi | --old | --ol | --o)
1250 ac_prev=oldincludedir ;;
1251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1254 oldincludedir=$ac_optarg ;;
1256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1259 prefix=$ac_optarg ;;
1261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1262 | --program-pre | --program-pr | --program-p)
1263 ac_prev=program_prefix ;;
1264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1266 program_prefix=$ac_optarg ;;
1268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1269 | --program-suf | --program-su | --program-s)
1270 ac_prev=program_suffix ;;
1271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1273 program_suffix=$ac_optarg ;;
1275 -program-transform-name | --program-transform-name \
1276 | --program-transform-nam | --program-transform-na \
1277 | --program-transform-n | --program-transform- \
1278 | --program-transform | --program-transfor \
1279 | --program-transfo | --program-transf \
1280 | --program-trans | --program-tran \
1281 | --progr-tra | --program-tr | --program-t)
1282 ac_prev=program_transform_name ;;
1283 -program-transform-name=* | --program-transform-name=* \
1284 | --program-transform-nam=* | --program-transform-na=* \
1285 | --program-transform-n=* | --program-transform-=* \
1286 | --program-transform=* | --program-transfor=* \
1287 | --program-transfo=* | --program-transf=* \
1288 | --program-trans=* | --program-tran=* \
1289 | --progr-tra=* | --program-tr=* | --program-t=*)
1290 program_transform_name=$ac_optarg ;;
1292 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1294 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1295 pdfdir=$ac_optarg ;;
1297 -psdir | --psdir | --psdi | --psd | --ps)
1299 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1303 | -silent | --silent | --silen | --sile | --sil)
1306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1310 sbindir=$ac_optarg ;;
1312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1314 | --sharedst | --shareds | --shared | --share | --shar \
1316 ac_prev=sharedstatedir ;;
1317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1321 sharedstatedir=$ac_optarg ;;
1323 -site | --site | --sit)
1325 -site=* | --site=* | --sit=*)
1328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1331 srcdir=$ac_optarg ;;
1333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1334 | --syscon | --sysco | --sysc | --sys | --sy)
1335 ac_prev=sysconfdir ;;
1336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1338 sysconfdir=$ac_optarg ;;
1340 -target | --target | --targe | --targ | --tar | --ta | --t)
1341 ac_prev=target_alias ;;
1342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1343 target_alias=$ac_optarg ;;
1345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1348 -version | --version | --versio | --versi | --vers | -V)
1349 ac_init_version=: ;;
1352 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=\$ac_optarg ;;
1367 -without-* | --without-*)
1368 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1371 as_fn_error $? "invalid package name: $ac_useropt"
1372 ac_useropt_orig=$ac_useropt
1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1379 ac_unrecognized_sep=', ';;
1381 eval with_$ac_useropt=no ;;
1384 # Obsolete; use --with-x.
1387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1388 | --x-incl | --x-inc | --x-in | --x-i)
1389 ac_prev=x_includes ;;
1390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1392 x_includes=$ac_optarg ;;
1394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1396 ac_prev=x_libraries ;;
1397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1399 x_libraries=$ac_optarg ;;
1401 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1402 Try \`$0 --help' for more information"
1406 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1407 # Reject names that are not valid shell variable names.
1408 case $ac_envvar in #(
1409 '' | [0-9]* | *[!_$as_cr_alnum]* )
1410 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1412 eval $ac_envvar=\$ac_optarg
1413 export $ac_envvar ;;
1416 # FIXME: should be removed in autoconf 3.0.
1417 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1418 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1420 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1426 if test -n "$ac_prev"; then
1427 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1428 as_fn_error $? "missing argument to $ac_option"
1431 if test -n "$ac_unrecognized_opts"; then
1432 case $enable_option_checking in
1434 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1435 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1439 # Check all directory arguments for consistency.
1440 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1441 datadir sysconfdir sharedstatedir localstatedir includedir \
1442 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1443 libdir localedir mandir
1445 eval ac_val=\$$ac_var
1446 # Remove trailing slashes.
1449 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1450 eval $ac_var=\$ac_val;;
1452 # Be sure to have absolute directory names.
1454 [\\/$]* | ?:[\\/]* ) continue;;
1455 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1460 # There might be people who depend on the old broken behavior: `$host'
1461 # used to hold the argument of --host etc.
1462 # FIXME: To remove some day.
1465 target=$target_alias
1467 # FIXME: To remove some day.
1468 if test "x$host_alias" != x; then
1469 if test "x$build_alias" = x; then
1470 cross_compiling=maybe
1471 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1472 If a cross compiler is detected then cross compile mode will be used" >&2
1473 elif test "x$build_alias" != "x$host_alias"; then
1479 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1481 test "$silent" = yes && exec 6>/dev/null
1484 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1485 ac_ls_di=`ls -di .` &&
1486 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1487 as_fn_error $? "working directory cannot be determined"
1488 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1489 as_fn_error $? "pwd does not report name of working directory"
1492 # Find the source files, if location was not specified.
1493 if test -z "$srcdir"; then
1494 ac_srcdir_defaulted=yes
1495 # Try the directory containing this script, then the parent directory.
1496 ac_confdir=`$as_dirname -- "$as_myself" ||
1497 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1498 X"$as_myself" : 'X\(//\)[^/]' \| \
1499 X"$as_myself" : 'X\(//\)$' \| \
1500 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1501 $as_echo X"$as_myself" |
1502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1520 if test ! -r "$srcdir/$ac_unique_file"; then
1524 ac_srcdir_defaulted=no
1526 if test ! -r "$srcdir/$ac_unique_file"; then
1527 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1528 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1542 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 for ac_var in $ac_precious_vars; do
1545 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546 eval ac_env_${ac_var}_value=\$${ac_var}
1547 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1552 # Report the --help message.
1554 if test "$ac_init_help" = "long"; then
1555 # Omit some internal or obsolete options to make the list less imposing.
1556 # This message is too long to be a string in the A/UX 3.1 sh.
1558 \`configure' configures bacula 5.2.8 to adapt to many kinds of systems.
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE. See below for descriptions of some of the useful variables.
1565 Defaults for the options are specified in brackets.
1568 -h, --help display this help and exit
1569 --help=short display options specific to this package
1570 --help=recursive display the short help of all the included packages
1571 -V, --version display version information and exit
1572 -q, --quiet, --silent do not print \`checking ...' messages
1573 --cache-file=FILE cache test results in FILE [disabled]
1574 -C, --config-cache alias for \`--cache-file=config.cache'
1575 -n, --no-create do not create output files
1576 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1578 Installation directories:
1579 --prefix=PREFIX install architecture-independent files in PREFIX
1580 [$ac_default_prefix]
1581 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1589 For better control, use the options below.
1591 Fine tuning of the installation directories:
1592 --bindir=DIR user executables [EPREFIX/bin]
1593 --sbindir=DIR system admin executables [EPREFIX/sbin]
1594 --libexecdir=DIR program executables [EPREFIX/libexec]
1595 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1596 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1597 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1598 --libdir=DIR object code libraries [EPREFIX/lib]
1599 --includedir=DIR C header files [PREFIX/include]
1600 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1601 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1602 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1603 --infodir=DIR info documentation [DATAROOTDIR/info]
1604 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1605 --mandir=DIR man documentation [DATAROOTDIR/man]
1606 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1607 --htmldir=DIR html documentation [DOCDIR]
1608 --dvidir=DIR dvi documentation [DOCDIR]
1609 --pdfdir=DIR pdf documentation [DOCDIR]
1610 --psdir=DIR ps documentation [DOCDIR]
1616 --x-includes=DIR X include files are in DIR
1617 --x-libraries=DIR X library files are in DIR
1620 --build=BUILD configure for building on BUILD [guessed]
1621 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1625 if test -n "$ac_init_help"; then
1626 case $ac_init_help in
1627 short | recursive ) echo "Configuration of bacula 5.2.8:";;
1632 --disable-option-checking ignore unrecognized --enable/--with options
1633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1635 --enable-libtool enable building using GNU libtool [default=yes]
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=no]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-includes enable installing of include files [default=no]
1642 --disable-nls do not use Native Language Support
1643 --disable-rpath do not hardcode runtime library paths
1644 --enable-gnome enable build of bgnome-console GUI [default=no]
1645 --enable-bat enable build of bat Qt4 GUI [default=no]
1646 --enable-bwx-console enable build of wxWidgets console [default=no]
1647 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1649 --enable-smartalloc enable smartalloc debugging support [default=no]
1650 --enable-lockmgr enable lock manager support [default=no]
1651 --enable-static-tools enable static tape tools [default=no]
1652 --enable-static-fd enable static File daemon [default=no]
1653 --enable-static-sd enable static Storage daemon [default=no]
1654 --enable-static-dir enable static Director [default=no]
1655 --enable-static-cons enable static Console [default=no]
1656 --enable-client-only build client (File daemon) only [default=no]
1657 --enable-build-dird enable building of dird (Director) [default=yes]
1658 --enable-build-stored enable building of stored (Storage daemon)
1660 --disable-conio disable conio support [default=no]
1661 --enable-ipv6 enable ipv6 support [default=yes]
1662 --disable-readline disable readline support [default=yes]
1663 --enable-batch-insert enable the DB batch insert code [default=yes]
1664 --disable-largefile omit support for large files
1665 --disable-acl disable acl support [default=auto]
1666 --disable-xattr disable xattr support [default=auto]
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-sysroot=DIR Search for dependent libraries within DIR
1675 (or the compiler's sysroot if not specified).
1676 --with-gnu-ld assume the C compiler uses GNU ld default=no
1677 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1678 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1679 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1680 --without-libintl-prefix don't search for libintl in includedir and libdir
1681 --with-included-gettext use the GNU gettext library included here
1682 --with-readline[=DIR] specify readline library directory
1683 --with-python[=DIR] Include Python support. DIR is the Python base
1684 install directory, default is to search through a
1685 number of common places for the Python files.
1686 --with-tcp-wrappers[=DIR]
1687 enable tcpwrappers support
1688 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1689 --with-working-dir=PATH specify path of Bacula working directory
1690 --with-archivedir=PATH specify path of SD archive directory
1691 --with-basename=RESNAME specify base resource name for daemons
1692 --with-hostname=RESNAME specify host name for daemons
1693 --with-scriptdir=PATH specify path of Bacula scripts directory
1694 --with-bsrdir=PATH specify path of Bacula bsrs directory
1695 --with-logdir=PATH specify path of Bacula logs directory
1696 --with-plugindir=PATH specify path of Bacula plugins directory
1697 --with-dump-email=EMAIL dump email address
1698 --with-job-email=EMAIL job output email address
1699 --with-smtp-host=HOST SMTP mail host address
1700 --with-pid-dir=PATH specify location of Bacula pid files
1701 --with-subsys-dir=PATH specify location of Bacula subsys file
1702 --with-baseport=PORT specify base port address for daemons
1703 --with-dir-password=PASSWORD
1704 specify Director's password
1705 --with-fd-password=PASSWORD
1706 specify Client's password
1707 --with-sd-password=PASSWORD
1708 specify Storage daemon's password
1709 --with-mon-dir-password=PASSWORD
1710 specify Director's password used by the monitor
1711 --with-mon-fd-password=PASSWORD
1712 specify Client's password used by the monitor
1713 --with-mon-sd-password=PASSWORD
1714 specify Storage daemon's password used by the
1716 --with-db-name=DBNAME specify database name [default=bacula]
1717 --with-db-user=UNAME specify database user [default=bacula]
1718 --with-db-password=PWD specify database password [default=*none*]
1719 --with-db-port=DBPORT specify a database port [default=null]
1720 --with-dir-user=USER specify user for Director daemon
1721 --with-dir-group=GROUP specify group for Director daemon
1722 --with-sd-user=USER specify user for Storage daemon
1723 --with-sd-group=GROUP specify group for Storage daemon
1724 --with-fd-user=USER specify user for File daemon
1725 --with-fd-group=GROUP specify group for File daemon
1726 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1727 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1728 base install directory, [default=/usr/local/pgsql]
1729 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1730 directory, default is to search through a number of
1731 common places for the MySQL files.
1732 --with-embedded-mysql[=DIR]
1733 Include MySQL support. DIR is the MySQL base install
1734 directory, default is to search through a number of
1735 common places for the MySQL files.
1736 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1737 install directory, default is to search through a
1738 number of common places for the SQLite3 files.
1739 --with-x use the X Window System
1740 --with-systemd[=UNITDIR]
1741 Include systemd support. UNITDIR is where systemd
1742 system .service files are located, default is to ask
1745 Some influential environment variables:
1746 CC C compiler command
1747 CFLAGS C compiler flags
1748 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1749 nonstandard directory <lib dir>
1750 LIBS libraries to pass to the linker, e.g. -l<library>
1751 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1752 you have headers in a nonstandard directory <include dir>
1753 CXX C++ compiler command
1754 CXXFLAGS C++ compiler flags
1756 WXCONFIG wx-config command. On some systems, you must set it to
1757 wx-config-2.6 to use wxWidgets 2.6.
1758 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1759 CXXCPP C++ preprocessor
1760 XMKMF Path to xmkmf, Makefile generator for X Window System
1762 Use these variables to override the choices made by `configure' or to help
1763 it to find libraries and programs with nonstandard names/locations.
1765 Report bugs to the package provider.
1770 if test "$ac_init_help" = "recursive"; then
1771 # If there are subdirs, report their specific --help.
1772 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773 test -d "$ac_dir" ||
1774 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1782 # A ".." for each directory in $ac_dir_suffix.
1783 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1784 case $ac_top_builddir_sub in
1785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1789 ac_abs_top_builddir=$ac_pwd
1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1791 # for backward compatibility:
1792 ac_top_builddir=$ac_top_build_prefix
1795 .) # We are building in place.
1797 ac_top_srcdir=$ac_top_builddir_sub
1798 ac_abs_top_srcdir=$ac_pwd ;;
1799 [\\/]* | ?:[\\/]* ) # Absolute name.
1800 ac_srcdir=$srcdir$ac_dir_suffix;
1801 ac_top_srcdir=$srcdir
1802 ac_abs_top_srcdir=$srcdir ;;
1804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1805 ac_top_srcdir=$ac_top_build_prefix$srcdir
1806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810 cd "$ac_dir" || { ac_status=$?; continue; }
1811 # Check for guested configure.
1812 if test -f "$ac_srcdir/configure.gnu"; then
1814 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1815 elif test -f "$ac_srcdir/configure"; then
1817 $SHELL "$ac_srcdir/configure" --help=recursive
1819 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821 cd "$ac_pwd" || { ac_status=$?; break; }
1825 test -n "$ac_init_help" && exit $ac_status
1826 if $ac_init_version; then
1828 bacula configure 5.2.8
1829 generated by GNU Autoconf 2.68
1831 Copyright (C) 2010 Free Software Foundation, Inc.
1832 This configure script is free software; the Free Software Foundation
1833 gives unlimited permission to copy, distribute and modify it.
1838 ## ------------------------ ##
1839 ## Autoconf initialization. ##
1840 ## ------------------------ ##
1842 # ac_fn_c_try_compile LINENO
1843 # --------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.$ac_objext; then :
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1878 } # ac_fn_c_try_compile
1880 # ac_fn_cxx_try_compile LINENO
1881 # ----------------------------
1882 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_compile ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext
1887 if { { ac_try="$ac_compile"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_compile") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest.$ac_objext; then :
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1916 } # ac_fn_cxx_try_compile
1918 # ac_fn_c_try_cpp LINENO
1919 # ----------------------
1920 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_cpp conftest.$ac_ext"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } > conftest.i && {
1940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1941 test ! -s conftest.err
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 $as_test_x conftest$ac_exeext
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1999 } # ac_fn_c_try_link
2001 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2002 # -------------------------------------------------------
2003 # Tests whether HEADER exists and can be compiled using the include files in
2004 # INCLUDES, setting the cache variable VAR accordingly.
2005 ac_fn_c_check_header_compile ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2018 if ac_fn_c_try_compile "$LINENO"; then :
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 } # ac_fn_c_check_header_compile
2032 # ac_fn_c_try_run LINENO
2033 # ----------------------
2034 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035 # that executables *can* be run.
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_link"
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_link") 2>&5
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2050 { { case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_try") 2>&5
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; }; }; then :
2062 $as_echo "$as_me: program exited with status $ac_status" >&5
2063 $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2066 ac_retval=$ac_status
2068 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 as_fn_set_status $ac_retval
2074 # ac_fn_c_check_func LINENO FUNC VAR
2075 # ----------------------------------
2076 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2077 ac_fn_c_check_func ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2089 #define $2 innocuous_$2
2091 /* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $2 (); below.
2093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2094 <limits.h> exists even on freestanding compilers. */
2097 # include <limits.h>
2099 # include <assert.h>
2104 /* Override any GCC internal prototype to avoid an error.
2105 Use char because int might match the return type of a GCC
2106 builtin and then its argument prototype would still apply. */
2111 /* The GNU C library defines this for functions which it implements
2112 to always fail with ENOSYS. Some functions are actually named
2113 something starting with __ and the normal name is an alias. */
2114 #if defined __stub_$2 || defined __stub___$2
2126 if ac_fn_c_try_link "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext \
2132 conftest$ac_exeext conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_func
2141 # ac_fn_cxx_try_cpp LINENO
2142 # ------------------------
2143 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2144 ac_fn_cxx_try_cpp ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if { { ac_try="$ac_cpp conftest.$ac_ext"
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } > conftest.i && {
2163 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2164 test ! -s conftest.err
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 as_fn_set_status $ac_retval
2176 } # ac_fn_cxx_try_cpp
2178 # ac_fn_cxx_try_link LINENO
2179 # -------------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded.
2181 ac_fn_cxx_try_link ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 rm -f conftest.$ac_objext conftest$ac_exeext
2185 if { { ac_try="$ac_link"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>conftest.err
2194 if test -s conftest.err; then
2195 grep -v '^ *+' conftest.err >conftest.er1
2196 cat conftest.er1 >&5
2197 mv -f conftest.er1 conftest.err
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } && {
2201 test -z "$ac_cxx_werror_flag" ||
2202 test ! -s conftest.err
2203 } && test -s conftest$ac_exeext && {
2204 test "$cross_compiling" = yes ||
2205 $as_test_x conftest$ac_exeext
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2214 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2215 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2216 # interfere with the next link command; also delete a directory that is
2217 # left behind by Apple's compiler. We do this before executing the actions.
2218 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 as_fn_set_status $ac_retval
2222 } # ac_fn_cxx_try_link
2224 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2225 # ---------------------------------------------
2226 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2228 ac_fn_c_check_decl ()
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 as_decl_name=`echo $2|sed 's/ *(.*//'`
2232 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2234 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2235 if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2244 #ifndef $as_decl_name
2246 (void) $as_decl_use;
2248 (void) $as_decl_name;
2256 if ac_fn_c_try_compile "$LINENO"; then :
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268 } # ac_fn_c_check_decl
2270 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2271 # -------------------------------------------
2272 # Tests whether TYPE exists after having included INCLUDES, setting cache
2273 # variable VAR accordingly.
2274 ac_fn_c_check_type ()
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if eval \${$3+:} false; then :
2280 $as_echo_n "(cached) " >&6
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2308 if ac_fn_c_try_compile "$LINENO"; then :
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322 } # ac_fn_c_check_type
2324 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2325 # -------------------------------------------------------
2326 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2327 # the include files in INCLUDES and setting the cache variable VAR
2329 ac_fn_c_check_header_mongrel ()
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 if eval \${$3+:} false; then :
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if eval \${$3+:} false; then :
2336 $as_echo_n "(cached) " >&6
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2342 # Is the header compilable?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2344 $as_echo_n "checking $2 usability... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 ac_header_compiler=yes
2353 ac_header_compiler=no
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2357 $as_echo "$ac_header_compiler" >&6; }
2359 # Is the header present?
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2361 $as_echo_n "checking $2 presence... " >&6; }
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2366 if ac_fn_c_try_cpp "$LINENO"; then :
2367 ac_header_preproc=yes
2369 ac_header_preproc=no
2371 rm -f conftest.err conftest.i conftest.$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2373 $as_echo "$ac_header_preproc" >&6; }
2375 # So? What about this header?
2376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2379 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2381 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2385 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2387 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2389 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2391 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2393 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2397 $as_echo_n "checking for $2... " >&6; }
2398 if eval \${$3+:} false; then :
2399 $as_echo_n "(cached) " >&6
2401 eval "$3=\$ac_header_compiler"
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_header_mongrel
2411 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2412 # --------------------------------------------
2413 # Tries to find the compile-time value of EXPR in a program that includes
2414 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2416 ac_fn_c_compute_int ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 if test "$cross_compiling" = yes; then
2420 # Depending upon the size, compute the lo and hi bounds.
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2427 static int test_array [1 - 2 * !(($2) >= 0)];
2434 if ac_fn_c_try_compile "$LINENO"; then :
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2443 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 ac_hi=$ac_mid; break
2453 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2454 if test $ac_lo -le $ac_mid; then
2458 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2469 static int test_array [1 - 2 * !(($2) < 0)];
2476 if ac_fn_c_try_compile "$LINENO"; then :
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2485 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2492 if ac_fn_c_try_compile "$LINENO"; then :
2493 ac_lo=$ac_mid; break
2495 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2496 if test $ac_mid -le $ac_hi; then
2500 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 # Binary search between lo and hi bounds.
2511 while test "x$ac_lo" != "x$ac_hi"; do
2512 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2519 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 if ac_fn_c_try_compile "$LINENO"; then :
2529 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2541 static long int longval () { return $2; }
2542 static unsigned long int ulongval () { return $2; }
2549 FILE *f = fopen ("conftest.val", "w");
2554 long int i = longval ();
2557 fprintf (f, "%ld", i);
2561 unsigned long int i = ulongval ();
2564 fprintf (f, "%lu", i);
2566 /* Do not output a trailing newline, as this causes \r\n confusion
2567 on some platforms. */
2568 return ferror (f) || fclose (f) != 0;
2574 if ac_fn_c_try_run "$LINENO"; then :
2575 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2580 conftest.$ac_objext conftest.beam conftest.$ac_ext
2584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2585 as_fn_set_status $ac_retval
2587 } # ac_fn_c_compute_int
2589 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2590 # ----------------------------------------------------
2591 # Tries to find if the field MEMBER exists in type AGGR, after including
2592 # INCLUDES, setting cache variable VAR accordingly.
2593 ac_fn_c_check_member ()
2595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2597 $as_echo_n "checking for $2.$3... " >&6; }
2598 if eval \${$4+:} false; then :
2599 $as_echo_n "(cached) " >&6
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2614 if ac_fn_c_try_compile "$LINENO"; then :
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2624 if (sizeof ac_aggr.$3)
2630 if ac_fn_c_try_compile "$LINENO"; then :
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 $as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2644 } # ac_fn_c_check_member
2646 # ac_fn_cxx_try_run LINENO
2647 # ------------------------
2648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2649 # that executables *can* be run.
2650 ac_fn_cxx_try_run ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 if { { ac_try="$ac_link"
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660 (eval "$ac_link") 2>&5
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2664 { { case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670 (eval "$ac_try") 2>&5
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; }; }; then :
2676 $as_echo "$as_me: program exited with status $ac_status" >&5
2677 $as_echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 ac_retval=$ac_status
2682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2684 as_fn_set_status $ac_retval
2686 } # ac_fn_cxx_try_run
2688 # ac_fn_cxx_check_func LINENO FUNC VAR
2689 # ------------------------------------
2690 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2691 ac_fn_cxx_check_func ()
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2695 $as_echo_n "checking for $2... " >&6; }
2696 if eval \${$3+:} false; then :
2697 $as_echo_n "(cached) " >&6
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2701 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2703 #define $2 innocuous_$2
2705 /* System header to define __stub macros and hopefully few prototypes,
2706 which can conflict with char $2 (); below.
2707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2708 <limits.h> exists even on freestanding compilers. */
2711 # include <limits.h>
2713 # include <assert.h>
2718 /* Override any GCC internal prototype to avoid an error.
2719 Use char because int might match the return type of a GCC
2720 builtin and then its argument prototype would still apply. */
2725 /* The GNU C library defines this for functions which it implements
2726 to always fail with ENOSYS. Some functions are actually named
2727 something starting with __ and the normal name is an alias. */
2728 #if defined __stub_$2 || defined __stub___$2
2740 if ac_fn_cxx_try_link "$LINENO"; then :
2745 rm -f core conftest.err conftest.$ac_objext \
2746 conftest$ac_exeext conftest.$ac_ext
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750 $as_echo "$ac_res" >&6; }
2751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753 } # ac_fn_cxx_check_func
2754 cat >config.log <<_ACEOF
2755 This file contains any messages produced by compilers while
2756 running configure, to aid debugging if configure makes a mistake.
2758 It was created by bacula $as_me 5.2.8, which was
2759 generated by GNU Autoconf 2.68. Invocation command line was
2771 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2772 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2773 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2774 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2775 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2777 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2778 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2780 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2781 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2782 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2783 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2784 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2785 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2786 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 $as_echo "PATH: $as_dir"
2811 # Keep a trace of the command line.
2812 # Strip out --no-create and --no-recursion so they do not pile up.
2813 # Strip out --silent because we don't want to record it for future runs.
2814 # Also quote any args containing shell meta-characters.
2815 # Make two passes to allow for proper duplicate-argument suppression.
2819 ac_must_keep_next=false
2825 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2827 | -silent | --silent | --silen | --sile | --sil)
2830 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2833 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2835 as_fn_append ac_configure_args1 " '$ac_arg'"
2836 if test $ac_must_keep_next = true; then
2837 ac_must_keep_next=false # Got value, back to normal.
2840 *=* | --config-cache | -C | -disable-* | --disable-* \
2841 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2842 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2843 | -with-* | --with-* | -without-* | --without-* | --x)
2844 case "$ac_configure_args0 " in
2845 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2848 -* ) ac_must_keep_next=true ;;
2851 as_fn_append ac_configure_args " '$ac_arg'"
2856 { ac_configure_args0=; unset ac_configure_args0;}
2857 { ac_configure_args1=; unset ac_configure_args1;}
2859 # When interrupted or exit'd, cleanup temporary files, and complete
2860 # config.log. We remove comments because anyway the quotes in there
2861 # would cause problems or look ugly.
2862 # WARNING: Use '\'' to represent an apostrophe within the trap.
2863 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2864 trap 'exit_status=$?
2865 # Save into config.log some information that might help in debugging.
2869 $as_echo "## ---------------- ##
2870 ## Cache variables. ##
2871 ## ---------------- ##"
2873 # The following way of writing the cache mishandles newlines in values,
2875 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2876 eval ac_val=\$$ac_var
2880 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2884 _ | IFS | as_nl) ;; #(
2885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2886 *) { eval $ac_var=; unset $ac_var;} ;;
2891 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2892 *${as_nl}ac_space=\ *)
2894 "s/'\''/'\''\\\\'\'''\''/g;
2895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2905 $as_echo "## ----------------- ##
2906 ## Output variables. ##
2907 ## ----------------- ##"
2909 for ac_var in $ac_subst_vars
2911 eval ac_val=\$$ac_var
2913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2915 $as_echo "$ac_var='\''$ac_val'\''"
2919 if test -n "$ac_subst_files"; then
2920 $as_echo "## ------------------- ##
2921 ## File substitutions. ##
2922 ## ------------------- ##"
2924 for ac_var in $ac_subst_files
2926 eval ac_val=\$$ac_var
2928 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2930 $as_echo "$ac_var='\''$ac_val'\''"
2935 if test -s confdefs.h; then
2936 $as_echo "## ----------- ##
2943 test "$ac_signal" != 0 &&
2944 $as_echo "$as_me: caught signal $ac_signal"
2945 $as_echo "$as_me: exit $exit_status"
2947 rm -f core *.core core.conftest.* &&
2948 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2951 for ac_signal in 1 2 13 15; do
2952 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2956 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2957 rm -f -r conftest* confdefs.h
2959 $as_echo "/* confdefs.h */" > confdefs.h
2961 # Predefined preprocessor variables.
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_NAME "$PACKAGE_NAME"
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_STRING "$PACKAGE_STRING"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_URL "$PACKAGE_URL"
2988 # Let the site file select an alternate cache file if it wants to.
2989 # Prefer an explicitly selected file to automatically selected ones.
2992 if test -n "$CONFIG_SITE"; then
2993 # We do not want a PATH search for config.site.
2994 case $CONFIG_SITE in #((
2995 -*) ac_site_file1=./$CONFIG_SITE;;
2996 */*) ac_site_file1=$CONFIG_SITE;;
2997 *) ac_site_file1=./$CONFIG_SITE;;
2999 elif test "x$prefix" != xNONE; then
3000 ac_site_file1=$prefix/share/config.site
3001 ac_site_file2=$prefix/etc/config.site
3003 ac_site_file1=$ac_default_prefix/share/config.site
3004 ac_site_file2=$ac_default_prefix/etc/config.site
3006 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3008 test "x$ac_site_file" = xNONE && continue
3009 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3011 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3012 sed 's/^/| /' "$ac_site_file" >&5
3014 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 as_fn_error $? "failed to load site script $ac_site_file
3017 See \`config.log' for more details" "$LINENO" 5; }
3021 if test -r "$cache_file"; then
3022 # Some versions of bash will fail to source /dev/null (special files
3023 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3024 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3026 $as_echo "$as_me: loading cache $cache_file" >&6;}
3028 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3029 *) . "./$cache_file";;
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3034 $as_echo "$as_me: creating cache $cache_file" >&6;}
3038 as_fn_append ac_header_list " stdlib.h"
3039 as_fn_append ac_header_list " unistd.h"
3040 as_fn_append ac_header_list " sys/param.h"
3041 # Check that the precious variables saved in the cache have kept the same
3043 ac_cache_corrupted=false
3044 for ac_var in $ac_precious_vars; do
3045 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3046 eval ac_new_set=\$ac_env_${ac_var}_set
3047 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3048 eval ac_new_val=\$ac_env_${ac_var}_value
3049 case $ac_old_set,$ac_new_set in
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3052 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3053 ac_cache_corrupted=: ;;
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3056 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3057 ac_cache_corrupted=: ;;
3060 if test "x$ac_old_val" != "x$ac_new_val"; then
3061 # differences in whitespace do not lead to failure.
3062 ac_old_val_w=`echo x $ac_old_val`
3063 ac_new_val_w=`echo x $ac_new_val`
3064 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3066 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3067 ac_cache_corrupted=:
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3070 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3071 eval $ac_var=\$ac_old_val
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3074 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3076 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3079 # Pass precious variables to config.status.
3080 if test "$ac_new_set" = set; then
3082 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3083 *) ac_arg=$ac_var=$ac_new_val ;;
3085 case " $ac_configure_args " in
3086 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3087 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3091 if $ac_cache_corrupted; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3095 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3096 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3098 ## -------------------- ##
3099 ## Main body of script. ##
3100 ## -------------------- ##
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3119 if test -f "$ac_dir/install-sh"; then
3121 ac_install_sh="$ac_aux_dir/install-sh -c"
3123 elif test -f "$ac_dir/install.sh"; then
3125 ac_install_sh="$ac_aux_dir/install.sh -c"
3127 elif test -f "$ac_dir/shtool"; then
3129 ac_install_sh="$ac_aux_dir/shtool install -c"
3133 if test -z "$ac_aux_dir"; then
3134 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3137 # These three variables are undocumented and unsupported,
3138 # and are intended to be withdrawn in a future Autoconf release.
3139 # They can cause serious problems if a builder's source tree is in a directory
3140 # whose full name contains unusual characters.
3141 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3142 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3143 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3146 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3149 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3150 WIN32MAINDIR=${BUILD_DIR}
3151 WIN32TOPDIR=${TOP_DIR}
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_path_TRUEPRG+:} false; then :
3163 $as_echo_n "(cached) " >&6
3167 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 TRUEPRG=$ac_cv_path_TRUEPRG
3189 if test -n "$TRUEPRG"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3191 $as_echo "$TRUEPRG" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3198 test -n "$TRUEPRG" && break
3200 test -n "$TRUEPRG" || TRUEPRG=":"
3202 for ac_prog in false
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_path_FALSEPRG+:} false; then :
3209 $as_echo_n "(cached) " >&6
3213 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 FALSEPRG=$ac_cv_path_FALSEPRG
3235 if test -n "$FALSEPRG"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3237 $as_echo "$FALSEPRG" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3244 test -n "$FALSEPRG" && break
3246 test -n "$FALSEPRG" || FALSEPRG=":"
3251 if test "x$BACULA" != x; then
3252 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3254 BACULA=${BACULA:-Bacula}
3255 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3260 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3261 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3265 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3266 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3269 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3273 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3276 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3281 echo "configuring for ${BACULA} $VERSION ($DATE)"
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290 if test -n "$ac_tool_prefix"; then
3291 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3292 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3329 if test -z "$ac_cv_prog_CC"; then
3331 # Extract the first word of "gcc", so it can be a program name with args.
3332 set dummy gcc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3336 $as_echo_n "(cached) " >&6
3338 if test -n "$ac_ct_CC"; then
3339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 ac_cv_prog_ac_ct_CC="gcc"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3359 if test -n "$ac_ct_CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3361 $as_echo "$ac_ct_CC" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3367 if test "x$ac_ct_CC" = x; then
3370 case $cross_compiling:$ac_tool_warned in
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374 ac_tool_warned=yes ;;
3382 if test -z "$CC"; then
3383 if test -n "$ac_tool_prefix"; then
3384 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}cc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_CC="${ac_tool_prefix}cc"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3423 if test -z "$CC"; then
3424 # Extract the first word of "cc", so it can be a program name with args.
3425 set dummy cc; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_CC+:} false; then :
3429 $as_echo_n "(cached) " >&6
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3443 ac_prog_rejected=yes
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 if test $ac_prog_rejected = yes; then
3455 # We found a bogon in the path, so make sure we never use it.
3456 set dummy $ac_cv_prog_CC
3458 if test $# != 0; then
3459 # We chose a different compiler from the bogus one.
3460 # However, it has the same basename, so the bogon will be chosen
3461 # first if we set CC to just the basename; use the full file name.
3463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3469 if test -n "$CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3479 if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 for ac_prog in cl.exe
3483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_CC+:} false; then :
3488 $as_echo_n "(cached) " >&6
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3520 test -n "$CC" && break
3523 if test -z "$CC"; then
3525 for ac_prog in cl.exe
3527 # Extract the first word of "$ac_prog", so it can be a program name with args.
3528 set dummy $ac_prog; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3532 $as_echo_n "(cached) " >&6
3534 if test -n "$ac_ct_CC"; then
3535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_ac_ct_CC="$ac_prog"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3555 if test -n "$ac_ct_CC"; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3557 $as_echo "$ac_ct_CC" >&6; }
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3564 test -n "$ac_ct_CC" && break
3567 if test "x$ac_ct_CC" = x; then
3570 case $cross_compiling:$ac_tool_warned in
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3583 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "no acceptable C compiler found in \$PATH
3586 See \`config.log' for more details" "$LINENO" 5; }
3588 # Provide some information about the compiler.
3589 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3592 for ac_option in --version -v -V -qversion; do
3593 { { ac_try="$ac_compiler $ac_option >&5"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3602 if test -s conftest.err; then
3604 ... rest of stderr output deleted ...
3605 10q' conftest.err >conftest.er1
3606 cat conftest.er1 >&5
3608 rm -f conftest.er1 conftest.err
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3624 ac_clean_files_save=$ac_clean_files
3625 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3626 # Try to create an executable without -o first, disregard a.out.
3627 # It will help us diagnose broken compilers, and finding out an intuition
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3630 $as_echo_n "checking whether the C compiler works... " >&6; }
3631 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3633 # The possible output files:
3634 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3637 for ac_file in $ac_files
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3646 if { { ac_try="$ac_link_default"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_link_default") 2>&5
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; then :
3657 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3658 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3659 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3660 # so that the user can short-circuit this test for compilers unknown to
3662 for ac_file in $ac_files ''
3664 test -f "$ac_file" || continue
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3669 # We found the default executable, but exeext='' is most
3673 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3675 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3677 # We set ac_cv_exeext here because the later test for it is not
3678 # safe: cross compilers may not add the suffix if given an `-o'
3679 # argument, so we may need to know it at that point already.
3680 # Even if this section looks crufty: it has the advantage of
3687 test "$ac_cv_exeext" = no && ac_cv_exeext=
3692 if test -z "$ac_file"; then :
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error 77 "C compiler cannot create executables
3701 See \`config.log' for more details" "$LINENO" 5; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 $as_echo "yes" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3707 $as_echo_n "checking for C compiler default output file name... " >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3709 $as_echo "$ac_file" >&6; }
3710 ac_exeext=$ac_cv_exeext
3712 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3713 ac_clean_files=$ac_clean_files_save
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3715 $as_echo_n "checking for suffix of executables... " >&6; }
3716 if { { ac_try="$ac_link"
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_link") 2>&5
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; then :
3727 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3728 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3729 # work properly (i.e., refer to `conftest.exe'), while it won't with
3731 for ac_file in conftest.exe conftest conftest.*; do
3732 test -f "$ac_file" || continue
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3735 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3744 See \`config.log' for more details" "$LINENO" 5; }
3746 rm -f conftest conftest$ac_cv_exeext
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3748 $as_echo "$ac_cv_exeext" >&6; }
3750 rm -f conftest.$ac_ext
3751 EXEEXT=$ac_cv_exeext
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3759 FILE *f = fopen ("conftest.out", "w");
3760 return ferror (f) || fclose (f) != 0;
3766 ac_clean_files="$ac_clean_files conftest.out"
3767 # Check that the compiler produces executables we can run. If not, either
3768 # the compiler is broken, or we cross compile.
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3770 $as_echo_n "checking whether we are cross compiling... " >&6; }
3771 if test "$cross_compiling" != yes; then
3772 { { ac_try="$ac_link"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_link") 2>&5
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }
3783 if { ac_try='./conftest$ac_cv_exeext'
3784 { { case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_try") 2>&5
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; }; then
3796 if test "$cross_compiling" = maybe; then
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error $? "cannot run C compiled programs.
3802 If you meant to cross compile, use \`--host'.
3803 See \`config.log' for more details" "$LINENO" 5; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3808 $as_echo "$cross_compiling" >&6; }
3810 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3811 ac_clean_files=$ac_clean_files_save
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3813 $as_echo_n "checking for suffix of object files... " >&6; }
3814 if ${ac_cv_objext+:} false; then :
3815 $as_echo_n "(cached) " >&6
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 rm -f conftest.o conftest.obj
3829 if { { ac_try="$ac_compile"
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_compile") 2>&5
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; then :
3840 for ac_file in conftest.o conftest.obj conftest.*; do
3841 test -f "$ac_file" || continue;
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3844 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3849 $as_echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error $? "cannot compute suffix of object files: cannot compile
3855 See \`config.log' for more details" "$LINENO" 5; }
3857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3860 $as_echo "$ac_cv_objext" >&6; }
3861 OBJEXT=$ac_cv_objext
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3864 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3865 if ${ac_cv_c_compiler_gnu+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3882 if ac_fn_c_try_compile "$LINENO"; then :
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3892 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3893 if test $ac_compiler_gnu = yes; then
3898 ac_test_CFLAGS=${CFLAGS+set}
3899 ac_save_CFLAGS=$CFLAGS
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3901 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3902 if ${ac_cv_prog_cc_g+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 ac_save_c_werror_flag=$ac_c_werror_flag
3906 ac_c_werror_flag=yes
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3920 if ac_fn_c_try_compile "$LINENO"; then :
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_c_werror_flag=$ac_save_c_werror_flag
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3951 if ac_fn_c_try_compile "$LINENO"; then :
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_c_werror_flag=$ac_save_c_werror_flag
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3962 $as_echo "$ac_cv_prog_cc_g" >&6; }
3963 if test "$ac_test_CFLAGS" = set; then
3964 CFLAGS=$ac_save_CFLAGS
3965 elif test $ac_cv_prog_cc_g = yes; then
3966 if test "$GCC" = yes; then
3972 if test "$GCC" = yes; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3979 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3980 if ${ac_cv_prog_cc_c89+:} false; then :
3981 $as_echo_n "(cached) " >&6
3983 ac_cv_prog_cc_c89=no
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 #include <sys/types.h>
3990 #include <sys/stat.h>
3991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3992 struct buf { int x; };
3993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3994 static char *e (p, i)
4000 static char *f (char * (*g) (char **, int), char **p, ...)
4005 s = g (p, va_arg (v,int));
4010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4011 function prototypes and stuff, but not '\xHH' hex character constants.
4012 These don't provoke an error unfortunately, instead are silently treated
4013 as 'x'. The following induces an error, until -std is added to get
4014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4015 array size at least. It's necessary to write '\x00'==0 to get something
4016 that's true only with -std. */
4017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4020 inside strings and character constants. */
4022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024 int test (int i, double x);
4025 struct s1 {int (*f) (int a);};
4026 struct s2 {int (*f) (double a);};
4027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041 CC="$ac_save_CC $ac_arg"
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_cv_prog_cc_c89=$ac_arg
4045 rm -f core conftest.err conftest.$ac_objext
4046 test "x$ac_cv_prog_cc_c89" != "xno" && break
4048 rm -f conftest.$ac_ext
4053 case "x$ac_cv_prog_cc_c89" in
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4056 $as_echo "none needed" >&6; } ;;
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4059 $as_echo "unsupported" >&6; } ;;
4061 CC="$CC $ac_cv_prog_cc_c89"
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4063 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4065 if test "x$ac_cv_prog_cc_c89" != xno; then :
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 ac_cpp='$CXXCPP $CPPFLAGS'
4077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080 if test -z "$CXX"; then
4081 if test -n "$CCC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CXX+:} false; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$CXX"; then
4095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$CXX"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4117 $as_echo "$CXX" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 test -n "$CXX" && break
4127 if test -z "$CXX"; then
4129 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -n "$ac_ct_CXX"; then
4139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148 ac_cv_prog_ac_ct_CXX="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4159 if test -n "$ac_ct_CXX"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4161 $as_echo "$ac_ct_CXX" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4168 test -n "$ac_ct_CXX" && break
4171 if test "x$ac_ct_CXX" = x; then
4174 case $cross_compiling:$ac_tool_warned in
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4186 # Provide some information about the compiler.
4187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4190 for ac_option in --version -v -V -qversion; do
4191 { { ac_try="$ac_compiler $ac_option >&5"
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4200 if test -s conftest.err; then
4202 ... rest of stderr output deleted ...
4203 10q' conftest.err >conftest.er1
4204 cat conftest.er1 >&5
4206 rm -f conftest.er1 conftest.err
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4212 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4213 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4230 if ac_fn_cxx_try_compile "$LINENO"; then :
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4240 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4241 if test $ac_compiler_gnu = yes; then
4246 ac_test_CXXFLAGS=${CXXFLAGS+set}
4247 ac_save_CXXFLAGS=$CXXFLAGS
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4249 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4250 if ${ac_cv_prog_cxx_g+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4254 ac_cxx_werror_flag=yes
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4268 if ac_fn_cxx_try_compile "$LINENO"; then :
4269 ac_cv_prog_cxx_g=yes
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4283 if ac_fn_cxx_try_compile "$LINENO"; then :
4286 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4299 if ac_fn_cxx_try_compile "$LINENO"; then :
4300 ac_cv_prog_cxx_g=yes
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4310 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4311 if test "$ac_test_CXXFLAGS" = set; then
4312 CXXFLAGS=$ac_save_CXXFLAGS
4313 elif test $ac_cv_prog_cxx_g = yes; then
4314 if test "$GXX" = yes; then
4320 if test "$GXX" = yes; then
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 if test "x$CC" != xcc; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4334 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4337 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4339 set dummy $CC; ac_cc=`$as_echo "$2" |
4340 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4341 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4355 # Make sure it works both with $CC and with simple cc.
4356 # We do the test twice because some compilers refuse to overwrite an
4357 # existing .o file with -o, though they will create one.
4358 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4360 if { { case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_try") 2>&5
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; } &&
4370 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; };
4381 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4382 if test "x$CC" != xcc; then
4383 # Test first that cc exists at all.
4384 if { ac_try='cc -c conftest.$ac_ext >&5'
4385 { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }; }; then
4395 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4397 if { { case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_try") 2>&5
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; } &&
4407 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413 (eval "$ac_try") 2>&5
4415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; };
4421 # cc exists but doesn't like -o.
4422 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4427 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4429 rm -f core conftest*
4432 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4434 $as_echo "yes" >&6; }
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4439 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4449 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4450 # On Suns, sometimes $CPP names a directory.
4451 if test -n "$CPP" && test -d "$CPP"; then
4454 if test -z "$CPP"; then
4455 if ${ac_cv_prog_CPP+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 # Double quotes because CPP needs to be expanded
4459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 for ac_c_preproc_warn_flag in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 # include <limits.h>
4475 # include <assert.h>
4479 if ac_fn_c_try_cpp "$LINENO"; then :
4482 # Broken: fails on valid input.
4485 rm -f conftest.err conftest.i conftest.$ac_ext
4487 # OK, works on sane cases. Now check whether nonexistent headers
4488 # can be detected and how.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #include <ac_nonexistent.h>
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494 # Broken: success on invalid input.
4497 # Passes both tests.
4501 rm -f conftest.err conftest.i conftest.$ac_ext
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.i conftest.err conftest.$ac_ext
4506 if $ac_preproc_ok; then :
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4519 $as_echo "$CPP" >&6; }
4521 for ac_c_preproc_warn_flag in '' yes
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4532 # include <limits.h>
4534 # include <assert.h>
4538 if ac_fn_c_try_cpp "$LINENO"; then :
4541 # Broken: fails on valid input.
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4546 # OK, works on sane cases. Now check whether nonexistent headers
4547 # can be detected and how.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <ac_nonexistent.h>
4552 if ac_fn_c_try_cpp "$LINENO"; then :
4553 # Broken: success on invalid input.
4556 # Passes both tests.
4560 rm -f conftest.err conftest.i conftest.$ac_ext
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.i conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then :
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details" "$LINENO" 5; }
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4583 if ${ac_cv_path_GREP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 if test -z "$GREP"; then
4587 ac_path_GREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in grep ggrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4597 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4598 # Check for GNU ac_path_GREP and select it if it is found.
4599 # Check for GNU $ac_path_GREP
4600 case `"$ac_path_GREP" --version 2>&1` in
4602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 $as_echo_n 0123456789 >"conftest.in"
4608 cat "conftest.in" "conftest.in" >"conftest.tmp"
4609 mv "conftest.tmp" "conftest.in"
4610 cp "conftest.in" "conftest.nl"
4611 $as_echo 'GREP' >> "conftest.nl"
4612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_GREP="$ac_path_GREP"
4618 ac_path_GREP_max=$ac_count
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 $ac_path_GREP_found && break 3
4631 if test -z "$ac_cv_path_GREP"; then
4632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 ac_cv_path_GREP=$GREP
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4640 $as_echo "$ac_cv_path_GREP" >&6; }
4641 GREP="$ac_cv_path_GREP"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4645 $as_echo_n "checking for egrep... " >&6; }
4646 if ${ac_cv_path_EGREP+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4650 then ac_cv_path_EGREP="$GREP -E"
4652 if test -z "$EGREP"; then
4653 ac_path_EGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 test -z "$as_dir" && as_dir=.
4660 for ac_prog in egrep; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4663 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4664 # Check for GNU ac_path_EGREP and select it if it is found.
4665 # Check for GNU $ac_path_EGREP
4666 case `"$ac_path_EGREP" --version 2>&1` in
4668 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 $as_echo_n 0123456789 >"conftest.in"
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'EGREP' >> "conftest.nl"
4678 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_EGREP="$ac_path_EGREP"
4684 ac_path_EGREP_max=$ac_count
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 $ac_path_EGREP_found && break 3
4697 if test -z "$ac_cv_path_EGREP"; then
4698 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 ac_cv_path_EGREP=$EGREP
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4707 $as_echo "$ac_cv_path_EGREP" >&6; }
4708 EGREP="$ac_cv_path_EGREP"
4711 if test $ac_cv_c_compiler_gnu = yes; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4713 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4714 if ${ac_cv_prog_gcc_traditional+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 ac_pattern="Autoconf.*'x'"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4725 ac_cv_prog_gcc_traditional=yes
4727 ac_cv_prog_gcc_traditional=no
4732 if test $ac_cv_prog_gcc_traditional = no; then
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4740 ac_cv_prog_gcc_traditional=yes
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4747 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4748 if test $ac_cv_prog_gcc_traditional = yes; then
4749 CC="$CC -traditional"
4753 BASECC=`basename $CC`
4755 if test "x$BASECC" = xgcc; then
4756 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4760 # Extract the first word of "$CXX", so it can be a program name with args.
4761 set dummy $CXX; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if ${ac_cv_path_CXX+:} false; then :
4765 $as_echo_n "(cached) " >&6
4769 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4792 if test -n "$CXX"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4794 $as_echo "$CXX" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 if test ! -e $CXX; then
4802 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4805 # Find a good install program. We prefer a C program (faster),
4806 # so one script is as good as another. But avoid the broken or
4807 # incompatible versions:
4808 # SysV /etc/install, /usr/sbin/install
4809 # SunOS /usr/etc/install
4810 # IRIX /sbin/install
4812 # AmigaOS /C/install, which installs bootblocks on floppy discs
4813 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4814 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4815 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4816 # OS/2's system install, which has a completely different semantic
4817 # ./install, which can be erroneously created by make from ./install.sh.
4818 # Reject install programs that cannot install multiple files.
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4820 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4821 if test -z "$INSTALL"; then
4822 if ${ac_cv_path_install+:} false; then :
4823 $as_echo_n "(cached) " >&6
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 # Account for people who put trailing slashes in PATH elements.
4831 case $as_dir/ in #((
4832 ./ | .// | /[cC]/* | \
4833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4834 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4837 # OSF1 and SCO ODT 3.0 have their own names for install.
4838 # Don't use installbsd from OSF since it installs stuff as root
4840 for ac_prog in ginstall scoinst install; do
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4843 if test $ac_prog = install &&
4844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4845 # AIX install. It has an incompatible calling convention.
4847 elif test $ac_prog = install &&
4848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4849 # program-specific install script used by HP pwplus--don't use.
4852 rm -rf conftest.one conftest.two conftest.dir
4853 echo one > conftest.one
4854 echo two > conftest.two
4856 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4857 test -s conftest.one && test -s conftest.two &&
4858 test -s conftest.dir/conftest.one &&
4859 test -s conftest.dir/conftest.two
4861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4874 rm -rf conftest.one conftest.two conftest.dir
4877 if test "${ac_cv_path_install+set}" = set; then
4878 INSTALL=$ac_cv_path_install
4880 # As a last resort, use the slow shell script. Don't cache a
4881 # value for INSTALL within a source directory, because that will
4882 # break other packages using the cache if that directory is
4883 # removed, or if the value is a relative name.
4884 INSTALL=$ac_install_sh
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4888 $as_echo "$INSTALL" >&6; }
4890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4891 # It thinks the first close brace ends the variable substitution.
4892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4898 # Extract the first word of "mv", so it can be a program name with args.
4899 set dummy mv; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_path_MV+:} false; then :
4903 $as_echo_n "(cached) " >&6
4907 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4930 if test -n "$MV"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4932 $as_echo "$MV" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4939 # Extract the first word of "rm", so it can be a program name with args.
4940 set dummy rm; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_path_REMOVE+:} false; then :
4944 $as_echo_n "(cached) " >&6
4948 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4970 REMOVE=$ac_cv_path_REMOVE
4971 if test -n "$REMOVE"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4973 $as_echo "$REMOVE" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 # Extract the first word of "cp", so it can be a program name with args.
4981 set dummy cp; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_path_CP+:} false; then :
4985 $as_echo_n "(cached) " >&6
4989 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5012 if test -n "$CP"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5014 $as_echo "$CP" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 # Extract the first word of "sed", so it can be a program name with args.
5022 set dummy sed; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_path_SED+:} false; then :
5026 $as_echo_n "(cached) " >&6
5030 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5053 if test -n "$SED"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5055 $as_echo "$SED" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5062 # Extract the first word of "echo", so it can be a program name with args.
5063 set dummy echo; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_path_ECHO+:} false; then :
5067 $as_echo_n "(cached) " >&6
5071 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5093 ECHO=$ac_cv_path_ECHO
5094 if test -n "$ECHO"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5096 $as_echo "$ECHO" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 # Extract the first word of "cmp", so it can be a program name with args.
5104 set dummy cmp; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_path_CMP+:} false; then :
5108 $as_echo_n "(cached) " >&6
5112 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5135 if test -n "$CMP"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5137 $as_echo "$CMP" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5144 # Extract the first word of "tbl", so it can be a program name with args.
5145 set dummy tbl; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_TBL+:} false; then :
5149 $as_echo_n "(cached) " >&6
5153 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5176 if test -n "$TBL"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5178 $as_echo "$TBL" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 # Extract the first word of "ar", so it can be a program name with args.
5186 set dummy ar; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_path_AR+:} false; then :
5190 $as_echo_n "(cached) " >&6
5194 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5217 if test -n "$AR"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5219 $as_echo "$AR" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5226 # Extract the first word of "openssl", so it can be a program name with args.
5227 set dummy openssl; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_path_OPENSSL+:} false; then :
5231 $as_echo_n "(cached) " >&6
5235 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5257 OPENSSL=$ac_cv_path_OPENSSL
5258 if test -n "$OPENSSL"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5260 $as_echo "$OPENSSL" >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5267 # Extract the first word of "mtx", so it can be a program name with args.
5268 set dummy mtx; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_path_MTX+:} false; then :
5272 $as_echo_n "(cached) " >&6
5276 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5299 if test -n "$MTX"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5301 $as_echo "$MTX" >&6; }
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5308 # Extract the first word of "dd", so it can be a program name with args.
5309 set dummy dd; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_path_DD+:} false; then :
5313 $as_echo_n "(cached) " >&6
5317 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5340 if test -n "$DD"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5342 $as_echo "$DD" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5349 # Extract the first word of "mkisofs", so it can be a program name with args.
5350 set dummy mkisofs; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_path_MKISOFS+:} false; then :
5354 $as_echo_n "(cached) " >&6
5358 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5380 MKISOFS=$ac_cv_path_MKISOFS
5381 if test -n "$MKISOFS"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5383 $as_echo "$MKISOFS" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5390 # Extract the first word of "python", so it can be a program name with args.
5391 set dummy python; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_path_PYTHON+:} false; then :
5395 $as_echo_n "(cached) " >&6
5399 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5421 PYTHON=$ac_cv_path_PYTHON
5422 if test -n "$PYTHON"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5424 $as_echo "$PYTHON" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5431 # Extract the first word of "growisofs", so it can be a program name with args.
5432 set dummy growisofs; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_path_GROWISOFS+:} false; then :
5436 $as_echo_n "(cached) " >&6
5440 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5462 GROWISOFS=$ac_cv_path_GROWISOFS
5463 if test -n "$GROWISOFS"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5465 $as_echo "$GROWISOFS" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5472 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5473 set dummy dvd+rw-mediainfo; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 case $DVDRWMEDIAINFO in
5481 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5503 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5504 if test -n "$DVDRWMEDIAINFO"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5506 $as_echo "$DVDRWMEDIAINFO" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5514 set dummy dvd+rw-format; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 case $DVDRWFORMAT in
5522 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5544 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5545 if test -n "$DVDRWFORMAT"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5547 $as_echo "$DVDRWFORMAT" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 # Extract the first word of "pkg-config", so it can be a program name with args.
5555 set dummy pkg-config; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_path_PKGCONFIG+:} false; then :
5559 $as_echo_n "(cached) " >&6
5563 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5585 PKGCONFIG=$ac_cv_path_PKGCONFIG
5586 if test -n "$PKGCONFIG"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5588 $as_echo "$PKGCONFIG" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5595 # Extract the first word of "qmake", so it can be a program name with args.
5596 set dummy qmake; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_path_QMAKE+:} false; then :
5600 $as_echo_n "(cached) " >&6
5604 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5626 QMAKE=$ac_cv_path_QMAKE
5627 if test -n "$QMAKE"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5629 $as_echo "$QMAKE" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5636 # Extract the first word of "gmake", so it can be a program name with args.
5637 set dummy gmake; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_path_GMAKE+:} false; then :
5641 $as_echo_n "(cached) " >&6
5645 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5667 GMAKE=$ac_cv_path_GMAKE
5668 if test -n "$GMAKE"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5670 $as_echo "$GMAKE" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5678 if test "x$WXCONFIG" = x; then
5681 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5682 set dummy ${WXCONFIG}; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_WXCONFIG+:} false; then :
5686 $as_echo_n "(cached) " >&6
5690 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5712 WXCONFIG=$ac_cv_path_WXCONFIG
5713 if test -n "$WXCONFIG"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5715 $as_echo "$WXCONFIG" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5723 # Extract the first word of "cdrecord", so it can be a program name with args.
5724 set dummy cdrecord; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_CDRECORD+:} false; then :
5728 $as_echo_n "(cached) " >&6
5732 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5754 CDRECORD=$ac_cv_path_CDRECORD
5755 if test -n "$CDRECORD"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5757 $as_echo "$CDRECORD" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5764 # Extract the first word of "pidof", so it can be a program name with args.
5765 set dummy pidof; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_path_PIDOF+:} false; then :
5769 $as_echo_n "(cached) " >&6
5773 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5795 PIDOF=$ac_cv_path_PIDOF
5796 if test -n "$PIDOF"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5798 $as_echo "$PIDOF" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5805 for ac_prog in gawk mawk nawk awk
5807 # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_AWK+:} false; then :
5812 $as_echo_n "(cached) " >&6
5814 if test -n "$AWK"; then
5815 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_AWK="$ac_prog"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 if test -n "$AWK"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5837 $as_echo "$AWK" >&6; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5844 test -n "$AWK" && break
5847 # Some AWK programs fail, so test it and warn the user
5848 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5849 { if ((prog == $2) || (("(" prog ")") == $2) ||
5850 (("" prog "") == $2) ||
5851 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5853 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5854 The regex engine of $AWK is too broken to be used you
5855 might want to install GNU AWK.
5856 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5859 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5860 set dummy $THE_AWK; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_path_AWK+:} false; then :
5864 $as_echo_n "(cached) " >&6
5868 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5891 if test -n "$AWK"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5893 $as_echo "$AWK" >&6; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5902 test -n "$ARFLAG" || ARFLAGS="cr"
5914 # Check whether --enable-libtool was given.
5915 if test "${enable_libtool+set}" = set; then :
5916 enableval=$enable_libtool;
5917 if test x$enableval = xno; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5933 macro_revision='1.3293'
5947 ltmain="$ac_aux_dir/ltmain.sh"
5949 # Make sure we can run config.sub.
5950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5951 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5954 $as_echo_n "checking build system type... " >&6; }
5955 if ${ac_cv_build+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 ac_build_alias=$build_alias
5959 test "x$ac_build_alias" = x &&
5960 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5961 test "x$ac_build_alias" = x &&
5962 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5963 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5964 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5968 $as_echo "$ac_cv_build" >&6; }
5969 case $ac_cv_build in
5971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5974 ac_save_IFS=$IFS; IFS='-'
5980 # Remember, the first character of IFS is used to create $*,
5981 # except with old shells:
5984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5988 $as_echo_n "checking host system type... " >&6; }
5989 if ${ac_cv_host+:} false; then :
5990 $as_echo_n "(cached) " >&6
5992 if test "x$host_alias" = x; then
5993 ac_cv_host=$ac_cv_build
5995 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5996 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6001 $as_echo "$ac_cv_host" >&6; }
6004 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6007 ac_save_IFS=$IFS; IFS='-'
6013 # Remember, the first character of IFS is used to create $*,
6014 # except with old shells:
6017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6020 # Backslashify metacharacters that are still active within
6021 # double-quoted strings.
6022 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6024 # Same as above, but do not quote variable references.
6025 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6027 # Sed substitution to delay expansion of an escaped shell variable in a
6028 # double_quote_subst'ed string.
6029 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6031 # Sed substitution to delay expansion of an escaped single quote.
6032 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6034 # Sed substitution to avoid accidental globbing in evaled expressions
6035 no_glob_subst='s/\*/\\\*/g'
6037 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6039 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6042 $as_echo_n "checking how to print strings... " >&6; }
6043 # Test print first, because it will be a builtin if present.
6044 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6045 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6047 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6050 # Use this function as a fallback that always works.
6051 func_fallback_echo ()
6053 eval 'cat <<_LTECHO_EOF
6057 ECHO='func_fallback_echo'
6060 # func_echo_all arg...
6061 # Invoke $ECHO with all args, space-separated.
6068 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6069 $as_echo "printf" >&6; } ;;
6070 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6071 $as_echo "print -r" >&6; } ;;
6072 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6073 $as_echo "cat" >&6; } ;;
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6090 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6091 if ${ac_cv_path_SED+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6095 for ac_i in 1 2 3 4 5 6 7; do
6096 ac_script="$ac_script$as_nl$ac_script"
6098 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6099 { ac_script=; unset ac_script;}
6100 if test -z "$SED"; then
6101 ac_path_SED_found=false
6102 # Loop through the user's path and test for each of PROGNAME-LIST
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_prog in sed gsed; do
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6111 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6112 # Check for GNU ac_path_SED and select it if it is found.
6113 # Check for GNU $ac_path_SED
6114 case `"$ac_path_SED" --version 2>&1` in
6116 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6119 $as_echo_n 0123456789 >"conftest.in"
6122 cat "conftest.in" "conftest.in" >"conftest.tmp"
6123 mv "conftest.tmp" "conftest.in"
6124 cp "conftest.in" "conftest.nl"
6125 $as_echo '' >> "conftest.nl"
6126 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128 as_fn_arith $ac_count + 1 && ac_count=$as_val
6129 if test $ac_count -gt ${ac_path_SED_max-0}; then
6130 # Best one so far, save it but keep looking for a better one
6131 ac_cv_path_SED="$ac_path_SED"
6132 ac_path_SED_max=$ac_count
6134 # 10*(2^10) chars as input seems more than enough
6135 test $ac_count -gt 10 && break
6137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6140 $ac_path_SED_found && break 3
6145 if test -z "$ac_cv_path_SED"; then
6146 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6154 $as_echo "$ac_cv_path_SED" >&6; }
6155 SED="$ac_cv_path_SED"
6158 test -z "$SED" && SED=sed
6159 Xsed="$SED -e 1s/^X//"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6172 $as_echo_n "checking for fgrep... " >&6; }
6173 if ${ac_cv_path_FGREP+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6177 then ac_cv_path_FGREP="$GREP -F"
6179 if test -z "$FGREP"; then
6180 ac_path_FGREP_found=false
6181 # Loop through the user's path and test for each of PROGNAME-LIST
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6186 test -z "$as_dir" && as_dir=.
6187 for ac_prog in fgrep; do
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6190 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6191 # Check for GNU ac_path_FGREP and select it if it is found.
6192 # Check for GNU $ac_path_FGREP
6193 case `"$ac_path_FGREP" --version 2>&1` in
6195 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6198 $as_echo_n 0123456789 >"conftest.in"
6201 cat "conftest.in" "conftest.in" >"conftest.tmp"
6202 mv "conftest.tmp" "conftest.in"
6203 cp "conftest.in" "conftest.nl"
6204 $as_echo 'FGREP' >> "conftest.nl"
6205 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6207 as_fn_arith $ac_count + 1 && ac_count=$as_val
6208 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6209 # Best one so far, save it but keep looking for a better one
6210 ac_cv_path_FGREP="$ac_path_FGREP"
6211 ac_path_FGREP_max=$ac_count
6213 # 10*(2^10) chars as input seems more than enough
6214 test $ac_count -gt 10 && break
6216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6219 $ac_path_FGREP_found && break 3
6224 if test -z "$ac_cv_path_FGREP"; then
6225 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6228 ac_cv_path_FGREP=$FGREP
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6234 $as_echo "$ac_cv_path_FGREP" >&6; }
6235 FGREP="$ac_cv_path_FGREP"
6238 test -z "$GREP" && GREP=grep
6258 # Check whether --with-gnu-ld was given.
6259 if test "${with_gnu_ld+set}" = set; then :
6260 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6266 if test "$GCC" = yes; then
6267 # Check if gcc -print-prog-name=ld gives a path.
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6269 $as_echo_n "checking for ld used by $CC... " >&6; }
6272 # gcc leaves a trailing carriage return which upsets mingw
6273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6278 # Accept absolute paths.
6280 re_direlt='/[^/][^/]*/\.\./'
6281 # Canonicalize the pathname of ld
6282 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6283 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6284 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6286 test -z "$LD" && LD="$ac_prog"
6289 # If it fails, then pretend we aren't using GCC.
6293 # If it is relative, then search for the first ld in PATH.
6297 elif test "$with_gnu_ld" = yes; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6299 $as_echo_n "checking for GNU ld... " >&6; }
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6302 $as_echo_n "checking for non-GNU ld... " >&6; }
6304 if ${lt_cv_path_LD+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 if test -z "$LD"; then
6308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6309 for ac_dir in $PATH; do
6311 test -z "$ac_dir" && ac_dir=.
6312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6313 lt_cv_path_LD="$ac_dir/$ac_prog"
6314 # Check to see if the program is GNU ld. I'd rather use --version,
6315 # but apparently some variants of GNU ld only accept -v.
6316 # Break only if it was the GNU/non-GNU ld that we prefer.
6317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6318 *GNU* | *'with BFD'*)
6319 test "$with_gnu_ld" != no && break
6322 test "$with_gnu_ld" != yes && break
6329 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6334 if test -n "$LD"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6336 $as_echo "$LD" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6341 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6343 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6344 if ${lt_cv_prog_gnu_ld+:} false; then :
6345 $as_echo_n "(cached) " >&6
6347 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6348 case `$LD -v 2>&1 </dev/null` in
6349 *GNU* | *'with BFD'*)
6350 lt_cv_prog_gnu_ld=yes
6353 lt_cv_prog_gnu_ld=no
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6358 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6359 with_gnu_ld=$lt_cv_prog_gnu_ld
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6370 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6371 if ${lt_cv_path_NM+:} false; then :
6372 $as_echo_n "(cached) " >&6
6374 if test -n "$NM"; then
6375 # Let the user override the test.
6378 lt_nm_to_check="${ac_tool_prefix}nm"
6379 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6380 lt_nm_to_check="$lt_nm_to_check nm"
6382 for lt_tmp_nm in $lt_nm_to_check; do
6383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6384 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6386 test -z "$ac_dir" && ac_dir=.
6387 tmp_nm="$ac_dir/$lt_tmp_nm"
6388 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6389 # Check to see if the nm accepts a BSD-compat flag.
6390 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6391 # nm: unknown option "B" ignored
6392 # Tru64's nm complains that /dev/null is an invalid object file
6393 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6394 */dev/null* | *'Invalid file or object type'*)
6395 lt_cv_path_NM="$tmp_nm -B"
6399 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6401 lt_cv_path_NM="$tmp_nm -p"
6405 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6406 continue # so that we can try to find one that supports BSD flags
6415 : ${lt_cv_path_NM=no}
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6419 $as_echo "$lt_cv_path_NM" >&6; }
6420 if test "$lt_cv_path_NM" != "no"; then
6423 # Didn't find any BSD compatible name lister, look for dumpbin.
6424 if test -n "$DUMPBIN"; then :
6425 # Let the user override the test.
6427 if test -n "$ac_tool_prefix"; then
6428 for ac_prog in dumpbin "link -dump"
6430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_DUMPBIN+:} false; then :
6435 $as_echo_n "(cached) " >&6
6437 if test -n "$DUMPBIN"; then
6438 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 DUMPBIN=$ac_cv_prog_DUMPBIN
6458 if test -n "$DUMPBIN"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6460 $as_echo "$DUMPBIN" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6467 test -n "$DUMPBIN" && break
6470 if test -z "$DUMPBIN"; then
6471 ac_ct_DUMPBIN=$DUMPBIN
6472 for ac_prog in dumpbin "link -dump"
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$ac_ct_DUMPBIN"; then
6482 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6502 if test -n "$ac_ct_DUMPBIN"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6504 $as_echo "$ac_ct_DUMPBIN" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6511 test -n "$ac_ct_DUMPBIN" && break
6514 if test "x$ac_ct_DUMPBIN" = x; then
6517 case $cross_compiling:$ac_tool_warned in
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6523 DUMPBIN=$ac_ct_DUMPBIN
6527 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6529 DUMPBIN="$DUMPBIN -symbols"
6537 if test "$DUMPBIN" != ":"; then
6541 test -z "$NM" && NM=nm
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6549 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6550 if ${lt_cv_nm_interface+:} false; then :
6551 $as_echo_n "(cached) " >&6
6553 lt_cv_nm_interface="BSD nm"
6554 echo "int some_variable = 0;" > conftest.$ac_ext
6555 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6556 (eval "$ac_compile" 2>conftest.err)
6557 cat conftest.err >&5
6558 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6559 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6560 cat conftest.err >&5
6561 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6562 cat conftest.out >&5
6563 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6564 lt_cv_nm_interface="MS dumpbin"
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6569 $as_echo "$lt_cv_nm_interface" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6572 $as_echo_n "checking whether ln -s works... " >&6; }
6574 if test "$LN_S" = "ln -s"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576 $as_echo "yes" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6579 $as_echo "no, using $LN_S" >&6; }
6582 # find the maximum length of command line arguments
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6584 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6585 if ${lt_cv_sys_max_cmd_len+:} false; then :
6586 $as_echo_n "(cached) " >&6
6593 # On DJGPP, this test can blow up pretty badly due to problems in libc
6594 # (any single argument exceeding 2000 bytes causes a buffer overrun
6595 # during glob expansion). Even if it were fixed, the result of this
6596 # check would be larger than it should be.
6597 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6601 # Under GNU Hurd, this test is not required because there is
6602 # no limit to the length of command line arguments.
6603 # Libtool will interpret -1 as no limit whatsoever
6604 lt_cv_sys_max_cmd_len=-1;
6607 cygwin* | mingw* | cegcc*)
6608 # On Win9x/ME, this test blows up -- it succeeds, but takes
6609 # about 5 minutes as the teststring grows exponentially.
6610 # Worse, since 9x/ME are not pre-emptively multitasking,
6611 # you end up with a "frozen" computer, even though with patience
6612 # the test eventually succeeds (with a max line length of 256k).
6613 # Instead, let's just punt: use the minimum linelength reported by
6614 # all of the supported platforms: 8192 (on NT/2K/XP).
6615 lt_cv_sys_max_cmd_len=8192;
6619 # On MiNT this can take a long time and run out of memory.
6620 lt_cv_sys_max_cmd_len=8192;
6624 # On AmigaOS with pdksh, this test takes hours, literally.
6625 # So we just punt and use a minimum line length of 8192.
6626 lt_cv_sys_max_cmd_len=8192;
6629 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6630 # This has been around since 386BSD, at least. Likely further.
6631 if test -x /sbin/sysctl; then
6632 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6633 elif test -x /usr/sbin/sysctl; then
6634 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6636 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6638 # And add a safety zone
6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6645 lt_cv_sys_max_cmd_len=196608
6649 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6650 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6651 # nice to cause kernel panics so lets avoid the loop below.
6652 # First set a reasonable default.
6653 lt_cv_sys_max_cmd_len=16384
6655 if test -x /sbin/sysconfig; then
6656 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6657 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6662 lt_cv_sys_max_cmd_len=102400
6664 sysv5* | sco5v6* | sysv4.2uw2*)
6665 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6666 if test -n "$kargmax"; then
6667 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6669 lt_cv_sys_max_cmd_len=32768
6673 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6674 if test -n "$lt_cv_sys_max_cmd_len"; then
6675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6678 # Make teststring a little bigger before we do anything with it.
6679 # a 1K string should be a reasonable start.
6680 for i in 1 2 3 4 5 6 7 8 ; do
6681 teststring=$teststring$teststring
6683 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6684 # If test is not a shell built-in, we'll probably end up computing a
6685 # maximum length that is only half of the actual maximum length, but
6687 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6688 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6689 test $i != 17 # 1/2 MB should be enough
6692 teststring=$teststring$teststring
6694 # Only check the string length outside the loop.
6695 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6697 # Add a significant safety factor because C++ compilers can tack on
6698 # massive amounts of additional arguments before passing them to the
6699 # linker. It appears as though 1/2 is a usable value.
6700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6707 if test -n $lt_cv_sys_max_cmd_len ; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6709 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6712 $as_echo "none" >&6; }
6714 max_cmd_len=$lt_cv_sys_max_cmd_len
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6726 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6727 # Try some XSI features
6730 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6732 && eval 'test $(( 1 + 1 )) -eq 2 \
6733 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6736 $as_echo "$xsi_shell" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6740 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6742 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6744 && lt_shell_append=yes
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6746 $as_echo "$lt_shell_append" >&6; }
6749 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6759 # test EBCDIC or ASCII
6760 case `echo X|tr X '\101'` in
6761 A) # ASCII based system
6762 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6763 lt_SP2NL='tr \040 \012'
6764 lt_NL2SP='tr \015\012 \040\040'
6766 *) # EBCDIC based system
6767 lt_SP2NL='tr \100 \n'
6768 lt_NL2SP='tr \r\n \100\100'
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6781 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6782 if ${lt_cv_to_host_file_cmd+:} false; then :
6783 $as_echo_n "(cached) " >&6
6788 *-*-mingw* ) # actually msys
6789 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6792 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6794 * ) # otherwise, assume *nix
6795 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6801 *-*-mingw* ) # actually msys
6802 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6805 lt_cv_to_host_file_cmd=func_convert_file_noop
6807 * ) # otherwise, assume *nix
6808 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6812 * ) # unhandled hosts (and "normal" native builds)
6813 lt_cv_to_host_file_cmd=func_convert_file_noop
6819 to_host_file_cmd=$lt_cv_to_host_file_cmd
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6821 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6828 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6829 if ${lt_cv_to_tool_file_cmd+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 #assume ordinary cross tools, or native build.
6833 lt_cv_to_tool_file_cmd=func_convert_file_noop
6837 *-*-mingw* ) # actually msys
6838 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6846 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6848 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6855 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6856 if ${lt_cv_ld_reload_flag+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 lt_cv_ld_reload_flag='-r'
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6862 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6863 reload_flag=$lt_cv_ld_reload_flag
6864 case $reload_flag in
6866 *) reload_flag=" $reload_flag" ;;
6868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6870 cygwin* | mingw* | pw32* | cegcc*)
6871 if test "$GCC" != yes; then
6876 if test "$GCC" = yes; then
6877 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_OBJDUMP+:} false; then :
6898 $as_echo_n "(cached) " >&6
6900 if test -n "$OBJDUMP"; then
6901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 OBJDUMP=$ac_cv_prog_OBJDUMP
6921 if test -n "$OBJDUMP"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6923 $as_echo "$OBJDUMP" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6931 if test -z "$ac_cv_prog_OBJDUMP"; then
6932 ac_ct_OBJDUMP=$OBJDUMP
6933 # Extract the first word of "objdump", so it can be a program name with args.
6934 set dummy objdump; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6938 $as_echo_n "(cached) " >&6
6940 if test -n "$ac_ct_OBJDUMP"; then
6941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6961 if test -n "$ac_ct_OBJDUMP"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6963 $as_echo "$ac_ct_OBJDUMP" >&6; }
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6969 if test "x$ac_ct_OBJDUMP" = x; then
6972 case $cross_compiling:$ac_tool_warned in
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6978 OBJDUMP=$ac_ct_OBJDUMP
6981 OBJDUMP="$ac_cv_prog_OBJDUMP"
6984 test -z "$OBJDUMP" && OBJDUMP=objdump
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6996 if ${lt_cv_deplibs_check_method+:} false; then :
6997 $as_echo_n "(cached) " >&6
6999 lt_cv_file_magic_cmd='$MAGIC_CMD'
7000 lt_cv_file_magic_test_file=
7001 lt_cv_deplibs_check_method='unknown'
7002 # Need to set the preceding variable on all platforms that support
7003 # interlibrary dependencies.
7004 # 'none' -- dependencies not supported.
7005 # `unknown' -- same as none, but documents that we really don't know.
7006 # 'pass_all' -- all dependencies passed with no checks.
7007 # 'test_compile' -- check by making test program.
7008 # 'file_magic [[regex]]' -- check by looking for files in library path
7009 # which responds to the $file_magic_cmd with a given extended regex.
7010 # If you have `file' or equivalent on your system and you're not sure
7011 # whether `pass_all' will *always* work, you probably want this one.
7015 lt_cv_deplibs_check_method=pass_all
7019 lt_cv_deplibs_check_method=pass_all
7023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7024 lt_cv_file_magic_cmd='/usr/bin/file -L'
7025 lt_cv_file_magic_test_file=/shlib/libc.so
7029 # func_win32_libid is a shell function defined in ltmain.sh
7030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7031 lt_cv_file_magic_cmd='func_win32_libid'
7035 # Base MSYS/MinGW do not provide the 'file' command needed by
7036 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7037 # unless we find 'file', for example because we are cross-compiling.
7038 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7039 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7041 lt_cv_file_magic_cmd='func_win32_libid'
7043 # Keep this pattern in sync with the one in func_win32_libid.
7044 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7045 lt_cv_file_magic_cmd='$OBJDUMP -f'
7050 # use the weaker test based on 'objdump'. See mingw*.
7051 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7052 lt_cv_file_magic_cmd='$OBJDUMP -f'
7055 darwin* | rhapsody*)
7056 lt_cv_deplibs_check_method=pass_all
7059 freebsd* | dragonfly*)
7060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7063 # Not sure whether the presence of OpenBSD here was a mistake.
7064 # Let's accept both of them until this is cleared up.
7065 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7066 lt_cv_file_magic_cmd=/usr/bin/file
7067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7071 lt_cv_deplibs_check_method=pass_all
7076 lt_cv_deplibs_check_method=pass_all
7080 lt_cv_deplibs_check_method=pass_all
7083 hpux10.20* | hpux11*)
7084 lt_cv_file_magic_cmd=/usr/bin/file
7087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7091 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]'
7092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7106 irix5* | irix6* | nonstopux*)
7108 *-32|*"-32 ") libmagic=32-bit;;
7109 *-n32|*"-n32 ") libmagic=N32;;
7110 *-64|*"-64 ") libmagic=64-bit;;
7111 *) libmagic=never-match;;
7113 lt_cv_deplibs_check_method=pass_all
7116 # This must be Linux ELF.
7117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7118 lt_cv_deplibs_check_method=pass_all
7122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7131 lt_cv_file_magic_cmd=/usr/bin/file
7132 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7136 lt_cv_deplibs_check_method=pass_all
7140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7147 osf3* | osf4* | osf5*)
7148 lt_cv_deplibs_check_method=pass_all
7152 lt_cv_deplibs_check_method=pass_all
7156 lt_cv_deplibs_check_method=pass_all
7159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7160 lt_cv_deplibs_check_method=pass_all
7164 case $host_vendor in
7166 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]'
7167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7170 lt_cv_deplibs_check_method=pass_all
7173 lt_cv_file_magic_cmd='/bin/file'
7174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7177 lt_cv_file_magic_cmd='/bin/file'
7178 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7179 lt_cv_file_magic_test_file=/lib/libc.so
7182 lt_cv_deplibs_check_method=pass_all
7185 lt_cv_deplibs_check_method=pass_all
7191 lt_cv_deplibs_check_method=pass_all
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7197 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7201 if test "$build" = "$host"; then
7204 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7207 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7213 file_magic_cmd=$lt_cv_file_magic_cmd
7214 deplibs_check_method=$lt_cv_deplibs_check_method
7215 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7238 if test -n "$ac_tool_prefix"; then
7239 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7240 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_DLLTOOL+:} false; then :
7244 $as_echo_n "(cached) " >&6
7246 if test -n "$DLLTOOL"; then
7247 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 DLLTOOL=$ac_cv_prog_DLLTOOL
7267 if test -n "$DLLTOOL"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7269 $as_echo "$DLLTOOL" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7277 if test -z "$ac_cv_prog_DLLTOOL"; then
7278 ac_ct_DLLTOOL=$DLLTOOL
7279 # Extract the first word of "dlltool", so it can be a program name with args.
7280 set dummy dlltool; ac_word=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7284 $as_echo_n "(cached) " >&6
7286 if test -n "$ac_ct_DLLTOOL"; then
7287 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7307 if test -n "$ac_ct_DLLTOOL"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7309 $as_echo "$ac_ct_DLLTOOL" >&6; }
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7315 if test "x$ac_ct_DLLTOOL" = x; then
7318 case $cross_compiling:$ac_tool_warned in
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7322 ac_tool_warned=yes ;;
7324 DLLTOOL=$ac_ct_DLLTOOL
7327 DLLTOOL="$ac_cv_prog_DLLTOOL"
7330 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7342 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7343 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7344 $as_echo_n "(cached) " >&6
7346 lt_cv_sharedlib_from_linklib_cmd='unknown'
7349 cygwin* | mingw* | pw32* | cegcc*)
7350 # two different shell functions defined in ltmain.sh
7351 # decide which to use based on capabilities of $DLLTOOL
7352 case `$DLLTOOL --help 2>&1` in
7353 *--identify-strict*)
7354 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7357 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7362 # fallback: assume linklib IS sharedlib
7363 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7369 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7370 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7371 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7379 if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_AR+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$AR"; then
7390 ac_cv_prog_AR="$AR" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 if test -n "$AR"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7412 $as_echo "$AR" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7419 test -n "$AR" && break
7422 if test -z "$AR"; then
7426 # Extract the first word of "$ac_prog", so it can be a program name with args.
7427 set dummy $ac_prog; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$ac_ct_AR"; then
7434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_ac_ct_AR="$ac_prog"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7454 if test -n "$ac_ct_AR"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7456 $as_echo "$ac_ct_AR" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7463 test -n "$ac_ct_AR" && break
7466 if test "x$ac_ct_AR" = x; then
7469 case $cross_compiling:$ac_tool_warned in
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7493 $as_echo_n "checking for archiver @FILE support... " >&6; }
7494 if ${lt_cv_ar_at_file+:} false; then :
7495 $as_echo_n "(cached) " >&6
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7509 if ac_fn_c_try_compile "$LINENO"; then :
7510 echo conftest.$ac_objext > conftest.lst
7511 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7513 (eval $lt_ar_try) 2>&5
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }
7517 if test "$ac_status" -eq 0; then
7518 # Ensure the archiver fails upon bogus file names.
7519 rm -f conftest.$ac_objext libconftest.a
7520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7521 (eval $lt_ar_try) 2>&5
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }
7525 if test "$ac_status" -ne 0; then
7529 rm -f conftest.* libconftest.a
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7536 $as_echo "$lt_cv_ar_at_file" >&6; }
7538 if test "x$lt_cv_ar_at_file" = xno; then
7541 archiver_list_spec=$lt_cv_ar_at_file
7550 if test -n "$ac_tool_prefix"; then
7551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}strip; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_STRIP+:} false; then :
7556 $as_echo_n "(cached) " >&6
7558 if test -n "$STRIP"; then
7559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 STRIP=$ac_cv_prog_STRIP
7579 if test -n "$STRIP"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7581 $as_echo "$STRIP" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7589 if test -z "$ac_cv_prog_STRIP"; then
7591 # Extract the first word of "strip", so it can be a program name with args.
7592 set dummy strip; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 if test -n "$ac_ct_STRIP"; then
7599 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_ac_ct_STRIP="strip"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7619 if test -n "$ac_ct_STRIP"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7621 $as_echo "$ac_ct_STRIP" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7627 if test "x$ac_ct_STRIP" = x; then
7630 case $cross_compiling:$ac_tool_warned in
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7639 STRIP="$ac_cv_prog_STRIP"
7642 test -z "$STRIP" && STRIP=:
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_RANLIB+:} false; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -n "$RANLIB"; then
7658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 RANLIB=$ac_cv_prog_RANLIB
7678 if test -n "$RANLIB"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7680 $as_echo "$RANLIB" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7688 if test -z "$ac_cv_prog_RANLIB"; then
7689 ac_ct_RANLIB=$RANLIB
7690 # Extract the first word of "ranlib", so it can be a program name with args.
7691 set dummy ranlib; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7695 $as_echo_n "(cached) " >&6
7697 if test -n "$ac_ct_RANLIB"; then
7698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_ac_ct_RANLIB="ranlib"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7718 if test -n "$ac_ct_RANLIB"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7720 $as_echo "$ac_ct_RANLIB" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7726 if test "x$ac_ct_RANLIB" = x; then
7729 case $cross_compiling:$ac_tool_warned in
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned=yes ;;
7735 RANLIB=$ac_ct_RANLIB
7738 RANLIB="$ac_cv_prog_RANLIB"
7741 test -z "$RANLIB" && RANLIB=:
7748 # Determine commands to create old-style static archives.
7749 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7750 old_postinstall_cmds='chmod 644 $oldlib'
7751 old_postuninstall_cmds=
7753 if test -n "$RANLIB"; then
7756 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7759 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7762 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7767 lock_old_archive_extraction=yes ;;
7769 lock_old_archive_extraction=no ;;
7810 # If no C compiler was specified, use CC.
7813 # If no C compiler flags were specified, use CFLAGS.
7814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7816 # Allow CC to be a program name with arguments.
7820 # Check for command to grab the raw symbol name followed by C symbol from nm.
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7822 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7823 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7824 $as_echo_n "(cached) " >&6
7827 # These are sane defaults that work on at least a few old systems.
7828 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7830 # Character class describing NM global symbol codes.
7831 symcode='[BCDEGRST]'
7833 # Regexp to match symbols that can be accessed directly from C.
7834 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7836 # Define system-specific variables.
7841 cygwin* | mingw* | pw32* | cegcc*)
7842 symcode='[ABCDGISTW]'
7845 if test "$host_cpu" = ia64; then
7846 symcode='[ABCDEGRST]'
7850 symcode='[BCDEGRST]'
7853 symcode='[BCDEGQRST]'
7864 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7872 # If we're using GNU nm, then use its standard symbol codes.
7873 case `$NM -V 2>&1` in
7874 *GNU* | *'with BFD'*)
7875 symcode='[ABCDGIRSTW]' ;;
7878 # Transform an extracted symbol line into a proper C declaration.
7879 # Some systems (esp. on ia64) link data and code symbols differently,
7880 # so use this general approach.
7881 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7883 # Transform an extracted symbol line into symbol name and symbol address
7884 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7885 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'"
7887 # Handle CRLF in mingw tool chain
7891 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7895 # Try without a prefix underscore, then with it.
7896 for ac_symprfx in "" "_"; do
7898 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7899 symxfrm="\\1 $ac_symprfx\\2 \\2"
7901 # Write the raw and C identifiers.
7902 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7903 # Fake it for dumpbin and say T for any non-static function
7904 # and D for any global variable.
7905 # Also find C++ and __fastcall symbols from MSVC++,
7906 # which start with @ or ?.
7907 lt_cv_sys_global_symbol_pipe="$AWK '"\
7908 " {last_section=section; section=\$ 3};"\
7909 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7910 " \$ 0!~/External *\|/{next};"\
7911 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7912 " {if(hide[section]) next};"\
7913 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7914 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7915 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7916 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7917 " ' prfx=^$ac_symprfx"
7919 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7921 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7923 # Check to see that the pipe works correctly.
7927 cat > conftest.$ac_ext <<_LT_EOF
7932 void nm_test_func(void);
7933 void nm_test_func(void){}
7937 int main(){nm_test_var='a';nm_test_func();return(0);}
7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941 (eval $ac_compile) 2>&5
7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; }; then
7945 # Now try to grab the symbols.
7947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7948 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951 test $ac_status = 0; } && test -s "$nlist"; then
7952 # Try sorting and uniquifying the output.
7953 if sort "$nlist" | uniq > "$nlist"T; then
7954 mv -f "$nlist"T "$nlist"
7959 # Make sure that we snagged all the symbols we need.
7960 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7961 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7962 cat <<_LT_EOF > conftest.$ac_ext
7963 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7964 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7965 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7966 relocations are performed -- see ld's documentation on pseudo-relocs. */
7967 # define LT_DLSYM_CONST
7968 #elif defined(__osf__)
7969 /* This system does not cope well with relocations in const data. */
7970 # define LT_DLSYM_CONST
7972 # define LT_DLSYM_CONST const
7980 # Now generate the symbol file.
7981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7983 cat <<_LT_EOF >> conftest.$ac_ext
7985 /* The mapping between symbol names and symbols. */
7986 LT_DLSYM_CONST struct {
7990 lt__PROGRAM__LTX_preloaded_symbols[] =
7992 { "@PROGRAM@", (void *) 0 },
7994 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7995 cat <<\_LT_EOF >> conftest.$ac_ext
7999 /* This works around a problem in FreeBSD linker */
8000 #ifdef FREEBSD_WORKAROUND
8001 static const void *lt_preloaded_setup() {
8002 return lt__PROGRAM__LTX_preloaded_symbols;
8010 # Now try linking the two files.
8011 mv conftest.$ac_objext conftstm.$ac_objext
8012 lt_globsym_save_LIBS=$LIBS
8013 lt_globsym_save_CFLAGS=$CFLAGS
8014 LIBS="conftstm.$ac_objext"
8015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8017 (eval $ac_link) 2>&5
8019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8023 LIBS=$lt_globsym_save_LIBS
8024 CFLAGS=$lt_globsym_save_CFLAGS
8026 echo "cannot find nm_test_func in $nlist" >&5
8029 echo "cannot find nm_test_var in $nlist" >&5
8032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8035 echo "$progname: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8038 rm -rf conftest* conftst*
8040 # Do not use the global_symbol_pipe unless it works.
8041 if test "$pipe_works" = yes; then
8044 lt_cv_sys_global_symbol_pipe=
8050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8051 lt_cv_sys_global_symbol_to_cdecl=
8053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8055 $as_echo "failed" >&6; }
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8058 $as_echo "ok" >&6; }
8061 # Response file support.
8062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8063 nm_file_list_spec='@'
8064 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8065 nm_file_list_spec='@'
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8095 $as_echo_n "checking for sysroot... " >&6; }
8097 # Check whether --with-sysroot was given.
8098 if test "${with_sysroot+set}" = set; then :
8099 withval=$with_sysroot;
8106 case ${with_sysroot} in #(
8108 if test "$GCC" = yes; then
8109 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8113 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8119 $as_echo "${with_sysroot}" >&6; }
8120 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8125 $as_echo "${lt_sysroot:-no}" >&6; }
8131 # Check whether --enable-libtool-lock was given.
8132 if test "${enable_libtool_lock+set}" = set; then :
8133 enableval=$enable_libtool_lock;
8136 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8138 # Some flags need to be propagated to the compiler or linker for good
8142 # Find out which ABI we are using.
8143 echo 'int i;' > conftest.$ac_ext
8144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8145 (eval $ac_compile) 2>&5
8147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8148 test $ac_status = 0; }; then
8149 case `/usr/bin/file conftest.$ac_objext` in
8161 # Find out which ABI we are using.
8162 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8164 (eval $ac_compile) 2>&5
8166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8167 test $ac_status = 0; }; then
8168 if test "$lt_cv_prog_gnu_ld" = yes; then
8169 case `/usr/bin/file conftest.$ac_objext` in
8171 LD="${LD-ld} -melf32bsmip"
8174 LD="${LD-ld} -melf32bmipn32"
8177 LD="${LD-ld} -melf64bmip"
8181 case `/usr/bin/file conftest.$ac_objext` in
8197 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8198 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8199 # Find out which ABI we are using.
8200 echo 'int i;' > conftest.$ac_ext
8201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8202 (eval $ac_compile) 2>&5
8204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8205 test $ac_status = 0; }; then
8206 case `/usr/bin/file conftest.o` in
8209 x86_64-*kfreebsd*-gnu)
8210 LD="${LD-ld} -m elf_i386_fbsd"
8213 LD="${LD-ld} -m elf_i386"
8215 ppc64-*linux*|powerpc64-*linux*)
8216 LD="${LD-ld} -m elf32ppclinux"
8219 LD="${LD-ld} -m elf_s390"
8222 LD="${LD-ld} -m elf32_sparc"
8228 x86_64-*kfreebsd*-gnu)
8229 LD="${LD-ld} -m elf_x86_64_fbsd"
8232 LD="${LD-ld} -m elf_x86_64"
8234 ppc*-*linux*|powerpc*-*linux*)
8235 LD="${LD-ld} -m elf64ppc"
8237 s390*-*linux*|s390*-*tpf*)
8238 LD="${LD-ld} -m elf64_s390"
8241 LD="${LD-ld} -m elf64_sparc"
8251 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8252 SAVE_CFLAGS="$CFLAGS"
8253 CFLAGS="$CFLAGS -belf"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8255 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8256 if ${lt_cv_cc_needs_belf+:} false; then :
8257 $as_echo_n "(cached) " >&6
8260 ac_cpp='$CPP $CPPFLAGS'
8261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8276 if ac_fn_c_try_link "$LINENO"; then :
8277 lt_cv_cc_needs_belf=yes
8279 lt_cv_cc_needs_belf=no
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8284 ac_cpp='$CPP $CPPFLAGS'
8285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8291 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8292 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8294 CFLAGS="$SAVE_CFLAGS"
8298 # Find out which ABI we are using.
8299 echo 'int i;' > conftest.$ac_ext
8300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8301 (eval $ac_compile) 2>&5
8303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8304 test $ac_status = 0; }; then
8305 case `/usr/bin/file conftest.o` in
8307 case $lt_cv_prog_gnu_ld in
8308 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8310 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8322 need_locks="$enable_libtool_lock"
8324 if test -n "$ac_tool_prefix"; then
8325 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8326 set dummy ${ac_tool_prefix}mt; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8330 $as_echo_n "(cached) " >&6
8332 if test -n "$MANIFEST_TOOL"; then
8333 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8353 if test -n "$MANIFEST_TOOL"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8355 $as_echo "$MANIFEST_TOOL" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8363 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8364 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8365 # Extract the first word of "mt", so it can be a program name with args.
8366 set dummy mt; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8370 $as_echo_n "(cached) " >&6
8372 if test -n "$ac_ct_MANIFEST_TOOL"; then
8373 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8393 if test -n "$ac_ct_MANIFEST_TOOL"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8395 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8401 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8404 case $cross_compiling:$ac_tool_warned in
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8410 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8413 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8416 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8418 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8419 if ${lt_cv_path_mainfest_tool+:} false; then :
8420 $as_echo_n "(cached) " >&6
8422 lt_cv_path_mainfest_tool=no
8423 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8424 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8425 cat conftest.err >&5
8426 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8427 lt_cv_path_mainfest_tool=yes
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8432 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8433 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8443 rhapsody* | darwin*)
8444 if test -n "$ac_tool_prefix"; then
8445 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8446 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8450 $as_echo_n "(cached) " >&6
8452 if test -n "$DSYMUTIL"; then
8453 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8473 if test -n "$DSYMUTIL"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8475 $as_echo "$DSYMUTIL" >&6; }
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8483 if test -z "$ac_cv_prog_DSYMUTIL"; then
8484 ac_ct_DSYMUTIL=$DSYMUTIL
8485 # Extract the first word of "dsymutil", so it can be a program name with args.
8486 set dummy dsymutil; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8490 $as_echo_n "(cached) " >&6
8492 if test -n "$ac_ct_DSYMUTIL"; then
8493 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8502 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8513 if test -n "$ac_ct_DSYMUTIL"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8515 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8521 if test "x$ac_ct_DSYMUTIL" = x; then
8524 case $cross_compiling:$ac_tool_warned in
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8528 ac_tool_warned=yes ;;
8530 DSYMUTIL=$ac_ct_DSYMUTIL
8533 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8536 if test -n "$ac_tool_prefix"; then
8537 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8538 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_NMEDIT+:} false; then :
8542 $as_echo_n "(cached) " >&6
8544 if test -n "$NMEDIT"; then
8545 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 NMEDIT=$ac_cv_prog_NMEDIT
8565 if test -n "$NMEDIT"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8567 $as_echo "$NMEDIT" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8575 if test -z "$ac_cv_prog_NMEDIT"; then
8576 ac_ct_NMEDIT=$NMEDIT
8577 # Extract the first word of "nmedit", so it can be a program name with args.
8578 set dummy nmedit; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8582 $as_echo_n "(cached) " >&6
8584 if test -n "$ac_ct_NMEDIT"; then
8585 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8605 if test -n "$ac_ct_NMEDIT"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8607 $as_echo "$ac_ct_NMEDIT" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8613 if test "x$ac_ct_NMEDIT" = x; then
8616 case $cross_compiling:$ac_tool_warned in
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8620 ac_tool_warned=yes ;;
8622 NMEDIT=$ac_ct_NMEDIT
8625 NMEDIT="$ac_cv_prog_NMEDIT"
8628 if test -n "$ac_tool_prefix"; then
8629 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8630 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_prog_LIPO+:} false; then :
8634 $as_echo_n "(cached) " >&6
8636 if test -n "$LIPO"; then
8637 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 LIPO=$ac_cv_prog_LIPO
8657 if test -n "$LIPO"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8659 $as_echo "$LIPO" >&6; }
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8667 if test -z "$ac_cv_prog_LIPO"; then
8669 # Extract the first word of "lipo", so it can be a program name with args.
8670 set dummy lipo; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8674 $as_echo_n "(cached) " >&6
8676 if test -n "$ac_ct_LIPO"; then
8677 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8686 ac_cv_prog_ac_ct_LIPO="lipo"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8697 if test -n "$ac_ct_LIPO"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8699 $as_echo "$ac_ct_LIPO" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8705 if test "x$ac_ct_LIPO" = x; then
8708 case $cross_compiling:$ac_tool_warned in
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8712 ac_tool_warned=yes ;;
8717 LIPO="$ac_cv_prog_LIPO"
8720 if test -n "$ac_tool_prefix"; then
8721 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8722 set dummy ${ac_tool_prefix}otool; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if ${ac_cv_prog_OTOOL+:} false; then :
8726 $as_echo_n "(cached) " >&6
8728 if test -n "$OTOOL"; then
8729 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8738 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 OTOOL=$ac_cv_prog_OTOOL
8749 if test -n "$OTOOL"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8751 $as_echo "$OTOOL" >&6; }
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8759 if test -z "$ac_cv_prog_OTOOL"; then
8761 # Extract the first word of "otool", so it can be a program name with args.
8762 set dummy otool; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8766 $as_echo_n "(cached) " >&6
8768 if test -n "$ac_ct_OTOOL"; then
8769 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_prog_ac_ct_OTOOL="otool"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8789 if test -n "$ac_ct_OTOOL"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8791 $as_echo "$ac_ct_OTOOL" >&6; }
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8797 if test "x$ac_ct_OTOOL" = x; then
8800 case $cross_compiling:$ac_tool_warned in
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8804 ac_tool_warned=yes ;;
8809 OTOOL="$ac_cv_prog_OTOOL"
8812 if test -n "$ac_tool_prefix"; then
8813 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8814 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_OTOOL64+:} false; then :
8818 $as_echo_n "(cached) " >&6
8820 if test -n "$OTOOL64"; then
8821 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 OTOOL64=$ac_cv_prog_OTOOL64
8841 if test -n "$OTOOL64"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8843 $as_echo "$OTOOL64" >&6; }
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8851 if test -z "$ac_cv_prog_OTOOL64"; then
8852 ac_ct_OTOOL64=$OTOOL64
8853 # Extract the first word of "otool64", so it can be a program name with args.
8854 set dummy otool64; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8858 $as_echo_n "(cached) " >&6
8860 if test -n "$ac_ct_OTOOL64"; then
8861 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8870 ac_cv_prog_ac_ct_OTOOL64="otool64"
8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8881 if test -n "$ac_ct_OTOOL64"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8883 $as_echo "$ac_ct_OTOOL64" >&6; }
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8889 if test "x$ac_ct_OTOOL64" = x; then
8892 case $cross_compiling:$ac_tool_warned in
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8896 ac_tool_warned=yes ;;
8898 OTOOL64=$ac_ct_OTOOL64
8901 OTOOL64="$ac_cv_prog_OTOOL64"
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8931 $as_echo_n "checking for -single_module linker flag... " >&6; }
8932 if ${lt_cv_apple_cc_single_mod+:} false; then :
8933 $as_echo_n "(cached) " >&6
8935 lt_cv_apple_cc_single_mod=no
8936 if test -z "${LT_MULTI_MODULE}"; then
8937 # By default we will add the -single_module flag. You can override
8938 # by either setting the environment variable LT_MULTI_MODULE
8939 # non-empty at configure time, or by adding -multi_module to the
8941 rm -rf libconftest.dylib*
8942 echo "int foo(void){return 1;}" > conftest.c
8943 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8944 -dynamiclib -Wl,-single_module conftest.c" >&5
8945 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8946 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8948 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8949 lt_cv_apple_cc_single_mod=yes
8951 cat conftest.err >&5
8953 rm -rf libconftest.dylib*
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8958 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8960 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8961 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8962 $as_echo_n "(cached) " >&6
8964 lt_cv_ld_exported_symbols_list=no
8965 save_LDFLAGS=$LDFLAGS
8966 echo "_main" > conftest.sym
8967 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8979 if ac_fn_c_try_link "$LINENO"; then :
8980 lt_cv_ld_exported_symbols_list=yes
8982 lt_cv_ld_exported_symbols_list=no
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LDFLAGS="$save_LDFLAGS"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8990 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8992 $as_echo_n "checking for -force_load linker flag... " >&6; }
8993 if ${lt_cv_ld_force_load+:} false; then :
8994 $as_echo_n "(cached) " >&6
8996 lt_cv_ld_force_load=no
8997 cat > conftest.c << _LT_EOF
8998 int forced_loaded() { return 2;}
9000 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9001 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9002 echo "$AR cru libconftest.a conftest.o" >&5
9003 $AR cru libconftest.a conftest.o 2>&5
9004 echo "$RANLIB libconftest.a" >&5
9005 $RANLIB libconftest.a 2>&5
9006 cat > conftest.c << _LT_EOF
9007 int main() { return 0;}
9009 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9010 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9012 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9013 lt_cv_ld_force_load=yes
9015 cat conftest.err >&5
9017 rm -f conftest.err libconftest.a conftest conftest.c
9018 rm -rf conftest.dSYM
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9022 $as_echo "$lt_cv_ld_force_load" >&6; }
9024 rhapsody* | darwin1.[012])
9025 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9028 darwin*) # darwin 5.x on
9029 # if running on 10.5 or later, the deployment target defaults
9030 # to the OS version, if on x86, and 10.4, the deployment
9031 # target defaults to 10.4. Don't you love it?
9032 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9033 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9034 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9036 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9038 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9042 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9043 _lt_dar_single_mod='$single_module'
9045 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9046 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9048 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9050 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9051 _lt_dsymutil='~$DSYMUTIL $lib || :'
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9059 $as_echo_n "checking for ANSI C header files... " >&6; }
9060 if ${ac_cv_header_stdc+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9078 if ac_fn_c_try_compile "$LINENO"; then :
9079 ac_cv_header_stdc=yes
9081 ac_cv_header_stdc=no
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 if test $ac_cv_header_stdc = yes; then
9086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9093 $EGREP "memchr" >/dev/null 2>&1; then :
9096 ac_cv_header_stdc=no
9102 if test $ac_cv_header_stdc = yes; then
9103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9110 $EGREP "free" >/dev/null 2>&1; then :
9113 ac_cv_header_stdc=no
9119 if test $ac_cv_header_stdc = yes; then
9120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9121 if test "$cross_compiling" = yes; then :
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9128 #if ((' ' & 0x0FF) == 0x020)
9129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9132 # define ISLOWER(c) \
9133 (('a' <= (c) && (c) <= 'i') \
9134 || ('j' <= (c) && (c) <= 'r') \
9135 || ('s' <= (c) && (c) <= 'z'))
9136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9144 for (i = 0; i < 256; i++)
9145 if (XOR (islower (i), ISLOWER (i))
9146 || toupper (i) != TOUPPER (i))
9151 if ac_fn_c_try_run "$LINENO"; then :
9154 ac_cv_header_stdc=no
9156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9157 conftest.$ac_objext conftest.beam conftest.$ac_ext
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9163 $as_echo "$ac_cv_header_stdc" >&6; }
9164 if test $ac_cv_header_stdc = yes; then
9166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9172 inttypes.h stdint.h unistd.h
9174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9187 for ac_header in dlfcn.h
9189 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9191 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9192 cat >>confdefs.h <<_ACEOF
9193 #define HAVE_DLFCN_H 1
9203 func_stripname_cnf ()
9206 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9207 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9209 } # func_stripname_cnf
9216 # Check whether --enable-shared was given.
9217 if test "${enable_shared+set}" = set; then :
9218 enableval=$enable_shared; p=${PACKAGE-default}
9220 yes) enable_shared=yes ;;
9221 no) enable_shared=no ;;
9224 # Look at the argument we got. We use all the common list separators.
9225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9226 for pkg in $enableval; do
9228 if test "X$pkg" = "X$p"; then
9245 # Check whether --enable-static was given.
9246 if test "${enable_static+set}" = set; then :
9247 enableval=$enable_static; p=${PACKAGE-default}
9249 yes) enable_static=yes ;;
9250 no) enable_static=no ;;
9253 # Look at the argument we got. We use all the common list separators.
9254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9255 for pkg in $enableval; do
9257 if test "X$pkg" = "X$p"; then
9286 # Check whether --with-pic was given.
9287 if test "${with_pic+set}" = set; then :
9288 withval=$with_pic; pic_mode="$withval"
9294 test -z "$pic_mode" && pic_mode=default
9302 # Check whether --enable-fast-install was given.
9303 if test "${enable_fast_install+set}" = set; then :
9304 enableval=$enable_fast_install; p=${PACKAGE-default}
9306 yes) enable_fast_install=yes ;;
9307 no) enable_fast_install=no ;;
9309 enable_fast_install=no
9310 # Look at the argument we got. We use all the common list separators.
9311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9312 for pkg in $enableval; do
9314 if test "X$pkg" = "X$p"; then
9315 enable_fast_install=yes
9322 enable_fast_install=yes
9335 # This can be used to rebuild libtool when needed
9336 LIBTOOL_DEPS="$ltmain"
9338 # Always use our own libtool.
9339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9366 test -z "$LN_S" && LN_S="ln -s"
9381 if test -n "${ZSH_VERSION+set}" ; then
9382 setopt NO_GLOB_SUBST
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9386 $as_echo_n "checking for objdir... " >&6; }
9387 if ${lt_cv_objdir+:} false; then :
9388 $as_echo_n "(cached) " >&6
9390 rm -f .libs 2>/dev/null
9391 mkdir .libs 2>/dev/null
9392 if test -d .libs; then
9395 # MS-DOS does not allow filenames that begin with a dot.
9398 rmdir .libs 2>/dev/null
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9401 $as_echo "$lt_cv_objdir" >&6; }
9402 objdir=$lt_cv_objdir
9408 cat >>confdefs.h <<_ACEOF
9409 #define LT_OBJDIR "$lt_cv_objdir/"
9417 # AIX sometimes has problems with the GCC collect2 program. For some
9418 # reason, if we set the COLLECT_NAMES environment variable, the problems
9419 # vanish in a puff of smoke.
9420 if test "X${COLLECT_NAMES+set}" != Xset; then
9422 export COLLECT_NAMES
9429 can_build_shared=yes
9431 # All known linkers require a `.a' archive for static linking (except MSVC,
9432 # which needs '.lib').
9435 with_gnu_ld="$lt_cv_prog_gnu_ld"
9438 old_CFLAGS="$CFLAGS"
9440 # Set sane defaults for various variables
9441 test -z "$CC" && CC=cc
9442 test -z "$LTCC" && LTCC=$CC
9443 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9444 test -z "$LD" && LD=ld
9445 test -z "$ac_objext" && ac_objext=o
9447 for cc_temp in $compiler""; do
9449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9455 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9458 # Only perform the check for file, if the check method requires it
9459 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9460 case $deplibs_check_method in
9462 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9464 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9465 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9466 $as_echo_n "(cached) " >&6
9470 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9473 lt_save_MAGIC_CMD="$MAGIC_CMD"
9474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9476 for ac_dir in $ac_dummy; do
9478 test -z "$ac_dir" && ac_dir=.
9479 if test -f $ac_dir/${ac_tool_prefix}file; then
9480 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9481 if test -n "$file_magic_test_file"; then
9482 case $deplibs_check_method in
9484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9487 $EGREP "$file_magic_regex" > /dev/null; then
9492 *** Warning: the command libtool uses to detect shared libraries,
9493 *** $file_magic_cmd, produces output that libtool cannot recognize.
9494 *** The result is that libtool may fail to recognize shared libraries
9495 *** as such. This will affect the creation of libtool libraries that
9496 *** depend on shared libraries, but programs linked with such libtool
9497 *** libraries will work regardless of this problem. Nevertheless, you
9498 *** may want to report the problem to your system manager and/or to
9499 *** bug-libtool@gnu.org
9509 MAGIC_CMD="$lt_save_MAGIC_CMD"
9514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9515 if test -n "$MAGIC_CMD"; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9517 $as_echo "$MAGIC_CMD" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9527 if test -z "$lt_cv_path_MAGIC_CMD"; then
9528 if test -n "$ac_tool_prefix"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9530 $as_echo_n "checking for file... " >&6; }
9531 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9532 $as_echo_n "(cached) " >&6
9536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9539 lt_save_MAGIC_CMD="$MAGIC_CMD"
9540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9542 for ac_dir in $ac_dummy; do
9544 test -z "$ac_dir" && ac_dir=.
9545 if test -f $ac_dir/file; then
9546 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9547 if test -n "$file_magic_test_file"; then
9548 case $deplibs_check_method in
9550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9553 $EGREP "$file_magic_regex" > /dev/null; then
9558 *** Warning: the command libtool uses to detect shared libraries,
9559 *** $file_magic_cmd, produces output that libtool cannot recognize.
9560 *** The result is that libtool may fail to recognize shared libraries
9561 *** as such. This will affect the creation of libtool libraries that
9562 *** depend on shared libraries, but programs linked with such libtool
9563 *** libraries will work regardless of this problem. Nevertheless, you
9564 *** may want to report the problem to your system manager and/or to
9565 *** bug-libtool@gnu.org
9575 MAGIC_CMD="$lt_save_MAGIC_CMD"
9580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9581 if test -n "$MAGIC_CMD"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9583 $as_echo "$MAGIC_CMD" >&6; }
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9599 # Use C for the default configuration in the libtool script
9603 ac_cpp='$CPP $CPPFLAGS'
9604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9609 # Source file extension for C test sources.
9612 # Object file extension for compiled C test sources.
9616 # Code to be used in simple compile tests
9617 lt_simple_compile_test_code="int some_variable = 0;"
9619 # Code to be used in simple link tests
9620 lt_simple_link_test_code='int main(){return(0);}'
9628 # If no C compiler was specified, use CC.
9631 # If no C compiler flags were specified, use CFLAGS.
9632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9634 # Allow CC to be a program name with arguments.
9637 # Save the default compiler, since it gets overwritten when the other
9638 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9639 compiler_DEFAULT=$CC
9641 # save warnings/boilerplate of simple test code
9642 ac_outfile=conftest.$ac_objext
9643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9645 _lt_compiler_boilerplate=`cat conftest.err`
9648 ac_outfile=conftest.$ac_objext
9649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9651 _lt_linker_boilerplate=`cat conftest.err`
9656 ## There is no encapsulation within the following macros, do not change
9657 ## the running order or otherwise move them around unless you know exactly
9658 ## what you are doing...
9659 if test -n "$compiler"; then
9661 lt_prog_compiler_no_builtin_flag=
9663 if test "$GCC" = yes; then
9664 case $cc_basename in
9666 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9668 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9672 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9673 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9674 $as_echo_n "(cached) " >&6
9676 lt_cv_prog_compiler_rtti_exceptions=no
9677 ac_outfile=conftest.$ac_objext
9678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9679 lt_compiler_flag="-fno-rtti -fno-exceptions"
9680 # Insert the option either (1) after the last *FLAGS variable, or
9681 # (2) before a word containing "conftest.", or (3) at the end.
9682 # Note that $ac_compile itself does not contain backslashes and begins
9683 # with a dollar sign (not a hyphen), so the echo should work correctly.
9684 # The option is referenced via a variable to avoid confusing sed.
9685 lt_compile=`echo "$ac_compile" | $SED \
9686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9688 -e 's:$: $lt_compiler_flag:'`
9689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9690 (eval "$lt_compile" 2>conftest.err)
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 if (exit $ac_status) && test -s "$ac_outfile"; then
9695 # The compiler can only warn and ignore the option if not recognized
9696 # So say no if there are warnings other than the usual output.
9697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9699 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9700 lt_cv_prog_compiler_rtti_exceptions=yes
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9707 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9709 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9710 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9722 lt_prog_compiler_wl=
9723 lt_prog_compiler_pic=
9724 lt_prog_compiler_static=
9727 if test "$GCC" = yes; then
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_static='-static'
9733 # All AIX code is PIC.
9734 if test "$host_cpu" = ia64; then
9735 # AIX 5 now supports IA64 processor
9736 lt_prog_compiler_static='-Bstatic'
9743 # see comment about AmigaOS4 .so support
9744 lt_prog_compiler_pic='-fPIC'
9747 # FIXME: we need at least 68020 code to build shared libraries, but
9748 # adding the `-m68020' flag to GCC prevents building anything better,
9750 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9755 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9756 # PIC is the default for these OSes.
9759 mingw* | cygwin* | pw32* | os2* | cegcc*)
9760 # This hack is so that the source file can tell whether it is being
9761 # built for inclusion in a dll (and should export symbols for example).
9762 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9763 # (--disable-auto-import) libraries
9764 lt_prog_compiler_pic='-DDLL_EXPORT'
9767 darwin* | rhapsody*)
9768 # PIC is the default on this platform
9769 # Common symbols not allowed in MH_DYLIB files
9770 lt_prog_compiler_pic='-fno-common'
9774 # PIC is the default for Haiku.
9775 # The "-static" flag exists, but is broken.
9776 lt_prog_compiler_static=
9780 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9781 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9782 # sets the default TLS model and affects inlining.
9788 lt_prog_compiler_pic='-fPIC'
9794 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9795 # Instead, we relocate shared libraries at runtime.
9799 # Just because we use GCC doesn't mean we suddenly get shared libraries
9800 # on systems that don't support them.
9801 lt_prog_compiler_can_build_shared=no
9806 # QNX uses GNU C++, but need to define -shared option too, otherwise
9808 lt_prog_compiler_pic='-fPIC -shared'
9812 if test -d /usr/nec; then
9813 lt_prog_compiler_pic=-Kconform_pic
9818 lt_prog_compiler_pic='-fPIC'
9822 case $cc_basename in
9823 nvcc*) # Cuda Compiler Driver 2.2
9824 lt_prog_compiler_wl='-Xlinker '
9825 lt_prog_compiler_pic='-Xcompiler -fPIC'
9829 # PORTME Check for flag to pass linker flags through the system compiler.
9832 lt_prog_compiler_wl='-Wl,'
9833 if test "$host_cpu" = ia64; then
9834 # AIX 5 now supports IA64 processor
9835 lt_prog_compiler_static='-Bstatic'
9837 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9841 mingw* | cygwin* | pw32* | os2* | cegcc*)
9842 # This hack is so that the source file can tell whether it is being
9843 # built for inclusion in a dll (and should export symbols for example).
9844 lt_prog_compiler_pic='-DDLL_EXPORT'
9847 hpux9* | hpux10* | hpux11*)
9848 lt_prog_compiler_wl='-Wl,'
9849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9856 lt_prog_compiler_pic='+Z'
9859 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9860 lt_prog_compiler_static='${wl}-a ${wl}archive'
9863 irix5* | irix6* | nonstopux*)
9864 lt_prog_compiler_wl='-Wl,'
9865 # PIC (with -KPIC) is the default.
9866 lt_prog_compiler_static='-non_shared'
9869 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9870 case $cc_basename in
9871 # old Intel for x86_64 which still supported -KPIC.
9873 lt_prog_compiler_wl='-Wl,'
9874 lt_prog_compiler_pic='-KPIC'
9875 lt_prog_compiler_static='-static'
9877 # icc used to be incompatible with GCC.
9878 # ICC 10 doesn't accept -KPIC any more.
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-fPIC'
9882 lt_prog_compiler_static='-static'
9884 # Lahey Fortran 8.1.
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_pic='--shared'
9888 lt_prog_compiler_static='--static'
9891 # NAG Fortran compiler
9892 lt_prog_compiler_wl='-Wl,-Wl,,'
9893 lt_prog_compiler_pic='-PIC'
9894 lt_prog_compiler_static='-Bstatic'
9896 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9897 # Portland Group compilers (*not* the Pentium gcc compiler,
9898 # which looks to be a dead project)
9899 lt_prog_compiler_wl='-Wl,'
9900 lt_prog_compiler_pic='-fpic'
9901 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl='-Wl,'
9905 # All Alpha code is PIC.
9906 lt_prog_compiler_static='-non_shared'
9908 xl* | bgxl* | bgf* | mpixl*)
9909 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9910 lt_prog_compiler_wl='-Wl,'
9911 lt_prog_compiler_pic='-qpic'
9912 lt_prog_compiler_static='-qstaticlink'
9915 case `$CC -V 2>&1 | sed 5q` in
9916 *Sun\ F* | *Sun*Fortran*)
9917 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9920 lt_prog_compiler_wl=''
9924 lt_prog_compiler_pic='-KPIC'
9925 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_wl='-Wl,'
9934 lt_prog_compiler_pic='-KPIC'
9935 lt_prog_compiler_static='-Bstatic'
9939 # QNX uses GNU C++, but need to define -shared option too, otherwise
9941 lt_prog_compiler_pic='-fPIC -shared'
9944 osf3* | osf4* | osf5*)
9945 lt_prog_compiler_wl='-Wl,'
9946 # All OSF/1 code is PIC.
9947 lt_prog_compiler_static='-non_shared'
9951 lt_prog_compiler_static='-non_shared'
9955 lt_prog_compiler_pic='-KPIC'
9956 lt_prog_compiler_static='-Bstatic'
9957 case $cc_basename in
9958 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9959 lt_prog_compiler_wl='-Qoption ld ';;
9961 lt_prog_compiler_wl='-Wl,';;
9966 lt_prog_compiler_wl='-Qoption ld '
9967 lt_prog_compiler_pic='-PIC'
9968 lt_prog_compiler_static='-Bstatic'
9971 sysv4 | sysv4.2uw2* | sysv4.3*)
9972 lt_prog_compiler_wl='-Wl,'
9973 lt_prog_compiler_pic='-KPIC'
9974 lt_prog_compiler_static='-Bstatic'
9978 if test -d /usr/nec ;then
9979 lt_prog_compiler_pic='-Kconform_pic'
9980 lt_prog_compiler_static='-Bstatic'
9984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9985 lt_prog_compiler_wl='-Wl,'
9986 lt_prog_compiler_pic='-KPIC'
9987 lt_prog_compiler_static='-Bstatic'
9991 lt_prog_compiler_wl='-Wl,'
9992 lt_prog_compiler_can_build_shared=no
9996 lt_prog_compiler_pic='-pic'
9997 lt_prog_compiler_static='-Bstatic'
10001 lt_prog_compiler_can_build_shared=no
10007 # For platforms which do not support PIC, -DPIC is meaningless:
10009 lt_prog_compiler_pic=
10012 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10017 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10018 if ${lt_cv_prog_compiler_pic+:} false; then :
10019 $as_echo_n "(cached) " >&6
10021 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10024 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10025 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10028 # Check to make sure the PIC flag actually works.
10030 if test -n "$lt_prog_compiler_pic"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10032 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10033 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10034 $as_echo_n "(cached) " >&6
10036 lt_cv_prog_compiler_pic_works=no
10037 ac_outfile=conftest.$ac_objext
10038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10039 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10040 # Insert the option either (1) after the last *FLAGS variable, or
10041 # (2) before a word containing "conftest.", or (3) at the end.
10042 # Note that $ac_compile itself does not contain backslashes and begins
10043 # with a dollar sign (not a hyphen), so the echo should work correctly.
10044 # The option is referenced via a variable to avoid confusing sed.
10045 lt_compile=`echo "$ac_compile" | $SED \
10046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10048 -e 's:$: $lt_compiler_flag:'`
10049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10050 (eval "$lt_compile" 2>conftest.err)
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 if (exit $ac_status) && test -s "$ac_outfile"; then
10055 # The compiler can only warn and ignore the option if not recognized
10056 # So say no if there are warnings other than the usual output.
10057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10059 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10060 lt_cv_prog_compiler_pic_works=yes
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10067 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10069 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10070 case $lt_prog_compiler_pic in
10072 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10075 lt_prog_compiler_pic=
10076 lt_prog_compiler_can_build_shared=no
10092 # Check to make sure the static flag actually works.
10094 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10096 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10097 if ${lt_cv_prog_compiler_static_works+:} false; then :
10098 $as_echo_n "(cached) " >&6
10100 lt_cv_prog_compiler_static_works=no
10101 save_LDFLAGS="$LDFLAGS"
10102 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10103 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10104 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10105 # The linker can only warn and ignore the option if not recognized
10106 # So say no if there are warnings
10107 if test -s conftest.err; then
10108 # Append any errors to the config.log.
10109 cat conftest.err 1>&5
10110 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10112 if diff conftest.exp conftest.er2 >/dev/null; then
10113 lt_cv_prog_compiler_static_works=yes
10116 lt_cv_prog_compiler_static_works=yes
10120 LDFLAGS="$save_LDFLAGS"
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10124 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10126 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10129 lt_prog_compiler_static=
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10139 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10140 if ${lt_cv_prog_compiler_c_o+:} false; then :
10141 $as_echo_n "(cached) " >&6
10143 lt_cv_prog_compiler_c_o=no
10144 $RM -r conftest 2>/dev/null
10148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10150 lt_compiler_flag="-o out/conftest2.$ac_objext"
10151 # Insert the option either (1) after the last *FLAGS variable, or
10152 # (2) before a word containing "conftest.", or (3) at the end.
10153 # Note that $ac_compile itself does not contain backslashes and begins
10154 # with a dollar sign (not a hyphen), so the echo should work correctly.
10155 lt_compile=`echo "$ac_compile" | $SED \
10156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10158 -e 's:$: $lt_compiler_flag:'`
10159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10160 (eval "$lt_compile" 2>out/conftest.err)
10162 cat out/conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10166 # The compiler can only warn and ignore the option if not recognized
10167 # So say no if there are warnings
10168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10171 lt_cv_prog_compiler_c_o=yes
10176 # SGI C++ compiler will create directory out/ii_files/ for
10177 # template instantiation
10178 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10179 $RM out/* && rmdir out
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10186 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10195 if ${lt_cv_prog_compiler_c_o+:} false; then :
10196 $as_echo_n "(cached) " >&6
10198 lt_cv_prog_compiler_c_o=no
10199 $RM -r conftest 2>/dev/null
10203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10205 lt_compiler_flag="-o out/conftest2.$ac_objext"
10206 # Insert the option either (1) after the last *FLAGS variable, or
10207 # (2) before a word containing "conftest.", or (3) at the end.
10208 # Note that $ac_compile itself does not contain backslashes and begins
10209 # with a dollar sign (not a hyphen), so the echo should work correctly.
10210 lt_compile=`echo "$ac_compile" | $SED \
10211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10213 -e 's:$: $lt_compiler_flag:'`
10214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10215 (eval "$lt_compile" 2>out/conftest.err)
10217 cat out/conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10221 # The compiler can only warn and ignore the option if not recognized
10222 # So say no if there are warnings
10223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10226 lt_cv_prog_compiler_c_o=yes
10231 # SGI C++ compiler will create directory out/ii_files/ for
10232 # template instantiation
10233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10234 $RM out/* && rmdir out
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10246 hard_links="nottested"
10247 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10248 # do not overwrite the value of need_locks provided by the user
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10250 $as_echo_n "checking if we can lock with hard links... " >&6; }
10253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10255 ln conftest.a conftest.b 2>&5 || hard_links=no
10256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10258 $as_echo "$hard_links" >&6; }
10259 if test "$hard_links" = no; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10261 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10274 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10277 allow_undefined_flag=
10278 always_export_symbols=no
10280 archive_expsym_cmds=
10281 compiler_needs_object=no
10282 enable_shared_with_static_runtimes=no
10283 export_dynamic_flag_spec=
10284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10285 hardcode_automatic=no
10287 hardcode_direct_absolute=no
10288 hardcode_libdir_flag_spec=
10289 hardcode_libdir_flag_spec_ld=
10290 hardcode_libdir_separator=
10291 hardcode_minus_L=no
10292 hardcode_shlibpath_var=unsupported
10294 link_all_deplibs=unknown
10296 module_expsym_cmds=
10297 old_archive_from_new_cmds=
10298 old_archive_from_expsyms_cmds=
10299 thread_safe_flag_spec=
10300 whole_archive_flag_spec=
10301 # include_expsyms should be a list of space-separated symbols to be *always*
10302 # included in the symbol list
10304 # exclude_expsyms can be an extended regexp of symbols to exclude
10305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10307 # as well as any symbol that contains `d'.
10308 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10310 # platforms (ab)use it in PIC code, but their linkers get confused if
10311 # the symbol is explicitly referenced. Since portable code cannot
10312 # rely on this symbol name, it's probably fine to never include it in
10313 # preloaded symbol tables.
10314 # Exclude shared library initialization/finalization symbols.
10315 extract_expsyms_cmds=
10318 cygwin* | mingw* | pw32* | cegcc*)
10319 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10320 # When not using gcc, we currently assume that we are using
10321 # Microsoft Visual C++.
10322 if test "$GCC" != yes; then
10327 # we just hope/assume this is gcc and not c89 (= MSVC++)
10337 # On some targets, GNU ld is compatible enough with the native linker
10338 # that we're better off using the native interface for both.
10339 lt_use_gnu_ld_interface=no
10340 if test "$with_gnu_ld" = yes; then
10343 # The AIX port of GNU ld has always aspired to compatibility
10344 # with the native linker. However, as the warning in the GNU ld
10345 # block says, versions before 2.19.5* couldn't really create working
10346 # shared libraries, regardless of the interface used.
10347 case `$LD -v 2>&1` in
10348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10350 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10352 lt_use_gnu_ld_interface=yes
10357 lt_use_gnu_ld_interface=yes
10362 if test "$lt_use_gnu_ld_interface" = yes; then
10363 # If archive_cmds runs LD, not CC, wlarc should be empty
10366 # Set some defaults for GNU ld with shared library support. These
10367 # are reset later if shared libraries are not supported. Putting them
10368 # here allows them to be overridden if necessary.
10369 runpath_var=LD_RUN_PATH
10370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371 export_dynamic_flag_spec='${wl}--export-dynamic'
10372 # ancient GNU ld didn't support --whole-archive et. al.
10373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10374 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10376 whole_archive_flag_spec=
10378 supports_anon_versioning=no
10379 case `$LD -v 2>&1` in
10380 *GNU\ gold*) supports_anon_versioning=yes ;;
10381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10384 *\ 2.11.*) ;; # other 2.11 versions
10385 *) supports_anon_versioning=yes ;;
10388 # See if GNU ld supports shared libraries.
10391 # On AIX/PPC, the GNU linker is very broken
10392 if test "$host_cpu" != ia64; then
10396 *** Warning: the GNU linker, at least up to release 2.19, is reported
10397 *** to be unable to reliably create shared libraries on AIX.
10398 *** Therefore, libtool is disabling shared libraries support. If you
10399 *** really care for shared libraries, you may want to install binutils
10400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10401 *** You will then need to restart the configuration process.
10410 # see comment about AmigaOS4 .so support
10411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10412 archive_expsym_cmds=''
10415 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)'
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_minus_L=yes
10423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424 allow_undefined_flag=unsupported
10425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10426 # support --undefined. This deserves some investigation. FIXME
10427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10433 cygwin* | mingw* | pw32* | cegcc*)
10434 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10435 # as there is no search path for DLLs.
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 export_dynamic_flag_spec='${wl}--export-all-symbols'
10438 allow_undefined_flag=unsupported
10439 always_export_symbols=no
10440 enable_shared_with_static_runtimes=yes
10441 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'
10442 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446 # If the export-symbols file already is a .def file (1st line
10447 # is EXPORTS), use it as is; otherwise, prepend...
10448 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10449 cp $export_symbols $output_objdir/$soname.def;
10451 echo EXPORTS > $output_objdir/$soname.def;
10452 cat $export_symbols >> $output_objdir/$soname.def;
10454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462 link_all_deplibs=yes
10467 hardcode_shlibpath_var=no
10468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469 export_dynamic_flag_spec='${wl}-E'
10470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10471 # Instead, shared libraries are loaded at an image base (0x10000000 by
10472 # default) and relocated if they conflict, which is a slow very memory
10473 # consuming and fragmenting process. To avoid this, we pick a random,
10474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10477 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'
10480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10482 if test "$host_os" = linux-dietlibc; then
10483 case $cc_basename in
10484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10488 && test "$tmp_diet" = no
10490 tmp_addflag=' $pic_flag'
10491 tmp_sharedflag='-shared'
10492 case $cc_basename,$host_cpu in
10493 pgcc*) # Portland Group C compiler
10494 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'
10495 tmp_addflag=' $pic_flag'
10497 pgf77* | pgf90* | pgf95* | pgfortran*)
10498 # Portland Group f77 and f90 compilers
10499 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'
10500 tmp_addflag=' $pic_flag -Mnomain' ;;
10501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10502 tmp_addflag=' -i_dynamic' ;;
10503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10504 tmp_addflag=' -i_dynamic -nofor_main' ;;
10505 ifc* | ifort*) # Intel Fortran compiler
10506 tmp_addflag=' -nofor_main' ;;
10507 lf95*) # Lahey Fortran 8.1
10508 whole_archive_flag_spec=
10509 tmp_sharedflag='--shared' ;;
10510 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10511 tmp_sharedflag='-qmkshrobj'
10513 nvcc*) # Cuda Compiler Driver 2.2
10514 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'
10515 compiler_needs_object=yes
10518 case `$CC -V 2>&1 | sed 5q` in
10519 *Sun\ C*) # Sun C 5.9
10520 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'
10521 compiler_needs_object=yes
10522 tmp_sharedflag='-G' ;;
10523 *Sun\ F*) # Sun Fortran 8.3
10524 tmp_sharedflag='-G' ;;
10526 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528 if test "x$supports_anon_versioning" = xyes; then
10529 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531 echo "local: *; };" >> $output_objdir/$libname.ver~
10532 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10535 case $cc_basename in
10536 xlf* | bgf* | bgxlf* | mpixlf*)
10537 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10538 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10539 hardcode_libdir_flag_spec=
10540 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10541 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10542 if test "x$supports_anon_versioning" = xyes; then
10543 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10545 echo "local: *; };" >> $output_objdir/$libname.ver~
10546 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10557 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10566 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10570 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10571 *** create shared libraries on Solaris systems. Therefore, libtool
10572 *** is disabling shared libraries support. We urge you to upgrade GNU
10573 *** binutils to release 2.9.1 or newer. Another option is to modify
10574 *** your PATH or compiler configuration so that the native linker is
10575 *** used, and then restart.
10578 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10587 case `$LD -v 2>&1` in
10588 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10592 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10593 *** reliably create shared libraries on SCO systems. Therefore, libtool
10594 *** is disabling shared libraries support. We urge you to upgrade GNU
10595 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10596 *** your PATH or compiler configuration so that the native linker is
10597 *** used, and then restart.
10602 # For security reasons, it is highly recommended that you always
10603 # use absolute paths for naming shared libraries, and exclude the
10604 # DT_RUNPATH tag from executables and libraries. But doing so
10605 # requires that you compile everything twice, which is a pain.
10606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10618 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10620 hardcode_direct=yes
10621 hardcode_shlibpath_var=no
10625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10634 if test "$ld_shlibs" = no; then
10636 hardcode_libdir_flag_spec=
10637 export_dynamic_flag_spec=
10638 whole_archive_flag_spec=
10641 # PORTME fill in a description of your system's linker (not GNU ld)
10644 allow_undefined_flag=unsupported
10645 always_export_symbols=yes
10646 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'
10647 # Note: this linker hardcodes the directories in LIBPATH if there
10648 # are no directories specified by -L.
10649 hardcode_minus_L=yes
10650 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10651 # Neither direct hardcoding nor static linking is supported with a
10653 hardcode_direct=unsupported
10658 if test "$host_cpu" = ia64; then
10659 # On IA64, the linker does run time linking by default, so we don't
10660 # have to do anything special.
10661 aix_use_runtimelinking=no
10662 exp_sym_flag='-Bexport'
10665 # If we're using GNU nm, then we don't want the "-C" option.
10666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10667 # Also, AIX nm treats weak defined symbols like other global
10668 # defined symbols, whereas GNU nm marks them as "W".
10669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10670 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'
10672 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'
10674 aix_use_runtimelinking=no
10676 # Test if we are trying to use run time linking or normal
10677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10678 # need to do runtime linking.
10679 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10680 for ld_flag in $LDFLAGS; do
10681 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10682 aix_use_runtimelinking=yes
10689 exp_sym_flag='-bexport'
10690 no_entry_flag='-bnoentry'
10693 # When large executables or shared objects are built, AIX ld can
10694 # have problems creating the table of contents. If linking a library
10695 # or program results in "error TOC overflow" add -mminimal-toc to
10696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10700 hardcode_direct=yes
10701 hardcode_direct_absolute=yes
10702 hardcode_libdir_separator=':'
10703 link_all_deplibs=yes
10704 file_list_spec='${wl}-f,'
10706 if test "$GCC" = yes; then
10707 case $host_os in aix4.[012]|aix4.[012].*)
10708 # We only want to do this on AIX 4.2 and lower, the check
10709 # below for broken collect2 doesn't work under 4.3+
10710 collect2name=`${CC} -print-prog-name=collect2`
10711 if test -f "$collect2name" &&
10712 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10714 # We have reworked collect2
10717 # We have old collect2
10718 hardcode_direct=unsupported
10719 # It fails to find uninstalled libraries when the uninstalled
10720 # path is not listed in the libpath. Setting hardcode_minus_L
10721 # to unsupported forces relinking
10722 hardcode_minus_L=yes
10723 hardcode_libdir_flag_spec='-L$libdir'
10724 hardcode_libdir_separator=
10728 shared_flag='-shared'
10729 if test "$aix_use_runtimelinking" = yes; then
10730 shared_flag="$shared_flag "'${wl}-G'
10734 if test "$host_cpu" = ia64; then
10735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10736 # chokes on -Wl,-G. The following line is correct:
10739 if test "$aix_use_runtimelinking" = yes; then
10740 shared_flag='${wl}-G'
10742 shared_flag='${wl}-bM:SRE'
10747 export_dynamic_flag_spec='${wl}-bexpall'
10748 # It seems that -bexpall does not export symbols beginning with
10749 # underscore (_), so it is better to generate a list of symbols to export.
10750 always_export_symbols=yes
10751 if test "$aix_use_runtimelinking" = yes; then
10752 # Warning - without using the other runtime loading flags (-brtl),
10753 # -berok will link without error, but may produce a broken library.
10754 allow_undefined_flag='-berok'
10755 # Determine the default libpath from the value encoded in an
10756 # empty executable.
10757 if test "${lt_cv_aix_libpath+set}" = set; then
10758 aix_libpath=$lt_cv_aix_libpath
10760 if ${lt_cv_aix_libpath_+:} false; then :
10761 $as_echo_n "(cached) " >&6
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10774 if ac_fn_c_try_link "$LINENO"; then :
10776 lt_aix_libpath_sed='
10777 /Import File Strings/,/^$/ {
10779 s/^0 *\([^ ]*\) *$/\1/
10783 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784 # Check for a 64-bit object if we didn't find anything.
10785 if test -z "$lt_cv_aix_libpath_"; then
10786 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 if test -z "$lt_cv_aix_libpath_"; then
10792 lt_cv_aix_libpath_="/usr/lib:/lib"
10797 aix_libpath=$lt_cv_aix_libpath_
10800 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10801 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"
10803 if test "$host_cpu" = ia64; then
10804 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10805 allow_undefined_flag="-z nodefs"
10806 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"
10808 # Determine the default libpath from the value encoded in an
10809 # empty executable.
10810 if test "${lt_cv_aix_libpath+set}" = set; then
10811 aix_libpath=$lt_cv_aix_libpath
10813 if ${lt_cv_aix_libpath_+:} false; then :
10814 $as_echo_n "(cached) " >&6
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10827 if ac_fn_c_try_link "$LINENO"; then :
10829 lt_aix_libpath_sed='
10830 /Import File Strings/,/^$/ {
10832 s/^0 *\([^ ]*\) *$/\1/
10836 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10837 # Check for a 64-bit object if we didn't find anything.
10838 if test -z "$lt_cv_aix_libpath_"; then
10839 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10842 rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 if test -z "$lt_cv_aix_libpath_"; then
10845 lt_cv_aix_libpath_="/usr/lib:/lib"
10850 aix_libpath=$lt_cv_aix_libpath_
10853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10854 # Warning - without using the other run time loading flags,
10855 # -berok will link without error, but may produce a broken library.
10856 no_undefined_flag=' ${wl}-bernotok'
10857 allow_undefined_flag=' ${wl}-berok'
10858 if test "$with_gnu_ld" = yes; then
10859 # We only use this code for GNU lds that support --whole-archive.
10860 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10862 # Exported symbols can be pulled into shared objects from archives
10863 whole_archive_flag_spec='$convenience'
10865 archive_cmds_need_lc=yes
10866 # This is similar to how AIX traditionally builds its shared libraries.
10867 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'
10875 # see comment about AmigaOS4 .so support
10876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877 archive_expsym_cmds=''
10880 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)'
10881 hardcode_libdir_flag_spec='-L$libdir'
10882 hardcode_minus_L=yes
10888 export_dynamic_flag_spec=-rdynamic
10891 cygwin* | mingw* | pw32* | cegcc*)
10892 # When not using gcc, we currently assume that we are using
10893 # Microsoft Visual C++.
10894 # hardcode_libdir_flag_spec is actually meaningless, as there is
10895 # no search path for DLLs.
10896 case $cc_basename in
10899 hardcode_libdir_flag_spec=' '
10900 allow_undefined_flag=unsupported
10901 always_export_symbols=yes
10903 # Tell ltmain to make .lib files, not .a files.
10905 # Tell ltmain to make .dll files, not .so files.
10907 # FIXME: Setting linknames here is a bad hack.
10908 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10909 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10912 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10914 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10916 # The linker will not automatically build a static lib if we build a DLL.
10917 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10918 enable_shared_with_static_runtimes=yes
10919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10921 old_postinstall_cmds='chmod 644 $oldlib'
10922 postlink_cmds='lt_outputfile="@OUTPUT@"~
10923 lt_tool_outputfile="@TOOL_OUTPUT@"~
10924 case $lt_outputfile in
10927 lt_outputfile="$lt_outputfile.exe"
10928 lt_tool_outputfile="$lt_tool_outputfile.exe"
10931 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10932 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10933 $RM "$lt_outputfile.manifest";
10937 # Assume MSVC wrapper
10938 hardcode_libdir_flag_spec=' '
10939 allow_undefined_flag=unsupported
10940 # Tell ltmain to make .lib files, not .a files.
10942 # Tell ltmain to make .dll files, not .so files.
10944 # FIXME: Setting linknames here is a bad hack.
10945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10946 # The linker will automatically build a .lib file if we build a DLL.
10947 old_archive_from_new_cmds='true'
10948 # FIXME: Should let the user specify the lib program.
10949 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10950 enable_shared_with_static_runtimes=yes
10955 darwin* | rhapsody*)
10958 archive_cmds_need_lc=no
10960 hardcode_automatic=yes
10961 hardcode_shlibpath_var=unsupported
10962 if test "$lt_cv_ld_force_load" = "yes"; then
10963 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\"`'
10965 whole_archive_flag_spec=''
10967 link_all_deplibs=yes
10968 allow_undefined_flag="$_lt_dar_allow_undefined"
10969 case $cc_basename in
10970 ifort*) _lt_dar_can_shared=yes ;;
10971 *) _lt_dar_can_shared=$GCC ;;
10973 if test "$_lt_dar_can_shared" = "yes"; then
10974 output_verbose_link_cmd=func_echo_all
10975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10977 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}"
10978 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}"
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_libdir_flag_spec='-L$libdir'
10989 hardcode_shlibpath_var=no
10996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10997 # support. Future versions do this automatically, but an explicit c++rt0.o
10998 # does not break anything, and helps significantly (at the cost of a little
11001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11002 hardcode_libdir_flag_spec='-R$libdir'
11003 hardcode_direct=yes
11004 hardcode_shlibpath_var=no
11007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11010 hardcode_direct=yes
11011 hardcode_minus_L=yes
11012 hardcode_shlibpath_var=no
11015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11016 freebsd* | dragonfly*)
11017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11018 hardcode_libdir_flag_spec='-R$libdir'
11019 hardcode_direct=yes
11020 hardcode_shlibpath_var=no
11024 if test "$GCC" = yes; then
11025 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'
11027 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'
11029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11030 hardcode_libdir_separator=:
11031 hardcode_direct=yes
11033 # hardcode_minus_L: Not really in the search PATH,
11034 # but as the default location of the library.
11035 hardcode_minus_L=yes
11036 export_dynamic_flag_spec='${wl}-E'
11040 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11041 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11045 if test "$with_gnu_ld" = no; then
11046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11047 hardcode_libdir_flag_spec_ld='+b $libdir'
11048 hardcode_libdir_separator=:
11049 hardcode_direct=yes
11050 hardcode_direct_absolute=yes
11051 export_dynamic_flag_spec='${wl}-E'
11052 # hardcode_minus_L: Not really in the search PATH,
11053 # but as the default location of the library.
11054 hardcode_minus_L=yes
11059 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11062 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11081 # Older versions of the 11.00 compiler do not understand -b yet
11082 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11084 $as_echo_n "checking if $CC understands -b... " >&6; }
11085 if ${lt_cv_prog_compiler__b+:} false; then :
11086 $as_echo_n "(cached) " >&6
11088 lt_cv_prog_compiler__b=no
11089 save_LDFLAGS="$LDFLAGS"
11090 LDFLAGS="$LDFLAGS -b"
11091 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11093 # The linker can only warn and ignore the option if not recognized
11094 # So say no if there are warnings
11095 if test -s conftest.err; then
11096 # Append any errors to the config.log.
11097 cat conftest.err 1>&5
11098 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11100 if diff conftest.exp conftest.er2 >/dev/null; then
11101 lt_cv_prog_compiler__b=yes
11104 lt_cv_prog_compiler__b=yes
11108 LDFLAGS="$save_LDFLAGS"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11112 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11114 if test x"$lt_cv_prog_compiler__b" = xyes; then
11115 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11117 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11123 if test "$with_gnu_ld" = no; then
11124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11125 hardcode_libdir_separator=:
11130 hardcode_shlibpath_var=no
11133 hardcode_direct=yes
11134 hardcode_direct_absolute=yes
11135 export_dynamic_flag_spec='${wl}-E'
11137 # hardcode_minus_L: Not really in the search PATH,
11138 # but as the default location of the library.
11139 hardcode_minus_L=yes
11145 irix5* | irix6* | nonstopux*)
11146 if test "$GCC" = yes; then
11147 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'
11148 # Try to use the -exported_symbol ld option, if it does not
11149 # work, assume that -exports_file does not work either and
11150 # implicitly export all symbols.
11151 # This should be the same for all languages, so no per-tag cache variable.
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11153 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11154 if ${lt_cv_irix_exported_symbol+:} false; then :
11155 $as_echo_n "(cached) " >&6
11157 save_LDFLAGS="$LDFLAGS"
11158 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 int foo (void) { return 0; }
11163 if ac_fn_c_try_link "$LINENO"; then :
11164 lt_cv_irix_exported_symbol=yes
11166 lt_cv_irix_exported_symbol=no
11168 rm -f core conftest.err conftest.$ac_objext \
11169 conftest$ac_exeext conftest.$ac_ext
11170 LDFLAGS="$save_LDFLAGS"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11173 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11174 if test "$lt_cv_irix_exported_symbol" = yes; then
11175 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'
11178 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'
11179 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'
11181 archive_cmds_need_lc='no'
11182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11183 hardcode_libdir_separator=:
11185 link_all_deplibs=yes
11189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11192 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11194 hardcode_libdir_flag_spec='-R$libdir'
11195 hardcode_direct=yes
11196 hardcode_shlibpath_var=no
11200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11201 hardcode_direct=yes
11202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11203 hardcode_libdir_separator=:
11204 hardcode_shlibpath_var=no
11211 if test -f /usr/libexec/ld.so; then
11212 hardcode_direct=yes
11213 hardcode_shlibpath_var=no
11214 hardcode_direct_absolute=yes
11215 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11216 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11217 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11218 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11219 export_dynamic_flag_spec='${wl}-E'
11222 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11224 hardcode_libdir_flag_spec='-R$libdir'
11227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11238 hardcode_libdir_flag_spec='-L$libdir'
11239 hardcode_minus_L=yes
11240 allow_undefined_flag=unsupported
11241 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'
11242 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11246 if test "$GCC" = yes; then
11247 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11248 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'
11250 allow_undefined_flag=' -expect_unresolved \*'
11251 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'
11253 archive_cmds_need_lc='no'
11254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11255 hardcode_libdir_separator=:
11258 osf4* | osf5*) # as osf3* with the addition of -msym flag
11259 if test "$GCC" = yes; then
11260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11261 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'
11262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11264 allow_undefined_flag=' -expect_unresolved \*'
11265 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'
11266 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~
11267 $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'
11269 # Both c and cxx compiler support -rpath directly
11270 hardcode_libdir_flag_spec='-rpath $libdir'
11272 archive_cmds_need_lc='no'
11273 hardcode_libdir_separator=:
11277 no_undefined_flag=' -z defs'
11278 if test "$GCC" = yes; then
11280 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282 $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'
11284 case `$CC -V 2>&1` in
11287 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11293 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11299 hardcode_libdir_flag_spec='-R$libdir'
11300 hardcode_shlibpath_var=no
11302 solaris2.[0-5] | solaris2.[0-5].*) ;;
11304 # The compiler driver will combine and reorder linker options,
11305 # but understands `-z linker_flag'. GCC discards it without `$wl',
11306 # but is careful enough not to reorder.
11307 # Supported since Solaris 2.6 (maybe 2.5.1?)
11308 if test "$GCC" = yes; then
11309 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11311 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11315 link_all_deplibs=yes
11319 if test "x$host_vendor" = xsequent; then
11320 # Use $CC to link under sequent, because it throws in some extra .o
11321 # files that make .init and .fini sections work.
11322 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11326 hardcode_libdir_flag_spec='-L$libdir'
11327 hardcode_direct=yes
11328 hardcode_minus_L=yes
11329 hardcode_shlibpath_var=no
11333 case $host_vendor in
11335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336 hardcode_direct=yes # is this really true???
11339 ## LD is ld it makes a PLAMLIB
11340 ## CC just makes a GrossModule.
11341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11342 reload_cmds='$CC -r -o $output$reload_objs'
11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11350 runpath_var='LD_RUN_PATH'
11351 hardcode_shlibpath_var=no
11355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 hardcode_shlibpath_var=no
11357 export_dynamic_flag_spec='-Bexport'
11361 if test -d /usr/nec; then
11362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363 hardcode_shlibpath_var=no
11364 runpath_var=LD_RUN_PATH
11365 hardcode_runpath_var=yes
11370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11371 no_undefined_flag='${wl}-z,text'
11372 archive_cmds_need_lc=no
11373 hardcode_shlibpath_var=no
11374 runpath_var='LD_RUN_PATH'
11376 if test "$GCC" = yes; then
11377 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11385 sysv5* | sco3.2v5* | sco5v6*)
11386 # Note: We can NOT use -z defs as we might desire, because we do not
11387 # link with -lc, and that would cause any symbols used from libc to
11388 # always be unresolved, which means just about no library would
11389 # ever link correctly. If we're not using GNU ld we use -z text
11390 # though, which does catch some bad symbols but isn't as heavy-handed
11392 no_undefined_flag='${wl}-z,text'
11393 allow_undefined_flag='${wl}-z,nodefs'
11394 archive_cmds_need_lc=no
11395 hardcode_shlibpath_var=no
11396 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11397 hardcode_libdir_separator=':'
11398 link_all_deplibs=yes
11399 export_dynamic_flag_spec='${wl}-Bexport'
11400 runpath_var='LD_RUN_PATH'
11402 if test "$GCC" = yes; then
11403 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11413 hardcode_libdir_flag_spec='-L$libdir'
11414 hardcode_shlibpath_var=no
11422 if test x$host_vendor = xsni; then
11424 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11425 export_dynamic_flag_spec='${wl}-Blargedynsym'
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11432 $as_echo "$ld_shlibs" >&6; }
11433 test "$ld_shlibs" = no && can_build_shared=no
11435 with_gnu_ld=$with_gnu_ld
11452 # Do we need to explicitly link libc?
11454 case "x$archive_cmds_need_lc" in
11456 # Assume -lc should be added
11457 archive_cmds_need_lc=yes
11459 if test "$enable_shared" = yes && test "$GCC" = yes; then
11460 case $archive_cmds in
11462 # FIXME: we may have to deal with multi-command sequences.
11465 # Test whether the compiler implicitly links with -lc since on some
11466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11467 # to ld, don't add -lc before -lgcc.
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11469 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11470 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11471 $as_echo_n "(cached) " >&6
11474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11477 (eval $ac_compile) 2>&5
11479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480 test $ac_status = 0; } 2>conftest.err; then
11483 libobjs=conftest.$ac_objext
11485 wl=$lt_prog_compiler_wl
11486 pic_flag=$lt_prog_compiler_pic
11492 lt_save_allow_undefined_flag=$allow_undefined_flag
11493 allow_undefined_flag=
11494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11495 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498 test $ac_status = 0; }
11500 lt_cv_archive_cmds_need_lc=no
11502 lt_cv_archive_cmds_need_lc=yes
11504 allow_undefined_flag=$lt_save_allow_undefined_flag
11506 cat conftest.err 1>&5
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11512 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11513 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11677 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11679 if test "$GCC" = yes; then
11681 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11682 *) lt_awk_arg="/^libraries:/" ;;
11685 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11686 *) lt_sed_strip_eq="s,=/,/,g" ;;
11688 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11689 case $lt_search_path_spec in
11691 # if the path contains ";" then we assume it to be the separator
11692 # otherwise default to the standard path separator (i.e. ":") - it is
11693 # assumed that no part of a normal pathname contains ";" but that should
11694 # okay in the real world where ";" in dirpaths is itself problematic.
11695 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11698 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11701 # Ok, now we have the path, separated by spaces, we can step through it
11702 # and add multilib dir if necessary.
11703 lt_tmp_lt_search_path_spec=
11704 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11705 for lt_sys_path in $lt_search_path_spec; do
11706 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11707 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11709 test -d "$lt_sys_path" && \
11710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11713 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11714 BEGIN {RS=" "; FS="/|\n";} {
11717 for (lt_i = NF; lt_i > 0; lt_i--) {
11718 if ($lt_i != "" && $lt_i != ".") {
11719 if ($lt_i == "..") {
11722 if (lt_count == 0) {
11723 lt_foo="/" $lt_i lt_foo;
11730 if (lt_foo != "") { lt_freq[lt_foo]++; }
11731 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11733 # AWK program above erroneously prepends '/' to C:/dos/paths
11736 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11737 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11739 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11743 library_names_spec=
11744 libname_spec='lib$name'
11748 postuninstall_cmds=
11752 shlibpath_overrides_runpath=unknown
11754 dynamic_linker="$host_os ld.so"
11755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11756 need_lib_prefix=unknown
11757 hardcode_into_libs=no
11759 # when you set need_version to no, make sure it does not cause -set_version
11760 # flags to be left without arguments
11761 need_version=unknown
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11767 shlibpath_var=LIBPATH
11769 # AIX 3 has no versioning support, so we append a major version to the name.
11770 soname_spec='${libname}${release}${shared_ext}$major'
11777 hardcode_into_libs=yes
11778 if test "$host_cpu" = ia64; then
11779 # AIX 5 supports IA64
11780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11781 shlibpath_var=LD_LIBRARY_PATH
11783 # With GCC up to 2.95.x, collect2 would create an import file
11784 # for dependence libraries. The import file would start with
11785 # the line `#! .'. This would cause the generated library to
11786 # depend on `.', always an invalid library. This was fixed in
11787 # development snapshots of GCC prior to 3.0.
11789 aix4 | aix4.[01] | aix4.[01].*)
11790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11792 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11795 can_build_shared=no
11799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11800 # soname into executable. Probably we can add versioning support to
11801 # collect2, so additional links can be useful in future.
11802 if test "$aix_use_runtimelinking" = yes; then
11803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11804 # instead of lib<name>.a to let people know that these are not
11805 # typical AIX shared libraries.
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 # We preserve .a as extension for shared libraries through AIX4.2
11809 # and later when we are not doing run time linking.
11810 library_names_spec='${libname}${release}.a $libname.a'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11813 shlibpath_var=LIBPATH
11820 # Since July 2007 AmigaOS4 officially supports .so libraries.
11821 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825 library_names_spec='$libname.ixlibrary $libname.a'
11826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11827 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'
11833 library_names_spec='${libname}${shared_ext}'
11834 dynamic_linker="$host_os ld.so"
11835 shlibpath_var=LIBRARY_PATH
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11846 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11847 # the default ld.so.conf also contains /usr/contrib/lib and
11848 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11849 # libtool to hard-code these into programs
11852 cygwin* | mingw* | pw32* | cegcc*)
11853 version_type=windows
11858 case $GCC,$cc_basename in
11861 library_names_spec='$libname.dll.a'
11862 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11863 postinstall_cmds='base_file=`basename \${file}`~
11864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11865 dldir=$destdir/`dirname \$dlpath`~
11866 test -d \$dldir || mkdir -p \$dldir~
11867 $install_prog $dir/$dlname \$dldir/$dlname~
11868 chmod a+x \$dldir/$dlname~
11869 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11870 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11873 dlpath=$dir/\$dldll~
11875 shlibpath_overrides_runpath=yes
11879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11882 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11885 # MinGW DLLs use traditional 'lib' prefix
11886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11889 # pw32 DLLs use 'pw' prefix rather than 'lib'
11890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893 dynamic_linker='Win32 ld.exe'
11898 libname_spec='$name'
11899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900 library_names_spec='${libname}.dll.lib'
11904 sys_lib_search_path_spec=
11907 for lt_path in $LIB
11910 # Let DOS variable expansion print the short 8.3 style file name.
11911 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11912 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11915 # Convert to MSYS style.
11916 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11919 # Convert to unix form, then to dos form, then back to unix form
11920 # but this time dos style (no spaces!) so that the unix form looks
11921 # like /cygdrive/c/PROGRA~1:/cygdr...
11922 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11923 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11924 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11927 sys_lib_search_path_spec="$LIB"
11928 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11929 # It is most probably a Windows format PATH.
11930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11934 # FIXME: find the short name or the path components, as spaces are
11935 # common. (e.g. "Program Files" -> "PROGRA~1")
11939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11940 postinstall_cmds='base_file=`basename \${file}`~
11941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11942 dldir=$destdir/`dirname \$dlpath`~
11943 test -d \$dldir || mkdir -p \$dldir~
11944 $install_prog $dir/$dlname \$dldir/$dlname'
11945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11946 dlpath=$dir/\$dldll~
11948 shlibpath_overrides_runpath=yes
11949 dynamic_linker='Win32 link.exe'
11953 # Assume MSVC wrapper
11954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11955 dynamic_linker='Win32 ld.exe'
11958 # FIXME: first we should search . and the directory the executable is in
11962 darwin* | rhapsody*)
11963 dynamic_linker="$host_os dyld"
11964 version_type=darwin
11967 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11968 soname_spec='${libname}${release}${major}$shared_ext'
11969 shlibpath_overrides_runpath=yes
11970 shlibpath_var=DYLD_LIBRARY_PATH
11971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11973 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 shlibpath_var=LD_LIBRARY_PATH
11990 freebsd* | dragonfly*)
11991 # DragonFly does not have aout. When/if they implement a new
11992 # versioning mechanism, adjust this.
11993 if test -x /usr/bin/objformat; then
11994 objformat=`/usr/bin/objformat`
11997 freebsd[123]*) objformat=aout ;;
11998 *) objformat=elf ;;
12001 version_type=freebsd-$objformat
12002 case $version_type in
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12013 shlibpath_var=LD_LIBRARY_PATH
12016 shlibpath_overrides_runpath=yes
12018 freebsd3.[01]* | freebsdelf3.[01]*)
12019 shlibpath_overrides_runpath=yes
12020 hardcode_into_libs=yes
12022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12024 shlibpath_overrides_runpath=no
12025 hardcode_into_libs=yes
12027 *) # from 4.6 on, and DragonFly
12028 shlibpath_overrides_runpath=yes
12029 hardcode_into_libs=yes
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 shlibpath_var=LD_LIBRARY_PATH
12041 hardcode_into_libs=yes
12048 dynamic_linker="$host_os runtime_loader"
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12050 soname_spec='${libname}${release}${shared_ext}$major'
12051 shlibpath_var=LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes
12053 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12054 hardcode_into_libs=yes
12057 hpux9* | hpux10* | hpux11*)
12058 # Give a soname corresponding to the major version so that dld.sl refuses to
12059 # link against other versions.
12066 hardcode_into_libs=yes
12067 dynamic_linker="$host_os dld.so"
12068 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071 soname_spec='${libname}${release}${shared_ext}$major'
12072 if test "X$HPUX_IA64_MODE" = X32; then
12073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12081 hardcode_into_libs=yes
12082 dynamic_linker="$host_os dld.sl"
12083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12086 soname_spec='${libname}${release}${shared_ext}$major'
12087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12092 dynamic_linker="$host_os dld.sl"
12093 shlibpath_var=SHLIB_PATH
12094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12096 soname_spec='${libname}${release}${shared_ext}$major'
12099 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12100 postinstall_cmds='chmod 555 $lib'
12101 # or fails outright, so override atomically:
12102 install_override_mode=555
12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12110 soname_spec='${libname}${release}${shared_ext}$major'
12111 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=no
12114 hardcode_into_libs=yes
12117 irix5* | irix6* | nonstopux*)
12119 nonstopux*) version_type=nonstopux ;;
12121 if test "$lt_cv_prog_gnu_ld" = yes; then
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12132 irix5* | nonstopux*)
12133 libsuff= shlibsuff=
12136 case $LD in # libtool.m4 will add one of these switches to LD
12137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12138 libsuff= shlibsuff= libmagic=32-bit;;
12139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12140 libsuff=32 shlibsuff=N32 libmagic=N32;;
12141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12143 *) libsuff= shlibsuff= libmagic=never-match;;
12147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12148 shlibpath_overrides_runpath=no
12149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12151 hardcode_into_libs=yes
12154 # No shared lib support for Linux oldld, aout, or coff.
12155 linux*oldld* | linux*aout* | linux*coff*)
12159 # This must be Linux ELF.
12160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165 soname_spec='${libname}${release}${shared_ext}$major'
12166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12167 shlibpath_var=LD_LIBRARY_PATH
12168 shlibpath_overrides_runpath=no
12170 # Some binutils ld are patched to set DT_RUNPATH
12171 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12172 $as_echo_n "(cached) " >&6
12174 lt_cv_shlibpath_overrides_runpath=no
12175 save_LDFLAGS=$LDFLAGS
12176 save_libdir=$libdir
12177 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12178 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12192 lt_cv_shlibpath_overrides_runpath=yes
12195 rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LDFLAGS=$save_LDFLAGS
12198 libdir=$save_libdir
12202 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12204 # This implies no fast_install, which is unacceptable.
12205 # Some rework will be needed to allow for fast_install
12206 # before this can be enabled.
12207 hardcode_into_libs=yes
12209 # Append ld.so.conf contents to the search path
12210 if test -f /etc/ld.so.conf; then
12211 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' ' '`
12212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12215 # We used to test for /lib/ld.so.1 and disable shared libraries on
12216 # powerpc, because MkLinux only supported shared libraries with the
12217 # GNU dynamic linker. Since this was broken with cross compilers,
12218 # most powerpc-linux boxes support dynamic linking these days and
12219 # people can always --disable-shared, the test was removed, and we
12220 # assume the GNU/Linux dynamic linker is in use.
12221 dynamic_linker='GNU/Linux ld.so'
12228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12231 dynamic_linker='NetBSD (a.out) ld.so'
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 dynamic_linker='NetBSD ld.elf_so'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 hardcode_into_libs=yes
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254 soname_spec='${libname}${release}${shared_ext}$major'
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=no
12257 hardcode_into_libs=yes
12258 dynamic_linker='ldqnx.so'
12263 sys_lib_dlsearch_path_spec="/usr/lib"
12265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12268 *) need_version=no ;;
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12275 openbsd2.[89] | openbsd2.[89].*)
12276 shlibpath_overrides_runpath=no
12279 shlibpath_overrides_runpath=yes
12283 shlibpath_overrides_runpath=yes
12288 libname_spec='$name'
12291 library_names_spec='$libname${shared_ext} $libname.a'
12292 dynamic_linker='OS/2 ld.exe'
12293 shlibpath_var=LIBPATH
12296 osf3* | osf4* | osf5*)
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316 soname_spec='${libname}${release}${shared_ext}$major'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12319 hardcode_into_libs=yes
12320 # ldd complains unless libraries are executable
12321 postinstall_cmds='chmod +x $lib'
12326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 shlibpath_overrides_runpath=yes
12330 if test "$with_gnu_ld" = yes; then
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 case $host_vendor in
12343 shlibpath_overrides_runpath=no
12345 runpath_var=LD_RUN_PATH
12353 shlibpath_overrides_runpath=no
12354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12360 if test -d /usr/nec ;then
12362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12363 soname_spec='$libname${shared_ext}.$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12369 version_type=freebsd-elf
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12373 soname_spec='${libname}${release}${shared_ext}$major'
12374 shlibpath_var=LD_LIBRARY_PATH
12375 shlibpath_overrides_runpath=yes
12376 hardcode_into_libs=yes
12377 if test "$with_gnu_ld" = yes; then
12378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12387 sys_lib_dlsearch_path_spec='/usr/lib'
12391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=no
12398 hardcode_into_libs=yes
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 shlibpath_var=LD_LIBRARY_PATH
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12413 $as_echo "$dynamic_linker" >&6; }
12414 test "$dynamic_linker" = no && can_build_shared=no
12416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12417 if test "$GCC" = yes; then
12418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12422 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12425 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12520 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12522 if test -n "$hardcode_libdir_flag_spec" ||
12523 test -n "$runpath_var" ||
12524 test "X$hardcode_automatic" = "Xyes" ; then
12526 # We can hardcode non-existent directories.
12527 if test "$hardcode_direct" != no &&
12528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12529 # have to relink, otherwise we might link with an installed library
12530 # when we should be linking with a yet-to-be-installed one
12531 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12532 test "$hardcode_minus_L" != no; then
12533 # Linking always hardcodes the temporary library directory.
12534 hardcode_action=relink
12536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12537 hardcode_action=immediate
12540 # We cannot hardcode anything, or else we can only hardcode existing
12542 hardcode_action=unsupported
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12545 $as_echo "$hardcode_action" >&6; }
12547 if test "$hardcode_action" = relink ||
12548 test "$inherit_rpath" = yes; then
12549 # Fast installation is not supported
12550 enable_fast_install=no
12551 elif test "$shlibpath_overrides_runpath" = yes ||
12552 test "$enable_shared" = no; then
12553 # Fast installation is not necessary
12554 enable_fast_install=needless
12562 if test "x$enable_dlopen" != xyes; then
12563 enable_dlopen=unknown
12564 enable_dlopen_self=unknown
12565 enable_dlopen_self_static=unknown
12572 lt_cv_dlopen="load_add_on"
12574 lt_cv_dlopen_self=yes
12577 mingw* | pw32* | cegcc*)
12578 lt_cv_dlopen="LoadLibrary"
12583 lt_cv_dlopen="dlopen"
12588 # if libdl is installed we need to link against it
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12590 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12591 if ${ac_cv_lib_dl_dlopen+:} false; then :
12592 $as_echo_n "(cached) " >&6
12594 ac_check_lib_save_LIBS=$LIBS
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12599 /* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
12614 if ac_fn_c_try_link "$LINENO"; then :
12615 ac_cv_lib_dl_dlopen=yes
12617 ac_cv_lib_dl_dlopen=no
12619 rm -f core conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext conftest.$ac_ext
12621 LIBS=$ac_check_lib_save_LIBS
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12624 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12625 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12629 lt_cv_dlopen="dyld"
12631 lt_cv_dlopen_self=yes
12638 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12639 if test "x$ac_cv_func_shl_load" = xyes; then :
12640 lt_cv_dlopen="shl_load"
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12643 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12644 if ${ac_cv_lib_dld_shl_load+:} false; then :
12645 $as_echo_n "(cached) " >&6
12647 ac_check_lib_save_LIBS=$LIBS
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12662 return shl_load ();
12667 if ac_fn_c_try_link "$LINENO"; then :
12668 ac_cv_lib_dld_shl_load=yes
12670 ac_cv_lib_dld_shl_load=no
12672 rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12677 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12678 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12679 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12681 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12682 if test "x$ac_cv_func_dlopen" = xyes; then :
12683 lt_cv_dlopen="dlopen"
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12686 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12687 if ${ac_cv_lib_dl_dlopen+:} false; then :
12688 $as_echo_n "(cached) " >&6
12690 ac_check_lib_save_LIBS=$LIBS
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12695 /* Override any GCC internal prototype to avoid an error.
12696 Use char because int might match the return type of a GCC
12697 builtin and then its argument prototype would still apply. */
12710 if ac_fn_c_try_link "$LINENO"; then :
12711 ac_cv_lib_dl_dlopen=yes
12713 ac_cv_lib_dl_dlopen=no
12715 rm -f core conftest.err conftest.$ac_objext \
12716 conftest$ac_exeext conftest.$ac_ext
12717 LIBS=$ac_check_lib_save_LIBS
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12720 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12721 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12722 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12725 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12726 if ${ac_cv_lib_svld_dlopen+:} false; then :
12727 $as_echo_n "(cached) " >&6
12729 ac_check_lib_save_LIBS=$LIBS
12730 LIBS="-lsvld $LIBS"
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12749 if ac_fn_c_try_link "$LINENO"; then :
12750 ac_cv_lib_svld_dlopen=yes
12752 ac_cv_lib_svld_dlopen=no
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 LIBS=$ac_check_lib_save_LIBS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12759 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12760 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12764 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12765 if ${ac_cv_lib_dld_dld_link+:} false; then :
12766 $as_echo_n "(cached) " >&6
12768 ac_check_lib_save_LIBS=$LIBS
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12773 /* Override any GCC internal prototype to avoid an error.
12774 Use char because int might match the return type of a GCC
12775 builtin and then its argument prototype would still apply. */
12783 return dld_link ();
12788 if ac_fn_c_try_link "$LINENO"; then :
12789 ac_cv_lib_dld_dld_link=yes
12791 ac_cv_lib_dld_dld_link=no
12793 rm -f core conftest.err conftest.$ac_objext \
12794 conftest$ac_exeext conftest.$ac_ext
12795 LIBS=$ac_check_lib_save_LIBS
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12798 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12799 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12800 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12821 if test "x$lt_cv_dlopen" != xno; then
12827 case $lt_cv_dlopen in
12829 save_CPPFLAGS="$CPPFLAGS"
12830 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12832 save_LDFLAGS="$LDFLAGS"
12833 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12836 LIBS="$lt_cv_dlopen_libs $LIBS"
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12839 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12840 if ${lt_cv_dlopen_self+:} false; then :
12841 $as_echo_n "(cached) " >&6
12843 if test "$cross_compiling" = yes; then :
12844 lt_cv_dlopen_self=cross
12846 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12847 lt_status=$lt_dlunknown
12848 cat > conftest.$ac_ext <<_LT_EOF
12849 #line $LINENO "configure"
12850 #include "confdefs.h"
12859 # define LT_DLGLOBAL RTLD_GLOBAL
12862 # define LT_DLGLOBAL DL_GLOBAL
12864 # define LT_DLGLOBAL 0
12868 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12869 find out it does not work in some platform. */
12870 #ifndef LT_DLLAZY_OR_NOW
12872 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12875 # define LT_DLLAZY_OR_NOW DL_LAZY
12878 # define LT_DLLAZY_OR_NOW RTLD_NOW
12881 # define LT_DLLAZY_OR_NOW DL_NOW
12883 # define LT_DLLAZY_OR_NOW 0
12890 /* When -fvisbility=hidden is used, assume the code has been annotated
12891 correspondingly for the symbols needed. */
12892 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12893 int fnord () __attribute__((visibility("default")));
12896 int fnord () { return 42; }
12899 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12900 int status = $lt_dlunknown;
12904 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12907 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12908 else puts (dlerror ());
12910 /* dlclose (self); */
12918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12919 (eval $ac_link) 2>&5
12921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12923 (./conftest; exit; ) >&5 2>/dev/null
12925 case x$lt_status in
12926 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12927 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12928 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12931 # compilation failed
12932 lt_cv_dlopen_self=no
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12940 $as_echo "$lt_cv_dlopen_self" >&6; }
12942 if test "x$lt_cv_dlopen_self" = xyes; then
12943 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12945 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12946 if ${lt_cv_dlopen_self_static+:} false; then :
12947 $as_echo_n "(cached) " >&6
12949 if test "$cross_compiling" = yes; then :
12950 lt_cv_dlopen_self_static=cross
12952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12953 lt_status=$lt_dlunknown
12954 cat > conftest.$ac_ext <<_LT_EOF
12955 #line $LINENO "configure"
12956 #include "confdefs.h"
12965 # define LT_DLGLOBAL RTLD_GLOBAL
12968 # define LT_DLGLOBAL DL_GLOBAL
12970 # define LT_DLGLOBAL 0
12974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12975 find out it does not work in some platform. */
12976 #ifndef LT_DLLAZY_OR_NOW
12978 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12981 # define LT_DLLAZY_OR_NOW DL_LAZY
12984 # define LT_DLLAZY_OR_NOW RTLD_NOW
12987 # define LT_DLLAZY_OR_NOW DL_NOW
12989 # define LT_DLLAZY_OR_NOW 0
12996 /* When -fvisbility=hidden is used, assume the code has been annotated
12997 correspondingly for the symbols needed. */
12998 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12999 int fnord () __attribute__((visibility("default")));
13002 int fnord () { return 42; }
13005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13006 int status = $lt_dlunknown;
13010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13013 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13014 else puts (dlerror ());
13016 /* dlclose (self); */
13024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13025 (eval $ac_link) 2>&5
13027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13029 (./conftest; exit; ) >&5 2>/dev/null
13031 case x$lt_status in
13032 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13033 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13034 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13037 # compilation failed
13038 lt_cv_dlopen_self_static=no
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13046 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13049 CPPFLAGS="$save_CPPFLAGS"
13050 LDFLAGS="$save_LDFLAGS"
13055 case $lt_cv_dlopen_self in
13056 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13057 *) enable_dlopen_self=unknown ;;
13060 case $lt_cv_dlopen_self_static in
13061 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13062 *) enable_dlopen_self_static=unknown ;;
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13085 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13086 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13087 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13088 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090 $as_echo "yes" >&6; }
13092 # FIXME - insert some real tests, host_os isn't really good enough
13095 if test -n "$STRIP" ; then
13096 striplib="$STRIP -x"
13097 old_striplib="$STRIP -S"
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13099 $as_echo "yes" >&6; }
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13123 # Report which library types will actually be built
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13125 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13127 $as_echo "$can_build_shared" >&6; }
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13130 $as_echo_n "checking whether to build shared libraries... " >&6; }
13131 test "$can_build_shared" = "no" && enable_shared=no
13133 # On AIX, shared libraries and static libraries use the same namespace, and
13134 # are all built from PIC.
13137 test "$enable_shared" = yes && enable_static=no
13138 if test -n "$RANLIB"; then
13139 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13140 postinstall_cmds='$RANLIB $lib'
13145 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13146 test "$enable_shared" = yes && enable_static=no
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13151 $as_echo "$enable_shared" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13154 $as_echo_n "checking whether to build static libraries... " >&6; }
13155 # Make sure either enable_shared or enable_static is yes.
13156 test "$enable_shared" = yes || enable_static=yes
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13158 $as_echo "$enable_static" >&6; }
13165 ac_cpp='$CPP $CPPFLAGS'
13166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13172 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13173 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13174 (test "X$CXX" != "Xg++"))) ; then
13176 ac_cpp='$CXXCPP $CPPFLAGS'
13177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13181 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13182 if test -z "$CXXCPP"; then
13183 if ${ac_cv_prog_CXXCPP+:} false; then :
13184 $as_echo_n "(cached) " >&6
13186 # Double quotes because CXXCPP needs to be expanded
13187 for CXXCPP in "$CXX -E" "/lib/cpp"
13189 ac_preproc_ok=false
13190 for ac_cxx_preproc_warn_flag in '' yes
13192 # Use a header file that comes with gcc, so configuring glibc
13193 # with a fresh cross-compiler works.
13194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13195 # <limits.h> exists even on freestanding compilers.
13196 # On the NeXT, cc -E runs the code through the compiler's parser,
13197 # not just through cpp. "Syntax error" is here to catch this case.
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13201 # include <limits.h>
13203 # include <assert.h>
13207 if ac_fn_cxx_try_cpp "$LINENO"; then :
13210 # Broken: fails on valid input.
13213 rm -f conftest.err conftest.i conftest.$ac_ext
13215 # OK, works on sane cases. Now check whether nonexistent headers
13216 # can be detected and how.
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 #include <ac_nonexistent.h>
13221 if ac_fn_cxx_try_cpp "$LINENO"; then :
13222 # Broken: success on invalid input.
13225 # Passes both tests.
13229 rm -f conftest.err conftest.i conftest.$ac_ext
13232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13233 rm -f conftest.i conftest.err conftest.$ac_ext
13234 if $ac_preproc_ok; then :
13239 ac_cv_prog_CXXCPP=$CXXCPP
13242 CXXCPP=$ac_cv_prog_CXXCPP
13244 ac_cv_prog_CXXCPP=$CXXCPP
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13247 $as_echo "$CXXCPP" >&6; }
13248 ac_preproc_ok=false
13249 for ac_cxx_preproc_warn_flag in '' yes
13251 # Use a header file that comes with gcc, so configuring glibc
13252 # with a fresh cross-compiler works.
13253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13254 # <limits.h> exists even on freestanding compilers.
13255 # On the NeXT, cc -E runs the code through the compiler's parser,
13256 # not just through cpp. "Syntax error" is here to catch this case.
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13260 # include <limits.h>
13262 # include <assert.h>
13266 if ac_fn_cxx_try_cpp "$LINENO"; then :
13269 # Broken: fails on valid input.
13272 rm -f conftest.err conftest.i conftest.$ac_ext
13274 # OK, works on sane cases. Now check whether nonexistent headers
13275 # can be detected and how.
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 #include <ac_nonexistent.h>
13280 if ac_fn_cxx_try_cpp "$LINENO"; then :
13281 # Broken: success on invalid input.
13284 # Passes both tests.
13288 rm -f conftest.err conftest.i conftest.$ac_ext
13291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13292 rm -f conftest.i conftest.err conftest.$ac_ext
13293 if $ac_preproc_ok; then :
13296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13298 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13299 See \`config.log' for more details" "$LINENO" 5; }
13303 ac_cpp='$CPP $CPPFLAGS'
13304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13309 _lt_caught_CXX_error=yes
13313 ac_cpp='$CXXCPP $CPPFLAGS'
13314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13318 archive_cmds_need_lc_CXX=no
13319 allow_undefined_flag_CXX=
13320 always_export_symbols_CXX=no
13321 archive_expsym_cmds_CXX=
13322 compiler_needs_object_CXX=no
13323 export_dynamic_flag_spec_CXX=
13324 hardcode_direct_CXX=no
13325 hardcode_direct_absolute_CXX=no
13326 hardcode_libdir_flag_spec_CXX=
13327 hardcode_libdir_flag_spec_ld_CXX=
13328 hardcode_libdir_separator_CXX=
13329 hardcode_minus_L_CXX=no
13330 hardcode_shlibpath_var_CXX=unsupported
13331 hardcode_automatic_CXX=no
13332 inherit_rpath_CXX=no
13334 module_expsym_cmds_CXX=
13335 link_all_deplibs_CXX=unknown
13336 old_archive_cmds_CXX=$old_archive_cmds
13337 reload_flag_CXX=$reload_flag
13338 reload_cmds_CXX=$reload_cmds
13339 no_undefined_flag_CXX=
13340 whole_archive_flag_spec_CXX=
13341 enable_shared_with_static_runtimes_CXX=no
13343 # Source file extension for C++ test sources.
13346 # Object file extension for compiled C++ test sources.
13350 # No sense in running all these tests if we already determined that
13351 # the CXX compiler isn't working. Some variables (like enable_shared)
13352 # are currently assumed to apply to all compilers on this platform,
13353 # and will be corrupted by setting them based on a non-working compiler.
13354 if test "$_lt_caught_CXX_error" != yes; then
13355 # Code to be used in simple compile tests
13356 lt_simple_compile_test_code="int some_variable = 0;"
13358 # Code to be used in simple link tests
13359 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13368 # If no C compiler was specified, use CC.
13371 # If no C compiler flags were specified, use CFLAGS.
13372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13374 # Allow CC to be a program name with arguments.
13378 # save warnings/boilerplate of simple test code
13379 ac_outfile=conftest.$ac_objext
13380 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13382 _lt_compiler_boilerplate=`cat conftest.err`
13385 ac_outfile=conftest.$ac_objext
13386 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13388 _lt_linker_boilerplate=`cat conftest.err`
13392 # Allow CC to be a program name with arguments.
13394 lt_save_CFLAGS=$CFLAGS
13398 lt_save_with_gnu_ld=$with_gnu_ld
13399 lt_save_path_LD=$lt_cv_path_LD
13400 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13401 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13403 $as_unset lt_cv_prog_gnu_ld
13405 if test -n "${lt_cv_path_LDCXX+set}"; then
13406 lt_cv_path_LD=$lt_cv_path_LDCXX
13408 $as_unset lt_cv_path_LD
13410 test -z "${LDCXX+set}" || LD=$LDCXX
13415 for cc_temp in $compiler""; do
13417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13423 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13426 if test -n "$compiler"; then
13427 # We don't want -fno-exception when compiling C++ code, so set the
13428 # no_builtin_flag separately
13429 if test "$GXX" = yes; then
13430 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13432 lt_prog_compiler_no_builtin_flag_CXX=
13435 if test "$GXX" = yes; then
13436 # Set up default GNU C++ configuration
13440 # Check whether --with-gnu-ld was given.
13441 if test "${with_gnu_ld+set}" = set; then :
13442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13448 if test "$GCC" = yes; then
13449 # Check if gcc -print-prog-name=ld gives a path.
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13451 $as_echo_n "checking for ld used by $CC... " >&6; }
13454 # gcc leaves a trailing carriage return which upsets mingw
13455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13460 # Accept absolute paths.
13462 re_direlt='/[^/][^/]*/\.\./'
13463 # Canonicalize the pathname of ld
13464 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13465 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13466 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13468 test -z "$LD" && LD="$ac_prog"
13471 # If it fails, then pretend we aren't using GCC.
13475 # If it is relative, then search for the first ld in PATH.
13476 with_gnu_ld=unknown
13479 elif test "$with_gnu_ld" = yes; then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13481 $as_echo_n "checking for GNU ld... " >&6; }
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13484 $as_echo_n "checking for non-GNU ld... " >&6; }
13486 if ${lt_cv_path_LD+:} false; then :
13487 $as_echo_n "(cached) " >&6
13489 if test -z "$LD"; then
13490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13491 for ac_dir in $PATH; do
13493 test -z "$ac_dir" && ac_dir=.
13494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13495 lt_cv_path_LD="$ac_dir/$ac_prog"
13496 # Check to see if the program is GNU ld. I'd rather use --version,
13497 # but apparently some variants of GNU ld only accept -v.
13498 # Break only if it was the GNU/non-GNU ld that we prefer.
13499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13500 *GNU* | *'with BFD'*)
13501 test "$with_gnu_ld" != no && break
13504 test "$with_gnu_ld" != yes && break
13511 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13515 LD="$lt_cv_path_LD"
13516 if test -n "$LD"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13518 $as_echo "$LD" >&6; }
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13523 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13525 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13526 if ${lt_cv_prog_gnu_ld+:} false; then :
13527 $as_echo_n "(cached) " >&6
13529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13530 case `$LD -v 2>&1 </dev/null` in
13531 *GNU* | *'with BFD'*)
13532 lt_cv_prog_gnu_ld=yes
13535 lt_cv_prog_gnu_ld=no
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13540 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13541 with_gnu_ld=$lt_cv_prog_gnu_ld
13549 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13550 # archiving commands below assume that GNU ld is being used.
13551 if test "$with_gnu_ld" = yes; then
13552 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13553 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'
13555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13556 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13558 # If archive_cmds runs LD, not CC, wlarc should be empty
13559 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13560 # investigate it a little bit more. (MM)
13563 # ancient GNU ld didn't support --whole-archive et. al.
13564 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13565 $GREP 'no-whole-archive' > /dev/null; then
13566 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13568 whole_archive_flag_spec_CXX=
13574 # A generic and very simple default shared library creation
13575 # command for GNU C++ for the case where it uses the native
13576 # linker, instead of GNU ld. If possible, this setting should
13577 # overridden to take advantage of the native linker features on
13578 # the platform it is being used on.
13579 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13582 # Commands to make compiler produce verbose output that lists
13583 # what "hidden" libraries, object files and flags are used when
13584 # linking a shared library.
13585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13593 # PORTME: fill in a description of your system's C++ link characteristics
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13599 # FIXME: insert proper C++ library support
13603 if test "$host_cpu" = ia64; then
13604 # On IA64, the linker does run time linking by default, so we don't
13605 # have to do anything special.
13606 aix_use_runtimelinking=no
13607 exp_sym_flag='-Bexport'
13610 aix_use_runtimelinking=no
13612 # Test if we are trying to use run time linking or normal
13613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13614 # need to do runtime linking.
13615 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13616 for ld_flag in $LDFLAGS; do
13619 aix_use_runtimelinking=yes
13627 exp_sym_flag='-bexport'
13628 no_entry_flag='-bnoentry'
13631 # When large executables or shared objects are built, AIX ld can
13632 # have problems creating the table of contents. If linking a library
13633 # or program results in "error TOC overflow" add -mminimal-toc to
13634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13637 archive_cmds_CXX=''
13638 hardcode_direct_CXX=yes
13639 hardcode_direct_absolute_CXX=yes
13640 hardcode_libdir_separator_CXX=':'
13641 link_all_deplibs_CXX=yes
13642 file_list_spec_CXX='${wl}-f,'
13644 if test "$GXX" = yes; then
13645 case $host_os in aix4.[012]|aix4.[012].*)
13646 # We only want to do this on AIX 4.2 and lower, the check
13647 # below for broken collect2 doesn't work under 4.3+
13648 collect2name=`${CC} -print-prog-name=collect2`
13649 if test -f "$collect2name" &&
13650 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13652 # We have reworked collect2
13655 # We have old collect2
13656 hardcode_direct_CXX=unsupported
13657 # It fails to find uninstalled libraries when the uninstalled
13658 # path is not listed in the libpath. Setting hardcode_minus_L
13659 # to unsupported forces relinking
13660 hardcode_minus_L_CXX=yes
13661 hardcode_libdir_flag_spec_CXX='-L$libdir'
13662 hardcode_libdir_separator_CXX=
13665 shared_flag='-shared'
13666 if test "$aix_use_runtimelinking" = yes; then
13667 shared_flag="$shared_flag "'${wl}-G'
13671 if test "$host_cpu" = ia64; then
13672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13673 # chokes on -Wl,-G. The following line is correct:
13676 if test "$aix_use_runtimelinking" = yes; then
13677 shared_flag='${wl}-G'
13679 shared_flag='${wl}-bM:SRE'
13684 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13685 # It seems that -bexpall does not export symbols beginning with
13686 # underscore (_), so it is better to generate a list of symbols to
13688 always_export_symbols_CXX=yes
13689 if test "$aix_use_runtimelinking" = yes; then
13690 # Warning - without using the other runtime loading flags (-brtl),
13691 # -berok will link without error, but may produce a broken library.
13692 allow_undefined_flag_CXX='-berok'
13693 # Determine the default libpath from the value encoded in an empty
13695 if test "${lt_cv_aix_libpath+set}" = set; then
13696 aix_libpath=$lt_cv_aix_libpath
13698 if ${lt_cv_aix_libpath__CXX+:} false; then :
13699 $as_echo_n "(cached) " >&6
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13712 if ac_fn_cxx_try_link "$LINENO"; then :
13714 lt_aix_libpath_sed='
13715 /Import File Strings/,/^$/ {
13717 s/^0 *\([^ ]*\) *$/\1/
13721 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13722 # Check for a 64-bit object if we didn't find anything.
13723 if test -z "$lt_cv_aix_libpath__CXX"; then
13724 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729 if test -z "$lt_cv_aix_libpath__CXX"; then
13730 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13735 aix_libpath=$lt_cv_aix_libpath__CXX
13738 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13740 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"
13742 if test "$host_cpu" = ia64; then
13743 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13744 allow_undefined_flag_CXX="-z nodefs"
13745 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"
13747 # Determine the default libpath from the value encoded in an
13748 # empty executable.
13749 if test "${lt_cv_aix_libpath+set}" = set; then
13750 aix_libpath=$lt_cv_aix_libpath
13752 if ${lt_cv_aix_libpath__CXX+:} false; then :
13753 $as_echo_n "(cached) " >&6
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13766 if ac_fn_cxx_try_link "$LINENO"; then :
13768 lt_aix_libpath_sed='
13769 /Import File Strings/,/^$/ {
13771 s/^0 *\([^ ]*\) *$/\1/
13775 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13776 # Check for a 64-bit object if we didn't find anything.
13777 if test -z "$lt_cv_aix_libpath__CXX"; then
13778 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13783 if test -z "$lt_cv_aix_libpath__CXX"; then
13784 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13789 aix_libpath=$lt_cv_aix_libpath__CXX
13792 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13793 # Warning - without using the other run time loading flags,
13794 # -berok will link without error, but may produce a broken library.
13795 no_undefined_flag_CXX=' ${wl}-bernotok'
13796 allow_undefined_flag_CXX=' ${wl}-berok'
13797 if test "$with_gnu_ld" = yes; then
13798 # We only use this code for GNU lds that support --whole-archive.
13799 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13801 # Exported symbols can be pulled into shared objects from archives
13802 whole_archive_flag_spec_CXX='$convenience'
13804 archive_cmds_need_lc_CXX=yes
13805 # This is similar to how AIX traditionally builds its shared
13807 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'
13813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13814 allow_undefined_flag_CXX=unsupported
13815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13816 # support --undefined. This deserves some investigation. FIXME
13817 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824 case $cc_basename in
13826 # FIXME: insert proper C++ library support
13832 cygwin* | mingw* | pw32* | cegcc*)
13833 case $GXX,$cc_basename in
13836 # hardcode_libdir_flag_spec is actually meaningless, as there is
13837 # no search path for DLLs.
13838 hardcode_libdir_flag_spec_CXX=' '
13839 allow_undefined_flag_CXX=unsupported
13840 always_export_symbols_CXX=yes
13841 file_list_spec_CXX='@'
13842 # Tell ltmain to make .lib files, not .a files.
13844 # Tell ltmain to make .dll files, not .so files.
13846 # FIXME: Setting linknames here is a bad hack.
13847 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13848 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13849 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13851 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13853 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13855 # The linker will not automatically build a static lib if we build a DLL.
13856 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13857 enable_shared_with_static_runtimes_CXX=yes
13859 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13860 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13861 lt_tool_outputfile="@TOOL_OUTPUT@"~
13862 case $lt_outputfile in
13865 lt_outputfile="$lt_outputfile.exe"
13866 lt_tool_outputfile="$lt_tool_outputfile.exe"
13869 func_to_tool_file "$lt_outputfile"~
13870 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13871 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13872 $RM "$lt_outputfile.manifest";
13877 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13878 # as there is no search path for DLLs.
13879 hardcode_libdir_flag_spec_CXX='-L$libdir'
13880 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13881 allow_undefined_flag_CXX=unsupported
13882 always_export_symbols_CXX=no
13883 enable_shared_with_static_runtimes_CXX=yes
13885 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13886 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'
13887 # If the export-symbols file already is a .def file (1st line
13888 # is EXPORTS), use it as is; otherwise, prepend...
13889 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13890 cp $export_symbols $output_objdir/$soname.def;
13892 echo EXPORTS > $output_objdir/$soname.def;
13893 cat $export_symbols >> $output_objdir/$soname.def;
13895 $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'
13902 darwin* | rhapsody*)
13905 archive_cmds_need_lc_CXX=no
13906 hardcode_direct_CXX=no
13907 hardcode_automatic_CXX=yes
13908 hardcode_shlibpath_var_CXX=unsupported
13909 if test "$lt_cv_ld_force_load" = "yes"; then
13910 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\"`'
13912 whole_archive_flag_spec_CXX=''
13914 link_all_deplibs_CXX=yes
13915 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13916 case $cc_basename in
13917 ifort*) _lt_dar_can_shared=yes ;;
13918 *) _lt_dar_can_shared=$GCC ;;
13920 if test "$_lt_dar_can_shared" = "yes"; then
13921 output_verbose_link_cmd=func_echo_all
13922 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}"
13923 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13924 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}"
13925 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}"
13926 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13927 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}"
13928 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}"
13938 case $cc_basename in
13940 # FIXME: insert proper C++ library support
13944 # Green Hills C++ Compiler
13945 # FIXME: insert proper C++ library support
13949 # FIXME: insert proper C++ library support
13956 # C++ shared libraries reported to be fairly broken before
13962 archive_cmds_need_lc_CXX=no
13965 freebsd* | dragonfly*)
13966 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13975 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13976 link_all_deplibs_CXX=yes
13980 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13981 hardcode_libdir_separator_CXX=:
13982 export_dynamic_flag_spec_CXX='${wl}-E'
13983 hardcode_direct_CXX=yes
13984 hardcode_minus_L_CXX=yes # Not in the search PATH,
13985 # but as the default
13986 # location of the library.
13988 case $cc_basename in
13990 # FIXME: insert proper C++ library support
13994 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'
13995 # Commands to make compiler produce verbose output that lists
13996 # what "hidden" libraries, object files and flags are used when
13997 # linking a shared library.
13999 # There doesn't appear to be a way to prevent this compiler from
14000 # explicitly linking system object files so we need to strip them
14001 # from the output so that they don't get included in the library
14003 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"'
14006 if test "$GXX" = yes; then
14007 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'
14009 # FIXME: insert proper C++ library support
14017 if test $with_gnu_ld = no; then
14018 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14019 hardcode_libdir_separator_CXX=:
14025 export_dynamic_flag_spec_CXX='${wl}-E'
14031 hardcode_direct_CXX=no
14032 hardcode_shlibpath_var_CXX=no
14035 hardcode_direct_CXX=yes
14036 hardcode_direct_absolute_CXX=yes
14037 hardcode_minus_L_CXX=yes # Not in the search PATH,
14038 # but as the default
14039 # location of the library.
14043 case $cc_basename in
14045 # FIXME: insert proper C++ library support
14051 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14054 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14057 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14060 # Commands to make compiler produce verbose output that lists
14061 # what "hidden" libraries, object files and flags are used when
14062 # linking a shared library.
14064 # There doesn't appear to be a way to prevent this compiler from
14065 # explicitly linking system object files so we need to strip them
14066 # from the output so that they don't get included in the library
14068 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"'
14071 if test "$GXX" = yes; then
14072 if test $with_gnu_ld = no; then
14075 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14078 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14081 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'
14086 # FIXME: insert proper C++ library support
14094 hardcode_direct_CXX=no
14095 hardcode_shlibpath_var_CXX=no
14096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14097 export_dynamic_flag_spec_CXX='${wl}-E'
14098 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14099 # Instead, shared libraries are loaded at an image base (0x10000000 by
14100 # default) and relocated if they conflict, which is a slow very memory
14101 # consuming and fragmenting process. To avoid this, we pick a random,
14102 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14103 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14104 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'
14105 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'
14108 case $cc_basename in
14111 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'
14113 # Archives containing C++ object files must be created using
14114 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14115 # necessary to make sure instantiated templates are included
14117 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14120 if test "$GXX" = yes; then
14121 if test "$with_gnu_ld" = no; then
14122 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'
14124 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'
14127 link_all_deplibs_CXX=yes
14130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14131 hardcode_libdir_separator_CXX=:
14132 inherit_rpath_CXX=yes
14135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14136 case $cc_basename in
14138 # Kuck and Associates, Inc. (KAI) C++ Compiler
14140 # KCC will only create a shared library if the output file
14141 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14142 # to its proper name (with version) after linking.
14143 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'
14144 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'
14145 # Commands to make compiler produce verbose output that lists
14146 # what "hidden" libraries, object files and flags are used when
14147 # linking a shared library.
14149 # There doesn't appear to be a way to prevent this compiler from
14150 # explicitly linking system object files so we need to strip them
14151 # from the output so that they don't get included in the library
14153 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"'
14155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14156 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14158 # Archives containing C++ object files must be created using
14159 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14160 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14165 # version 8.0 and above of icpc choke on multiply defined symbols
14166 # if we add $predep_objects and $postdep_objects, however 7.1 and
14167 # earlier do not add the objects themselves.
14168 case `$CC -V 2>&1` in
14170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14171 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'
14173 *) # Version 8.0 or newer
14176 ia64*) tmp_idyn=' -i_dynamic';;
14178 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14179 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'
14182 archive_cmds_need_lc_CXX=no
14183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14184 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14185 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14188 # Portland Group C++ compiler
14190 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14191 prelink_cmds_CXX='tpldir=Template.dir~
14193 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14194 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14195 old_archive_cmds_CXX='tpldir=Template.dir~
14197 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14198 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14200 archive_cmds_CXX='tpldir=Template.dir~
14202 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14203 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14204 archive_expsym_cmds_CXX='tpldir=Template.dir~
14206 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14207 $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'
14209 *) # Version 6 and above use weak symbols
14210 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14211 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'
14215 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14217 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'
14221 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14222 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'
14224 runpath_var=LD_RUN_PATH
14225 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14226 hardcode_libdir_separator_CXX=:
14228 # Commands to make compiler produce verbose output that lists
14229 # what "hidden" libraries, object files and flags are used when
14230 # linking a shared library.
14232 # There doesn't appear to be a way to prevent this compiler from
14233 # explicitly linking system object files so we need to strip them
14234 # from the output so that they don't get included in the library
14236 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'
14238 xl* | mpixl* | bgxl*)
14239 # IBM XL 8.0 on PPC, with GNU ld
14240 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14242 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14243 if test "x$supports_anon_versioning" = xyes; then
14244 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14246 echo "local: *; };" >> $output_objdir/$libname.ver~
14247 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14251 case `$CC -V 2>&1 | sed 5q` in
14254 no_undefined_flag_CXX=' -zdefs'
14255 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14256 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'
14257 hardcode_libdir_flag_spec_CXX='-R$libdir'
14258 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'
14259 compiler_needs_object_CXX=yes
14261 # Not sure whether something based on
14262 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14264 output_verbose_link_cmd='func_echo_all'
14266 # Archives containing C++ object files must be created using
14267 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14268 # necessary to make sure instantiated templates are included
14270 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14278 # FIXME: insert proper C++ library support
14283 # FIXME: insert proper C++ library support
14288 case $cc_basename in
14290 # FIXME: insert proper C++ library support
14294 # FIXME: insert proper C++ library support
14301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14302 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14304 hardcode_libdir_flag_spec_CXX='-R$libdir'
14305 hardcode_direct_CXX=yes
14306 hardcode_shlibpath_var_CXX=no
14308 # Workaround some broken pre-1.5 toolchains
14309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14317 # C++ shared libraries are fairly broken
14322 if test -f /usr/libexec/ld.so; then
14323 hardcode_direct_CXX=yes
14324 hardcode_shlibpath_var_CXX=no
14325 hardcode_direct_absolute_CXX=yes
14326 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14329 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14330 export_dynamic_flag_spec_CXX='${wl}-E'
14331 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14333 output_verbose_link_cmd=func_echo_all
14339 osf3* | osf4* | osf5*)
14340 case $cc_basename in
14342 # Kuck and Associates, Inc. (KAI) C++ Compiler
14344 # KCC will only create a shared library if the output file
14345 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14346 # to its proper name (with version) after linking.
14347 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'
14349 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14350 hardcode_libdir_separator_CXX=:
14352 # Archives containing C++ object files must be created using
14353 # the KAI C++ compiler.
14355 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14356 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14360 # Rational C++ 2.4.1
14361 # FIXME: insert proper C++ library support
14367 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14368 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'
14369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14372 allow_undefined_flag_CXX=' -expect_unresolved \*'
14373 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'
14374 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14375 echo "-hidden">> $lib.exp~
14376 $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~
14378 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14382 hardcode_libdir_separator_CXX=:
14384 # Commands to make compiler produce verbose output that lists
14385 # what "hidden" libraries, object files and flags are used when
14386 # linking a shared library.
14388 # There doesn't appear to be a way to prevent this compiler from
14389 # explicitly linking system object files so we need to strip them
14390 # from the output so that they don't get included in the library
14392 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"'
14395 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14396 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14399 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'
14402 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'
14406 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14407 hardcode_libdir_separator_CXX=:
14409 # Commands to make compiler produce verbose output that lists
14410 # what "hidden" libraries, object files and flags are used when
14411 # linking a shared library.
14412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14415 # FIXME: insert proper C++ library support
14423 # FIXME: insert proper C++ library support
14428 case $cc_basename in
14431 # FIXME: insert proper C++ library support
14436 # FIXME: insert proper C++ library support
14440 # FIXME: insert proper C++ library support
14447 case $cc_basename in
14449 # Sun C++ 4.2, 5.x and Centerline C++
14450 archive_cmds_need_lc_CXX=yes
14451 no_undefined_flag_CXX=' -zdefs'
14452 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14453 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14454 $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'
14456 hardcode_libdir_flag_spec_CXX='-R$libdir'
14457 hardcode_shlibpath_var_CXX=no
14459 solaris2.[0-5] | solaris2.[0-5].*) ;;
14461 # The compiler driver will combine and reorder linker options,
14462 # but understands `-z linker_flag'.
14463 # Supported since Solaris 2.6 (maybe 2.5.1?)
14464 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14467 link_all_deplibs_CXX=yes
14469 output_verbose_link_cmd='func_echo_all'
14471 # Archives containing C++ object files must be created using
14472 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14473 # necessary to make sure instantiated templates are included
14475 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14478 # Green Hills C++ Compiler
14479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14481 # The C++ compiler must be used to create the archive.
14482 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14485 # GNU C++ compiler with Solaris linker
14486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14487 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14488 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14489 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14490 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14491 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14493 # Commands to make compiler produce verbose output that lists
14494 # what "hidden" libraries, object files and flags are used when
14495 # linking a shared library.
14496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14498 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14500 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14501 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14502 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14504 # Commands to make compiler produce verbose output that lists
14505 # what "hidden" libraries, object files and flags are used when
14506 # linking a shared library.
14507 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14510 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14512 solaris2.[0-5] | solaris2.[0-5].*) ;;
14514 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14522 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14523 no_undefined_flag_CXX='${wl}-z,text'
14524 archive_cmds_need_lc_CXX=no
14525 hardcode_shlibpath_var_CXX=no
14526 runpath_var='LD_RUN_PATH'
14528 case $cc_basename in
14530 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540 sysv5* | sco3.2v5* | sco5v6*)
14541 # Note: We can NOT use -z defs as we might desire, because we do not
14542 # link with -lc, and that would cause any symbols used from libc to
14543 # always be unresolved, which means just about no library would
14544 # ever link correctly. If we're not using GNU ld we use -z text
14545 # though, which does catch some bad symbols but isn't as heavy-handed
14547 no_undefined_flag_CXX='${wl}-z,text'
14548 allow_undefined_flag_CXX='${wl}-z,nodefs'
14549 archive_cmds_need_lc_CXX=no
14550 hardcode_shlibpath_var_CXX=no
14551 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14552 hardcode_libdir_separator_CXX=':'
14553 link_all_deplibs_CXX=yes
14554 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14555 runpath_var='LD_RUN_PATH'
14557 case $cc_basename in
14559 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14560 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14561 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14562 '"$old_archive_cmds_CXX"
14563 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14564 '"$reload_cmds_CXX"
14567 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14574 case $cc_basename in
14576 # NonStop-UX NCC 3.20
14577 # FIXME: insert proper C++ library support
14581 # FIXME: insert proper C++ library support
14588 # FIXME: insert proper C++ library support
14593 # FIXME: insert proper C++ library support
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14599 $as_echo "$ld_shlibs_CXX" >&6; }
14600 test "$ld_shlibs_CXX" = no && can_build_shared=no
14606 ## There is no encapsulation within the following macros, do not change
14607 ## the running order or otherwise move them around unless you know exactly
14608 ## what you are doing...
14609 # Dependencies to place before and after the object being linked:
14610 predep_objects_CXX=
14611 postdep_objects_CXX=
14614 compiler_lib_search_path_CXX=
14616 cat > conftest.$ac_ext <<_LT_EOF
14620 Foo (void) { a = 0; }
14627 _lt_libdeps_save_CFLAGS=$CFLAGS
14628 case "$CC $CFLAGS " in #(
14629 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14630 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14634 (eval $ac_compile) 2>&5
14636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14637 test $ac_status = 0; }; then
14638 # Parse the compiler output and extract the necessary
14639 # objects, libraries and library flags.
14641 # Sentinel used to keep track of whether or not we are before
14642 # the conftest object file.
14643 pre_test_object_deps_done=no
14645 for p in `eval "$output_verbose_link_cmd"`; do
14646 case ${prev}${p} in
14649 # Some compilers place space between "-{L,R}" and the path.
14650 # Remove the space.
14651 if test $p = "-L" ||
14652 test $p = "-R"; then
14657 # Expand the sysroot to ease extracting the directories later.
14658 if test -z "$prev"; then
14660 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14661 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14662 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14666 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14668 if test "$pre_test_object_deps_done" = no; then
14671 # Internal compiler library paths should come after those
14672 # provided the user. The postdeps already come after the
14673 # user supplied libs so there is no need to process them.
14674 if test -z "$compiler_lib_search_path_CXX"; then
14675 compiler_lib_search_path_CXX="${prev}${p}"
14677 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14680 # The "-l" case would never come before the object being
14681 # linked, so don't bother handling this case.
14684 if test -z "$postdeps_CXX"; then
14685 postdeps_CXX="${prev}${p}"
14687 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14693 *.lto.$objext) ;; # Ignore GCC LTO objects
14695 # This assumes that the test object file only shows up
14696 # once in the compiler output.
14697 if test "$p" = "conftest.$objext"; then
14698 pre_test_object_deps_done=yes
14702 if test "$pre_test_object_deps_done" = no; then
14703 if test -z "$predep_objects_CXX"; then
14704 predep_objects_CXX="$p"
14706 predep_objects_CXX="$predep_objects_CXX $p"
14709 if test -z "$postdep_objects_CXX"; then
14710 postdep_objects_CXX="$p"
14712 postdep_objects_CXX="$postdep_objects_CXX $p"
14717 *) ;; # Ignore the rest.
14725 echo "libtool.m4: error: problem compiling CXX test program"
14728 $RM -f confest.$objext
14729 CFLAGS=$_lt_libdeps_save_CFLAGS
14731 # PORTME: override above test on systems where it is broken
14734 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14735 # hack all around it, let's just trust "g++" to DTRT.
14736 predep_objects_CXX=
14737 postdep_objects_CXX=
14742 case `$CC -V 2>&1 | sed 5q` in
14746 # The more standards-conforming stlport4 library is
14747 # incompatible with the Cstd library. Avoid specifying
14748 # it if it's in CXXFLAGS. Ignore libCrun as
14749 # -library=stlport4 depends on it.
14750 case " $CXX $CXXFLAGS " in
14751 *" -library=stlport4 "*)
14752 solaris_use_stlport4=yes
14756 if test "$solaris_use_stlport4" != yes; then
14757 postdeps_CXX='-library=Cstd -library=Crun'
14764 case $cc_basename in
14766 # The more standards-conforming stlport4 library is
14767 # incompatible with the Cstd library. Avoid specifying
14768 # it if it's in CXXFLAGS. Ignore libCrun as
14769 # -library=stlport4 depends on it.
14770 case " $CXX $CXXFLAGS " in
14771 *" -library=stlport4 "*)
14772 solaris_use_stlport4=yes
14776 # Adding this requires a known-good setup of shared libraries for
14777 # Sun compiler versions before 5.6, else PIC objects from an old
14778 # archive will be linked into the output, leading to subtle bugs.
14779 if test "$solaris_use_stlport4" != yes; then
14780 postdeps_CXX='-library=Cstd -library=Crun'
14788 case " $postdeps_CXX " in
14789 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14791 compiler_lib_search_dirs_CXX=
14792 if test -n "${compiler_lib_search_path_CXX}"; then
14793 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14826 lt_prog_compiler_wl_CXX=
14827 lt_prog_compiler_pic_CXX=
14828 lt_prog_compiler_static_CXX=
14831 # C++ specific cases for pic, static, wl, etc.
14832 if test "$GXX" = yes; then
14833 lt_prog_compiler_wl_CXX='-Wl,'
14834 lt_prog_compiler_static_CXX='-static'
14838 # All AIX code is PIC.
14839 if test "$host_cpu" = ia64; then
14840 # AIX 5 now supports IA64 processor
14841 lt_prog_compiler_static_CXX='-Bstatic'
14848 # see comment about AmigaOS4 .so support
14849 lt_prog_compiler_pic_CXX='-fPIC'
14852 # FIXME: we need at least 68020 code to build shared libraries, but
14853 # adding the `-m68020' flag to GCC prevents building anything better,
14855 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14860 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14861 # PIC is the default for these OSes.
14863 mingw* | cygwin* | os2* | pw32* | cegcc*)
14864 # This hack is so that the source file can tell whether it is being
14865 # built for inclusion in a dll (and should export symbols for example).
14866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14867 # (--disable-auto-import) libraries
14868 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14870 darwin* | rhapsody*)
14871 # PIC is the default on this platform
14872 # Common symbols not allowed in MH_DYLIB files
14873 lt_prog_compiler_pic_CXX='-fno-common'
14876 # DJGPP does not support shared libraries at all
14877 lt_prog_compiler_pic_CXX=
14880 # PIC is the default for Haiku.
14881 # The "-static" flag exists, but is broken.
14882 lt_prog_compiler_static_CXX=
14885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14886 # Instead, we relocate shared libraries at runtime.
14889 if test -d /usr/nec; then
14890 lt_prog_compiler_pic_CXX=-Kconform_pic
14894 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14895 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14896 # sets the default TLS model and affects inlining.
14901 lt_prog_compiler_pic_CXX='-fPIC'
14906 # QNX uses GNU C++, but need to define -shared option too, otherwise
14907 # it will coredump.
14908 lt_prog_compiler_pic_CXX='-fPIC -shared'
14911 lt_prog_compiler_pic_CXX='-fPIC'
14917 # All AIX code is PIC.
14918 if test "$host_cpu" = ia64; then
14919 # AIX 5 now supports IA64 processor
14920 lt_prog_compiler_static_CXX='-Bstatic'
14922 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14926 case $cc_basename in
14928 # Green Hills C++ Compiler
14929 # _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"
14933 mingw* | cygwin* | os2* | pw32* | cegcc*)
14934 # This hack is so that the source file can tell whether it is being
14935 # built for inclusion in a dll (and should export symbols for example).
14936 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14939 case $cc_basename in
14941 lt_prog_compiler_pic_CXX='-KPIC'
14944 # Green Hills C++ Compiler
14945 lt_prog_compiler_pic_CXX='-pic'
14951 freebsd* | dragonfly*)
14952 # FreeBSD uses GNU C++
14954 hpux9* | hpux10* | hpux11*)
14955 case $cc_basename in
14957 lt_prog_compiler_wl_CXX='-Wl,'
14958 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14959 if test "$host_cpu" != ia64; then
14960 lt_prog_compiler_pic_CXX='+Z'
14964 lt_prog_compiler_wl_CXX='-Wl,'
14965 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14971 lt_prog_compiler_pic_CXX='+Z'
14980 # This is c89, which is MS Visual C++ (no shared libs)
14981 # Anyone wants to do a port?
14983 irix5* | irix6* | nonstopux*)
14984 case $cc_basename in
14986 lt_prog_compiler_wl_CXX='-Wl,'
14987 lt_prog_compiler_static_CXX='-non_shared'
14988 # CC pic flag -KPIC is the default.
14994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14995 case $cc_basename in
14998 lt_prog_compiler_wl_CXX='--backend -Wl,'
14999 lt_prog_compiler_pic_CXX='-fPIC'
15002 # old Intel C++ for x86_64 which still supported -KPIC.
15003 lt_prog_compiler_wl_CXX='-Wl,'
15004 lt_prog_compiler_pic_CXX='-KPIC'
15005 lt_prog_compiler_static_CXX='-static'
15008 # Intel C++, used to be incompatible with GCC.
15009 # ICC 10 doesn't accept -KPIC any more.
15010 lt_prog_compiler_wl_CXX='-Wl,'
15011 lt_prog_compiler_pic_CXX='-fPIC'
15012 lt_prog_compiler_static_CXX='-static'
15015 # Portland Group C++ compiler
15016 lt_prog_compiler_wl_CXX='-Wl,'
15017 lt_prog_compiler_pic_CXX='-fpic'
15018 lt_prog_compiler_static_CXX='-Bstatic'
15022 # Make sure the PIC flag is empty. It appears that all Alpha
15023 # Linux and Compaq Tru64 Unix objects are PIC.
15024 lt_prog_compiler_pic_CXX=
15025 lt_prog_compiler_static_CXX='-non_shared'
15027 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15028 # IBM XL 8.0, 9.0 on PPC and BlueGene
15029 lt_prog_compiler_wl_CXX='-Wl,'
15030 lt_prog_compiler_pic_CXX='-qpic'
15031 lt_prog_compiler_static_CXX='-qstaticlink'
15034 case `$CC -V 2>&1 | sed 5q` in
15037 lt_prog_compiler_pic_CXX='-KPIC'
15038 lt_prog_compiler_static_CXX='-Bstatic'
15039 lt_prog_compiler_wl_CXX='-Qoption ld '
15050 case $cc_basename in
15052 lt_prog_compiler_pic_CXX='-W c,exportall'
15061 # QNX uses GNU C++, but need to define -shared option too, otherwise
15062 # it will coredump.
15063 lt_prog_compiler_pic_CXX='-fPIC -shared'
15065 osf3* | osf4* | osf5*)
15066 case $cc_basename in
15068 lt_prog_compiler_wl_CXX='--backend -Wl,'
15071 # Rational C++ 2.4.1
15072 lt_prog_compiler_pic_CXX='-pic'
15075 # Digital/Compaq C++
15076 lt_prog_compiler_wl_CXX='-Wl,'
15077 # Make sure the PIC flag is empty. It appears that all Alpha
15078 # Linux and Compaq Tru64 Unix objects are PIC.
15079 lt_prog_compiler_pic_CXX=
15080 lt_prog_compiler_static_CXX='-non_shared'
15089 case $cc_basename in
15091 # Sun C++ 4.2, 5.x and Centerline C++
15092 lt_prog_compiler_pic_CXX='-KPIC'
15093 lt_prog_compiler_static_CXX='-Bstatic'
15094 lt_prog_compiler_wl_CXX='-Qoption ld '
15097 # Green Hills C++ Compiler
15098 lt_prog_compiler_pic_CXX='-PIC'
15105 case $cc_basename in
15108 lt_prog_compiler_pic_CXX='-pic'
15109 lt_prog_compiler_static_CXX='-Bstatic'
15113 lt_prog_compiler_pic_CXX='-pic'
15119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15120 case $cc_basename in
15122 lt_prog_compiler_wl_CXX='-Wl,'
15123 lt_prog_compiler_pic_CXX='-KPIC'
15124 lt_prog_compiler_static_CXX='-Bstatic'
15129 case $cc_basename in
15131 # NonStop-UX NCC 3.20
15132 lt_prog_compiler_pic_CXX='-KPIC'
15141 lt_prog_compiler_can_build_shared_CXX=no
15147 # For platforms which do not support PIC, -DPIC is meaningless:
15149 lt_prog_compiler_pic_CXX=
15152 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15157 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15158 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15159 $as_echo_n "(cached) " >&6
15161 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15164 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15165 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15168 # Check to make sure the PIC flag actually works.
15170 if test -n "$lt_prog_compiler_pic_CXX"; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15173 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15174 $as_echo_n "(cached) " >&6
15176 lt_cv_prog_compiler_pic_works_CXX=no
15177 ac_outfile=conftest.$ac_objext
15178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15179 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15180 # Insert the option either (1) after the last *FLAGS variable, or
15181 # (2) before a word containing "conftest.", or (3) at the end.
15182 # Note that $ac_compile itself does not contain backslashes and begins
15183 # with a dollar sign (not a hyphen), so the echo should work correctly.
15184 # The option is referenced via a variable to avoid confusing sed.
15185 lt_compile=`echo "$ac_compile" | $SED \
15186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15188 -e 's:$: $lt_compiler_flag:'`
15189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15190 (eval "$lt_compile" 2>conftest.err)
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 if (exit $ac_status) && test -s "$ac_outfile"; then
15195 # The compiler can only warn and ignore the option if not recognized
15196 # So say no if there are warnings other than the usual output.
15197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15200 lt_cv_prog_compiler_pic_works_CXX=yes
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15207 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15209 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15210 case $lt_prog_compiler_pic_CXX in
15212 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15215 lt_prog_compiler_pic_CXX=
15216 lt_prog_compiler_can_build_shared_CXX=no
15226 # Check to make sure the static flag actually works.
15228 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15230 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15231 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15232 $as_echo_n "(cached) " >&6
15234 lt_cv_prog_compiler_static_works_CXX=no
15235 save_LDFLAGS="$LDFLAGS"
15236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15239 # The linker can only warn and ignore the option if not recognized
15240 # So say no if there are warnings
15241 if test -s conftest.err; then
15242 # Append any errors to the config.log.
15243 cat conftest.err 1>&5
15244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15246 if diff conftest.exp conftest.er2 >/dev/null; then
15247 lt_cv_prog_compiler_static_works_CXX=yes
15250 lt_cv_prog_compiler_static_works_CXX=yes
15254 LDFLAGS="$save_LDFLAGS"
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15258 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15260 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15263 lt_prog_compiler_static_CXX=
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15271 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15272 $as_echo_n "(cached) " >&6
15274 lt_cv_prog_compiler_c_o_CXX=no
15275 $RM -r conftest 2>/dev/null
15279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15281 lt_compiler_flag="-o out/conftest2.$ac_objext"
15282 # Insert the option either (1) after the last *FLAGS variable, or
15283 # (2) before a word containing "conftest.", or (3) at the end.
15284 # Note that $ac_compile itself does not contain backslashes and begins
15285 # with a dollar sign (not a hyphen), so the echo should work correctly.
15286 lt_compile=`echo "$ac_compile" | $SED \
15287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15289 -e 's:$: $lt_compiler_flag:'`
15290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15291 (eval "$lt_compile" 2>out/conftest.err)
15293 cat out/conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15297 # The compiler can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15302 lt_cv_prog_compiler_c_o_CXX=yes
15307 # SGI C++ compiler will create directory out/ii_files/ for
15308 # template instantiation
15309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15310 $RM out/* && rmdir out
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15317 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15323 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 lt_cv_prog_compiler_c_o_CXX=no
15327 $RM -r conftest 2>/dev/null
15331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15333 lt_compiler_flag="-o out/conftest2.$ac_objext"
15334 # Insert the option either (1) after the last *FLAGS variable, or
15335 # (2) before a word containing "conftest.", or (3) at the end.
15336 # Note that $ac_compile itself does not contain backslashes and begins
15337 # with a dollar sign (not a hyphen), so the echo should work correctly.
15338 lt_compile=`echo "$ac_compile" | $SED \
15339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15341 -e 's:$: $lt_compiler_flag:'`
15342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15343 (eval "$lt_compile" 2>out/conftest.err)
15345 cat out/conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15349 # The compiler can only warn and ignore the option if not recognized
15350 # So say no if there are warnings
15351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15354 lt_cv_prog_compiler_c_o_CXX=yes
15359 # SGI C++ compiler will create directory out/ii_files/ for
15360 # template instantiation
15361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15362 $RM out/* && rmdir out
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15369 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15374 hard_links="nottested"
15375 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15376 # do not overwrite the value of need_locks provided by the user
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15378 $as_echo_n "checking if we can lock with hard links... " >&6; }
15381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15383 ln conftest.a conftest.b 2>&5 || hard_links=no
15384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15386 $as_echo "$hard_links" >&6; }
15387 if test "$hard_links" = no; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15389 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15399 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15401 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15402 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15405 # If we're using GNU nm, then we don't want the "-C" option.
15406 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15407 # Also, AIX nm treats weak defined symbols like other global defined
15408 # symbols, whereas GNU nm marks them as "W".
15409 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15410 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'
15412 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'
15416 export_symbols_cmds_CXX="$ltdll_cmds"
15418 cygwin* | mingw* | cegcc*)
15419 case $cc_basename in
15422 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'
15423 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15428 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15433 $as_echo "$ld_shlibs_CXX" >&6; }
15434 test "$ld_shlibs_CXX" = no && can_build_shared=no
15436 with_gnu_ld_CXX=$with_gnu_ld
15444 # Do we need to explicitly link libc?
15446 case "x$archive_cmds_need_lc_CXX" in
15448 # Assume -lc should be added
15449 archive_cmds_need_lc_CXX=yes
15451 if test "$enable_shared" = yes && test "$GCC" = yes; then
15452 case $archive_cmds_CXX in
15454 # FIXME: we may have to deal with multi-command sequences.
15457 # Test whether the compiler implicitly links with -lc since on some
15458 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15459 # to ld, don't add -lc before -lgcc.
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15461 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15462 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15463 $as_echo_n "(cached) " >&6
15466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15469 (eval $ac_compile) 2>&5
15471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15472 test $ac_status = 0; } 2>conftest.err; then
15475 libobjs=conftest.$ac_objext
15477 wl=$lt_prog_compiler_wl_CXX
15478 pic_flag=$lt_prog_compiler_pic_CXX
15484 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15485 allow_undefined_flag_CXX=
15486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15487 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15490 test $ac_status = 0; }
15492 lt_cv_archive_cmds_need_lc_CXX=no
15494 lt_cv_archive_cmds_need_lc_CXX=yes
15496 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15498 cat conftest.err 1>&5
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15504 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15505 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15576 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15578 library_names_spec=
15579 libname_spec='lib$name'
15583 postuninstall_cmds=
15587 shlibpath_overrides_runpath=unknown
15589 dynamic_linker="$host_os ld.so"
15590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602 shlibpath_var=LIBPATH
15604 # AIX 3 has no versioning support, so we append a major version to the name.
15605 soname_spec='${libname}${release}${shared_ext}$major'
15612 hardcode_into_libs=yes
15613 if test "$host_cpu" = ia64; then
15614 # AIX 5 supports IA64
15615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616 shlibpath_var=LD_LIBRARY_PATH
15618 # With GCC up to 2.95.x, collect2 would create an import file
15619 # for dependence libraries. The import file would start with
15620 # the line `#! .'. This would cause the generated library to
15621 # depend on `.', always an invalid library. This was fixed in
15622 # development snapshots of GCC prior to 3.0.
15624 aix4 | aix4.[01] | aix4.[01].*)
15625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15627 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15630 can_build_shared=no
15634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635 # soname into executable. Probably we can add versioning support to
15636 # collect2, so additional links can be useful in future.
15637 if test "$aix_use_runtimelinking" = yes; then
15638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639 # instead of lib<name>.a to let people know that these are not
15640 # typical AIX shared libraries.
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 # We preserve .a as extension for shared libraries through AIX4.2
15644 # and later when we are not doing run time linking.
15645 library_names_spec='${libname}${release}.a $libname.a'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LIBPATH
15655 # Since July 2007 AmigaOS4 officially supports .so libraries.
15656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 library_names_spec='$libname.ixlibrary $libname.a'
15661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15662 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'
15668 library_names_spec='${libname}${shared_ext}'
15669 dynamic_linker="$host_os ld.so"
15670 shlibpath_var=LIBRARY_PATH
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15682 # the default ld.so.conf also contains /usr/contrib/lib and
15683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15684 # libtool to hard-code these into programs
15687 cygwin* | mingw* | pw32* | cegcc*)
15688 version_type=windows
15693 case $GCC,$cc_basename in
15696 library_names_spec='$libname.dll.a'
15697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15698 postinstall_cmds='base_file=`basename \${file}`~
15699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15700 dldir=$destdir/`dirname \$dlpath`~
15701 test -d \$dldir || mkdir -p \$dldir~
15702 $install_prog $dir/$dlname \$dldir/$dlname~
15703 chmod a+x \$dldir/$dlname~
15704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15708 dlpath=$dir/\$dldll~
15710 shlibpath_overrides_runpath=yes
15714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15719 # MinGW DLLs use traditional 'lib' prefix
15720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723 # pw32 DLLs use 'pw' prefix rather than 'lib'
15724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727 dynamic_linker='Win32 ld.exe'
15732 libname_spec='$name'
15733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15734 library_names_spec='${libname}.dll.lib'
15738 sys_lib_search_path_spec=
15741 for lt_path in $LIB
15744 # Let DOS variable expansion print the short 8.3 style file name.
15745 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15746 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15749 # Convert to MSYS style.
15750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15753 # Convert to unix form, then to dos form, then back to unix form
15754 # but this time dos style (no spaces!) so that the unix form looks
15755 # like /cygdrive/c/PROGRA~1:/cygdr...
15756 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15757 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15758 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15761 sys_lib_search_path_spec="$LIB"
15762 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15763 # It is most probably a Windows format PATH.
15764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15768 # FIXME: find the short name or the path components, as spaces are
15769 # common. (e.g. "Program Files" -> "PROGRA~1")
15773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15774 postinstall_cmds='base_file=`basename \${file}`~
15775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15776 dldir=$destdir/`dirname \$dlpath`~
15777 test -d \$dldir || mkdir -p \$dldir~
15778 $install_prog $dir/$dlname \$dldir/$dlname'
15779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780 dlpath=$dir/\$dldll~
15782 shlibpath_overrides_runpath=yes
15783 dynamic_linker='Win32 link.exe'
15787 # Assume MSVC wrapper
15788 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15789 dynamic_linker='Win32 ld.exe'
15792 # FIXME: first we should search . and the directory the executable is in
15796 darwin* | rhapsody*)
15797 dynamic_linker="$host_os dyld"
15798 version_type=darwin
15801 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15802 soname_spec='${libname}${release}${major}$shared_ext'
15803 shlibpath_overrides_runpath=yes
15804 shlibpath_var=DYLD_LIBRARY_PATH
15805 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
15823 freebsd* | dragonfly*)
15824 # DragonFly does not have aout. When/if they implement a new
15825 # versioning mechanism, adjust this.
15826 if test -x /usr/bin/objformat; then
15827 objformat=`/usr/bin/objformat`
15830 freebsd[123]*) objformat=aout ;;
15831 *) objformat=elf ;;
15834 version_type=freebsd-$objformat
15835 case $version_type in
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15846 shlibpath_var=LD_LIBRARY_PATH
15849 shlibpath_overrides_runpath=yes
15851 freebsd3.[01]* | freebsdelf3.[01]*)
15852 shlibpath_overrides_runpath=yes
15853 hardcode_into_libs=yes
15855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15857 shlibpath_overrides_runpath=no
15858 hardcode_into_libs=yes
15860 *) # from 4.6 on, and DragonFly
15861 shlibpath_overrides_runpath=yes
15862 hardcode_into_libs=yes
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 shlibpath_var=LD_LIBRARY_PATH
15874 hardcode_into_libs=yes
15881 dynamic_linker="$host_os runtime_loader"
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 shlibpath_var=LIBRARY_PATH
15885 shlibpath_overrides_runpath=yes
15886 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15887 hardcode_into_libs=yes
15890 hpux9* | hpux10* | hpux11*)
15891 # Give a soname corresponding to the major version so that dld.sl refuses to
15892 # link against other versions.
15899 hardcode_into_libs=yes
15900 dynamic_linker="$host_os dld.so"
15901 shlibpath_var=LD_LIBRARY_PATH
15902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 if test "X$HPUX_IA64_MODE" = X32; then
15906 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15908 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15914 hardcode_into_libs=yes
15915 dynamic_linker="$host_os dld.sl"
15916 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919 soname_spec='${libname}${release}${shared_ext}$major'
15920 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15925 dynamic_linker="$host_os dld.sl"
15926 shlibpath_var=SHLIB_PATH
15927 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15932 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15933 postinstall_cmds='chmod 555 $lib'
15934 # or fails outright, so override atomically:
15935 install_override_mode=555
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15945 shlibpath_var=LD_LIBRARY_PATH
15946 shlibpath_overrides_runpath=no
15947 hardcode_into_libs=yes
15950 irix5* | irix6* | nonstopux*)
15952 nonstopux*) version_type=nonstopux ;;
15954 if test "$lt_cv_prog_gnu_ld" = yes; then
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15965 irix5* | nonstopux*)
15966 libsuff= shlibsuff=
15969 case $LD in # libtool.m4 will add one of these switches to LD
15970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15971 libsuff= shlibsuff= libmagic=32-bit;;
15972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15973 libsuff=32 shlibsuff=N32 libmagic=N32;;
15974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15976 *) libsuff= shlibsuff= libmagic=never-match;;
15980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15981 shlibpath_overrides_runpath=no
15982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15984 hardcode_into_libs=yes
15987 # No shared lib support for Linux oldld, aout, or coff.
15988 linux*oldld* | linux*aout* | linux*coff*)
15992 # This must be Linux ELF.
15993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=no
16003 # Some binutils ld are patched to set DT_RUNPATH
16004 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16005 $as_echo_n "(cached) " >&6
16007 lt_cv_shlibpath_overrides_runpath=no
16008 save_LDFLAGS=$LDFLAGS
16009 save_libdir=$libdir
16010 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16011 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16023 if ac_fn_cxx_try_link "$LINENO"; then :
16024 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16025 lt_cv_shlibpath_overrides_runpath=yes
16028 rm -f core conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext conftest.$ac_ext
16030 LDFLAGS=$save_LDFLAGS
16031 libdir=$save_libdir
16035 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16037 # This implies no fast_install, which is unacceptable.
16038 # Some rework will be needed to allow for fast_install
16039 # before this can be enabled.
16040 hardcode_into_libs=yes
16042 # Append ld.so.conf contents to the search path
16043 if test -f /etc/ld.so.conf; then
16044 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' ' '`
16045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16048 # We used to test for /lib/ld.so.1 and disable shared libraries on
16049 # powerpc, because MkLinux only supported shared libraries with the
16050 # GNU dynamic linker. Since this was broken with cross compilers,
16051 # most powerpc-linux boxes support dynamic linking these days and
16052 # people can always --disable-shared, the test was removed, and we
16053 # assume the GNU/Linux dynamic linker is in use.
16054 dynamic_linker='GNU/Linux ld.so'
16061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16064 dynamic_linker='NetBSD (a.out) ld.so'
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 dynamic_linker='NetBSD ld.elf_so'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=yes
16072 hardcode_into_libs=yes
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=yes
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 shlibpath_overrides_runpath=no
16090 hardcode_into_libs=yes
16091 dynamic_linker='ldqnx.so'
16096 sys_lib_dlsearch_path_spec="/usr/lib"
16098 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16100 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16101 *) need_version=no ;;
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16108 openbsd2.[89] | openbsd2.[89].*)
16109 shlibpath_overrides_runpath=no
16112 shlibpath_overrides_runpath=yes
16116 shlibpath_overrides_runpath=yes
16121 libname_spec='$name'
16124 library_names_spec='$libname${shared_ext} $libname.a'
16125 dynamic_linker='OS/2 ld.exe'
16126 shlibpath_var=LIBPATH
16129 osf3* | osf4* | osf5*)
16133 soname_spec='${libname}${release}${shared_ext}$major'
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149 soname_spec='${libname}${release}${shared_ext}$major'
16150 shlibpath_var=LD_LIBRARY_PATH
16151 shlibpath_overrides_runpath=yes
16152 hardcode_into_libs=yes
16153 # ldd complains unless libraries are executable
16154 postinstall_cmds='chmod +x $lib'
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16161 shlibpath_var=LD_LIBRARY_PATH
16162 shlibpath_overrides_runpath=yes
16163 if test "$with_gnu_ld" = yes; then
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 case $host_vendor in
16176 shlibpath_overrides_runpath=no
16178 runpath_var=LD_RUN_PATH
16186 shlibpath_overrides_runpath=no
16187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16193 if test -d /usr/nec ;then
16195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16196 soname_spec='$libname${shared_ext}.$major'
16197 shlibpath_var=LD_LIBRARY_PATH
16201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16202 version_type=freebsd-elf
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 shlibpath_overrides_runpath=yes
16209 hardcode_into_libs=yes
16210 if test "$with_gnu_ld" = yes; then
16211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16213 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16220 sys_lib_dlsearch_path_spec='/usr/lib'
16224 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=no
16231 hardcode_into_libs=yes
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 shlibpath_var=LD_LIBRARY_PATH
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16246 $as_echo "$dynamic_linker" >&6; }
16247 test "$dynamic_linker" = no && can_build_shared=no
16249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16250 if test "$GCC" = yes; then
16251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16254 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16255 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16257 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16258 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16299 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16300 hardcode_action_CXX=
16301 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16302 test -n "$runpath_var_CXX" ||
16303 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16305 # We can hardcode non-existent directories.
16306 if test "$hardcode_direct_CXX" != no &&
16307 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16308 # have to relink, otherwise we might link with an installed library
16309 # when we should be linking with a yet-to-be-installed one
16310 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16311 test "$hardcode_minus_L_CXX" != no; then
16312 # Linking always hardcodes the temporary library directory.
16313 hardcode_action_CXX=relink
16315 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16316 hardcode_action_CXX=immediate
16319 # We cannot hardcode anything, or else we can only hardcode existing
16321 hardcode_action_CXX=unsupported
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16324 $as_echo "$hardcode_action_CXX" >&6; }
16326 if test "$hardcode_action_CXX" = relink ||
16327 test "$inherit_rpath_CXX" = yes; then
16328 # Fast installation is not supported
16329 enable_fast_install=no
16330 elif test "$shlibpath_overrides_runpath" = yes ||
16331 test "$enable_shared" = no; then
16332 # Fast installation is not necessary
16333 enable_fast_install=needless
16342 fi # test -n "$compiler"
16345 CFLAGS=$lt_save_CFLAGS
16349 with_gnu_ld=$lt_save_with_gnu_ld
16350 lt_cv_path_LDCXX=$lt_cv_path_LD
16351 lt_cv_path_LD=$lt_save_path_LD
16352 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16353 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16354 fi # test "$_lt_caught_CXX_error" != yes
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16374 ac_config_commands="$ac_config_commands libtool"
16379 # Only expand once:
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16395 $as_echo_n "checking for library containing dlopen... " >&6; }
16396 if ${ac_cv_search_dlopen+:} false; then :
16397 $as_echo_n "(cached) " >&6
16399 ac_func_search_save_LIBS=$LIBS
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16418 for ac_lib in '' dl; do
16419 if test -z "$ac_lib"; then
16420 ac_res="none required"
16423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16425 if ac_fn_c_try_link "$LINENO"; then :
16426 ac_cv_search_dlopen=$ac_res
16428 rm -f core conftest.err conftest.$ac_objext \
16430 if ${ac_cv_search_dlopen+:} false; then :
16434 if ${ac_cv_search_dlopen+:} false; then :
16437 ac_cv_search_dlopen=no
16439 rm conftest.$ac_ext
16440 LIBS=$ac_func_search_save_LIBS
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16443 $as_echo "$ac_cv_search_dlopen" >&6; }
16444 ac_res=$ac_cv_search_dlopen
16445 if test "$ac_res" != no; then :
16446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16448 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16450 if test "$ac_cv_search_dlopen" != "none required" ; then
16451 LIBADD_DLOPEN="-ldl"
16453 libltdl_cv_lib_dl_dlopen="yes"
16454 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16459 # include <dlfcn.h>
16470 if ac_fn_c_try_link "$LINENO"; then :
16472 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16474 libltdl_cv_func_dlopen="yes"
16475 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16479 if ${ac_cv_lib_svld_dlopen+:} false; then :
16480 $as_echo_n "(cached) " >&6
16482 ac_check_lib_save_LIBS=$LIBS
16483 LIBS="-lsvld $LIBS"
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16487 /* Override any GCC internal prototype to avoid an error.
16488 Use char because int might match the return type of a GCC
16489 builtin and then its argument prototype would still apply. */
16502 if ac_fn_c_try_link "$LINENO"; then :
16503 ac_cv_lib_svld_dlopen=yes
16505 ac_cv_lib_svld_dlopen=no
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16513 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16515 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16517 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16518 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16526 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16528 lt_save_LIBS="$LIBS"
16529 LIBS="$LIBS $LIBADD_DLOPEN"
16530 for ac_func in dlerror
16532 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16533 if test "x$ac_cv_func_dlerror" = xyes; then :
16534 cat >>confdefs.h <<_ACEOF
16535 #define HAVE_DLERROR 1
16541 LIBS="$lt_save_LIBS"
16546 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16547 if test "x$ac_cv_func_shl_load" = xyes; then :
16549 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16551 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16554 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16555 if ${ac_cv_lib_dld_shl_load+:} false; then :
16556 $as_echo_n "(cached) " >&6
16558 ac_check_lib_save_LIBS=$LIBS
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16563 /* Override any GCC internal prototype to avoid an error.
16564 Use char because int might match the return type of a GCC
16565 builtin and then its argument prototype would still apply. */
16573 return shl_load ();
16578 if ac_fn_c_try_link "$LINENO"; then :
16579 ac_cv_lib_dld_shl_load=yes
16581 ac_cv_lib_dld_shl_load=no
16583 rm -f core conftest.err conftest.$ac_objext \
16584 conftest$ac_exeext conftest.$ac_ext
16585 LIBS=$ac_check_lib_save_LIBS
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16588 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16589 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16591 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16593 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16594 LIBADD_SHL_LOAD="-ldld"
16603 # We only want this for pre-Mac OS X 10.4.
16604 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16605 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16607 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16609 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16614 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16616 cygwin* | mingw* | os2* | pw32*)
16617 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16619 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16625 cat >>confdefs.h <<_ACEOF
16626 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16629 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16635 if ${ac_cv_lib_dld_dld_link+:} false; then :
16636 $as_echo_n "(cached) " >&6
16638 ac_check_lib_save_LIBS=$LIBS
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16643 /* Override any GCC internal prototype to avoid an error.
16644 Use char because int might match the return type of a GCC
16645 builtin and then its argument prototype would still apply. */
16653 return dld_link ();
16658 if ac_fn_c_try_link "$LINENO"; then :
16659 ac_cv_lib_dld_dld_link=yes
16661 ac_cv_lib_dld_dld_link=no
16663 rm -f core conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16669 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16671 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16673 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16680 if test -n "$LT_DLLOADERS"
16682 for lt_loader in $LT_DLLOADERS; do
16683 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16686 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16691 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16703 if test x$use_libtool != xno; then
16704 DEFAULT_OBJECT_TYPE=".lo"
16705 DEFAULT_ARCHIVE_TYPE=".la"
16706 DEFAULT_SHARED_OBJECT_TYPE=".la"
16707 LIBTOOL="\$(LIBTOOL)"
16708 LIBTOOL_INSTALL_TARGET="libtool-install"
16709 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16710 LIBTOOL_CLEAN_TARGET="libtool-clean"
16711 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16712 FD_PLUGIN_DIR="src/plugins/fd"
16715 DEFAULT_OBJECT_TYPE=".o"
16716 DEFAULT_ARCHIVE_TYPE=".a"
16717 DEFAULT_SHARED_OBJECT_TYPE=".so"
16718 LIBTOOL="# \$(LIBTOOL)"
16719 LIBTOOL_INSTALL_TARGET=""
16720 LIBTOOL_UNINSTALL_TARGET=""
16721 LIBTOOL_CLEAN_TARGET=""
16722 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16737 # Check whether --enable-includes was given.
16738 if test "${enable_includes+set}" = set; then :
16739 enableval=$enable_includes;
16740 if test x$enableval = xyes; then
16741 install_includes=yes
16749 if test x$use_libtool != xno -a x$install_includes = xyes; then
16750 INCLUDE_INSTALL_TARGET="install-includes"
16751 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16753 INCLUDE_INSTALL_TARGET=""
16754 INCLUDE_UNINSTALL_TARGET=""
16762 *cygwin* ) CYGWIN=yes;;
16766 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16772 HAVE_SUN_OS_FALSE='#'
16774 HAVE_SUN_OS_TRUE='#'
16777 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16784 HAVE_SUN_OS_FALSE='#'
16786 HAVE_SUN_OS_TRUE='#'
16791 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16797 HAVE_OSF1_OS_FALSE='#'
16799 HAVE_OSF1_OS_TRUE='#'
16800 HAVE_OSF1_OS_FALSE=
16802 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16809 HAVE_OSF1_OS_FALSE='#'
16811 HAVE_OSF1_OS_TRUE='#'
16812 HAVE_OSF1_OS_FALSE=
16816 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16822 HAVE_AIX_OS_FALSE='#'
16824 HAVE_AIX_OS_TRUE='#'
16827 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16834 HAVE_AIX_OS_FALSE='#'
16836 HAVE_AIX_OS_TRUE='#'
16841 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16847 HAVE_HPUX_OS_FALSE='#'
16849 HAVE_HPUX_OS_TRUE='#'
16850 HAVE_HPUX_OS_FALSE=
16852 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16859 HAVE_HPUX_OS_FALSE='#'
16861 HAVE_HPUX_OS_TRUE='#'
16862 HAVE_HPUX_OS_FALSE=
16866 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16871 HAVE_LINUX_OS_TRUE=
16872 HAVE_LINUX_OS_FALSE='#'
16874 HAVE_LINUX_OS_TRUE='#'
16875 HAVE_LINUX_OS_FALSE=
16877 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16883 HAVE_LINUX_OS_TRUE=
16884 HAVE_LINUX_OS_FALSE='#'
16886 HAVE_LINUX_OS_TRUE='#'
16887 HAVE_LINUX_OS_FALSE=
16891 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16896 HAVE_FREEBSD_OS_TRUE=
16897 HAVE_FREEBSD_OS_FALSE='#'
16899 HAVE_FREEBSD_OS_TRUE='#'
16900 HAVE_FREEBSD_OS_FALSE=
16902 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16908 HAVE_FREEBSD_OS_TRUE=
16909 HAVE_FREEBSD_OS_FALSE='#'
16911 HAVE_FREEBSD_OS_TRUE='#'
16912 HAVE_FREEBSD_OS_FALSE=
16916 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16921 HAVE_NETBSD_OS_TRUE=
16922 HAVE_NETBSD_OS_FALSE='#'
16924 HAVE_NETBSD_OS_TRUE='#'
16925 HAVE_NETBSD_OS_FALSE=
16927 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16933 HAVE_NETBSD_OS_TRUE=
16934 HAVE_NETBSD_OS_FALSE='#'
16936 HAVE_NETBSD_OS_TRUE='#'
16937 HAVE_NETBSD_OS_FALSE=
16941 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16946 HAVE_OPENBSD_OS_TRUE=
16947 HAVE_OPENBSD_OS_FALSE='#'
16949 HAVE_OPENBSD_OS_TRUE='#'
16950 HAVE_OPENBSD_OS_FALSE=
16952 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16958 HAVE_OPENBSD_OS_TRUE=
16959 HAVE_OPENBSD_OS_FALSE='#'
16961 HAVE_OPENBSD_OS_TRUE='#'
16962 HAVE_OPENBSD_OS_FALSE=
16966 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16972 HAVE_BSDI_OS_FALSE='#'
16974 HAVE_BSDI_OS_TRUE='#'
16975 HAVE_BSDI_OS_FALSE=
16977 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16984 HAVE_BSDI_OS_FALSE='#'
16986 HAVE_BSDI_OS_TRUE='#'
16987 HAVE_BSDI_OS_FALSE=
16991 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16997 HAVE_SGI_OS_FALSE='#'
16999 HAVE_SGI_OS_TRUE='#'
17002 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17009 HAVE_SGI_OS_FALSE='#'
17011 HAVE_SGI_OS_TRUE='#'
17016 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17022 HAVE_IRIX_OS_FALSE='#'
17024 HAVE_IRIX_OS_TRUE='#'
17025 HAVE_IRIX_OS_FALSE=
17027 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17034 HAVE_IRIX_OS_FALSE='#'
17036 HAVE_IRIX_OS_TRUE='#'
17037 HAVE_IRIX_OS_FALSE=
17041 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17046 HAVE_DARWIN_OS_TRUE=
17047 HAVE_DARWIN_OS_FALSE='#'
17049 HAVE_DARWIN_OS_TRUE='#'
17050 HAVE_DARWIN_OS_FALSE=
17052 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17058 HAVE_DARWIN_OS_TRUE=
17059 HAVE_DARWIN_OS_FALSE='#'
17061 HAVE_DARWIN_OS_TRUE='#'
17062 HAVE_DARWIN_OS_FALSE=
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17068 $as_echo_n "checking for Operating System Distribution... " >&6; }
17069 if test "x$DISTNAME" != "x"
17071 echo "distname set to $DISTNAME"
17072 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17075 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17078 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17081 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17084 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17099 elif test -f /etc/SuSE-release
17102 elif test -d /etc/SuSEconfig
17105 elif test -f /etc/mandrake-release
17108 elif test -f /etc/whitebox-release
17111 elif test -f /etc/redhat-release
17114 elif test -f /etc/gentoo-release
17117 elif test -f /etc/debian_version
17120 elif test -f /etc/slackware-version
17123 elif test x$host_vendor = xapple
17126 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17129 elif test -f /etc/engarde-version
17132 elif test -f /etc/arch-release
17135 elif test "$CYGWIN" = yes
17138 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17144 $as_echo "done" >&6; }
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17151 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17152 $as_echo_n "(cached) " >&6
17154 cat >conftest.make <<\_ACEOF
17157 @echo '@@@%%%=$(MAKE)=@@@%%%'
17159 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17161 *@@@%%%=?*=@@@%%%*)
17162 eval ac_cv_prog_make_${ac_make}_set=yes;;
17164 eval ac_cv_prog_make_${ac_make}_set=no;;
17166 rm -f conftest.make
17168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17170 $as_echo "yes" >&6; }
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174 $as_echo "no" >&6; }
17175 SET_MAKE="MAKE=${MAKE-make}"
17181 if test -n "$ac_aux_dir"; then
17182 case "$ac_aux_dir" in
17183 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17184 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17187 if test -z "$MKINSTALLDIRS"; then
17188 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17194 $as_echo_n "checking whether NLS is requested... " >&6; }
17195 # Check whether --enable-nls was given.
17196 if test "${enable_nls+set}" = set; then :
17197 enableval=$enable_nls; USE_NLS=$enableval
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17203 $as_echo "$USE_NLS" >&6; }
17210 # Prepare PATH_SEPARATOR.
17211 # The user is always right.
17212 if test "${PATH_SEPARATOR+set}" != set; then
17213 echo "#! /bin/sh" >conf$$.sh
17214 echo "exit 0" >>conf$$.sh
17216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17224 # Find out how to test for executable files. Don't use a zero-byte file,
17225 # as systems may use methods other than mode bits to determine executability.
17226 cat >conf$$.file <<_ASEOF
17230 chmod +x conf$$.file
17231 if test -x conf$$.file >/dev/null 2>&1; then
17232 ac_executable_p="test -x"
17234 ac_executable_p="test -f"
17238 # Extract the first word of "msgfmt", so it can be a program name with args.
17239 set dummy msgfmt; ac_word=$2
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17241 $as_echo_n "checking for $ac_word... " >&6; }
17242 if ${ac_cv_path_MSGFMT+:} false; then :
17243 $as_echo_n "(cached) " >&6
17247 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17250 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17251 for ac_dir in $PATH; do
17253 test -z "$ac_dir" && ac_dir=.
17254 for ac_exec_ext in '' $ac_executable_extensions; do
17255 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17256 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17257 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17258 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17259 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17266 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17270 MSGFMT="$ac_cv_path_MSGFMT"
17271 if test "$MSGFMT" != ":"; then
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17273 $as_echo "$MSGFMT" >&6; }
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17276 $as_echo "no" >&6; }
17279 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17280 set dummy gmsgfmt; ac_word=$2
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282 $as_echo_n "checking for $ac_word... " >&6; }
17283 if ${ac_cv_path_GMSGFMT+:} false; then :
17284 $as_echo_n "(cached) " >&6
17288 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17292 for as_dir in $PATH
17295 test -z "$as_dir" && as_dir=.
17296 for ac_exec_ext in '' $ac_executable_extensions; do
17297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17298 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17306 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17310 GMSGFMT=$ac_cv_path_GMSGFMT
17311 if test -n "$GMSGFMT"; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17313 $as_echo "$GMSGFMT" >&6; }
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17316 $as_echo "no" >&6; }
17322 # Prepare PATH_SEPARATOR.
17323 # The user is always right.
17324 if test "${PATH_SEPARATOR+set}" != set; then
17325 echo "#! /bin/sh" >conf$$.sh
17326 echo "exit 0" >>conf$$.sh
17328 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17336 # Find out how to test for executable files. Don't use a zero-byte file,
17337 # as systems may use methods other than mode bits to determine executability.
17338 cat >conf$$.file <<_ASEOF
17342 chmod +x conf$$.file
17343 if test -x conf$$.file >/dev/null 2>&1; then
17344 ac_executable_p="test -x"
17346 ac_executable_p="test -f"
17350 # Extract the first word of "xgettext", so it can be a program name with args.
17351 set dummy xgettext; ac_word=$2
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17353 $as_echo_n "checking for $ac_word... " >&6; }
17354 if ${ac_cv_path_XGETTEXT+:} false; then :
17355 $as_echo_n "(cached) " >&6
17357 case "$XGETTEXT" in
17359 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17362 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17363 for ac_dir in $PATH; do
17365 test -z "$ac_dir" && ac_dir=.
17366 for ac_exec_ext in '' $ac_executable_extensions; do
17367 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17368 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17369 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17370 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17371 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17378 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17382 XGETTEXT="$ac_cv_path_XGETTEXT"
17383 if test "$XGETTEXT" != ":"; then
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17385 $as_echo "$XGETTEXT" >&6; }
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17388 $as_echo "no" >&6; }
17394 # Prepare PATH_SEPARATOR.
17395 # The user is always right.
17396 if test "${PATH_SEPARATOR+set}" != set; then
17397 echo "#! /bin/sh" >conf$$.sh
17398 echo "exit 0" >>conf$$.sh
17400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17408 # Find out how to test for executable files. Don't use a zero-byte file,
17409 # as systems may use methods other than mode bits to determine executability.
17410 cat >conf$$.file <<_ASEOF
17414 chmod +x conf$$.file
17415 if test -x conf$$.file >/dev/null 2>&1; then
17416 ac_executable_p="test -x"
17418 ac_executable_p="test -f"
17422 # Extract the first word of "msgmerge", so it can be a program name with args.
17423 set dummy msgmerge; ac_word=$2
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17425 $as_echo_n "checking for $ac_word... " >&6; }
17426 if ${ac_cv_path_MSGMERGE+:} false; then :
17427 $as_echo_n "(cached) " >&6
17429 case "$MSGMERGE" in
17431 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17434 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17435 for ac_dir in $PATH; do
17437 test -z "$ac_dir" && ac_dir=.
17438 for ac_exec_ext in '' $ac_executable_extensions; do
17439 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17440 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17441 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17442 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17449 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17453 MSGMERGE="$ac_cv_path_MSGMERGE"
17454 if test "$MSGMERGE" != ":"; then
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17456 $as_echo "$MSGMERGE" >&6; }
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459 $as_echo "no" >&6; }
17463 if test "$GMSGFMT" != ":"; then
17464 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17465 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17468 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17470 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17475 if test "$XGETTEXT" != ":"; then
17476 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17477 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17481 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17487 ac_config_commands="$ac_config_commands default-1"
17491 if test "X$prefix" = "XNONE"; then
17492 acl_final_prefix="$ac_default_prefix"
17494 acl_final_prefix="$prefix"
17496 if test "X$exec_prefix" = "XNONE"; then
17497 acl_final_exec_prefix='${prefix}'
17499 acl_final_exec_prefix="$exec_prefix"
17501 acl_save_prefix="$prefix"
17502 prefix="$acl_final_prefix"
17503 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17504 prefix="$acl_save_prefix"
17507 # Check whether --with-gnu-ld was given.
17508 if test "${with_gnu_ld+set}" = set; then :
17509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17514 # Prepare PATH_SEPARATOR.
17515 # The user is always right.
17516 if test "${PATH_SEPARATOR+set}" != set; then
17517 echo "#! /bin/sh" >conf$$.sh
17518 echo "exit 0" >>conf$$.sh
17520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17528 if test "$GCC" = yes; then
17529 # Check if gcc -print-prog-name=ld gives a path.
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17531 $as_echo_n "checking for ld used by GCC... " >&6; }
17534 # gcc leaves a trailing carriage return which upsets mingw
17535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17540 # Accept absolute paths.
17541 [\\/]* | [A-Za-z]:[\\/]*)
17542 re_direlt='/[^/][^/]*/\.\./'
17543 # Canonicalize the path of ld
17544 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17545 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17546 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17548 test -z "$LD" && LD="$ac_prog"
17551 # If it fails, then pretend we aren't using GCC.
17555 # If it is relative, then search for the first ld in PATH.
17556 with_gnu_ld=unknown
17559 elif test "$with_gnu_ld" = yes; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17561 $as_echo_n "checking for GNU ld... " >&6; }
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17564 $as_echo_n "checking for non-GNU ld... " >&6; }
17566 if ${acl_cv_path_LD+:} false; then :
17567 $as_echo_n "(cached) " >&6
17569 if test -z "$LD"; then
17570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17571 for ac_dir in $PATH; do
17572 test -z "$ac_dir" && ac_dir=.
17573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17574 acl_cv_path_LD="$ac_dir/$ac_prog"
17575 # Check to see if the program is GNU ld. I'd rather use --version,
17576 # but apparently some GNU ld's only accept -v.
17577 # Break only if it was the GNU/non-GNU ld that we prefer.
17578 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17579 *GNU* | *'with BFD'*)
17580 test "$with_gnu_ld" != no && break ;;
17582 test "$with_gnu_ld" != yes && break ;;
17588 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17592 LD="$acl_cv_path_LD"
17593 if test -n "$LD"; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17595 $as_echo "$LD" >&6; }
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17598 $as_echo "no" >&6; }
17600 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17602 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17603 if ${acl_cv_prog_gnu_ld+:} false; then :
17604 $as_echo_n "(cached) " >&6
17606 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17607 case `$LD -v 2>&1 </dev/null` in
17608 *GNU* | *'with BFD'*)
17609 acl_cv_prog_gnu_ld=yes ;;
17611 acl_cv_prog_gnu_ld=no ;;
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17615 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17616 with_gnu_ld=$acl_cv_prog_gnu_ld
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17622 $as_echo_n "checking for shared library run path origin... " >&6; }
17623 if ${acl_cv_rpath+:} false; then :
17624 $as_echo_n "(cached) " >&6
17627 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17628 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17630 rm -f ./conftest.sh
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17635 $as_echo "$acl_cv_rpath" >&6; }
17637 libext="$acl_cv_libext"
17638 shlibext="$acl_cv_shlibext"
17639 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17640 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17641 hardcode_direct="$acl_cv_hardcode_direct"
17642 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17643 # Check whether --enable-rpath was given.
17644 if test "${enable_rpath+set}" = set; then :
17645 enableval=$enable_rpath; :
17659 acl_save_prefix="$prefix"
17660 prefix="$acl_final_prefix"
17661 acl_save_exec_prefix="$exec_prefix"
17662 exec_prefix="$acl_final_exec_prefix"
17664 eval additional_includedir=\"$includedir\"
17665 eval additional_libdir=\"$libdir\"
17667 exec_prefix="$acl_save_exec_prefix"
17668 prefix="$acl_save_prefix"
17671 # Check whether --with-libiconv-prefix was given.
17672 if test "${with_libiconv_prefix+set}" = set; then :
17673 withval=$with_libiconv_prefix;
17674 if test "X$withval" = "Xno"; then
17677 if test "X$withval" = "X"; then
17679 acl_save_prefix="$prefix"
17680 prefix="$acl_final_prefix"
17681 acl_save_exec_prefix="$exec_prefix"
17682 exec_prefix="$acl_final_exec_prefix"
17684 eval additional_includedir=\"$includedir\"
17685 eval additional_libdir=\"$libdir\"
17687 exec_prefix="$acl_save_exec_prefix"
17688 prefix="$acl_save_prefix"
17691 additional_includedir="$withval/include"
17692 additional_libdir="$withval/lib"
17703 names_already_handled=
17704 names_next_round='iconv '
17705 while test -n "$names_next_round"; do
17706 names_this_round="$names_next_round"
17708 for name in $names_this_round; do
17710 for n in $names_already_handled; do
17711 if test "$n" = "$name"; then
17712 already_handled=yes
17716 if test -z "$already_handled"; then
17717 names_already_handled="$names_already_handled $name"
17718 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17719 eval value=\"\$HAVE_LIB$uppername\"
17720 if test -n "$value"; then
17721 if test "$value" = yes; then
17722 eval value=\"\$LIB$uppername\"
17723 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17724 eval value=\"\$LTLIB$uppername\"
17725 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17734 if test $use_additional = yes; then
17735 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17736 found_dir="$additional_libdir"
17737 found_so="$additional_libdir/lib$name.$shlibext"
17738 if test -f "$additional_libdir/lib$name.la"; then
17739 found_la="$additional_libdir/lib$name.la"
17742 if test -f "$additional_libdir/lib$name.$libext"; then
17743 found_dir="$additional_libdir"
17744 found_a="$additional_libdir/lib$name.$libext"
17745 if test -f "$additional_libdir/lib$name.la"; then
17746 found_la="$additional_libdir/lib$name.la"
17751 if test "X$found_dir" = "X"; then
17752 for x in $LDFLAGS $LTLIBICONV; do
17754 acl_save_prefix="$prefix"
17755 prefix="$acl_final_prefix"
17756 acl_save_exec_prefix="$exec_prefix"
17757 exec_prefix="$acl_final_exec_prefix"
17759 exec_prefix="$acl_save_exec_prefix"
17760 prefix="$acl_save_prefix"
17764 dir=`echo "X$x" | sed -e 's/^X-L//'`
17765 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17767 found_so="$dir/lib$name.$shlibext"
17768 if test -f "$dir/lib$name.la"; then
17769 found_la="$dir/lib$name.la"
17772 if test -f "$dir/lib$name.$libext"; then
17774 found_a="$dir/lib$name.$libext"
17775 if test -f "$dir/lib$name.la"; then
17776 found_la="$dir/lib$name.la"
17782 if test "X$found_dir" != "X"; then
17787 if test "X$found_dir" != "X"; then
17788 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17789 if test "X$found_so" != "X"; then
17790 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17794 for x in $ltrpathdirs; do
17795 if test "X$x" = "X$found_dir"; then
17800 if test -z "$haveit"; then
17801 ltrpathdirs="$ltrpathdirs $found_dir"
17803 if test "$hardcode_direct" = yes; then
17804 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17806 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17807 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17809 for x in $rpathdirs; do
17810 if test "X$x" = "X$found_dir"; then
17815 if test -z "$haveit"; then
17816 rpathdirs="$rpathdirs $found_dir"
17820 for x in $LDFLAGS $LIBICONV; do
17822 acl_save_prefix="$prefix"
17823 prefix="$acl_final_prefix"
17824 acl_save_exec_prefix="$exec_prefix"
17825 exec_prefix="$acl_final_exec_prefix"
17827 exec_prefix="$acl_save_exec_prefix"
17828 prefix="$acl_save_prefix"
17830 if test "X$x" = "X-L$found_dir"; then
17835 if test -z "$haveit"; then
17836 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17838 if test "$hardcode_minus_L" != no; then
17839 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17841 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17847 if test "X$found_a" != "X"; then
17848 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17850 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17853 additional_includedir=
17854 case "$found_dir" in
17856 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17857 additional_includedir="$basedir/include"
17860 if test "X$additional_includedir" != "X"; then
17861 if test "X$additional_includedir" != "X/usr/include"; then
17863 if test "X$additional_includedir" = "X/usr/local/include"; then
17864 if test -n "$GCC"; then
17866 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17870 if test -z "$haveit"; then
17871 for x in $CPPFLAGS $INCICONV; do
17873 acl_save_prefix="$prefix"
17874 prefix="$acl_final_prefix"
17875 acl_save_exec_prefix="$exec_prefix"
17876 exec_prefix="$acl_final_exec_prefix"
17878 exec_prefix="$acl_save_exec_prefix"
17879 prefix="$acl_save_prefix"
17881 if test "X$x" = "X-I$additional_includedir"; then
17886 if test -z "$haveit"; then
17887 if test -d "$additional_includedir"; then
17888 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17894 if test -n "$found_la"; then
17895 save_libdir="$libdir"
17896 case "$found_la" in
17897 */* | *\\*) . "$found_la" ;;
17898 *) . "./$found_la" ;;
17900 libdir="$save_libdir"
17901 for dep in $dependency_libs; do
17904 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17905 if test "X$additional_libdir" != "X/usr/lib"; then
17907 if test "X$additional_libdir" = "X/usr/local/lib"; then
17908 if test -n "$GCC"; then
17910 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17914 if test -z "$haveit"; then
17916 for x in $LDFLAGS $LIBICONV; do
17918 acl_save_prefix="$prefix"
17919 prefix="$acl_final_prefix"
17920 acl_save_exec_prefix="$exec_prefix"
17921 exec_prefix="$acl_final_exec_prefix"
17923 exec_prefix="$acl_save_exec_prefix"
17924 prefix="$acl_save_prefix"
17926 if test "X$x" = "X-L$additional_libdir"; then
17931 if test -z "$haveit"; then
17932 if test -d "$additional_libdir"; then
17933 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17937 for x in $LDFLAGS $LTLIBICONV; do
17939 acl_save_prefix="$prefix"
17940 prefix="$acl_final_prefix"
17941 acl_save_exec_prefix="$exec_prefix"
17942 exec_prefix="$acl_final_exec_prefix"
17944 exec_prefix="$acl_save_exec_prefix"
17945 prefix="$acl_save_prefix"
17947 if test "X$x" = "X-L$additional_libdir"; then
17952 if test -z "$haveit"; then
17953 if test -d "$additional_libdir"; then
17954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17961 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17962 if test "$enable_rpath" != no; then
17964 for x in $rpathdirs; do
17965 if test "X$x" = "X$dir"; then
17970 if test -z "$haveit"; then
17971 rpathdirs="$rpathdirs $dir"
17974 for x in $ltrpathdirs; do
17975 if test "X$x" = "X$dir"; then
17980 if test -z "$haveit"; then
17981 ltrpathdirs="$ltrpathdirs $dir"
17986 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17989 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17992 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17993 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17999 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18000 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18006 if test "X$rpathdirs" != "X"; then
18007 if test -n "$hardcode_libdir_separator"; then
18009 for found_dir in $rpathdirs; do
18010 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18012 acl_save_libdir="$libdir"
18014 eval flag=\"$hardcode_libdir_flag_spec\"
18015 libdir="$acl_save_libdir"
18016 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18018 for found_dir in $rpathdirs; do
18019 acl_save_libdir="$libdir"
18020 libdir="$found_dir"
18021 eval flag=\"$hardcode_libdir_flag_spec\"
18022 libdir="$acl_save_libdir"
18023 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18027 if test "X$ltrpathdirs" != "X"; then
18028 for found_dir in $ltrpathdirs; do
18029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18051 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18052 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18053 $as_echo_n "(cached) " >&6
18055 gt_save_CPPFLAGS="$CPPFLAGS"
18056 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18057 gt_save_LIBS="$LIBS"
18058 LIBS="$LIBS -framework CoreFoundation"
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 #include <CFPreferences.h>
18065 CFPreferencesCopyAppValue(NULL, NULL)
18070 if ac_fn_c_try_link "$LINENO"; then :
18071 gt_cv_func_CFPreferencesCopyAppValue=yes
18073 gt_cv_func_CFPreferencesCopyAppValue=no
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077 CPPFLAGS="$gt_save_CPPFLAGS"
18078 LIBS="$gt_save_LIBS"
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18081 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18082 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18084 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18088 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18089 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18090 $as_echo_n "(cached) " >&6
18092 gt_save_CPPFLAGS="$CPPFLAGS"
18093 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18094 gt_save_LIBS="$LIBS"
18095 LIBS="$LIBS -framework CoreFoundation"
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18098 #include <CFLocale.h>
18102 CFLocaleCopyCurrent();
18107 if ac_fn_c_try_link "$LINENO"; then :
18108 gt_cv_func_CFLocaleCopyCurrent=yes
18110 gt_cv_func_CFLocaleCopyCurrent=no
18112 rm -f core conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18114 CPPFLAGS="$gt_save_CPPFLAGS"
18115 LIBS="$gt_save_LIBS"
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18118 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18119 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18121 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18125 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18126 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18133 $as_echo_n "checking whether NLS is requested... " >&6; }
18134 # Check whether --enable-nls was given.
18135 if test "${enable_nls+set}" = set; then :
18136 enableval=$enable_nls; USE_NLS=$enableval
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18142 $as_echo "$USE_NLS" >&6; }
18151 if test "$USE_NLS" = "yes"; then
18152 gt_use_preinstalled_gnugettext=no
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18160 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18161 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18162 $as_echo_n "(cached) " >&6
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18166 #include <libintl.h>
18167 extern int _nl_msg_cat_cntr;
18168 extern int *_nl_domain_bindings;
18172 bindtextdomain ("", "");
18173 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18178 if ac_fn_c_try_link "$LINENO"; then :
18179 gt_cv_func_gnugettext1_libc=yes
18181 gt_cv_func_gnugettext1_libc=no
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18187 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18189 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18195 am_save_CPPFLAGS="$CPPFLAGS"
18197 for element in $INCICONV; do
18199 for x in $CPPFLAGS; do
18201 acl_save_prefix="$prefix"
18202 prefix="$acl_final_prefix"
18203 acl_save_exec_prefix="$exec_prefix"
18204 exec_prefix="$acl_final_exec_prefix"
18206 exec_prefix="$acl_save_exec_prefix"
18207 prefix="$acl_save_prefix"
18209 if test "X$x" = "X$element"; then
18214 if test -z "$haveit"; then
18215 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18221 $as_echo_n "checking for iconv... " >&6; }
18222 if ${am_cv_func_iconv+:} false; then :
18223 $as_echo_n "(cached) " >&6
18226 am_cv_func_iconv="no, consider installing GNU libiconv"
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18230 #include <stdlib.h>
18235 iconv_t cd = iconv_open("","");
18236 iconv(cd,NULL,NULL,NULL,NULL);
18242 if ac_fn_c_try_link "$LINENO"; then :
18243 am_cv_func_iconv=yes
18245 rm -f core conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247 if test "$am_cv_func_iconv" != yes; then
18248 am_save_LIBS="$LIBS"
18249 LIBS="$LIBS $LIBICONV"
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18252 #include <stdlib.h>
18257 iconv_t cd = iconv_open("","");
18258 iconv(cd,NULL,NULL,NULL,NULL);
18264 if ac_fn_c_try_link "$LINENO"; then :
18265 am_cv_lib_iconv=yes
18266 am_cv_func_iconv=yes
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270 LIBS="$am_save_LIBS"
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18275 $as_echo "$am_cv_func_iconv" >&6; }
18276 if test "$am_cv_func_iconv" = yes; then
18278 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18281 if test "$am_cv_lib_iconv" = yes; then
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18283 $as_echo_n "checking how to link with libiconv... " >&6; }
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18285 $as_echo "$LIBICONV" >&6; }
18287 CPPFLAGS="$am_save_CPPFLAGS"
18299 acl_save_prefix="$prefix"
18300 prefix="$acl_final_prefix"
18301 acl_save_exec_prefix="$exec_prefix"
18302 exec_prefix="$acl_final_exec_prefix"
18304 eval additional_includedir=\"$includedir\"
18305 eval additional_libdir=\"$libdir\"
18307 exec_prefix="$acl_save_exec_prefix"
18308 prefix="$acl_save_prefix"
18311 # Check whether --with-libintl-prefix was given.
18312 if test "${with_libintl_prefix+set}" = set; then :
18313 withval=$with_libintl_prefix;
18314 if test "X$withval" = "Xno"; then
18317 if test "X$withval" = "X"; then
18319 acl_save_prefix="$prefix"
18320 prefix="$acl_final_prefix"
18321 acl_save_exec_prefix="$exec_prefix"
18322 exec_prefix="$acl_final_exec_prefix"
18324 eval additional_includedir=\"$includedir\"
18325 eval additional_libdir=\"$libdir\"
18327 exec_prefix="$acl_save_exec_prefix"
18328 prefix="$acl_save_prefix"
18331 additional_includedir="$withval/include"
18332 additional_libdir="$withval/lib"
18343 names_already_handled=
18344 names_next_round='intl '
18345 while test -n "$names_next_round"; do
18346 names_this_round="$names_next_round"
18348 for name in $names_this_round; do
18350 for n in $names_already_handled; do
18351 if test "$n" = "$name"; then
18352 already_handled=yes
18356 if test -z "$already_handled"; then
18357 names_already_handled="$names_already_handled $name"
18358 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18359 eval value=\"\$HAVE_LIB$uppername\"
18360 if test -n "$value"; then
18361 if test "$value" = yes; then
18362 eval value=\"\$LIB$uppername\"
18363 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18364 eval value=\"\$LTLIB$uppername\"
18365 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18374 if test $use_additional = yes; then
18375 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18376 found_dir="$additional_libdir"
18377 found_so="$additional_libdir/lib$name.$shlibext"
18378 if test -f "$additional_libdir/lib$name.la"; then
18379 found_la="$additional_libdir/lib$name.la"
18382 if test -f "$additional_libdir/lib$name.$libext"; then
18383 found_dir="$additional_libdir"
18384 found_a="$additional_libdir/lib$name.$libext"
18385 if test -f "$additional_libdir/lib$name.la"; then
18386 found_la="$additional_libdir/lib$name.la"
18391 if test "X$found_dir" = "X"; then
18392 for x in $LDFLAGS $LTLIBINTL; do
18394 acl_save_prefix="$prefix"
18395 prefix="$acl_final_prefix"
18396 acl_save_exec_prefix="$exec_prefix"
18397 exec_prefix="$acl_final_exec_prefix"
18399 exec_prefix="$acl_save_exec_prefix"
18400 prefix="$acl_save_prefix"
18404 dir=`echo "X$x" | sed -e 's/^X-L//'`
18405 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18407 found_so="$dir/lib$name.$shlibext"
18408 if test -f "$dir/lib$name.la"; then
18409 found_la="$dir/lib$name.la"
18412 if test -f "$dir/lib$name.$libext"; then
18414 found_a="$dir/lib$name.$libext"
18415 if test -f "$dir/lib$name.la"; then
18416 found_la="$dir/lib$name.la"
18422 if test "X$found_dir" != "X"; then
18427 if test "X$found_dir" != "X"; then
18428 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18429 if test "X$found_so" != "X"; then
18430 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18434 for x in $ltrpathdirs; do
18435 if test "X$x" = "X$found_dir"; then
18440 if test -z "$haveit"; then
18441 ltrpathdirs="$ltrpathdirs $found_dir"
18443 if test "$hardcode_direct" = yes; then
18444 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18446 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18447 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18449 for x in $rpathdirs; do
18450 if test "X$x" = "X$found_dir"; then
18455 if test -z "$haveit"; then
18456 rpathdirs="$rpathdirs $found_dir"
18460 for x in $LDFLAGS $LIBINTL; do
18462 acl_save_prefix="$prefix"
18463 prefix="$acl_final_prefix"
18464 acl_save_exec_prefix="$exec_prefix"
18465 exec_prefix="$acl_final_exec_prefix"
18467 exec_prefix="$acl_save_exec_prefix"
18468 prefix="$acl_save_prefix"
18470 if test "X$x" = "X-L$found_dir"; then
18475 if test -z "$haveit"; then
18476 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18478 if test "$hardcode_minus_L" != no; then
18479 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18481 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18487 if test "X$found_a" != "X"; then
18488 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18490 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18493 additional_includedir=
18494 case "$found_dir" in
18496 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18497 additional_includedir="$basedir/include"
18500 if test "X$additional_includedir" != "X"; then
18501 if test "X$additional_includedir" != "X/usr/include"; then
18503 if test "X$additional_includedir" = "X/usr/local/include"; then
18504 if test -n "$GCC"; then
18506 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18510 if test -z "$haveit"; then
18511 for x in $CPPFLAGS $INCINTL; do
18513 acl_save_prefix="$prefix"
18514 prefix="$acl_final_prefix"
18515 acl_save_exec_prefix="$exec_prefix"
18516 exec_prefix="$acl_final_exec_prefix"
18518 exec_prefix="$acl_save_exec_prefix"
18519 prefix="$acl_save_prefix"
18521 if test "X$x" = "X-I$additional_includedir"; then
18526 if test -z "$haveit"; then
18527 if test -d "$additional_includedir"; then
18528 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18534 if test -n "$found_la"; then
18535 save_libdir="$libdir"
18536 case "$found_la" in
18537 */* | *\\*) . "$found_la" ;;
18538 *) . "./$found_la" ;;
18540 libdir="$save_libdir"
18541 for dep in $dependency_libs; do
18544 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18545 if test "X$additional_libdir" != "X/usr/lib"; then
18547 if test "X$additional_libdir" = "X/usr/local/lib"; then
18548 if test -n "$GCC"; then
18550 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18554 if test -z "$haveit"; then
18556 for x in $LDFLAGS $LIBINTL; do
18558 acl_save_prefix="$prefix"
18559 prefix="$acl_final_prefix"
18560 acl_save_exec_prefix="$exec_prefix"
18561 exec_prefix="$acl_final_exec_prefix"
18563 exec_prefix="$acl_save_exec_prefix"
18564 prefix="$acl_save_prefix"
18566 if test "X$x" = "X-L$additional_libdir"; then
18571 if test -z "$haveit"; then
18572 if test -d "$additional_libdir"; then
18573 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18577 for x in $LDFLAGS $LTLIBINTL; do
18579 acl_save_prefix="$prefix"
18580 prefix="$acl_final_prefix"
18581 acl_save_exec_prefix="$exec_prefix"
18582 exec_prefix="$acl_final_exec_prefix"
18584 exec_prefix="$acl_save_exec_prefix"
18585 prefix="$acl_save_prefix"
18587 if test "X$x" = "X-L$additional_libdir"; then
18592 if test -z "$haveit"; then
18593 if test -d "$additional_libdir"; then
18594 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18601 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18602 if test "$enable_rpath" != no; then
18604 for x in $rpathdirs; do
18605 if test "X$x" = "X$dir"; then
18610 if test -z "$haveit"; then
18611 rpathdirs="$rpathdirs $dir"
18614 for x in $ltrpathdirs; do
18615 if test "X$x" = "X$dir"; then
18620 if test -z "$haveit"; then
18621 ltrpathdirs="$ltrpathdirs $dir"
18626 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18629 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18632 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18633 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18639 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18646 if test "X$rpathdirs" != "X"; then
18647 if test -n "$hardcode_libdir_separator"; then
18649 for found_dir in $rpathdirs; do
18650 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18652 acl_save_libdir="$libdir"
18654 eval flag=\"$hardcode_libdir_flag_spec\"
18655 libdir="$acl_save_libdir"
18656 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18658 for found_dir in $rpathdirs; do
18659 acl_save_libdir="$libdir"
18660 libdir="$found_dir"
18661 eval flag=\"$hardcode_libdir_flag_spec\"
18662 libdir="$acl_save_libdir"
18663 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18667 if test "X$ltrpathdirs" != "X"; then
18668 for found_dir in $ltrpathdirs; do
18669 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18674 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18675 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18676 $as_echo_n "(cached) " >&6
18678 gt_save_CPPFLAGS="$CPPFLAGS"
18679 CPPFLAGS="$CPPFLAGS $INCINTL"
18680 gt_save_LIBS="$LIBS"
18681 LIBS="$LIBS $LIBINTL"
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684 #include <libintl.h>
18685 extern int _nl_msg_cat_cntr;
18690 const char *_nl_expand_alias (const char *);
18694 bindtextdomain ("", "");
18695 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18700 if ac_fn_c_try_link "$LINENO"; then :
18701 gt_cv_func_gnugettext1_libintl=yes
18703 gt_cv_func_gnugettext1_libintl=no
18705 rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18708 LIBS="$LIBS $LIBICONV"
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711 #include <libintl.h>
18712 extern int _nl_msg_cat_cntr;
18717 const char *_nl_expand_alias (const char *);
18721 bindtextdomain ("", "");
18722 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18727 if ac_fn_c_try_link "$LINENO"; then :
18728 LIBINTL="$LIBINTL $LIBICONV"
18729 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18730 gt_cv_func_gnugettext1_libintl=yes
18733 rm -f core conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18736 CPPFLAGS="$gt_save_CPPFLAGS"
18737 LIBS="$gt_save_LIBS"
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18740 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18743 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18744 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18745 && test "$PACKAGE" != gettext-runtime \
18746 && test "$PACKAGE" != gettext-tools; }; then
18747 gt_use_preinstalled_gnugettext=yes
18756 if test -n "$INTL_MACOSX_LIBS"; then
18757 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18758 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18759 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18760 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18764 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18765 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18767 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18775 $as_echo_n "checking whether to use NLS... " >&6; }
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18777 $as_echo "$USE_NLS" >&6; }
18778 if test "$USE_NLS" = "yes"; then
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18780 $as_echo_n "checking where the gettext function comes from... " >&6; }
18781 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18782 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18783 gt_source="external libintl"
18788 gt_source="included intl directory"
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18791 $as_echo "$gt_source" >&6; }
18794 if test "$USE_NLS" = "yes"; then
18796 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18797 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18799 $as_echo_n "checking how to link with libintl... " >&6; }
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18801 $as_echo "$LIBINTL" >&6; }
18803 for element in $INCINTL; do
18805 for x in $CPPFLAGS; do
18807 acl_save_prefix="$prefix"
18808 prefix="$acl_final_prefix"
18809 acl_save_exec_prefix="$exec_prefix"
18810 exec_prefix="$acl_final_exec_prefix"
18812 exec_prefix="$acl_save_exec_prefix"
18813 prefix="$acl_save_prefix"
18815 if test "X$x" = "X$element"; then
18820 if test -z "$haveit"; then
18821 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18828 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18831 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18840 INTLLIBS="$LIBINTL"
18848 os_name=`uname -s 2>/dev/null`
18849 if test x${prefix} = xNONE ; then
18850 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18851 sysconfdir=/etc/bacula
18854 if test `eval echo ${libdir}` = NONE/lib ; then
18857 os_processor=`uname -p 2>/dev/null`
18858 case ${os_processor} in
18873 if test `eval echo ${includedir}` = NONE/include ; then
18874 includedir=/usr/include
18877 if test `eval echo ${datarootdir}` = NONE/share ; then
18878 datarootdir=/usr/share
18883 if test x${exec_prefix} = xNONE ; then
18884 exec_prefix=${prefix}
18887 sysconfdir=`eval echo ${sysconfdir}`
18888 datarootdir=`eval echo ${datarootdir}`
18889 docdir=`eval echo ${docdir}`
18890 htmldir=`eval echo ${htmldir}`
18891 libdir=`eval echo ${libdir}`
18892 includedir=`eval echo ${includedir}`
18893 localedir=`eval echo ${datarootdir}/locale`
18894 cat >>confdefs.h <<_ACEOF
18895 #define SYSCONFDIR "$sysconfdir"
18898 cat >>confdefs.h <<_ACEOF
18899 #define LOCALEDIR "$localedir"
18903 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18904 sbindir=${exec_prefix}/sbin
18906 sbindir=`eval echo ${sbindir}`
18908 if test x$mandir = x'${prefix}/man' ; then
18909 mandir=/usr/share/man
18912 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18913 htmldir=`eval echo ${docdir}html`
18916 if test x$docdir = x'/usr/share/doc/' ; then
18917 docdir=`eval echo ${docdir}bacula`
18921 for ac_prog in msgfmt
18923 # Extract the first word of "$ac_prog", so it can be a program name with args.
18924 set dummy $ac_prog; ac_word=$2
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18926 $as_echo_n "checking for $ac_word... " >&6; }
18927 if ${ac_cv_path_MSGFMT+:} false; then :
18928 $as_echo_n "(cached) " >&6
18932 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18936 for as_dir in $PATH
18939 test -z "$as_dir" && as_dir=.
18940 for ac_exec_ext in '' $ac_executable_extensions; do
18941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18942 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18953 MSGFMT=$ac_cv_path_MSGFMT
18954 if test -n "$MSGFMT"; then
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18956 $as_echo "$MSGFMT" >&6; }
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959 $as_echo "no" >&6; }
18963 test -n "$MSGFMT" && break
18965 test -n "$MSGFMT" || MSGFMT="no"
18967 if test "$MSGFMT" = "no"
18969 echo 'msgfmt program not found, disabling NLS !'
18971 USE_INCLUDED_LIBINTL=no
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18975 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18976 if ${ac_cv_gnu_library_2+:} false; then :
18977 $as_echo_n "(cached) " >&6
18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h. */
18982 #include <features.h>
18983 #ifdef __GNU_LIBRARY__
18984 #if (__GLIBC__ >= 2)
18990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18991 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18992 ac_cv_gnu_library_2=yes
18994 ac_cv_gnu_library_2=no
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19002 $as_echo "$ac_cv_gnu_library_2" >&6; }
19004 GLIBC2="$ac_cv_gnu_library_2"
19007 if test -n "$ac_tool_prefix"; then
19008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19011 $as_echo_n "checking for $ac_word... " >&6; }
19012 if ${ac_cv_prog_RANLIB+:} false; then :
19013 $as_echo_n "(cached) " >&6
19015 if test -n "$RANLIB"; then
19016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19019 for as_dir in $PATH
19022 test -z "$as_dir" && as_dir=.
19023 for ac_exec_ext in '' $ac_executable_extensions; do
19024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035 RANLIB=$ac_cv_prog_RANLIB
19036 if test -n "$RANLIB"; then
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19038 $as_echo "$RANLIB" >&6; }
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041 $as_echo "no" >&6; }
19046 if test -z "$ac_cv_prog_RANLIB"; then
19047 ac_ct_RANLIB=$RANLIB
19048 # Extract the first word of "ranlib", so it can be a program name with args.
19049 set dummy ranlib; ac_word=$2
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19051 $as_echo_n "checking for $ac_word... " >&6; }
19052 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19053 $as_echo_n "(cached) " >&6
19055 if test -n "$ac_ct_RANLIB"; then
19056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19059 for as_dir in $PATH
19062 test -z "$as_dir" && as_dir=.
19063 for ac_exec_ext in '' $ac_executable_extensions; do
19064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19065 ac_cv_prog_ac_ct_RANLIB="ranlib"
19066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19076 if test -n "$ac_ct_RANLIB"; then
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19078 $as_echo "$ac_ct_RANLIB" >&6; }
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081 $as_echo "no" >&6; }
19084 if test "x$ac_ct_RANLIB" = x; then
19087 case $cross_compiling:$ac_tool_warned in
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19091 ac_tool_warned=yes ;;
19093 RANLIB=$ac_ct_RANLIB
19096 RANLIB="$ac_cv_prog_RANLIB"
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19101 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19102 if ${ac_cv_lib_cposix_strerror+:} false; then :
19103 $as_echo_n "(cached) " >&6
19105 ac_check_lib_save_LIBS=$LIBS
19106 LIBS="-lcposix $LIBS"
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19120 return strerror ();
19125 if ac_fn_c_try_link "$LINENO"; then :
19126 ac_cv_lib_cposix_strerror=yes
19128 ac_cv_lib_cposix_strerror=no
19130 rm -f core conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19135 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19136 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19137 LIBS="$LIBS -lcposix"
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19143 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19144 if ${ac_cv_c_const+:} false; then :
19145 $as_echo_n "(cached) " >&6
19147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h. */
19153 /* FIXME: Include the comments suggested by Paul. */
19154 #ifndef __cplusplus
19155 /* Ultrix mips cc rejects this. */
19156 typedef int charset[2];
19158 /* SunOS 4.1.1 cc rejects this. */
19159 char const *const *pcpcc;
19161 /* NEC SVR4.0.2 mips cc rejects this. */
19162 struct point {int x, y;};
19163 static struct point const zero = {0,0};
19164 /* AIX XL C 1.02.0.0 rejects this.
19165 It does not let you subtract one const X* pointer from another in
19166 an arm of an if-expression whose if-part is not a constant
19168 const char *g = "string";
19169 pcpcc = &g + (g ? g-g : 0);
19170 /* HPUX 7.0 cc rejects these. */
19172 ppc = (char**) pcpcc;
19173 pcpcc = (char const *const *) ppc;
19174 { /* SCO 3.2v4 cc rejects this. */
19176 char const *s = 0 ? (char *) 0 : (char const *) 0;
19181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19182 int x[] = {25, 17};
19183 const int *foo = &x[0];
19186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19187 typedef const int *iptr;
19191 { /* AIX XL C 1.02.0.0 rejects this saying
19192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19193 struct s { int j; const int *ap[3]; };
19194 struct s *b; b->j = 5;
19196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19197 const int foo = 10;
19198 if (!foo) return 0;
19200 return !cs[0] && !zero.x;
19207 if ac_fn_c_try_compile "$LINENO"; then :
19212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19215 $as_echo "$ac_cv_c_const" >&6; }
19216 if test $ac_cv_c_const = no; then
19218 $as_echo "#define const /**/" >>confdefs.h
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19224 $as_echo_n "checking for signed... " >&6; }
19225 if ${bh_cv_c_signed+:} false; then :
19226 $as_echo_n "(cached) " >&6
19228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h. */
19239 if ac_fn_c_try_compile "$LINENO"; then :
19244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19247 $as_echo "$bh_cv_c_signed" >&6; }
19248 if test $bh_cv_c_signed = no; then
19250 $as_echo "#define signed /**/" >>confdefs.h
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19255 $as_echo_n "checking for inline... " >&6; }
19256 if ${ac_cv_c_inline+:} false; then :
19257 $as_echo_n "(cached) " >&6
19260 for ac_kw in inline __inline__ __inline; do
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19263 #ifndef __cplusplus
19265 static $ac_kw foo_t static_foo () {return 0; }
19266 $ac_kw foo_t foo () {return 0; }
19270 if ac_fn_c_try_compile "$LINENO"; then :
19271 ac_cv_c_inline=$ac_kw
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 test "$ac_cv_c_inline" != no && break
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19279 $as_echo "$ac_cv_c_inline" >&6; }
19281 case $ac_cv_c_inline in
19284 case $ac_cv_c_inline in
19286 *) ac_val=$ac_cv_c_inline;;
19288 cat >>confdefs.h <<_ACEOF
19289 #ifndef __cplusplus
19290 #define inline $ac_val
19296 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19297 if test "x$ac_cv_type_off_t" = xyes; then :
19301 cat >>confdefs.h <<_ACEOF
19302 #define off_t long int
19307 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19308 if test "x$ac_cv_type_size_t" = xyes; then :
19312 cat >>confdefs.h <<_ACEOF
19313 #define size_t unsigned int
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19320 $as_echo_n "checking for long long... " >&6; }
19321 if ${ac_cv_type_long_long+:} false; then :
19322 $as_echo_n "(cached) " >&6
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19326 long long ll = 1LL; int i = 63;
19330 long long llmax = (long long) -1;
19331 return ll << i | ll >> i | llmax / ll | llmax % ll;
19336 if ac_fn_c_try_link "$LINENO"; then :
19337 ac_cv_type_long_long=yes
19339 ac_cv_type_long_long=no
19341 rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19345 $as_echo "$ac_cv_type_long_long" >&6; }
19346 if test $ac_cv_type_long_long = yes; then
19348 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19354 $as_echo_n "checking for long double... " >&6; }
19355 if ${gt_cv_c_long_double+:} false; then :
19356 $as_echo_n "(cached) " >&6
19358 if test "$GCC" = yes; then
19359 gt_cv_c_long_double=yes
19361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362 /* end confdefs.h. */
19364 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19365 long double foo = 0.0;
19366 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19367 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19377 if ac_fn_c_try_compile "$LINENO"; then :
19378 gt_cv_c_long_double=yes
19380 gt_cv_c_long_double=no
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19386 $as_echo "$gt_cv_c_long_double" >&6; }
19387 if test $gt_cv_c_long_double = yes; then
19389 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19395 $as_echo_n "checking for wchar_t... " >&6; }
19396 if ${gt_cv_c_wchar_t+:} false; then :
19397 $as_echo_n "(cached) " >&6
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19401 #include <stddef.h>
19402 wchar_t foo = (wchar_t)'\0';
19411 if ac_fn_c_try_compile "$LINENO"; then :
19412 gt_cv_c_wchar_t=yes
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19419 $as_echo "$gt_cv_c_wchar_t" >&6; }
19420 if test $gt_cv_c_wchar_t = yes; then
19422 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19428 $as_echo_n "checking for wint_t... " >&6; }
19429 if ${gt_cv_c_wint_t+:} false; then :
19430 $as_echo_n "(cached) " >&6
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19435 wint_t foo = (wchar_t)'\0';
19444 if ac_fn_c_try_compile "$LINENO"; then :
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19452 $as_echo "$gt_cv_c_wint_t" >&6; }
19453 if test $gt_cv_c_wint_t = yes; then
19455 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19461 $as_echo_n "checking for inttypes.h... " >&6; }
19462 if ${gl_cv_header_inttypes_h+:} false; then :
19463 $as_echo_n "(cached) " >&6
19465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h. */
19467 #include <sys/types.h>
19468 #include <inttypes.h>
19472 uintmax_t i = (uintmax_t) -1;
19477 if ac_fn_c_try_compile "$LINENO"; then :
19478 gl_cv_header_inttypes_h=yes
19480 gl_cv_header_inttypes_h=no
19482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19485 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19486 if test $gl_cv_header_inttypes_h = yes; then
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19496 $as_echo_n "checking for stdint.h... " >&6; }
19497 if ${gl_cv_header_stdint_h+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19502 #include <sys/types.h>
19503 #include <stdint.h>
19507 uintmax_t i = (uintmax_t) -1;
19512 if ac_fn_c_try_compile "$LINENO"; then :
19513 gl_cv_header_stdint_h=yes
19515 gl_cv_header_stdint_h=no
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19520 $as_echo "$gl_cv_header_stdint_h" >&6; }
19521 if test $gl_cv_header_stdint_h = yes; then
19523 cat >>confdefs.h <<_ACEOF
19524 #define HAVE_STDINT_H_WITH_UINTMAX 1
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19533 $as_echo_n "checking for intmax_t... " >&6; }
19534 if ${gt_cv_c_intmax_t+:} false; then :
19535 $as_echo_n "(cached) " >&6
19537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h. */
19540 #include <stddef.h>
19541 #include <stdlib.h>
19542 #if HAVE_STDINT_H_WITH_UINTMAX
19543 #include <stdint.h>
19545 #if HAVE_INTTYPES_H_WITH_UINTMAX
19546 #include <inttypes.h>
19557 if ac_fn_c_try_compile "$LINENO"; then :
19558 gt_cv_c_intmax_t=yes
19560 gt_cv_c_intmax_t=no
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19565 $as_echo "$gt_cv_c_intmax_t" >&6; }
19566 if test $gt_cv_c_intmax_t = yes; then
19568 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19575 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19576 if ${gt_cv_func_printf_posix+:} false; then :
19577 $as_echo_n "(cached) " >&6
19580 if test "$cross_compiling" = yes; then :
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19585 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19591 $EGREP "notposix" >/dev/null 2>&1; then :
19592 gt_cv_func_printf_posix="guessing no"
19594 gt_cv_func_printf_posix="guessing yes"
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19604 #include <string.h>
19605 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19606 dollar expansion (possibly an autoconf bug). */
19607 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19608 static char buf[100];
19611 sprintf (buf, format, 33, 55);
19612 return (strcmp (buf, "55 33") != 0);
19615 if ac_fn_c_try_run "$LINENO"; then :
19616 gt_cv_func_printf_posix=yes
19618 gt_cv_func_printf_posix=no
19620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19621 conftest.$ac_objext conftest.beam conftest.$ac_ext
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19627 $as_echo "$gt_cv_func_printf_posix" >&6; }
19628 case $gt_cv_func_printf_posix in
19631 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19637 # for constant arguments. Useless!
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19639 $as_echo_n "checking for working alloca.h... " >&6; }
19640 if ${ac_cv_working_alloca_h+:} false; then :
19641 $as_echo_n "(cached) " >&6
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645 #include <alloca.h>
19649 char *p = (char *) alloca (2 * sizeof (int));
19655 if ac_fn_c_try_link "$LINENO"; then :
19656 ac_cv_working_alloca_h=yes
19658 ac_cv_working_alloca_h=no
19660 rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19664 $as_echo "$ac_cv_working_alloca_h" >&6; }
19665 if test $ac_cv_working_alloca_h = yes; then
19667 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19672 $as_echo_n "checking for alloca... " >&6; }
19673 if ${ac_cv_func_alloca_works+:} false; then :
19674 $as_echo_n "(cached) " >&6
19676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19677 /* end confdefs.h. */
19679 # define alloca __builtin_alloca
19682 # include <malloc.h>
19683 # define alloca _alloca
19685 # ifdef HAVE_ALLOCA_H
19686 # include <alloca.h>
19691 # ifndef alloca /* predefined by HP cc +Olibcalls */
19692 void *alloca (size_t);
19702 char *p = (char *) alloca (1);
19708 if ac_fn_c_try_link "$LINENO"; then :
19709 ac_cv_func_alloca_works=yes
19711 ac_cv_func_alloca_works=no
19713 rm -f core conftest.err conftest.$ac_objext \
19714 conftest$ac_exeext conftest.$ac_ext
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19717 $as_echo "$ac_cv_func_alloca_works" >&6; }
19719 if test $ac_cv_func_alloca_works = yes; then
19721 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19725 # that cause trouble. Some versions do not even contain alloca or
19726 # contain a buggy version. If you still want to use their alloca,
19727 # use ar to extract alloca.o from them instead of compiling alloca.c.
19729 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19731 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19735 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19736 if ${ac_cv_os_cray+:} false; then :
19737 $as_echo_n "(cached) " >&6
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19741 #if defined CRAY && ! defined CRAY2
19748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19749 $EGREP "webecray" >/dev/null 2>&1; then :
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19758 $as_echo "$ac_cv_os_cray" >&6; }
19759 if test $ac_cv_os_cray = yes; then
19760 for ac_func in _getb67 GETB67 getb67; do
19761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19763 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19765 cat >>confdefs.h <<_ACEOF
19766 #define CRAY_STACKSEG_END $ac_func
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19776 $as_echo_n "checking stack direction for C alloca... " >&6; }
19777 if ${ac_cv_c_stack_direction+:} false; then :
19778 $as_echo_n "(cached) " >&6
19780 if test "$cross_compiling" = yes; then :
19781 ac_cv_c_stack_direction=0
19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19785 $ac_includes_default
19787 find_stack_direction ()
19789 static char *addr = 0;
19794 return find_stack_direction ();
19797 return (&dummy > addr) ? 1 : -1;
19803 return find_stack_direction () < 0;
19806 if ac_fn_c_try_run "$LINENO"; then :
19807 ac_cv_c_stack_direction=1
19809 ac_cv_c_stack_direction=-1
19811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19812 conftest.$ac_objext conftest.beam conftest.$ac_ext
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19817 $as_echo "$ac_cv_c_stack_direction" >&6; }
19818 cat >>confdefs.h <<_ACEOF
19819 #define STACK_DIRECTION $ac_cv_c_stack_direction
19828 for ac_header in $ac_header_list
19830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19834 cat >>confdefs.h <<_ACEOF
19835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849 for ac_func in getpagesize
19851 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19852 if test "x$ac_cv_func_getpagesize" = xyes; then :
19853 cat >>confdefs.h <<_ACEOF
19854 #define HAVE_GETPAGESIZE 1
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19861 $as_echo_n "checking for working mmap... " >&6; }
19862 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19863 $as_echo_n "(cached) " >&6
19865 if test "$cross_compiling" = yes; then :
19866 ac_cv_func_mmap_fixed_mapped=no
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19870 $ac_includes_default
19871 /* malloc might have been renamed as rpl_malloc. */
19874 /* Thanks to Mike Haertel and Jim Avera for this test.
19875 Here is a matrix of mmap possibilities:
19876 mmap private not fixed
19877 mmap private fixed at somewhere currently unmapped
19878 mmap private fixed at somewhere already mapped
19879 mmap shared not fixed
19880 mmap shared fixed at somewhere currently unmapped
19881 mmap shared fixed at somewhere already mapped
19882 For private mappings, we should verify that changes cannot be read()
19883 back from the file, nor mmap's back from the file at a different
19884 address. (There have been systems where private was not correctly
19885 implemented like the infamous i386 svr4.0, and systems where the
19886 VM page cache was not coherent with the file system buffer cache
19887 like early versions of FreeBSD and possibly contemporary NetBSD.)
19888 For shared mappings, we should conversely verify that changes get
19889 propagated back to all the places they're supposed to be.
19891 Grep wants private fixed already mapped.
19892 The main things grep needs to know about mmap are:
19893 * does it exist and is it safe to write into the mmap'd area
19894 * how to use it (BSD variants) */
19897 #include <sys/mman.h>
19899 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19903 /* This mess was copied from the GNU getpagesize.h. */
19904 #ifndef HAVE_GETPAGESIZE
19905 # ifdef _SC_PAGESIZE
19906 # define getpagesize() sysconf(_SC_PAGESIZE)
19907 # else /* no _SC_PAGESIZE */
19908 # ifdef HAVE_SYS_PARAM_H
19909 # include <sys/param.h>
19910 # ifdef EXEC_PAGESIZE
19911 # define getpagesize() EXEC_PAGESIZE
19912 # else /* no EXEC_PAGESIZE */
19914 # define getpagesize() NBPG * CLSIZE
19917 # endif /* no CLSIZE */
19918 # else /* no NBPG */
19920 # define getpagesize() NBPC
19921 # else /* no NBPC */
19923 # define getpagesize() PAGESIZE
19924 # endif /* PAGESIZE */
19925 # endif /* no NBPC */
19926 # endif /* no NBPG */
19927 # endif /* no EXEC_PAGESIZE */
19928 # else /* no HAVE_SYS_PARAM_H */
19929 # define getpagesize() 8192 /* punt totally */
19930 # endif /* no HAVE_SYS_PARAM_H */
19931 # endif /* no _SC_PAGESIZE */
19933 #endif /* no HAVE_GETPAGESIZE */
19938 char *data, *data2, *data3;
19939 const char *cdata2;
19943 pagesize = getpagesize ();
19945 /* First, make a file with some known garbage in it. */
19946 data = (char *) malloc (pagesize);
19949 for (i = 0; i < pagesize; ++i)
19950 *(data + i) = rand ();
19952 fd = creat ("conftest.mmap", 0600);
19955 if (write (fd, data, pagesize) != pagesize)
19959 /* Next, check that the tail of a page is zero-filled. File must have
19960 non-zero length, otherwise we risk SIGBUS for entire page. */
19961 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19965 if (write (fd2, cdata2, 1) != 1)
19967 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19968 if (data2 == MAP_FAILED)
19970 for (i = 0; i < pagesize; ++i)
19974 if (munmap (data2, pagesize))
19977 /* Next, try to mmap the file at a fixed address which already has
19978 something else allocated at it. If we can, also make sure that
19979 we see the same garbage. */
19980 fd = open ("conftest.mmap", O_RDWR);
19983 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19984 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19986 for (i = 0; i < pagesize; ++i)
19987 if (*(data + i) != *(data2 + i))
19990 /* Finally, make sure that changes to the mapped area do not
19991 percolate back to the file as seen by read(). (This is a bug on
19992 some variants of i386 svr4.0.) */
19993 for (i = 0; i < pagesize; ++i)
19994 *(data2 + i) = *(data2 + i) + 1;
19995 data3 = (char *) malloc (pagesize);
19998 if (read (fd, data3, pagesize) != pagesize)
20000 for (i = 0; i < pagesize; ++i)
20001 if (*(data + i) != *(data3 + i))
20007 if ac_fn_c_try_run "$LINENO"; then :
20008 ac_cv_func_mmap_fixed_mapped=yes
20010 ac_cv_func_mmap_fixed_mapped=no
20012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20013 conftest.$ac_objext conftest.beam conftest.$ac_ext
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20018 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20019 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20021 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20024 rm -f conftest.mmap conftest.txt
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20028 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20029 if ${ac_cv_gnu_library_2_1+:} false; then :
20030 $as_echo_n "(cached) " >&6
20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20035 #include <features.h>
20036 #ifdef __GNU_LIBRARY__
20037 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20045 ac_cv_gnu_library_2_1=yes
20047 ac_cv_gnu_library_2_1=no
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20055 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20057 GLIBC21="$ac_cv_gnu_library_2_1"
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20063 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20064 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20065 $as_echo_n "(cached) " >&6
20068 if test "$cross_compiling" = yes; then :
20070 # Guess based on the CPU.
20071 case "$host_cpu" in
20072 alpha* | i3456786 | m68k | s390*)
20073 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20075 gt_cv_int_divbyzero_sigfpe="guessing no";;
20079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h. */
20082 #include <stdlib.h>
20083 #include <signal.h>
20087 sigfpe_handler (int sig)
20089 sigfpe_handler (sig) int sig;
20092 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20093 exit (sig != SIGFPE);
20103 signal (SIGFPE, sigfpe_handler);
20104 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20105 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20106 signal (SIGTRAP, sigfpe_handler);
20108 /* Linux/SPARC yields signal SIGILL. */
20109 #if defined (__sparc__) && defined (__linux__)
20110 signal (SIGILL, sigfpe_handler);
20119 if ac_fn_c_try_run "$LINENO"; then :
20120 gt_cv_int_divbyzero_sigfpe=yes
20122 gt_cv_int_divbyzero_sigfpe=no
20124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20125 conftest.$ac_objext conftest.beam conftest.$ac_ext
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20131 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20132 case "$gt_cv_int_divbyzero_sigfpe" in
20137 cat >>confdefs.h <<_ACEOF
20138 #define INTDIV0_RAISES_SIGFPE $value
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20144 $as_echo_n "checking for unsigned long long... " >&6; }
20145 if ${ac_cv_type_unsigned_long_long+:} false; then :
20146 $as_echo_n "(cached) " >&6
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20150 unsigned long long ull = 1ULL; int i = 63;
20154 unsigned long long ullmax = (unsigned long long) -1;
20155 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20160 if ac_fn_c_try_link "$LINENO"; then :
20161 ac_cv_type_unsigned_long_long=yes
20163 ac_cv_type_unsigned_long_long=no
20165 rm -f core conftest.err conftest.$ac_objext \
20166 conftest$ac_exeext conftest.$ac_ext
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20169 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20170 if test $ac_cv_type_unsigned_long_long = yes; then
20172 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20179 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20181 test $ac_cv_type_unsigned_long_long = yes \
20182 && ac_type='unsigned long long' \
20183 || ac_type='unsigned long'
20185 cat >>confdefs.h <<_ACEOF
20186 #define uintmax_t $ac_type
20191 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20197 $as_echo_n "checking for inttypes.h... " >&6; }
20198 if ${gt_cv_header_inttypes_h+:} false; then :
20199 $as_echo_n "(cached) " >&6
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20204 #include <sys/types.h>
20205 #include <inttypes.h>
20214 if ac_fn_c_try_compile "$LINENO"; then :
20215 gt_cv_header_inttypes_h=yes
20217 gt_cv_header_inttypes_h=no
20219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20223 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20224 if test $gt_cv_header_inttypes_h = yes; then
20226 cat >>confdefs.h <<_ACEOF
20227 #define HAVE_INTTYPES_H 1
20234 if test $gt_cv_header_inttypes_h = yes; then
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20236 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20237 if ${gt_cv_inttypes_pri_broken+:} false; then :
20238 $as_echo_n "(cached) " >&6
20241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20243 #include <inttypes.h>
20256 if ac_fn_c_try_compile "$LINENO"; then :
20257 gt_cv_inttypes_pri_broken=no
20259 gt_cv_inttypes_pri_broken=yes
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20265 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20267 if test "$gt_cv_inttypes_pri_broken" = yes; then
20269 cat >>confdefs.h <<_ACEOF
20270 #define PRI_MACROS_BROKEN 1
20276 for ac_header in stdint.h
20278 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20279 if test "x$ac_cv_header_stdint_h" = xyes; then :
20280 cat >>confdefs.h <<_ACEOF
20281 #define HAVE_STDINT_H 1
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20289 $as_echo_n "checking for SIZE_MAX... " >&6; }
20291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20292 /* end confdefs.h. */
20294 #include <limits.h>
20296 #include <stdint.h>
20303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20304 $EGREP "Found it" >/dev/null 2>&1; then :
20309 if test -z "$result"; then
20310 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20317 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20324 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20331 if test "$fits_in_uint" = 1; then
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20334 #include <stddef.h>
20336 extern unsigned long foo;
20346 if ac_fn_c_try_compile "$LINENO"; then :
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 if test -z "$result"; then
20352 if test "$fits_in_uint" = 1; then
20353 result="$res_hi$res_lo"U
20355 result="$res_hi$res_lo"UL
20358 result='~(size_t)0'
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20362 $as_echo "$result" >&6; }
20363 if test "$result" != yes; then
20365 cat >>confdefs.h <<_ACEOF
20366 #define SIZE_MAX $result
20374 for ac_header in stdint.h
20376 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20377 if test "x$ac_cv_header_stdint_h" = xyes; then :
20378 cat >>confdefs.h <<_ACEOF
20379 #define HAVE_STDINT_H 1
20393 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20394 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20398 $as_echo "#define ptrdiff_t long" >>confdefs.h
20403 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20404 stdlib.h string.h unistd.h sys/param.h
20406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20409 cat >>confdefs.h <<_ACEOF
20410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20417 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20418 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20419 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20425 cat >>confdefs.h <<_ACEOF
20426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20435 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20436 if ${ac_cv_have_decl__snprintf+:} false; then :
20437 $as_echo_n "(cached) " >&6
20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h. */
20447 char *p = (char *) _snprintf;
20454 if ac_fn_c_try_compile "$LINENO"; then :
20455 ac_cv_have_decl__snprintf=yes
20457 ac_cv_have_decl__snprintf=no
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20462 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20463 if test $ac_cv_have_decl__snprintf = yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 #define HAVE_DECL__SNPRINTF $gt_value
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20476 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20477 if ${ac_cv_have_decl__snwprintf+:} false; then :
20478 $as_echo_n "(cached) " >&6
20480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h. */
20488 char *p = (char *) _snwprintf;
20495 if ac_fn_c_try_compile "$LINENO"; then :
20496 ac_cv_have_decl__snwprintf=yes
20498 ac_cv_have_decl__snwprintf=no
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20503 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20504 if test $ac_cv_have_decl__snwprintf = yes; then
20510 cat >>confdefs.h <<_ACEOF
20511 #define HAVE_DECL__SNWPRINTF $gt_value
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20518 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20519 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20520 $as_echo_n "(cached) " >&6
20522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h. */
20529 #ifndef feof_unlocked
20530 char *p = (char *) feof_unlocked;
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538 ac_cv_have_decl_feof_unlocked=yes
20540 ac_cv_have_decl_feof_unlocked=no
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20545 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20546 if test $ac_cv_have_decl_feof_unlocked = yes; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20559 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20560 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20561 $as_echo_n "(cached) " >&6
20563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h. */
20570 #ifndef fgets_unlocked
20571 char *p = (char *) fgets_unlocked;
20578 if ac_fn_c_try_compile "$LINENO"; then :
20579 ac_cv_have_decl_fgets_unlocked=yes
20581 ac_cv_have_decl_fgets_unlocked=no
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20586 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20587 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20600 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20601 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20602 $as_echo_n "(cached) " >&6
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20611 #ifndef getc_unlocked
20612 char *p = (char *) getc_unlocked;
20619 if ac_fn_c_try_compile "$LINENO"; then :
20620 ac_cv_have_decl_getc_unlocked=yes
20622 ac_cv_have_decl_getc_unlocked=no
20624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20627 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20628 if test $ac_cv_have_decl_getc_unlocked = yes; then
20634 cat >>confdefs.h <<_ACEOF
20635 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20640 case $gt_cv_func_printf_posix in
20641 *yes) HAVE_POSIX_PRINTF=1 ;;
20642 *) HAVE_POSIX_PRINTF=0 ;;
20645 if test "$ac_cv_func_asprintf" = yes; then
20651 if test "$ac_cv_func_snprintf" = yes; then
20657 if test "$ac_cv_func_wprintf" = yes; then
20669 am_save_CPPFLAGS="$CPPFLAGS"
20671 for element in $INCICONV; do
20673 for x in $CPPFLAGS; do
20675 acl_save_prefix="$prefix"
20676 prefix="$acl_final_prefix"
20677 acl_save_exec_prefix="$exec_prefix"
20678 exec_prefix="$acl_final_exec_prefix"
20680 exec_prefix="$acl_save_exec_prefix"
20681 prefix="$acl_save_prefix"
20683 if test "X$x" = "X$element"; then
20688 if test -z "$haveit"; then
20689 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20695 $as_echo_n "checking for iconv... " >&6; }
20696 if ${am_cv_func_iconv+:} false; then :
20697 $as_echo_n "(cached) " >&6
20700 am_cv_func_iconv="no, consider installing GNU libiconv"
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h. */
20704 #include <stdlib.h>
20709 iconv_t cd = iconv_open("","");
20710 iconv(cd,NULL,NULL,NULL,NULL);
20716 if ac_fn_c_try_link "$LINENO"; then :
20717 am_cv_func_iconv=yes
20719 rm -f core conftest.err conftest.$ac_objext \
20720 conftest$ac_exeext conftest.$ac_ext
20721 if test "$am_cv_func_iconv" != yes; then
20722 am_save_LIBS="$LIBS"
20723 LIBS="$LIBS $LIBICONV"
20724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h. */
20726 #include <stdlib.h>
20731 iconv_t cd = iconv_open("","");
20732 iconv(cd,NULL,NULL,NULL,NULL);
20738 if ac_fn_c_try_link "$LINENO"; then :
20739 am_cv_lib_iconv=yes
20740 am_cv_func_iconv=yes
20742 rm -f core conftest.err conftest.$ac_objext \
20743 conftest$ac_exeext conftest.$ac_ext
20744 LIBS="$am_save_LIBS"
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20749 $as_echo "$am_cv_func_iconv" >&6; }
20750 if test "$am_cv_func_iconv" = yes; then
20752 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20755 if test "$am_cv_lib_iconv" = yes; then
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20757 $as_echo_n "checking how to link with libiconv... " >&6; }
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20759 $as_echo "$LIBICONV" >&6; }
20761 CPPFLAGS="$am_save_CPPFLAGS"
20768 if test "$am_cv_func_iconv" = yes; then
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20770 $as_echo_n "checking for iconv declaration... " >&6; }
20771 if ${am_cv_proto_iconv+:} false; then :
20772 $as_echo_n "(cached) " >&6
20775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h. */
20778 #include <stdlib.h>
20784 #if defined(__STDC__) || defined(__cplusplus)
20785 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20798 if ac_fn_c_try_compile "$LINENO"; then :
20799 am_cv_proto_iconv_arg1=""
20801 am_cv_proto_iconv_arg1="const"
20803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20804 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20807 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20809 }$am_cv_proto_iconv" >&5
20811 }$am_cv_proto_iconv" >&6; }
20813 cat >>confdefs.h <<_ACEOF
20814 #define ICONV_CONST $am_cv_proto_iconv_arg1
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20821 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20822 if ${am_cv_langinfo_codeset+:} false; then :
20823 $as_echo_n "(cached) " >&6
20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h. */
20827 #include <langinfo.h>
20831 char* cs = nl_langinfo(CODESET);
20836 if ac_fn_c_try_link "$LINENO"; then :
20837 am_cv_langinfo_codeset=yes
20839 am_cv_langinfo_codeset=no
20841 rm -f core conftest.err conftest.$ac_objext \
20842 conftest$ac_exeext conftest.$ac_ext
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20846 $as_echo "$am_cv_langinfo_codeset" >&6; }
20847 if test $am_cv_langinfo_codeset = yes; then
20849 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20853 if test $ac_cv_header_locale_h = yes; then
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20856 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20857 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20858 $as_echo_n "(cached) " >&6
20860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20861 /* end confdefs.h. */
20862 #include <locale.h>
20871 if ac_fn_c_try_link "$LINENO"; then :
20872 gt_cv_val_LC_MESSAGES=yes
20874 gt_cv_val_LC_MESSAGES=no
20876 rm -f core conftest.err conftest.$ac_objext \
20877 conftest$ac_exeext conftest.$ac_ext
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20880 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20881 if test $gt_cv_val_LC_MESSAGES = yes; then
20883 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20889 if test -n "$INTL_MACOSX_LIBS"; then
20890 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20893 for ac_prog in bison
20895 # Extract the first word of "$ac_prog", so it can be a program name with args.
20896 set dummy $ac_prog; ac_word=$2
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20898 $as_echo_n "checking for $ac_word... " >&6; }
20899 if ${ac_cv_prog_INTLBISON+:} false; then :
20900 $as_echo_n "(cached) " >&6
20902 if test -n "$INTLBISON"; then
20903 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20906 for as_dir in $PATH
20909 test -z "$as_dir" && as_dir=.
20910 for ac_exec_ext in '' $ac_executable_extensions; do
20911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20912 ac_cv_prog_INTLBISON="$ac_prog"
20913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20922 INTLBISON=$ac_cv_prog_INTLBISON
20923 if test -n "$INTLBISON"; then
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20925 $as_echo "$INTLBISON" >&6; }
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20932 test -n "$INTLBISON" && break
20935 if test -z "$INTLBISON"; then
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20939 $as_echo_n "checking version of bison... " >&6; }
20940 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20941 case $ac_prog_version in
20942 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20943 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20944 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20945 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20948 $as_echo "$ac_prog_version" >&6; }
20950 if test $ac_verc_fail = yes; then
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20970 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20971 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20972 $as_echo_n "(cached) " >&6
20974 gt_save_CPPFLAGS="$CPPFLAGS"
20975 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20976 gt_save_LIBS="$LIBS"
20977 LIBS="$LIBS -framework CoreFoundation"
20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20980 #include <CFPreferences.h>
20984 CFPreferencesCopyAppValue(NULL, NULL)
20989 if ac_fn_c_try_link "$LINENO"; then :
20990 gt_cv_func_CFPreferencesCopyAppValue=yes
20992 gt_cv_func_CFPreferencesCopyAppValue=no
20994 rm -f core conftest.err conftest.$ac_objext \
20995 conftest$ac_exeext conftest.$ac_ext
20996 CPPFLAGS="$gt_save_CPPFLAGS"
20997 LIBS="$gt_save_LIBS"
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21000 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21001 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21003 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21007 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21008 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21009 $as_echo_n "(cached) " >&6
21011 gt_save_CPPFLAGS="$CPPFLAGS"
21012 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21013 gt_save_LIBS="$LIBS"
21014 LIBS="$LIBS -framework CoreFoundation"
21015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016 /* end confdefs.h. */
21017 #include <CFLocale.h>
21021 CFLocaleCopyCurrent();
21026 if ac_fn_c_try_link "$LINENO"; then :
21027 gt_cv_func_CFLocaleCopyCurrent=yes
21029 gt_cv_func_CFLocaleCopyCurrent=no
21031 rm -f core conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21033 CPPFLAGS="$gt_save_CPPFLAGS"
21034 LIBS="$gt_save_LIBS"
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21037 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21038 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21040 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21044 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21045 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21052 $as_echo_n "checking whether NLS is requested... " >&6; }
21053 # Check whether --enable-nls was given.
21054 if test "${enable_nls+set}" = set; then :
21055 enableval=$enable_nls; USE_NLS=$enableval
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21061 $as_echo "$USE_NLS" >&6; }
21066 BUILD_INCLUDED_LIBINTL=no
21067 USE_INCLUDED_LIBINTL=no
21073 if test "$USE_NLS" = "yes"; then
21074 gt_use_preinstalled_gnugettext=no
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21077 $as_echo_n "checking whether included gettext is requested... " >&6; }
21079 # Check whether --with-included-gettext was given.
21080 if test "${with_included_gettext+set}" = set; then :
21081 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21083 nls_cv_force_use_gnu_gettext=no
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21087 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21089 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21090 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21098 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21099 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21100 $as_echo_n "(cached) " >&6
21102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h. */
21104 #include <libintl.h>
21105 extern int _nl_msg_cat_cntr;
21106 extern int *_nl_domain_bindings;
21110 bindtextdomain ("", "");
21111 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21116 if ac_fn_c_try_link "$LINENO"; then :
21117 gt_cv_func_gnugettext1_libc=yes
21119 gt_cv_func_gnugettext1_libc=no
21121 rm -f core conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21125 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21127 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21133 acl_save_prefix="$prefix"
21134 prefix="$acl_final_prefix"
21135 acl_save_exec_prefix="$exec_prefix"
21136 exec_prefix="$acl_final_exec_prefix"
21138 eval additional_includedir=\"$includedir\"
21139 eval additional_libdir=\"$libdir\"
21141 exec_prefix="$acl_save_exec_prefix"
21142 prefix="$acl_save_prefix"
21145 # Check whether --with-libintl-prefix was given.
21146 if test "${with_libintl_prefix+set}" = set; then :
21147 withval=$with_libintl_prefix;
21148 if test "X$withval" = "Xno"; then
21151 if test "X$withval" = "X"; then
21153 acl_save_prefix="$prefix"
21154 prefix="$acl_final_prefix"
21155 acl_save_exec_prefix="$exec_prefix"
21156 exec_prefix="$acl_final_exec_prefix"
21158 eval additional_includedir=\"$includedir\"
21159 eval additional_libdir=\"$libdir\"
21161 exec_prefix="$acl_save_exec_prefix"
21162 prefix="$acl_save_prefix"
21165 additional_includedir="$withval/include"
21166 additional_libdir="$withval/lib"
21177 names_already_handled=
21178 names_next_round='intl '
21179 while test -n "$names_next_round"; do
21180 names_this_round="$names_next_round"
21182 for name in $names_this_round; do
21184 for n in $names_already_handled; do
21185 if test "$n" = "$name"; then
21186 already_handled=yes
21190 if test -z "$already_handled"; then
21191 names_already_handled="$names_already_handled $name"
21192 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21193 eval value=\"\$HAVE_LIB$uppername\"
21194 if test -n "$value"; then
21195 if test "$value" = yes; then
21196 eval value=\"\$LIB$uppername\"
21197 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21198 eval value=\"\$LTLIB$uppername\"
21199 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21208 if test $use_additional = yes; then
21209 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21210 found_dir="$additional_libdir"
21211 found_so="$additional_libdir/lib$name.$shlibext"
21212 if test -f "$additional_libdir/lib$name.la"; then
21213 found_la="$additional_libdir/lib$name.la"
21216 if test -f "$additional_libdir/lib$name.$libext"; then
21217 found_dir="$additional_libdir"
21218 found_a="$additional_libdir/lib$name.$libext"
21219 if test -f "$additional_libdir/lib$name.la"; then
21220 found_la="$additional_libdir/lib$name.la"
21225 if test "X$found_dir" = "X"; then
21226 for x in $LDFLAGS $LTLIBINTL; do
21228 acl_save_prefix="$prefix"
21229 prefix="$acl_final_prefix"
21230 acl_save_exec_prefix="$exec_prefix"
21231 exec_prefix="$acl_final_exec_prefix"
21233 exec_prefix="$acl_save_exec_prefix"
21234 prefix="$acl_save_prefix"
21238 dir=`echo "X$x" | sed -e 's/^X-L//'`
21239 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21241 found_so="$dir/lib$name.$shlibext"
21242 if test -f "$dir/lib$name.la"; then
21243 found_la="$dir/lib$name.la"
21246 if test -f "$dir/lib$name.$libext"; then
21248 found_a="$dir/lib$name.$libext"
21249 if test -f "$dir/lib$name.la"; then
21250 found_la="$dir/lib$name.la"
21256 if test "X$found_dir" != "X"; then
21261 if test "X$found_dir" != "X"; then
21262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21263 if test "X$found_so" != "X"; then
21264 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21265 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21268 for x in $ltrpathdirs; do
21269 if test "X$x" = "X$found_dir"; then
21274 if test -z "$haveit"; then
21275 ltrpathdirs="$ltrpathdirs $found_dir"
21277 if test "$hardcode_direct" = yes; then
21278 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21280 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21283 for x in $rpathdirs; do
21284 if test "X$x" = "X$found_dir"; then
21289 if test -z "$haveit"; then
21290 rpathdirs="$rpathdirs $found_dir"
21294 for x in $LDFLAGS $LIBINTL; do
21296 acl_save_prefix="$prefix"
21297 prefix="$acl_final_prefix"
21298 acl_save_exec_prefix="$exec_prefix"
21299 exec_prefix="$acl_final_exec_prefix"
21301 exec_prefix="$acl_save_exec_prefix"
21302 prefix="$acl_save_prefix"
21304 if test "X$x" = "X-L$found_dir"; then
21309 if test -z "$haveit"; then
21310 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21312 if test "$hardcode_minus_L" != no; then
21313 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21315 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21321 if test "X$found_a" != "X"; then
21322 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21324 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21327 additional_includedir=
21328 case "$found_dir" in
21330 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21331 additional_includedir="$basedir/include"
21334 if test "X$additional_includedir" != "X"; then
21335 if test "X$additional_includedir" != "X/usr/include"; then
21337 if test "X$additional_includedir" = "X/usr/local/include"; then
21338 if test -n "$GCC"; then
21340 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21344 if test -z "$haveit"; then
21345 for x in $CPPFLAGS $INCINTL; do
21347 acl_save_prefix="$prefix"
21348 prefix="$acl_final_prefix"
21349 acl_save_exec_prefix="$exec_prefix"
21350 exec_prefix="$acl_final_exec_prefix"
21352 exec_prefix="$acl_save_exec_prefix"
21353 prefix="$acl_save_prefix"
21355 if test "X$x" = "X-I$additional_includedir"; then
21360 if test -z "$haveit"; then
21361 if test -d "$additional_includedir"; then
21362 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21368 if test -n "$found_la"; then
21369 save_libdir="$libdir"
21370 case "$found_la" in
21371 */* | *\\*) . "$found_la" ;;
21372 *) . "./$found_la" ;;
21374 libdir="$save_libdir"
21375 for dep in $dependency_libs; do
21378 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21379 if test "X$additional_libdir" != "X/usr/lib"; then
21381 if test "X$additional_libdir" = "X/usr/local/lib"; then
21382 if test -n "$GCC"; then
21384 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21388 if test -z "$haveit"; then
21390 for x in $LDFLAGS $LIBINTL; do
21392 acl_save_prefix="$prefix"
21393 prefix="$acl_final_prefix"
21394 acl_save_exec_prefix="$exec_prefix"
21395 exec_prefix="$acl_final_exec_prefix"
21397 exec_prefix="$acl_save_exec_prefix"
21398 prefix="$acl_save_prefix"
21400 if test "X$x" = "X-L$additional_libdir"; then
21405 if test -z "$haveit"; then
21406 if test -d "$additional_libdir"; then
21407 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21411 for x in $LDFLAGS $LTLIBINTL; do
21413 acl_save_prefix="$prefix"
21414 prefix="$acl_final_prefix"
21415 acl_save_exec_prefix="$exec_prefix"
21416 exec_prefix="$acl_final_exec_prefix"
21418 exec_prefix="$acl_save_exec_prefix"
21419 prefix="$acl_save_prefix"
21421 if test "X$x" = "X-L$additional_libdir"; then
21426 if test -z "$haveit"; then
21427 if test -d "$additional_libdir"; then
21428 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21435 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21436 if test "$enable_rpath" != no; then
21438 for x in $rpathdirs; do
21439 if test "X$x" = "X$dir"; then
21444 if test -z "$haveit"; then
21445 rpathdirs="$rpathdirs $dir"
21448 for x in $ltrpathdirs; do
21449 if test "X$x" = "X$dir"; then
21454 if test -z "$haveit"; then
21455 ltrpathdirs="$ltrpathdirs $dir"
21460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21463 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21466 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21474 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21480 if test "X$rpathdirs" != "X"; then
21481 if test -n "$hardcode_libdir_separator"; then
21483 for found_dir in $rpathdirs; do
21484 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21486 acl_save_libdir="$libdir"
21488 eval flag=\"$hardcode_libdir_flag_spec\"
21489 libdir="$acl_save_libdir"
21490 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21492 for found_dir in $rpathdirs; do
21493 acl_save_libdir="$libdir"
21494 libdir="$found_dir"
21495 eval flag=\"$hardcode_libdir_flag_spec\"
21496 libdir="$acl_save_libdir"
21497 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21501 if test "X$ltrpathdirs" != "X"; then
21502 for found_dir in $ltrpathdirs; do
21503 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21508 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21509 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21510 $as_echo_n "(cached) " >&6
21512 gt_save_CPPFLAGS="$CPPFLAGS"
21513 CPPFLAGS="$CPPFLAGS $INCINTL"
21514 gt_save_LIBS="$LIBS"
21515 LIBS="$LIBS $LIBINTL"
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h. */
21518 #include <libintl.h>
21519 extern int _nl_msg_cat_cntr;
21524 const char *_nl_expand_alias (const char *);
21528 bindtextdomain ("", "");
21529 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21534 if ac_fn_c_try_link "$LINENO"; then :
21535 gt_cv_func_gnugettext1_libintl=yes
21537 gt_cv_func_gnugettext1_libintl=no
21539 rm -f core conftest.err conftest.$ac_objext \
21540 conftest$ac_exeext conftest.$ac_ext
21541 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21542 LIBS="$LIBS $LIBICONV"
21543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h. */
21545 #include <libintl.h>
21546 extern int _nl_msg_cat_cntr;
21551 const char *_nl_expand_alias (const char *);
21555 bindtextdomain ("", "");
21556 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21561 if ac_fn_c_try_link "$LINENO"; then :
21562 LIBINTL="$LIBINTL $LIBICONV"
21563 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21564 gt_cv_func_gnugettext1_libintl=yes
21567 rm -f core conftest.err conftest.$ac_objext \
21568 conftest$ac_exeext conftest.$ac_ext
21570 CPPFLAGS="$gt_save_CPPFLAGS"
21571 LIBS="$gt_save_LIBS"
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21574 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21577 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21578 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21579 && test "$PACKAGE" != gettext-runtime \
21580 && test "$PACKAGE" != gettext-tools; }; then
21581 gt_use_preinstalled_gnugettext=yes
21589 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21590 nls_cv_use_gnu_gettext=yes
21594 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21595 BUILD_INCLUDED_LIBINTL=yes
21596 USE_INCLUDED_LIBINTL=yes
21597 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21598 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21599 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21603 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21604 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21609 if test -n "$INTL_MACOSX_LIBS"; then
21610 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21611 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21612 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21613 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21617 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21618 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21620 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21628 $as_echo_n "checking whether to use NLS... " >&6; }
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21630 $as_echo "$USE_NLS" >&6; }
21631 if test "$USE_NLS" = "yes"; then
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21633 $as_echo_n "checking where the gettext function comes from... " >&6; }
21634 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21635 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21636 gt_source="external libintl"
21641 gt_source="included intl directory"
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21644 $as_echo "$gt_source" >&6; }
21647 if test "$USE_NLS" = "yes"; then
21649 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21650 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21652 $as_echo_n "checking how to link with libintl... " >&6; }
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21654 $as_echo "$LIBINTL" >&6; }
21656 for element in $INCINTL; do
21658 for x in $CPPFLAGS; do
21660 acl_save_prefix="$prefix"
21661 prefix="$acl_final_prefix"
21662 acl_save_exec_prefix="$exec_prefix"
21663 exec_prefix="$acl_final_exec_prefix"
21665 exec_prefix="$acl_save_exec_prefix"
21666 prefix="$acl_save_prefix"
21668 if test "X$x" = "X$element"; then
21673 if test -z "$haveit"; then
21674 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21681 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21684 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21692 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21693 BUILD_INCLUDED_LIBINTL=yes
21700 nls_cv_header_intl=
21701 nls_cv_header_libgt=
21713 if test "$USE_INCLUDED_LIBINTL" = yes; then
21714 INTLOBJS="\$(GETTOBJS)"
21718 INTL_LIBTOOL_SUFFIX_PREFIX=
21722 INTLLIBS="$LIBINTL"
21731 support_smartalloc=yes
21732 support_readline=yes
21736 support_wx_console=no
21737 support_tray_monitor=no
21742 support_static_tools=no
21743 support_static_fd=no
21744 support_static_sd=no
21745 support_static_dir=no
21746 support_static_cons=no
21748 build_client_only=no
21752 batch_insert_db_backends=""
21756 # Check whether --enable-gnome was given.
21757 if test "${enable_gnome+set}" = set; then :
21758 enableval=$enable_gnome;
21759 if test x$enableval = xyes; then
21768 if test x$support_gnome = xyes; then
21769 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21770 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21772 # AC_SUBST(GNOME_DIR)
21774 # Check whether --enable-bat was given.
21775 if test "${enable_bat+set}" = set; then :
21776 enableval=$enable_bat;
21777 if test x$enableval = xyes; then
21779 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21789 if test x$support_bat = xyes; then
21790 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21792 if test $pkg = 0; then
21793 BAT_DIR=src/qt-console
21795 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21813 # Check whether --enable-bwx-console was given.
21814 if test "${enable_bwx_console+set}" = set; then :
21815 enableval=$enable_bwx_console;
21816 if test x$enableval = xyes; then
21817 support_wx_console=yes
21825 if test x$support_wx_console = xyes; then
21826 abc=`$WXCONFIG $WXFLAGS --cppflags`
21828 if test $pkg = 0; then
21829 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21830 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21831 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21835 WX_DIR="src/wx-console"
21838 echo "wx-config program not found. bwx-console disabled."
21840 support_wx_console=no
21845 # Check whether --enable-tray-monitor was given.
21846 if test "${enable_tray_monitor+set}" = set; then :
21847 enableval=$enable_tray_monitor;
21848 if test x$enableval = xyes; then
21849 support_tray_monitor=yes
21857 if test x$support_tray_monitor = xyes; then
21858 abc=`$PKGCONFIG --exists gtk+-2.0`
21860 if test $pkg = 0; then
21861 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21862 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21865 TRAY_MONITOR_DIR=src/tray-monitor
21866 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21868 if test $pkg = 0; then
21870 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21877 # Check whether --enable-smartalloc was given.
21878 if test "${enable_smartalloc+set}" = set; then :
21879 enableval=$enable_smartalloc;
21880 if test x$enableval = xno; then
21881 support_smartalloc=no
21888 if test x$support_smartalloc = xyes; then
21890 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21894 # Check whether --enable-lockmgr was given.
21895 if test "${enable_lockmgr+set}" = set; then :
21896 enableval=$enable_lockmgr;
21897 if test x$enableval = xyes; then
21898 support_lockmgr=yes
21905 if test x$support_lockmgr = xyes; then
21907 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21912 # Check whether --enable-static-tools was given.
21913 if test "${enable_static_tools+set}" = set; then :
21914 enableval=$enable_static_tools;
21915 if test x$enableval = xyes; then
21916 if test x$use_libtool = xyes; then
21917 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21918 please rerun configure with --disable-libtool" "$LINENO" 5
21920 support_static_tools=yes
21928 if test x$support_static_tools = xyes; then
21929 TTOOL_LDFLAGS="-static"
21933 # Check whether --enable-static-fd was given.
21934 if test "${enable_static_fd+set}" = set; then :
21935 enableval=$enable_static_fd;
21936 if test x$enableval = xyes; then
21937 if test x$use_libtool = xyes; then
21938 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21939 please rerun configure with --disable-libtool" "$LINENO" 5
21941 support_static_fd=yes
21949 if test x$support_static_fd = xyes; then
21950 STATIC_FD="static-bacula-fd"
21954 # Check whether --enable-static-sd was given.
21955 if test "${enable_static_sd+set}" = set; then :
21956 enableval=$enable_static_sd;
21957 if test x$enableval = xyes; then
21958 if test x$use_libtool = xyes; then
21959 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21960 please rerun configure with --disable-libtool" "$LINENO" 5
21962 support_static_sd=yes
21970 if test x$support_static_sd = xyes; then
21971 STATIC_SD="static-bacula-sd"
21975 # Check whether --enable-static-dir was given.
21976 if test "${enable_static_dir+set}" = set; then :
21977 enableval=$enable_static_dir;
21978 if test x$enableval = xyes; then
21979 if test x$use_libtool = xyes; then
21980 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21981 please rerun configure with --disable-libtool" "$LINENO" 5
21983 support_static_dir=yes
21991 if test x$support_static_dir = xyes; then
21992 STATIC_DIR="static-bacula-dir"
21996 # Check whether --enable-static-cons was given.
21997 if test "${enable_static_cons+set}" = set; then :
21998 enableval=$enable_static_cons;
21999 if test x$enableval = xyes; then
22000 if test x$use_libtool = xyes; then
22001 as_fn_error $? "Libtool is enabled, not compatible with static tools,
22002 please rerun configure with --disable-libtool" "$LINENO" 5
22004 support_static_cons=yes
22014 if test x$support_static_cons = xyes; then
22015 STATIC_CONS="static-bconsole"
22016 STATIC_GNOME_CONS="static-bgnome-console"
22017 STATIC_WX_CONS="static-bwx-console"
22023 # Check whether --enable-client-only was given.
22024 if test "${enable_client_only+set}" = set; then :
22025 enableval=$enable_client_only;
22026 if test x$enableval = xyes; then
22027 build_client_only=yes
22035 if test x$build_client_only = xno; then
22042 # Check whether --enable-build-dird was given.
22043 if test "${enable_build_dird+set}" = set; then :
22044 enableval=$enable_build_dird;
22045 if test x$enableval = xno; then
22052 if test x$build_dird = xyes; then
22053 DIRD_DIR="src/dird"
22054 DIR_TOOLS="DIRTOOLS"
22057 DIR_TOOLS="NODIRTOOLS"
22062 # Check whether --enable-build-stored was given.
22063 if test "${enable_build_stored+set}" = set; then :
22064 enableval=$enable_build_stored;
22065 if test x$enableval = xno; then
22072 if test x$build_stored = xyes; then
22073 STORED_DIR="src/stored"
22079 # Check whether --enable-conio was given.
22080 if test "${enable_conio+set}" = set; then :
22081 enableval=$enable_conio;
22082 if test x$enableval = xno; then
22092 # Check whether --enable-ipv6 was given.
22093 if test "${enable_ipv6+set}" = set; then :
22094 enableval=$enable_ipv6;
22095 if test x$enableval = xno; then
22103 if test x$support_ipv6 = xyes; then
22104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h. */
22106 #include <sys/types.h>
22107 #include <sys/socket.h>
22108 #include <netinet/in.h>
22112 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22117 if ac_fn_c_try_link "$LINENO"; then :
22122 rm -f core conftest.err conftest.$ac_objext \
22123 conftest$ac_exeext conftest.$ac_ext
22126 if test x$support_ipv6 = xyes; then
22128 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22133 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22134 if test "x$ac_cv_header_curses_h" = xyes; then :
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22137 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22138 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22139 $as_echo_n "(cached) " >&6
22141 ac_check_lib_save_LIBS=$LIBS
22142 LIBS="-ltinfo $LIBS"
22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h. */
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22161 if ac_fn_c_try_link "$LINENO"; then :
22162 ac_cv_lib_tinfo_tgetent=yes
22164 ac_cv_lib_tinfo_tgetent=no
22166 rm -f core conftest.err conftest.$ac_objext \
22167 conftest$ac_exeext conftest.$ac_ext
22168 LIBS=$ac_check_lib_save_LIBS
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22171 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22172 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22177 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22178 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22179 $as_echo_n "(cached) " >&6
22181 ac_check_lib_save_LIBS=$LIBS
22182 LIBS="-lncurses $LIBS"
22183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184 /* end confdefs.h. */
22186 /* Override any GCC internal prototype to avoid an error.
22187 Use char because int might match the return type of a GCC
22188 builtin and then its argument prototype would still apply. */
22201 if ac_fn_c_try_link "$LINENO"; then :
22202 ac_cv_lib_ncurses_tgetent=yes
22204 ac_cv_lib_ncurses_tgetent=no
22206 rm -f core conftest.err conftest.$ac_objext \
22207 conftest$ac_exeext conftest.$ac_ext
22208 LIBS=$ac_check_lib_save_LIBS
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22211 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22212 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22213 TERM_LIB="-lncurses"
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22217 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22218 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22219 $as_echo_n "(cached) " >&6
22221 ac_check_lib_save_LIBS=$LIBS
22222 LIBS="-ltermcap $LIBS"
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h. */
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22241 if ac_fn_c_try_link "$LINENO"; then :
22242 ac_cv_lib_termcap_tgetent=yes
22244 ac_cv_lib_termcap_tgetent=no
22246 rm -f core conftest.err conftest.$ac_objext \
22247 conftest$ac_exeext conftest.$ac_ext
22248 LIBS=$ac_check_lib_save_LIBS
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22251 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22252 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22253 TERM_LIB="-ltermcap"
22264 for ac_header in curses.h
22266 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22267 if test "x$ac_cv_header_curses_h" = xyes; then :
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_CURSES_H 1
22276 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_term_h" = xyes; then :
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22279 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22280 if ${ac_cv_lib_curses_tgetent+:} false; then :
22281 $as_echo_n "(cached) " >&6
22283 ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-lcurses $LIBS"
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h. */
22288 /* Override any GCC internal prototype to avoid an error.
22289 Use char because int might match the return type of a GCC
22290 builtin and then its argument prototype would still apply. */
22303 if ac_fn_c_try_link "$LINENO"; then :
22304 ac_cv_lib_curses_tgetent=yes
22306 ac_cv_lib_curses_tgetent=no
22308 rm -f core conftest.err conftest.$ac_objext \
22309 conftest$ac_exeext conftest.$ac_ext
22310 LIBS=$ac_check_lib_save_LIBS
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22313 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22314 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22315 TERM_LIB="-lcurses"
22329 if test x$support_conio = xyes; then
22330 if test x$TERM_LIB != x; then
22331 CONS_LIBS=$TERM_LIB
22335 support_readline=no
22337 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22340 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22345 # Check whether --enable-readline was given.
22346 if test "${enable_readline+set}" = set; then :
22347 enableval=$enable_readline;
22348 if test x$enableval = xno; then
22349 support_readline=no
22355 if test x$TERM_LIB = x ; then
22356 support_readline=no
22361 if test x$support_readline = xyes; then
22363 # Check whether --with-readline was given.
22364 if test "${with_readline+set}" = set; then :
22365 withval=$with_readline;
22366 case "$with_readline" in
22371 if test -f ${with_readline}/readline.h; then
22372 CONS_INC="-I${with_readline}"
22373 CONS_LDFLAGS="-L$with_readline"
22374 elif test -f ${with_readline}/include/readline/readline.h; then
22375 CONS_INC="-I${with_readline}/include/readline"
22376 CONS_LDFLAGS="-L${with_readline}/lib"
22377 with_readline="${with_readline}/include/readline"
22379 with_readline="/usr/include/readline"
22382 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22383 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22389 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22395 echo "readline.h not found. readline turned off ..."
22407 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22408 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22411 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22414 CONS_INC="-I/usr/include/readline"
22415 CONS_LIBS="-lreadline $TERM_LIB"
22419 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22420 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22424 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22427 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22428 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22429 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22430 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22435 echo "readline.h not found. readline turned off ..."
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22463 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22464 if ${ac_cv_header_stat_broken+:} false; then :
22465 $as_echo_n "(cached) " >&6
22467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h. */
22469 #include <sys/types.h>
22470 #include <sys/stat.h>
22472 #if defined S_ISBLK && defined S_IFDIR
22473 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22476 #if defined S_ISBLK && defined S_IFCHR
22477 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22480 #if defined S_ISLNK && defined S_IFREG
22481 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22484 #if defined S_ISSOCK && defined S_IFREG
22485 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22489 if ac_fn_c_try_compile "$LINENO"; then :
22490 ac_cv_header_stat_broken=no
22492 ac_cv_header_stat_broken=yes
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22497 $as_echo "$ac_cv_header_stat_broken" >&6; }
22498 if test $ac_cv_header_stat_broken = yes; then
22500 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22504 ac_header_dirent=no
22505 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22506 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22508 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22509 if eval \${$as_ac_Header+:} false; then :
22510 $as_echo_n "(cached) " >&6
22512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h. */
22514 #include <sys/types.h>
22526 if ac_fn_c_try_compile "$LINENO"; then :
22527 eval "$as_ac_Header=yes"
22529 eval "$as_ac_Header=no"
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 eval ac_res=\$$as_ac_Header
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22535 $as_echo "$ac_res" >&6; }
22536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22537 cat >>confdefs.h <<_ACEOF
22538 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22541 ac_header_dirent=$ac_hdr; break
22545 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22546 if test $ac_header_dirent = dirent.h; then
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22548 $as_echo_n "checking for library containing opendir... " >&6; }
22549 if ${ac_cv_search_opendir+:} false; then :
22550 $as_echo_n "(cached) " >&6
22552 ac_func_search_save_LIBS=$LIBS
22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554 /* end confdefs.h. */
22556 /* Override any GCC internal prototype to avoid an error.
22557 Use char because int might match the return type of a GCC
22558 builtin and then its argument prototype would still apply. */
22571 for ac_lib in '' dir; do
22572 if test -z "$ac_lib"; then
22573 ac_res="none required"
22576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22578 if ac_fn_c_try_link "$LINENO"; then :
22579 ac_cv_search_opendir=$ac_res
22581 rm -f core conftest.err conftest.$ac_objext \
22583 if ${ac_cv_search_opendir+:} false; then :
22587 if ${ac_cv_search_opendir+:} false; then :
22590 ac_cv_search_opendir=no
22592 rm conftest.$ac_ext
22593 LIBS=$ac_func_search_save_LIBS
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22596 $as_echo "$ac_cv_search_opendir" >&6; }
22597 ac_res=$ac_cv_search_opendir
22598 if test "$ac_res" != no; then :
22599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22605 $as_echo_n "checking for library containing opendir... " >&6; }
22606 if ${ac_cv_search_opendir+:} false; then :
22607 $as_echo_n "(cached) " >&6
22609 ac_func_search_save_LIBS=$LIBS
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h. */
22613 /* Override any GCC internal prototype to avoid an error.
22614 Use char because int might match the return type of a GCC
22615 builtin and then its argument prototype would still apply. */
22628 for ac_lib in '' x; do
22629 if test -z "$ac_lib"; then
22630 ac_res="none required"
22633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22635 if ac_fn_c_try_link "$LINENO"; then :
22636 ac_cv_search_opendir=$ac_res
22638 rm -f core conftest.err conftest.$ac_objext \
22640 if ${ac_cv_search_opendir+:} false; then :
22644 if ${ac_cv_search_opendir+:} false; then :
22647 ac_cv_search_opendir=no
22649 rm conftest.$ac_ext
22650 LIBS=$ac_func_search_save_LIBS
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22653 $as_echo "$ac_cv_search_opendir" >&6; }
22654 ac_res=$ac_cv_search_opendir
22655 if test "$ac_res" != no; then :
22656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22662 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22667 cat >>confdefs.h <<_ACEOF
22668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22674 for ac_func in nanosleep nl_langinfo
22676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22679 cat >>confdefs.h <<_ACEOF
22680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22686 for ac_header in varargs.h
22688 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22689 if test "x$ac_cv_header_varargs_h" = xyes; then :
22690 cat >>confdefs.h <<_ACEOF
22691 #define HAVE_VARARGS_H 1
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22701 $as_echo_n "checking for Python support... " >&6; }
22703 # Check whether --with-python was given.
22704 if test "${with_python+set}" = set; then :
22705 withval=$with_python;
22708 if test "$withval" != "no"; then
22709 if test "$withval" = "yes"; then
22710 if test -e /usr/bin/python-config ; then
22711 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22712 PYTHON_LIBS=`/usr/bin/python-config --libs`
22714 for python_root in /usr /usr/local /usr/sfw; do
22715 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22716 if test -f $python_root/include/${ver}/Python.h; then
22717 PYTHON_INCDIR=-I$python_root/include/${ver}
22718 if test -d $python_root/lib64/${ver}/config; then
22719 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22721 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22728 if test x$PYTHON_INCDIR = x; then
22729 if test -f $prefix/include/Python.h; then
22730 PYTHON_INCDIR=-I$prefix/include
22731 if test -d $prefix/lib64/config; then
22732 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22734 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22738 $as_echo "no" >&6; }
22739 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22744 if test -e $withval/bin/python-config ; then
22745 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22746 PYTHON_LIBS=`$withval/bin/python-config --libs`
22747 elif test -f $withval/Python.h; then
22748 PYTHON_INCDIR=-I$withval
22749 PYTHON_LIBS="-L$withval/config -lpython"
22750 elif test -f $withval/include/Python.h; then
22751 PYTHON_INCDIR=-I$withval/include
22752 if test -d $withval/lib64/config; then
22753 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22755 PYTHON_LIBS="-L$withval/lib/config -lpython"
22757 elif test -f $withval/include/python/Python.h; then
22758 PYTHON_INCDIR=-I$withval/include/python
22759 if test -d $withval/lib64/python/config; then
22760 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22762 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22766 $as_echo "no" >&6; }
22767 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22771 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22774 $as_echo "yes" >&6; }
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22777 $as_echo "$as_me: checking for more Python libs" >&6;}
22778 saved_LIBS="$LIBS"; LIBS=
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22780 $as_echo_n "checking for library containing shm_open... " >&6; }
22781 if ${ac_cv_search_shm_open+:} false; then :
22782 $as_echo_n "(cached) " >&6
22784 ac_func_search_save_LIBS=$LIBS
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h. */
22788 /* Override any GCC internal prototype to avoid an error.
22789 Use char because int might match the return type of a GCC
22790 builtin and then its argument prototype would still apply. */
22798 return shm_open ();
22803 for ac_lib in '' rt; do
22804 if test -z "$ac_lib"; then
22805 ac_res="none required"
22808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22810 if ac_fn_c_try_link "$LINENO"; then :
22811 ac_cv_search_shm_open=$ac_res
22813 rm -f core conftest.err conftest.$ac_objext \
22815 if ${ac_cv_search_shm_open+:} false; then :
22819 if ${ac_cv_search_shm_open+:} false; then :
22822 ac_cv_search_shm_open=no
22824 rm conftest.$ac_ext
22825 LIBS=$ac_func_search_save_LIBS
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22828 $as_echo "$ac_cv_search_shm_open" >&6; }
22829 ac_res=$ac_cv_search_shm_open
22830 if test "$ac_res" != no; then :
22831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22836 $as_echo_n "checking for openpty in -lutil... " >&6; }
22837 if ${ac_cv_lib_util_openpty+:} false; then :
22838 $as_echo_n "(cached) " >&6
22840 ac_check_lib_save_LIBS=$LIBS
22841 LIBS="-lutil $LIBS"
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22845 /* Override any GCC internal prototype to avoid an error.
22846 Use char because int might match the return type of a GCC
22847 builtin and then its argument prototype would still apply. */
22860 if ac_fn_c_try_link "$LINENO"; then :
22861 ac_cv_lib_util_openpty=yes
22863 ac_cv_lib_util_openpty=no
22865 rm -f core conftest.err conftest.$ac_objext \
22866 conftest$ac_exeext conftest.$ac_ext
22867 LIBS=$ac_check_lib_save_LIBS
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22870 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22871 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22872 cat >>confdefs.h <<_ACEOF
22873 #define HAVE_LIBUTIL 1
22876 LIBS="-lutil $LIBS"
22880 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22884 $as_echo "no" >&6; }
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22898 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22899 if test "x$ac_cv_func_socket" = xyes; then :
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22901 $as_echo "using libc's socket" >&6; }
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22904 $as_echo_n "checking for socket in -lxnet... " >&6; }
22905 if ${ac_cv_lib_xnet_socket+:} false; then :
22906 $as_echo_n "(cached) " >&6
22908 ac_check_lib_save_LIBS=$LIBS
22909 LIBS="-lxnet $LIBS"
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22913 /* Override any GCC internal prototype to avoid an error.
22914 Use char because int might match the return type of a GCC
22915 builtin and then its argument prototype would still apply. */
22928 if ac_fn_c_try_link "$LINENO"; then :
22929 ac_cv_lib_xnet_socket=yes
22931 ac_cv_lib_xnet_socket=no
22933 rm -f core conftest.err conftest.$ac_objext \
22934 conftest$ac_exeext conftest.$ac_ext
22935 LIBS=$ac_check_lib_save_LIBS
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22938 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22939 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22940 cat >>confdefs.h <<_ACEOF
22941 #define HAVE_LIBXNET 1
22944 LIBS="-lxnet $LIBS"
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22949 $as_echo_n "checking for socket in -lsocket... " >&6; }
22950 if ${ac_cv_lib_socket_socket+:} false; then :
22951 $as_echo_n "(cached) " >&6
22953 ac_check_lib_save_LIBS=$LIBS
22954 LIBS="-lsocket $LIBS"
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22958 /* Override any GCC internal prototype to avoid an error.
22959 Use char because int might match the return type of a GCC
22960 builtin and then its argument prototype would still apply. */
22973 if ac_fn_c_try_link "$LINENO"; then :
22974 ac_cv_lib_socket_socket=yes
22976 ac_cv_lib_socket_socket=no
22978 rm -f core conftest.err conftest.$ac_objext \
22979 conftest$ac_exeext conftest.$ac_ext
22980 LIBS=$ac_check_lib_save_LIBS
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22983 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22984 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22985 cat >>confdefs.h <<_ACEOF
22986 #define HAVE_LIBSOCKET 1
22989 LIBS="-lsocket $LIBS"
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22994 $as_echo_n "checking for socket in -linet... " >&6; }
22995 if ${ac_cv_lib_inet_socket+:} false; then :
22996 $as_echo_n "(cached) " >&6
22998 ac_check_lib_save_LIBS=$LIBS
22999 LIBS="-linet $LIBS"
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23003 /* Override any GCC internal prototype to avoid an error.
23004 Use char because int might match the return type of a GCC
23005 builtin and then its argument prototype would still apply. */
23018 if ac_fn_c_try_link "$LINENO"; then :
23019 ac_cv_lib_inet_socket=yes
23021 ac_cv_lib_inet_socket=no
23023 rm -f core conftest.err conftest.$ac_objext \
23024 conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
23028 $as_echo "$ac_cv_lib_inet_socket" >&6; }
23029 if test "x$ac_cv_lib_inet_socket" = xyes; then :
23030 cat >>confdefs.h <<_ACEOF
23031 #define HAVE_LIBINET 1
23034 LIBS="-linet $LIBS"
23044 # Check whether --with-tcp-wrappers was given.
23045 if test "${with_tcp_wrappers+set}" = set; then :
23046 withval=$with_tcp_wrappers;
23047 if test "x$withval" != "xno" ; then
23049 LIBS="$saved_LIBS -lwrap"
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
23051 $as_echo_n "checking for library containing nanosleep... " >&6; }
23052 if ${ac_cv_search_nanosleep+:} false; then :
23053 $as_echo_n "(cached) " >&6
23055 ac_func_search_save_LIBS=$LIBS
23056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h. */
23059 /* Override any GCC internal prototype to avoid an error.
23060 Use char because int might match the return type of a GCC
23061 builtin and then its argument prototype would still apply. */
23069 return nanosleep ();
23074 for ac_lib in '' rt; do
23075 if test -z "$ac_lib"; then
23076 ac_res="none required"
23079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23081 if ac_fn_c_try_link "$LINENO"; then :
23082 ac_cv_search_nanosleep=$ac_res
23084 rm -f core conftest.err conftest.$ac_objext \
23086 if ${ac_cv_search_nanosleep+:} false; then :
23090 if ${ac_cv_search_nanosleep+:} false; then :
23093 ac_cv_search_nanosleep=no
23095 rm conftest.$ac_ext
23096 LIBS=$ac_func_search_save_LIBS
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
23099 $as_echo "$ac_cv_search_nanosleep" >&6; }
23100 ac_res=$ac_cv_search_nanosleep
23101 if test "$ac_res" != no; then :
23102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
23107 $as_echo_n "checking for libwrap... " >&6; }
23108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109 /* end confdefs.h. */
23111 #include <sys/types.h>
23113 int deny_severity = 0;
23114 int allow_severity = 0;
23115 struct request_info *req;
23127 if ac_fn_c_try_link "$LINENO"; then :
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23130 $as_echo "yes" >&6; }
23132 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23140 LIBS="$saved_LIBS -lwrap -lnsl"
23141 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23143 /* end confdefs.h. */
23145 #include <sys/types.h>
23147 int deny_severity = 0;
23148 int allow_severity = 0;
23149 struct request_info *req;
23161 if ac_fn_c_try_link "$LINENO"; then :
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23164 $as_echo "yes" >&6; }
23166 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23174 as_fn_error $? "*** libwrap missing" "$LINENO" 5
23178 rm -f core conftest.err conftest.$ac_objext \
23179 conftest$ac_exeext conftest.$ac_ext
23183 rm -f core conftest.err conftest.$ac_objext \
23184 conftest$ac_exeext conftest.$ac_ext
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23192 $as_echo_n "checking for OpenSSL... " >&6; }
23194 # Check whether --with-openssl was given.
23195 if test "${with_openssl+set}" = set; then :
23196 withval=$with_openssl;
23197 with_openssl_directory=${withval}
23203 if test "x$with_openssl_directory" != "xno"; then
23204 OPENSSL_LIBS="-lssl -lcrypto"
23207 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23209 # Make sure the $with_openssl_directory also makes sense
23211 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23212 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23213 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23217 saved_LIBS="${LIBS}"
23218 saved_CFLAGS="${CFLAGS}"
23219 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23220 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23225 #include <openssl/ssl.h>
23231 CRYPTO_set_id_callback(NULL);
23237 if ac_fn_c_try_link "$LINENO"; then :
23240 support_crypto="yes"
23245 support_crypto="no"
23249 rm -f core conftest.err conftest.$ac_objext \
23250 conftest$ac_exeext conftest.$ac_ext
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23255 #include <openssl/evp.h>
23267 if ac_fn_c_try_link "$LINENO"; then :
23269 ac_cv_openssl_sha2="yes"
23273 ac_cv_openssl_sha2="no"
23277 rm -f core conftest.err conftest.$ac_objext \
23278 conftest$ac_exeext conftest.$ac_ext
23280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23281 /* end confdefs.h. */
23283 #include <openssl/evp.h>
23295 if ac_fn_c_try_link "$LINENO"; then :
23297 ac_cv_openssl_export="no"
23301 ac_cv_openssl_export="yes"
23305 rm -f core conftest.err conftest.$ac_objext \
23306 conftest$ac_exeext conftest.$ac_ext
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23309 $as_echo "$support_tls" >&6; }
23310 if test "$support_tls" = "yes"; then
23312 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23315 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23318 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23322 if test "$ac_cv_openssl_sha2" = "yes"; then
23324 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23328 if test "$ac_cv_openssl_export" = "yes"; then
23330 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23334 if test "$support_crypto" = "yes"; then
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23336 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23337 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23338 $as_echo_n "(cached) " >&6
23340 ac_check_lib_save_LIBS=$LIBS
23341 LIBS="-lcrypto $LIBS"
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h. */
23345 /* Override any GCC internal prototype to avoid an error.
23346 Use char because int might match the return type of a GCC
23347 builtin and then its argument prototype would still apply. */
23351 char EVP_PKEY_encrypt_old ();
23355 return EVP_PKEY_encrypt_old ();
23360 if ac_fn_c_try_link "$LINENO"; then :
23361 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23363 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23365 rm -f core conftest.err conftest.$ac_objext \
23366 conftest$ac_exeext conftest.$ac_ext
23367 LIBS=$ac_check_lib_save_LIBS
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23370 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23371 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23373 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23379 LIBS="${saved_LIBS}"
23380 CFLAGS="${saved_CFLAGS}"
23383 support_crypto="no"
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23385 $as_echo "$support_tls" >&6; }
23388 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23397 $as_echo_n "checking for library containing dlopen... " >&6; }
23398 if ${ac_cv_search_dlopen+:} false; then :
23399 $as_echo_n "(cached) " >&6
23401 ac_func_search_save_LIBS=$LIBS
23402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23403 /* end confdefs.h. */
23405 /* Override any GCC internal prototype to avoid an error.
23406 Use char because int might match the return type of a GCC
23407 builtin and then its argument prototype would still apply. */
23420 for ac_lib in '' dl; do
23421 if test -z "$ac_lib"; then
23422 ac_res="none required"
23425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23427 if ac_fn_c_try_link "$LINENO"; then :
23428 ac_cv_search_dlopen=$ac_res
23430 rm -f core conftest.err conftest.$ac_objext \
23432 if ${ac_cv_search_dlopen+:} false; then :
23436 if ${ac_cv_search_dlopen+:} false; then :
23439 ac_cv_search_dlopen=no
23441 rm conftest.$ac_ext
23442 LIBS=$ac_func_search_save_LIBS
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23445 $as_echo "$ac_cv_search_dlopen" >&6; }
23446 ac_res=$ac_cv_search_dlopen
23447 if test "$ac_res" != no; then :
23448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23453 working_dir=`eval echo ${prefix}/var/bacula/working`
23455 # Check whether --with-working-dir was given.
23456 if test "${with_working_dir+set}" = set; then :
23457 withval=$with_working_dir;
23458 if test "x$withval" != "xno" ; then
23459 working_dir=$withval
23470 # Check whether --with-archivedir was given.
23471 if test "${with_archivedir+set}" = set; then :
23472 withval=$with_archivedir;
23473 if test "x$withval" != "xno" ; then
23474 archivedir=$withval
23483 basename=`hostname`
23485 # Check whether --with-basename was given.
23486 if test "${with_basename+set}" = set; then :
23487 withval=$with_basename;
23488 if test "x$withval" != "xno" ; then
23498 hostname=`uname -n | cut -d '.' -f 1`
23499 if test x${hostname} = x ; then
23500 hostname="localhost"
23502 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23503 if test ! $? = 0; then
23504 hostname="localhost"
23507 # Check whether --with-hostname was given.
23508 if test "${with_hostname+set}" = set; then :
23509 withval=$with_hostname;
23510 if test "x$withval" != "xno" ; then
23521 scriptdir=`eval echo ${sysconfdir}`
23523 # Check whether --with-scriptdir was given.
23524 if test "${with_scriptdir+set}" = set; then :
23525 withval=$with_scriptdir;
23526 if test "x$withval" != "xno" ; then
23539 # Check whether --with-bsrdir was given.
23540 if test "${with_bsrdir+set}" = set; then :
23541 withval=$with_bsrdir;
23542 if test "x$withval" != "xno" ; then
23554 # Check whether --with-logdir was given.
23555 if test "${with_logdir+set}" = set; then :
23556 withval=$with_logdir;
23557 if test "x$withval" != "xno" ; then
23568 # ------------------------------------------
23569 # Where to place plugindir (plugin files)
23570 # ------------------------------------------
23571 plugindir=`eval echo ${libdir}`
23573 # Check whether --with-plugindir was given.
23574 if test "${with_plugindir+set}" = set; then :
23575 withval=$with_plugindir;
23576 if test "x$withval" != "xno" ; then
23586 dump_email=root@localhost
23588 # Check whether --with-dump-email was given.
23589 if test "${with_dump_email+set}" = set; then :
23590 withval=$with_dump_email;
23591 if test "x$withval" != "xno" ; then
23592 dump_email=$withval
23601 job_email=root@localhost
23603 # Check whether --with-job-email was given.
23604 if test "${with_job_email+set}" = set; then :
23605 withval=$with_job_email;
23606 if test "x$withval" != "xno" ; then
23616 smtp_host=localhost
23618 # Check whether --with-smtp_host was given.
23619 if test "${with_smtp_host+set}" = set; then :
23620 withval=$with_smtp_host;
23621 if test "x$withval" != "xno" ; then
23633 # Check whether --with-pid-dir was given.
23634 if test "${with_pid_dir+set}" = set; then :
23635 withval=$with_pid_dir;
23636 if test "x$withval" != "xno" ; then
23644 cat >>confdefs.h <<_ACEOF
23645 #define _PATH_BACULA_PIDDIR "$piddir"
23650 subsysdir=/var/run/subsys
23651 if test -d /var/run/subsys; then
23652 subsysdir=/var/run/subsys
23653 elif test -d /var/lock/subsys; then
23654 subsysdir=/var/lock/subsys
23656 subsysdir=/var/run/subsys
23659 # Check whether --with-subsys-dir was given.
23660 if test "${with_subsys_dir+set}" = set; then :
23661 withval=$with_subsys_dir;
23662 if test "x$withval" != "xno" ; then
23674 # Check whether --with-baseport was given.
23675 if test "${with_baseport+set}" = set; then :
23676 withval=$with_baseport;
23677 if test "x$withval" != "xno" ; then
23686 dir_port=`expr $baseport`
23687 fd_port=`expr $baseport + 1`
23688 sd_port=`expr $fd_port + 1`
23696 # Check whether --with-dir-password was given.
23697 if test "${with_dir_password+set}" = set; then :
23698 withval=$with_dir_password;
23699 if test "x$withval" != "xno" ; then
23700 dir_password=$withval
23707 if test "x$dir_password" = "x" ; then
23708 if test "x$OPENSSL" = "xnone" ; then
23709 key=`autoconf/randpass 33`
23711 key=`openssl rand -base64 33`
23718 # Check whether --with-fd-password was given.
23719 if test "${with_fd_password+set}" = set; then :
23720 withval=$with_fd_password;
23721 if test "x$withval" != "xno" ; then
23722 fd_password=$withval
23729 if test "x$fd_password" = "x" ; then
23730 if test "x$OPENSSL" = "xnone" ; then
23731 key=`autoconf/randpass 37`
23733 key=`openssl rand -base64 33`
23740 # Check whether --with-sd-password was given.
23741 if test "${with_sd_password+set}" = set; then :
23742 withval=$with_sd_password;
23743 if test "x$withval" != "xno" ; then
23744 sd_password=$withval
23751 if test "x$sd_password" = "x" ; then
23752 if test "x$OPENSSL" = "xnone" ; then
23753 key=`autoconf/randpass 41`
23755 key=`openssl rand -base64 33`
23762 # Check whether --with-mon-dir-password was given.
23763 if test "${with_mon_dir_password+set}" = set; then :
23764 withval=$with_mon_dir_password;
23765 if test "x$withval" != "xno" ; then
23766 mon_dir_password=$withval
23773 if test "x$mon_dir_password" = "x" ; then
23774 if test "x$OPENSSL" = "xnone" ; then
23775 key=`autoconf/randpass 33`
23777 key=`openssl rand -base64 33`
23779 mon_dir_password=$key
23784 # Check whether --with-mon-fd-password was given.
23785 if test "${with_mon_fd_password+set}" = set; then :
23786 withval=$with_mon_fd_password;
23787 if test "x$withval" != "xno" ; then
23788 mon_fd_password=$withval
23795 if test "x$mon_fd_password" = "x" ; then
23796 if test "x$OPENSSL" = "xnone" ; then
23797 key=`autoconf/randpass 37`
23799 key=`openssl rand -base64 33`
23801 mon_fd_password=$key
23806 # Check whether --with-mon-sd-password was given.
23807 if test "${with_mon_sd_password+set}" = set; then :
23808 withval=$with_mon_sd_password;
23809 if test "x$withval" != "xno" ; then
23810 mon_sd_password=$withval
23817 if test "x$mon_sd_password" = "x" ; then
23818 if test "x$OPENSSL" = "xnone" ; then
23819 key=`autoconf/randpass 41`
23821 key=`openssl rand -base64 33`
23823 mon_sd_password=$key
23835 # Check whether --with-db_name was given.
23836 if test "${with_db_name+set}" = set; then :
23837 withval=$with_db_name;
23838 if test "x$withval" != "x" ; then
23849 # Check whether --with-db_user was given.
23850 if test "${with_db_user+set}" = set; then :
23851 withval=$with_db_user;
23852 if test "x$withval" != "x" ; then
23863 # Check whether --with-db_password was given.
23864 if test "${with_db_password+set}" = set; then :
23865 withval=$with_db_password;
23866 if test "x$withval" != "x" ; then
23867 db_password=$withval
23877 # Check whether --with-db_port was given.
23878 if test "${with_db_port+set}" = set; then :
23879 withval=$with_db_port;
23880 if test "x$withval" != "x" ; then
23890 # Handle users and groups for each daemon
23894 # Check whether --with-dir_user was given.
23895 if test "${with_dir_user+set}" = set; then :
23896 withval=$with_dir_user;
23897 if test "x$withval" != "x" ; then
23907 # Check whether --with-dir_group was given.
23908 if test "${with_dir_group+set}" = set; then :
23909 withval=$with_dir_group;
23910 if test "x$withval" != "x" ; then
23920 # Check whether --with-sd_user was given.
23921 if test "${with_sd_user+set}" = set; then :
23922 withval=$with_sd_user;
23923 if test "x$withval" != "x" ; then
23933 # Check whether --with-sd_group was given.
23934 if test "${with_sd_group+set}" = set; then :
23935 withval=$with_sd_group;
23936 if test "x$withval" != "x" ; then
23946 # Check whether --with-fd_user was given.
23947 if test "${with_fd_user+set}" = set; then :
23948 withval=$with_fd_user;
23949 if test "x$withval" != "x" ; then
23959 # Check whether --with-fd_group was given.
23960 if test "${with_fd_group+set}" = set; then :
23961 withval=$with_fd_group;
23962 if test "x$withval" != "x" ; then
23979 # Check whether --with-sbin-perm was given.
23980 if test "${with_sbin_perm+set}" = set; then :
23981 withval=$with_sbin_perm;
23982 if test "x$withval" != "x" ; then
23992 support_batch_insert=yes
23993 # Check whether --enable-batch-insert was given.
23994 if test "${enable_batch_insert+set}" = set; then :
23995 enableval=$enable_batch_insert;
23996 if test x$enableval = xno; then
23997 support_batch_insert=no
24004 if test x$support_batch_insert = xyes; then
24006 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
24015 $as_echo_n "checking for PostgreSQL support... " >&6; }
24017 # Check whether --with-postgresql was given.
24018 if test "${with_postgresql+set}" = set; then :
24019 withval=$with_postgresql;
24020 if test "$withval" != "no"; then
24021 if test "$withval" = "yes"; then
24022 PG_CONFIG=`which pg_config 2>/dev/null`
24023 if test -n "$PG_CONFIG"; then
24024 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
24025 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
24026 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
24027 elif test -f /usr/local/include/libpq-fe.h; then
24028 POSTGRESQL_INCDIR=/usr/local/include
24029 if test -d /usr/local/lib64; then
24030 POSTGRESQL_LIBDIR=/usr/local/lib64
24032 POSTGRESQL_LIBDIR=/usr/local/lib
24034 POSTGRESQL_BINDIR=/usr/local/bin
24035 elif test -f /usr/include/libpq-fe.h; then
24036 POSTGRESQL_INCDIR=/usr/include
24037 if test -d /usr/lib64; then
24038 POSTGRESQL_LIBDIR=/usr/lib64
24040 POSTGRESQL_LIBDIR=/usr/lib
24042 POSTGRESQL_BINDIR=/usr/bin
24043 elif test -f /usr/include/pgsql/libpq-fe.h; then
24044 POSTGRESQL_INCDIR=/usr/include/pgsql
24045 if test -d /usr/lib64/pgsql; then
24046 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
24048 POSTGRESQL_LIBDIR=/usr/lib/pgsql
24050 POSTGRESQL_BINDIR=/usr/bin
24051 elif test -f /usr/include/postgresql/libpq-fe.h; then
24052 POSTGRESQL_INCDIR=/usr/include/postgresql
24053 if test -d /usr/lib64/postgresql; then
24054 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
24056 POSTGRESQL_LIBDIR=/usr/lib/postgresql
24058 POSTGRESQL_BINDIR=/usr/bin
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24062 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
24064 elif test -f $withval/include/libpq-fe.h; then
24065 POSTGRESQL_INCDIR=$withval/include
24066 POSTGRESQL_LIBDIR=$withval/lib
24067 POSTGRESQL_BINDIR=$withval/bin
24068 elif test -f $withval/include/postgresql/libpq-fe.h; then
24069 POSTGRESQL_INCDIR=$withval/include/postgresql
24070 if test -d $withval/lib64; then
24071 POSTGRESQL_LIBDIR=$withval/lib64
24073 POSTGRESQL_LIBDIR=$withval/lib
24075 POSTGRESQL_BINDIR=$withval/bin
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24078 $as_echo "no" >&6; }
24079 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
24082 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24085 $as_echo "yes" >&6; }
24087 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
24088 if test x$use_libtool != xno; then
24089 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
24091 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
24093 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
24094 if test "x$ac_cv_func_crypt" = xyes; then :
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
24098 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
24099 if ${ac_cv_lib_crypt_crypt+:} false; then :
24100 $as_echo_n "(cached) " >&6
24102 ac_check_lib_save_LIBS=$LIBS
24103 LIBS="-lcrypt $LIBS"
24104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24105 /* end confdefs.h. */
24107 /* Override any GCC internal prototype to avoid an error.
24108 Use char because int might match the return type of a GCC
24109 builtin and then its argument prototype would still apply. */
24122 if ac_fn_c_try_link "$LINENO"; then :
24123 ac_cv_lib_crypt_crypt=yes
24125 ac_cv_lib_crypt_crypt=no
24127 rm -f core conftest.err conftest.$ac_objext \
24128 conftest$ac_exeext conftest.$ac_ext
24129 LIBS=$ac_check_lib_save_LIBS
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24132 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24133 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24134 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24139 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24140 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24142 if test -z "${db_backends}"; then
24143 db_backends="PostgreSQL"
24145 db_backends="${db_backends} PostgreSQL"
24147 if test -z "${DB_BACKENDS}"; then
24148 DB_BACKENDS="postgresql"
24150 DB_BACKENDS="${DB_BACKENDS} postgresql"
24153 if test "x$support_batch_insert" = "xyes"; then
24154 saved_LDFLAGS="${LDFLAGS}"
24155 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24156 saved_LIBS="${LIBS}"
24157 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24158 LIBS="${saved_LIBS} -lcrypt"
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24162 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24163 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24164 $as_echo_n "(cached) " >&6
24166 ac_check_lib_save_LIBS=$LIBS
24168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h. */
24171 /* Override any GCC internal prototype to avoid an error.
24172 Use char because int might match the return type of a GCC
24173 builtin and then its argument prototype would still apply. */
24177 char PQisthreadsafe ();
24181 return PQisthreadsafe ();
24186 if ac_fn_c_try_link "$LINENO"; then :
24187 ac_cv_lib_pq_PQisthreadsafe=yes
24189 ac_cv_lib_pq_PQisthreadsafe=no
24191 rm -f core conftest.err conftest.$ac_objext \
24192 conftest$ac_exeext conftest.$ac_ext
24193 LIBS=$ac_check_lib_save_LIBS
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24196 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24197 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24199 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24204 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24205 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24206 $as_echo_n "(cached) " >&6
24208 ac_check_lib_save_LIBS=$LIBS
24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24211 /* end confdefs.h. */
24213 /* Override any GCC internal prototype to avoid an error.
24214 Use char because int might match the return type of a GCC
24215 builtin and then its argument prototype would still apply. */
24219 char PQputCopyData ();
24223 return PQputCopyData ();
24228 if ac_fn_c_try_link "$LINENO"; then :
24229 ac_cv_lib_pq_PQputCopyData=yes
24231 ac_cv_lib_pq_PQputCopyData=no
24233 rm -f core conftest.err conftest.$ac_objext \
24234 conftest$ac_exeext conftest.$ac_ext
24235 LIBS=$ac_check_lib_save_LIBS
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24238 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24239 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24241 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24245 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24246 if test $support_batch_insert = yes ; then
24248 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24250 if test -z "${batch_insert_db_backends}"; then
24251 batch_insert_db_backends="PostgreSQL"
24253 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24258 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24260 echo "WARNING: Your PostgreSQL client library is too old to detect "
24261 echo "if it was compiled with --enable-thread-safety, consider to "
24262 echo "upgrade it in order to avoid problems with Batch insert mode"
24265 LDFLAGS="${saved_LDFLAGS}"
24266 LIBS="${saved_LIBS}"
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24270 $as_echo "no" >&6; }
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24276 $as_echo "no" >&6; }
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24288 $as_echo_n "checking for MySQL support... " >&6; }
24290 # Check whether --with-mysql was given.
24291 if test "${with_mysql+set}" = set; then :
24292 withval=$with_mysql;
24293 if test "$withval" != "no"; then
24294 if test "$withval" = "yes"; then
24296 # This code is very broken on older systems
24298 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24299 # if test "x${MYSQL_CONFIG}" != x; then
24300 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24301 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24302 # if test $? = 0 ; then
24303 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24304 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24306 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24307 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24309 # elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24310 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24311 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24312 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24313 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24314 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24316 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24318 MYSQL_BINDIR=/usr/local/mysql/bin
24319 elif test -f /usr/include/mysql/mysql.h; then
24320 MYSQL_INCDIR=/usr/include/mysql
24321 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24322 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24323 MYSQL_LIBDIR=/usr/lib64/mysql
24324 elif test -f /usr/lib64/libmysqlclient_r.a \
24325 -o -f /usr/lib64/libmysqlclient_r.so; then
24326 MYSQL_LIBDIR=/usr/lib64
24327 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24328 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24329 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24330 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24331 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24332 MYSQL_LIBDIR=/usr/lib/mysql
24334 MYSQL_LIBDIR=/usr/lib
24336 MYSQL_BINDIR=/usr/bin
24337 elif test -f /usr/include/mysql.h; then
24338 MYSQL_INCDIR=/usr/include
24339 if test -f /usr/lib64/libmysqlclient_r.a \
24340 -o -f /usr/lib64/libmysqlclient_r.so; then
24341 MYSQL_LIBDIR=/usr/lib64
24343 MYSQL_LIBDIR=/usr/lib
24345 MYSQL_BINDIR=/usr/bin
24346 elif test -f /usr/local/include/mysql/mysql.h; then
24347 MYSQL_INCDIR=/usr/local/include/mysql
24348 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24349 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24350 MYSQL_LIBDIR=/usr/local/lib64/mysql
24352 MYSQL_LIBDIR=/usr/local/lib/mysql
24354 MYSQL_BINDIR=/usr/local/bin
24355 elif test -f /usr/local/include/mysql.h; then
24356 MYSQL_INCDIR=/usr/local/include
24357 if test -f /usr/local/lib64/libmysqlclient_r.a \
24358 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24359 MYSQL_LIBDIR=/usr/local/lib64
24361 MYSQL_LIBDIR=/usr/local/lib
24363 MYSQL_BINDIR=/usr/local/bin
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24366 $as_echo "no" >&6; }
24367 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24370 if test -f $withval/include/mysql/mysql.h; then
24371 MYSQL_INCDIR=$withval/include/mysql
24372 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24373 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24374 MYSQL_LIBDIR=$withval/lib64/mysql
24375 elif test -f $withval/lib64/libmysqlclient_r.a \
24376 -o -f $withval/lib64/libmysqlclient_r.so; then
24377 MYSQL_LIBDIR=$withval/lib64
24378 elif test -f $withval/lib/libmysqlclient_r.a \
24379 -o -f $withval/lib/libmysqlclient_r.so; then
24380 MYSQL_LIBDIR=$withval/lib
24382 MYSQL_LIBDIR=$withval/lib/mysql
24384 MYSQL_BINDIR=$withval/bin
24385 elif test -f $withval/include/mysql.h; then
24386 MYSQL_INCDIR=$withval/include
24387 if test -f $withval/lib64/libmysqlclient_r.a \
24388 -o -f $withval/lib64/libmysqlclient_r.so; then
24389 MYSQL_LIBDIR=$withval/lib64
24391 MYSQL_LIBDIR=$withval/lib
24393 MYSQL_BINDIR=$withval/bin
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24396 $as_echo "no" >&6; }
24397 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24400 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24401 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24402 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24403 if test x$use_libtool != xno; then
24404 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24406 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24408 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24410 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24413 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24416 $as_echo "yes" >&6; }
24418 if test -z "${db_backends}" ; then
24419 db_backends="MySQL"
24421 db_backends="${db_backends} MySQL"
24423 if test -z "${DB_BACKENDS}" ; then
24424 DB_BACKENDS="mysql"
24426 DB_BACKENDS="${DB_BACKENDS} mysql"
24429 if test "x$support_batch_insert" = "xyes"; then
24430 saved_LDFLAGS="${LDFLAGS}"
24431 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24432 saved_LIBS="${LIBS}"
24433 LIBS="${saved_LIBS} -lz"
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24436 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24437 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24438 $as_echo_n "(cached) " >&6
24440 ac_check_lib_save_LIBS=$LIBS
24441 LIBS="-lmysqlclient_r $LIBS"
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h. */
24445 /* Override any GCC internal prototype to avoid an error.
24446 Use char because int might match the return type of a GCC
24447 builtin and then its argument prototype would still apply. */
24451 char mysql_thread_safe ();
24455 return mysql_thread_safe ();
24460 if ac_fn_c_try_link "$LINENO"; then :
24461 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24463 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24465 rm -f core conftest.err conftest.$ac_objext \
24466 conftest$ac_exeext conftest.$ac_ext
24467 LIBS=$ac_check_lib_save_LIBS
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24470 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24471 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24473 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24477 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24478 if test -z "${batch_insert_db_backends}"; then
24479 batch_insert_db_backends="MySQL"
24481 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24485 LDFLAGS="${saved_LDFLAGS}"
24486 LIBS="${saved_LIBS}"
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24490 $as_echo "no" >&6; }
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24496 $as_echo "no" >&6; }
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24502 $as_echo_n "checking for MySQL embedded support... " >&6; }
24504 # Check whether --with-embedded-mysql was given.
24505 if test "${with_embedded_mysql+set}" = set; then :
24506 withval=$with_embedded_mysql;
24507 if test "$withval" != "no"; then
24508 if test "$withval" = "yes"; then
24509 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24510 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24511 if test -d /usr/local/mysql/lib64/mysql; then
24512 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24514 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24516 MYSQL_BINDIR=/usr/local/mysql/bin
24517 elif test -f /usr/include/mysql/mysql.h; then
24518 MYSQL_INCDIR=/usr/include/mysql
24519 if test -d /usr/lib64/mysql; then
24520 MYSQL_LIBDIR=/usr/lib64/mysql
24522 MYSQL_LIBDIR=/usr/lib/mysql
24524 MYSQL_BINDIR=/usr/bin
24525 elif test -f /usr/include/mysql.h; then
24526 MYSQL_INCDIR=/usr/include
24527 if test -d /usr/lib64; then
24528 MYSQL_LIBDIR=/usr/lib64
24530 MYSQL_LIBDIR=/usr/lib
24532 MYSQL_BINDIR=/usr/bin
24533 elif test -f /usr/local/include/mysql/mysql.h; then
24534 MYSQL_INCDIR=/usr/local/include/mysql
24535 if test -d /usr/local/lib64/mysql; then
24536 MYSQL_LIBDIR=/usr/local/lib64/mysql
24538 MYSQL_LIBDIR=/usr/local/lib/mysql
24540 MYSQL_BINDIR=/usr/local/bin
24541 elif test -f /usr/local/include/mysql.h; then
24542 MYSQL_INCDIR=/usr/local/include
24543 if test -d /usr/local/lib64; then
24544 MYSQL_LIBDIR=/usr/local/lib64
24546 MYSQL_LIBDIR=/usr/local/lib
24548 MYSQL_BINDIR=/usr/local/bin
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24551 $as_echo "no" >&6; }
24552 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24555 if test -f $withval/include/mysql/mysql.h; then
24556 MYSQL_INCDIR=$withval/include/mysql
24557 if test -d $withval/lib64/mysql; then
24558 MYSQL_LIBDIR=$withval/lib64/mysql
24560 MYSQL_LIBDIR=$withval/lib/mysql
24562 MYSQL_BINDIR=$withval/bin
24563 elif test -f $withval/include/mysql.h; then
24564 MYSQL_INCDIR=$withval/include
24565 if test -d $withval/lib64; then
24566 MYSQL_LIBDIR=$withval/lib64
24568 MYSQL_LIBDIR=$withval/lib
24570 MYSQL_BINDIR=$withval/bin
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24573 $as_echo "no" >&6; }
24574 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24577 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24578 if test x$use_libtool != xno; then
24579 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24581 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24583 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24584 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24587 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24590 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24593 $as_echo "yes" >&6; }
24595 if test -z "${db_backends}"; then
24596 db_backends="MySQL"
24598 db_backends="${db_backends} MySQL"
24600 if test -z "${DB_BACKENDS}"; then
24601 DB_BACKENDS="mysql"
24603 DB_BACKENDS="${DB_BACKENDS} mysql"
24606 if test "x$support_batch_insert" = "xyes"; then
24607 saved_LDFLAGS="${LDFLAGS}"
24608 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24609 saved_LIBS="${LIBS}"
24610 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24613 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24614 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24615 $as_echo_n "(cached) " >&6
24617 ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-lmysqlclient_r $LIBS"
24619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24620 /* end confdefs.h. */
24622 /* Override any GCC internal prototype to avoid an error.
24623 Use char because int might match the return type of a GCC
24624 builtin and then its argument prototype would still apply. */
24628 char mysql_thread_safe ();
24632 return mysql_thread_safe ();
24637 if ac_fn_c_try_link "$LINENO"; then :
24638 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24640 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24642 rm -f core conftest.err conftest.$ac_objext \
24643 conftest$ac_exeext conftest.$ac_ext
24644 LIBS=$ac_check_lib_save_LIBS
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24647 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24648 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24650 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24654 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24655 if test -z "${batch_insert_db_backends}"; then
24656 batch_insert_db_backends="MySQL"
24658 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24662 LDFLAGS="${saved_LDFLAGS}"
24663 LIBS="${saved_LIBS}"
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24667 $as_echo "no" >&6; }
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673 $as_echo "no" >&6; }
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24686 $as_echo_n "checking for SQLite3 support... " >&6; }
24688 # Check whether --with-sqlite3 was given.
24689 if test "${with_sqlite3+set}" = set; then :
24690 withval=$with_sqlite3;
24691 if test "$withval" != "no"; then
24692 if test "$withval" = "yes"; then
24693 if test -f /usr/local/include/sqlite3.h; then
24694 SQLITE_INCDIR=/usr/local/include
24695 if test -d /usr/local/lib64; then
24696 SQLITE_LIBDIR=/usr/local/lib64
24698 SQLITE_LIBDIR=/usr/local/lib
24700 SQLITE_BINDIR=/usr/local/bin
24701 elif test -f /usr/include/sqlite3.h; then
24702 SQLITE_INCDIR=/usr/include
24703 if test -d /usr/lib64; then
24704 SQLITE_LIBDIR=/usr/lib64
24706 SQLITE_LIBDIR=/usr/lib
24708 SQLITE_BINDIR=/usr/bin
24709 elif test -f $prefix/include/sqlite3.h; then
24710 SQLITE_INCDIR=$prefix/include
24711 if test -d $prefix/lib64; then
24712 SQLITE_LIBDIR=$prefix/lib64
24714 SQLITE_LIBDIR=$prefix/lib
24716 SQLITE_BINDIR=$prefix/bin
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24720 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24723 if test -f $withval/sqlite3.h; then
24724 SQLITE_INCDIR=$withval
24725 SQLITE_LIBDIR=$withval
24726 SQLITE_BINDIR=$withval
24727 elif test -f $withval/include/sqlite3.h; then
24728 SQLITE_INCDIR=$withval/include
24729 if test -d $withval/lib64; then
24730 SQLITE_LIBDIR=$withval/lib64
24732 SQLITE_LIBDIR=$withval/lib
24734 SQLITE_BINDIR=$withval/bin
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24737 $as_echo "no" >&6; }
24738 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24741 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24742 if test x$use_libtool != xno; then
24743 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24745 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24747 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24748 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24751 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24754 $as_echo "yes" >&6; }
24756 if test -z "${db_backends}"; then
24757 db_backends="SQLite3"
24759 db_backends="${db_backends} SQLite3"
24761 if test -z "${DB_BACKENDS}"; then
24762 DB_BACKENDS="sqlite3"
24764 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24767 if test "x$support_batch_insert" = "xyes"; then
24768 saved_LDFLAGS="${LDFLAGS}"
24769 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24772 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24773 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24774 $as_echo_n "(cached) " >&6
24776 ac_check_lib_save_LIBS=$LIBS
24777 LIBS="-lsqlite3 $LIBS"
24778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24779 /* end confdefs.h. */
24781 /* Override any GCC internal prototype to avoid an error.
24782 Use char because int might match the return type of a GCC
24783 builtin and then its argument prototype would still apply. */
24787 char sqlite3_threadsafe ();
24791 return sqlite3_threadsafe ();
24796 if ac_fn_c_try_link "$LINENO"; then :
24797 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24799 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24801 rm -f core conftest.err conftest.$ac_objext \
24802 conftest$ac_exeext conftest.$ac_ext
24803 LIBS=$ac_check_lib_save_LIBS
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24806 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24807 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24809 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24813 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24814 if test -z "${batch_insert_db_backends}"; then
24815 batch_insert_db_backends="SQLite3"
24817 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24821 LDFLAGS="${saved_LDFLAGS}"
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24825 $as_echo "no" >&6; }
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24831 $as_echo "no" >&6; }
24841 #BA_CHECK_INGRES_DB
24845 #BA_CHECK_DBI_DRIVER
24847 if test -z "${batch_insert_db_backends}"; then
24848 batch_insert_db_backends="None"
24851 if test "x${db_backends}" = "x" ; then
24854 echo "You have not specified either --enable-client-only or one of the"
24855 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24856 echo "This is not permitted. Please reconfigure."
24858 echo "Aborting the configuration ..."
24864 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24866 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24867 if test x$use_libtool = xno; then
24868 SHARED_CATALOG_TARGETS=""
24870 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24874 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24876 if test x$use_libtool = xno; then
24879 echo "You have specified two or more of the"
24880 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24881 echo "This is not permitted when not using libtool Please reconfigure."
24883 echo "Aborting the configuration ..."
24889 SHARED_CATALOG_TARGETS=""
24890 for db_type in ${DB_BACKENDS}
24892 if test -z "${SHARED_CATALOG_TARGETS}"; then
24893 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24895 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24901 if test x$use_libtool = xyes; then
24911 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24914 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24915 if test -z "$CCOPTS"; then
24916 CCOPTS='-g -O2 -Wall'
24923 largefile_support="no"
24925 # Check whether --enable-largefile was given.
24926 if test "${enable_largefile+set}" = set; then :
24927 enableval=$enable_largefile;
24930 if test "$enable_largefile" != no; then
24931 if test -n "$ac_tool_prefix"; then
24932 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24933 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24935 $as_echo_n "checking for $ac_word... " >&6; }
24936 if ${ac_cv_prog_GETCONF+:} false; then :
24937 $as_echo_n "(cached) " >&6
24939 if test -n "$GETCONF"; then
24940 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24943 for as_dir in $PATH
24946 test -z "$as_dir" && as_dir=.
24947 for ac_exec_ext in '' $ac_executable_extensions; do
24948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24949 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24959 GETCONF=$ac_cv_prog_GETCONF
24960 if test -n "$GETCONF"; then
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24962 $as_echo "$GETCONF" >&6; }
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24965 $as_echo "no" >&6; }
24970 if test -z "$ac_cv_prog_GETCONF"; then
24971 ac_ct_GETCONF=$GETCONF
24972 # Extract the first word of "getconf", so it can be a program name with args.
24973 set dummy getconf; ac_word=$2
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24975 $as_echo_n "checking for $ac_word... " >&6; }
24976 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24977 $as_echo_n "(cached) " >&6
24979 if test -n "$ac_ct_GETCONF"; then
24980 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24986 test -z "$as_dir" && as_dir=.
24987 for ac_exec_ext in '' $ac_executable_extensions; do
24988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24989 ac_cv_prog_ac_ct_GETCONF="getconf"
24990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24999 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
25000 if test -n "$ac_ct_GETCONF"; then
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
25002 $as_echo "$ac_ct_GETCONF" >&6; }
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25005 $as_echo "no" >&6; }
25008 if test "x$ac_ct_GETCONF" = x; then
25011 case $cross_compiling:$ac_tool_warned in
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25015 ac_tool_warned=yes ;;
25017 GETCONF=$ac_ct_GETCONF
25020 GETCONF="$ac_cv_prog_GETCONF"
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
25024 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
25025 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
25026 $as_echo_n "(cached) " >&6
25028 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
25029 ac_cv_sys_largefile_CFLAGS=no
25031 # IRIX 6.2 and later require cc -n32.
25032 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
25033 if test "$GCC" != yes; then
25034 ac_cv_sys_largefile_CFLAGS=-n32
25037 CC="$CC $ac_cv_sys_largefile_CFLAGS"
25038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h. */
25049 if ac_fn_c_try_link "$LINENO"; then :
25052 ac_cv_sys_largefile_CFLAGS=no
25054 rm -f core conftest.err conftest.$ac_objext \
25055 conftest$ac_exeext conftest.$ac_ext
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
25061 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
25063 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
25064 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
25065 $as_echo_n "(cached) " >&6
25067 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
25068 ac_cv_sys_largefile_LDFLAGS=no
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
25073 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
25075 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
25076 if ${ac_cv_sys_largefile_LIBS+:} false; then :
25077 $as_echo_n "(cached) " >&6
25079 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
25080 ac_cv_sys_largefile_LIBS=no
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
25085 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
25087 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25090 -D_FILE_OFFSET_BITS=*) ;;
25091 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
25092 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
25097 case "$CPPFLAGS" in
25098 '') CPPFLAGS="$ac_flag" ;;
25099 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
25107 '') CFLAGS="$ac_flag" ;;
25108 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25113 case "$ac_cv_sys_largefile_LDFLAGS" in
25117 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25118 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25121 case "$ac_cv_sys_largefile_LIBS" in
25125 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25126 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25130 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25131 if ${ac_cv_sys_file_offset_bits+:} false; then :
25132 $as_echo_n "(cached) " >&6
25134 ac_cv_sys_file_offset_bits=no
25135 ac_cv_sys_file_offset_bits=64
25136 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25138 -D_FILE_OFFSET_BITS)
25139 ac_cv_sys_file_offset_bits=1 ;;
25140 -D_FILE_OFFSET_BITS=*)
25141 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25147 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25148 if test "$ac_cv_sys_file_offset_bits" != no; then
25150 cat >>confdefs.h <<_ACEOF
25151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25156 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25157 if ${ac_cv_sys_largefile_source+:} false; then :
25158 $as_echo_n "(cached) " >&6
25160 ac_cv_sys_largefile_source=no
25161 ac_cv_sys_largefile_source=1
25162 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25164 -D_LARGEFILE_SOURCE)
25165 ac_cv_sys_largefile_source=1 ;;
25166 -D_LARGEFILE_SOURCE=*)
25167 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25173 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25174 if test "$ac_cv_sys_largefile_source" != no; then
25176 cat >>confdefs.h <<_ACEOF
25177 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25182 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25183 if ${ac_cv_sys_large_files+:} false; then :
25184 $as_echo_n "(cached) " >&6
25186 ac_cv_sys_large_files=no
25187 ac_cv_sys_large_files=1
25188 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25191 ac_cv_sys_large_files=1 ;;
25193 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25199 $as_echo "$ac_cv_sys_large_files" >&6; }
25200 if test "$ac_cv_sys_large_files" != no; then
25202 cat >>confdefs.h <<_ACEOF
25203 #define _LARGE_FILES $ac_cv_sys_large_files
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25211 $as_echo_n "checking for X... " >&6; }
25214 # Check whether --with-x was given.
25215 if test "${with_x+set}" = set; then :
25219 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25220 if test "x$with_x" = xno; then
25221 # The user explicitly disabled X.
25224 case $x_includes,$x_libraries in #(
25225 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25226 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25227 $as_echo_n "(cached) " >&6
25229 # One or both of the vars are not set, and there is no cached value.
25230 ac_x_includes=no ac_x_libraries=no
25231 rm -f -r conftest.dir
25232 if mkdir conftest.dir; then
25234 cat >Imakefile <<'_ACEOF'
25236 @echo incroot='${INCROOT}'
25238 @echo usrlibdir='${USRLIBDIR}'
25240 @echo libdir='${LIBDIR}'
25242 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25243 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25244 for ac_var in incroot usrlibdir libdir; do
25245 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25247 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25248 for ac_extension in a so sl dylib la dll; do
25249 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25250 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25251 ac_im_usrlibdir=$ac_im_libdir; break
25254 # Screen out bogus values from the imake configuration. They are
25255 # bogus both because they are the default anyway, and because
25256 # using them would break gcc on systems where it needs fixed includes.
25257 case $ac_im_incroot in
25258 /usr/include) ac_x_includes= ;;
25259 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25261 case $ac_im_usrlibdir in
25262 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25263 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25267 rm -f -r conftest.dir
25270 # Standard set of common directories for X headers.
25271 # Check X11 before X11Rn because it is often a symlink to the current release.
25285 /usr/local/X11/include
25286 /usr/local/X11R7/include
25287 /usr/local/X11R6/include
25288 /usr/local/X11R5/include
25289 /usr/local/X11R4/include
25291 /usr/local/include/X11
25292 /usr/local/include/X11R7
25293 /usr/local/include/X11R6
25294 /usr/local/include/X11R5
25295 /usr/local/include/X11R4
25299 /usr/XFree86/include/X11
25303 /usr/unsupported/include
25304 /usr/athena/include
25305 /usr/local/x11r5/include
25306 /usr/lpp/Xamples/include
25308 /usr/openwin/include
25309 /usr/openwin/share/include'
25311 if test "$ac_x_includes" = no; then
25312 # Guess where to find include files, by looking for Xlib.h.
25313 # First, try using that file with no special directory specified.
25314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315 /* end confdefs.h. */
25316 #include <X11/Xlib.h>
25318 if ac_fn_c_try_cpp "$LINENO"; then :
25319 # We can compile using X headers with no special include directory.
25322 for ac_dir in $ac_x_header_dirs; do
25323 if test -r "$ac_dir/X11/Xlib.h"; then
25324 ac_x_includes=$ac_dir
25329 rm -f conftest.err conftest.i conftest.$ac_ext
25330 fi # $ac_x_includes = no
25332 if test "$ac_x_libraries" = no; then
25333 # Check for the libraries.
25334 # See if we find them without any special options.
25335 # Don't add to $LIBS permanently.
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h. */
25340 #include <X11/Xlib.h>
25349 if ac_fn_c_try_link "$LINENO"; then :
25351 # We can link X programs with no special library path.
25355 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25357 # Don't even attempt the hair of trying to link an X program!
25358 for ac_extension in a so sl dylib la dll; do
25359 if test -r "$ac_dir/libX11.$ac_extension"; then
25360 ac_x_libraries=$ac_dir
25366 rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
25368 fi # $ac_x_libraries = no
25370 case $ac_x_includes,$ac_x_libraries in #(
25371 no,* | *,no | *\'*)
25372 # Didn't find X, or a directory has "'" in its name.
25373 ac_cv_have_x="have_x=no";; #(
25375 # Record where we found X for the cache.
25376 ac_cv_have_x="have_x=yes\
25377 ac_x_includes='$ac_x_includes'\
25378 ac_x_libraries='$ac_x_libraries'"
25384 eval "$ac_cv_have_x"
25387 if test "$have_x" != yes; then
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25389 $as_echo "$have_x" >&6; }
25392 # If each of the values was on the command line, it overrides each guess.
25393 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25394 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25395 # Update the cache value to reflect the command line values.
25396 ac_cv_have_x="have_x=yes\
25397 ac_x_includes='$x_includes'\
25398 ac_x_libraries='$x_libraries'"
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25400 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25403 if test "$no_x" = yes; then
25404 # Not all programs may use this symbol, but it does not hurt to define it.
25406 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25408 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25410 if test -n "$x_includes"; then
25411 X_CFLAGS="$X_CFLAGS -I$x_includes"
25414 # It would also be nice to do this for all -L options, not just this one.
25415 if test -n "$x_libraries"; then
25416 X_LIBS="$X_LIBS -L$x_libraries"
25417 # For Solaris; some versions of Sun CC require a space after -R and
25418 # others require no space. Words are not sufficient . . . .
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25420 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25421 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25422 ac_xsave_c_werror_flag=$ac_c_werror_flag
25423 ac_c_werror_flag=yes
25424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h. */
25435 if ac_fn_c_try_link "$LINENO"; then :
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25437 $as_echo "no" >&6; }
25438 X_LIBS="$X_LIBS -R$x_libraries"
25440 LIBS="$ac_xsave_LIBS -R $x_libraries"
25441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25442 /* end confdefs.h. */
25452 if ac_fn_c_try_link "$LINENO"; then :
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25454 $as_echo "yes" >&6; }
25455 X_LIBS="$X_LIBS -R $x_libraries"
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25458 $as_echo "neither works" >&6; }
25460 rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
25463 rm -f core conftest.err conftest.$ac_objext \
25464 conftest$ac_exeext conftest.$ac_ext
25465 ac_c_werror_flag=$ac_xsave_c_werror_flag
25466 LIBS=$ac_xsave_LIBS
25469 # Check for system-dependent libraries X programs must link with.
25470 # Do this before checking for the system-independent R6 libraries
25471 # (-lICE), since we may need -lsocket or whatever for X linking.
25473 if test "$ISC" = yes; then
25474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25476 # Martyn Johnson says this is needed for Ultrix, if the X
25477 # libraries were built with DECnet support. And Karl Berry says
25478 # the Alpha needs dnet_stub (dnet does not exist).
25479 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25481 /* end confdefs.h. */
25483 /* Override any GCC internal prototype to avoid an error.
25484 Use char because int might match the return type of a GCC
25485 builtin and then its argument prototype would still apply. */
25489 char XOpenDisplay ();
25493 return XOpenDisplay ();
25498 if ac_fn_c_try_link "$LINENO"; then :
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25502 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25503 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25504 $as_echo_n "(cached) " >&6
25506 ac_check_lib_save_LIBS=$LIBS
25507 LIBS="-ldnet $LIBS"
25508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h. */
25511 /* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
25521 return dnet_ntoa ();
25526 if ac_fn_c_try_link "$LINENO"; then :
25527 ac_cv_lib_dnet_dnet_ntoa=yes
25529 ac_cv_lib_dnet_dnet_ntoa=no
25531 rm -f core conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
25533 LIBS=$ac_check_lib_save_LIBS
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25536 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25537 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25538 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25541 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25543 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25544 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25545 $as_echo_n "(cached) " >&6
25547 ac_check_lib_save_LIBS=$LIBS
25548 LIBS="-ldnet_stub $LIBS"
25549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550 /* end confdefs.h. */
25552 /* Override any GCC internal prototype to avoid an error.
25553 Use char because int might match the return type of a GCC
25554 builtin and then its argument prototype would still apply. */
25562 return dnet_ntoa ();
25567 if ac_fn_c_try_link "$LINENO"; then :
25568 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25570 ac_cv_lib_dnet_stub_dnet_ntoa=no
25572 rm -f core conftest.err conftest.$ac_objext \
25573 conftest$ac_exeext conftest.$ac_ext
25574 LIBS=$ac_check_lib_save_LIBS
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25577 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25578 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25579 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25584 rm -f core conftest.err conftest.$ac_objext \
25585 conftest$ac_exeext conftest.$ac_ext
25586 LIBS="$ac_xsave_LIBS"
25588 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25589 # to get the SysV transport functions.
25590 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25592 # The nsl library prevents programs from opening the X display
25593 # on Irix 5.2, according to T.E. Dickey.
25594 # The functions gethostbyname, getservbyname, and inet_addr are
25595 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25596 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25597 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25601 if test $ac_cv_func_gethostbyname = no; then
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25603 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25604 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25605 $as_echo_n "(cached) " >&6
25607 ac_check_lib_save_LIBS=$LIBS
25609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610 /* end confdefs.h. */
25612 /* Override any GCC internal prototype to avoid an error.
25613 Use char because int might match the return type of a GCC
25614 builtin and then its argument prototype would still apply. */
25618 char gethostbyname ();
25622 return gethostbyname ();
25627 if ac_fn_c_try_link "$LINENO"; then :
25628 ac_cv_lib_nsl_gethostbyname=yes
25630 ac_cv_lib_nsl_gethostbyname=no
25632 rm -f core conftest.err conftest.$ac_objext \
25633 conftest$ac_exeext conftest.$ac_ext
25634 LIBS=$ac_check_lib_save_LIBS
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25637 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25638 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25642 if test $ac_cv_lib_nsl_gethostbyname = no; then
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25644 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25645 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25646 $as_echo_n "(cached) " >&6
25648 ac_check_lib_save_LIBS=$LIBS
25650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25651 /* end confdefs.h. */
25653 /* Override any GCC internal prototype to avoid an error.
25654 Use char because int might match the return type of a GCC
25655 builtin and then its argument prototype would still apply. */
25659 char gethostbyname ();
25663 return gethostbyname ();
25668 if ac_fn_c_try_link "$LINENO"; then :
25669 ac_cv_lib_bsd_gethostbyname=yes
25671 ac_cv_lib_bsd_gethostbyname=no
25673 rm -f core conftest.err conftest.$ac_objext \
25674 conftest$ac_exeext conftest.$ac_ext
25675 LIBS=$ac_check_lib_save_LIBS
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25678 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25679 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25686 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25687 # socket/setsockopt and other routines are undefined under SCO ODT
25688 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25689 # on later versions), says Simon Leinen: it contains gethostby*
25690 # variants that don't use the name server (or something). -lsocket
25691 # must be given before -lnsl if both are needed. We assume that
25692 # if connect needs -lnsl, so does gethostbyname.
25693 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25694 if test "x$ac_cv_func_connect" = xyes; then :
25698 if test $ac_cv_func_connect = no; then
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25700 $as_echo_n "checking for connect in -lsocket... " >&6; }
25701 if ${ac_cv_lib_socket_connect+:} false; then :
25702 $as_echo_n "(cached) " >&6
25704 ac_check_lib_save_LIBS=$LIBS
25705 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25707 /* end confdefs.h. */
25709 /* Override any GCC internal prototype to avoid an error.
25710 Use char because int might match the return type of a GCC
25711 builtin and then its argument prototype would still apply. */
25724 if ac_fn_c_try_link "$LINENO"; then :
25725 ac_cv_lib_socket_connect=yes
25727 ac_cv_lib_socket_connect=no
25729 rm -f core conftest.err conftest.$ac_objext \
25730 conftest$ac_exeext conftest.$ac_ext
25731 LIBS=$ac_check_lib_save_LIBS
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25734 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25735 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25736 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25741 # Guillermo Gomez says -lposix is necessary on A/UX.
25742 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25743 if test "x$ac_cv_func_remove" = xyes; then :
25747 if test $ac_cv_func_remove = no; then
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25749 $as_echo_n "checking for remove in -lposix... " >&6; }
25750 if ${ac_cv_lib_posix_remove+:} false; then :
25751 $as_echo_n "(cached) " >&6
25753 ac_check_lib_save_LIBS=$LIBS
25754 LIBS="-lposix $LIBS"
25755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25756 /* end confdefs.h. */
25758 /* Override any GCC internal prototype to avoid an error.
25759 Use char because int might match the return type of a GCC
25760 builtin and then its argument prototype would still apply. */
25773 if ac_fn_c_try_link "$LINENO"; then :
25774 ac_cv_lib_posix_remove=yes
25776 ac_cv_lib_posix_remove=no
25778 rm -f core conftest.err conftest.$ac_objext \
25779 conftest$ac_exeext conftest.$ac_ext
25780 LIBS=$ac_check_lib_save_LIBS
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25783 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25784 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25785 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25790 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25791 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25792 if test "x$ac_cv_func_shmat" = xyes; then :
25796 if test $ac_cv_func_shmat = no; then
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25798 $as_echo_n "checking for shmat in -lipc... " >&6; }
25799 if ${ac_cv_lib_ipc_shmat+:} false; then :
25800 $as_echo_n "(cached) " >&6
25802 ac_check_lib_save_LIBS=$LIBS
25804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805 /* end confdefs.h. */
25807 /* Override any GCC internal prototype to avoid an error.
25808 Use char because int might match the return type of a GCC
25809 builtin and then its argument prototype would still apply. */
25822 if ac_fn_c_try_link "$LINENO"; then :
25823 ac_cv_lib_ipc_shmat=yes
25825 ac_cv_lib_ipc_shmat=no
25827 rm -f core conftest.err conftest.$ac_objext \
25828 conftest$ac_exeext conftest.$ac_ext
25829 LIBS=$ac_check_lib_save_LIBS
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25832 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25833 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25834 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25840 # Check for libraries that X11R6 Xt/Xaw programs need.
25841 ac_save_LDFLAGS=$LDFLAGS
25842 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25843 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25844 # check for ICE first), but we must link in the order -lSM -lICE or
25845 # we get undefined symbols. So assume we have SM if we have ICE.
25846 # These have to be linked with before -lX11, unlike the other
25847 # libraries we check for below, so use a different variable.
25848 # John Interrante, Karl Berry
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25850 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25851 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25852 $as_echo_n "(cached) " >&6
25854 ac_check_lib_save_LIBS=$LIBS
25855 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h. */
25859 /* Override any GCC internal prototype to avoid an error.
25860 Use char because int might match the return type of a GCC
25861 builtin and then its argument prototype would still apply. */
25865 char IceConnectionNumber ();
25869 return IceConnectionNumber ();
25874 if ac_fn_c_try_link "$LINENO"; then :
25875 ac_cv_lib_ICE_IceConnectionNumber=yes
25877 ac_cv_lib_ICE_IceConnectionNumber=no
25879 rm -f core conftest.err conftest.$ac_objext \
25880 conftest$ac_exeext conftest.$ac_ext
25881 LIBS=$ac_check_lib_save_LIBS
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25884 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25885 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25886 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25889 LDFLAGS=$ac_save_LDFLAGS
25927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25930 cat >>confdefs.h <<_ACEOF
25931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25939 $as_echo_n "checking for ANSI C header files... " >&6; }
25940 if ${ac_cv_header_stdc+:} false; then :
25941 $as_echo_n "(cached) " >&6
25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h. */
25945 #include <stdlib.h>
25946 #include <stdarg.h>
25947 #include <string.h>
25958 if ac_fn_c_try_compile "$LINENO"; then :
25959 ac_cv_header_stdc=yes
25961 ac_cv_header_stdc=no
25963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 if test $ac_cv_header_stdc = yes; then
25966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25969 #include <string.h>
25972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25973 $EGREP "memchr" >/dev/null 2>&1; then :
25976 ac_cv_header_stdc=no
25982 if test $ac_cv_header_stdc = yes; then
25983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25985 /* end confdefs.h. */
25986 #include <stdlib.h>
25989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25990 $EGREP "free" >/dev/null 2>&1; then :
25993 ac_cv_header_stdc=no
25999 if test $ac_cv_header_stdc = yes; then
26000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26001 if test "$cross_compiling" = yes; then :
26004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h. */
26007 #include <stdlib.h>
26008 #if ((' ' & 0x0FF) == 0x020)
26009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26012 # define ISLOWER(c) \
26013 (('a' <= (c) && (c) <= 'i') \
26014 || ('j' <= (c) && (c) <= 'r') \
26015 || ('s' <= (c) && (c) <= 'z'))
26016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26024 for (i = 0; i < 256; i++)
26025 if (XOR (islower (i), ISLOWER (i))
26026 || toupper (i) != TOUPPER (i))
26031 if ac_fn_c_try_run "$LINENO"; then :
26034 ac_cv_header_stdc=no
26036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26037 conftest.$ac_objext conftest.beam conftest.$ac_ext
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26043 $as_echo "$ac_cv_header_stdc" >&6; }
26044 if test $ac_cv_header_stdc = yes; then
26046 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
26051 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
26052 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
26053 $as_echo_n "(cached) " >&6
26055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h. */
26057 #include <sys/types.h>
26061 return makedev(0, 0);
26066 if ac_fn_c_try_link "$LINENO"; then :
26067 ac_cv_header_sys_types_h_makedev=yes
26069 ac_cv_header_sys_types_h_makedev=no
26071 rm -f core conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
26076 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
26078 if test $ac_cv_header_sys_types_h_makedev = no; then
26079 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
26080 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
26082 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
26088 if test $ac_cv_header_sys_mkdev_h = no; then
26089 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
26090 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
26092 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
26100 ac_header_dirent=no
26101 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26102 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26104 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26105 if eval \${$as_ac_Header+:} false; then :
26106 $as_echo_n "(cached) " >&6
26108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26109 /* end confdefs.h. */
26110 #include <sys/types.h>
26122 if ac_fn_c_try_compile "$LINENO"; then :
26123 eval "$as_ac_Header=yes"
26125 eval "$as_ac_Header=no"
26127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129 eval ac_res=\$$as_ac_Header
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26131 $as_echo "$ac_res" >&6; }
26132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26133 cat >>confdefs.h <<_ACEOF
26134 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26137 ac_header_dirent=$ac_hdr; break
26141 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26142 if test $ac_header_dirent = dirent.h; then
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26144 $as_echo_n "checking for library containing opendir... " >&6; }
26145 if ${ac_cv_search_opendir+:} false; then :
26146 $as_echo_n "(cached) " >&6
26148 ac_func_search_save_LIBS=$LIBS
26149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26150 /* end confdefs.h. */
26152 /* Override any GCC internal prototype to avoid an error.
26153 Use char because int might match the return type of a GCC
26154 builtin and then its argument prototype would still apply. */
26167 for ac_lib in '' dir; do
26168 if test -z "$ac_lib"; then
26169 ac_res="none required"
26172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26174 if ac_fn_c_try_link "$LINENO"; then :
26175 ac_cv_search_opendir=$ac_res
26177 rm -f core conftest.err conftest.$ac_objext \
26179 if ${ac_cv_search_opendir+:} false; then :
26183 if ${ac_cv_search_opendir+:} false; then :
26186 ac_cv_search_opendir=no
26188 rm conftest.$ac_ext
26189 LIBS=$ac_func_search_save_LIBS
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26192 $as_echo "$ac_cv_search_opendir" >&6; }
26193 ac_res=$ac_cv_search_opendir
26194 if test "$ac_res" != no; then :
26195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26201 $as_echo_n "checking for library containing opendir... " >&6; }
26202 if ${ac_cv_search_opendir+:} false; then :
26203 $as_echo_n "(cached) " >&6
26205 ac_func_search_save_LIBS=$LIBS
26206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26207 /* end confdefs.h. */
26209 /* Override any GCC internal prototype to avoid an error.
26210 Use char because int might match the return type of a GCC
26211 builtin and then its argument prototype would still apply. */
26224 for ac_lib in '' x; do
26225 if test -z "$ac_lib"; then
26226 ac_res="none required"
26229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26231 if ac_fn_c_try_link "$LINENO"; then :
26232 ac_cv_search_opendir=$ac_res
26234 rm -f core conftest.err conftest.$ac_objext \
26236 if ${ac_cv_search_opendir+:} false; then :
26240 if ${ac_cv_search_opendir+:} false; then :
26243 ac_cv_search_opendir=no
26245 rm conftest.$ac_ext
26246 LIBS=$ac_func_search_save_LIBS
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26249 $as_echo "$ac_cv_search_opendir" >&6; }
26250 ac_res=$ac_cv_search_opendir
26251 if test "$ac_res" != no; then :
26252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26259 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26260 if ${ac_cv_header_stat_broken+:} false; then :
26261 $as_echo_n "(cached) " >&6
26263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h. */
26265 #include <sys/types.h>
26266 #include <sys/stat.h>
26268 #if defined S_ISBLK && defined S_IFDIR
26269 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26272 #if defined S_ISBLK && defined S_IFCHR
26273 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26276 #if defined S_ISLNK && defined S_IFREG
26277 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26280 #if defined S_ISSOCK && defined S_IFREG
26281 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26285 if ac_fn_c_try_compile "$LINENO"; then :
26286 ac_cv_header_stat_broken=no
26288 ac_cv_header_stat_broken=yes
26290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26293 $as_echo "$ac_cv_header_stat_broken" >&6; }
26294 if test $ac_cv_header_stat_broken = yes; then
26296 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26301 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26302 if ${ac_cv_header_sys_wait_h+:} false; then :
26303 $as_echo_n "(cached) " >&6
26305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h. */
26307 #include <sys/types.h>
26308 #include <sys/wait.h>
26309 #ifndef WEXITSTATUS
26310 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26313 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26321 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26326 if ac_fn_c_try_compile "$LINENO"; then :
26327 ac_cv_header_sys_wait_h=yes
26329 ac_cv_header_sys_wait_h=no
26331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26334 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26335 if test $ac_cv_header_sys_wait_h = yes; then
26337 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26342 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26343 if ${ac_cv_header_time+:} false; then :
26344 $as_echo_n "(cached) " >&6
26346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26347 /* end confdefs.h. */
26348 #include <sys/types.h>
26349 #include <sys/time.h>
26355 if ((struct tm *) 0)
26361 if ac_fn_c_try_compile "$LINENO"; then :
26362 ac_cv_header_time=yes
26364 ac_cv_header_time=no
26366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26369 $as_echo "$ac_cv_header_time" >&6; }
26370 if test $ac_cv_header_time = yes; then
26372 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26376 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26377 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26379 cat >>confdefs.h <<_ACEOF
26380 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26384 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26389 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26390 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26392 cat >>confdefs.h <<_ACEOF
26393 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26397 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26400 case " $LIBOBJS " in
26401 *" fileblocks.$ac_objext "* ) ;;
26402 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26410 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26411 if ${ac_cv_struct_tm+:} false; then :
26412 $as_echo_n "(cached) " >&6
26414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26415 /* end confdefs.h. */
26416 #include <sys/types.h>
26423 int *p = &tm.tm_sec;
26429 if ac_fn_c_try_compile "$LINENO"; then :
26430 ac_cv_struct_tm=time.h
26432 ac_cv_struct_tm=sys/time.h
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26437 $as_echo "$ac_cv_struct_tm" >&6; }
26438 if test $ac_cv_struct_tm = sys/time.h; then
26440 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26444 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26445 #include <$ac_cv_struct_tm>
26448 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26450 cat >>confdefs.h <<_ACEOF
26451 #define HAVE_STRUCT_TM_TM_ZONE 1
26457 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26459 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26462 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26464 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26470 cat >>confdefs.h <<_ACEOF
26471 #define HAVE_DECL_TZNAME $ac_have_decl
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26475 $as_echo_n "checking for tzname... " >&6; }
26476 if ${ac_cv_var_tzname+:} false; then :
26477 $as_echo_n "(cached) " >&6
26479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h. */
26482 #if !HAVE_DECL_TZNAME
26483 extern char *tzname[];
26489 return tzname[0][0];
26494 if ac_fn_c_try_link "$LINENO"; then :
26495 ac_cv_var_tzname=yes
26497 ac_cv_var_tzname=no
26499 rm -f core conftest.err conftest.$ac_objext \
26500 conftest$ac_exeext conftest.$ac_ext
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26503 $as_echo "$ac_cv_var_tzname" >&6; }
26504 if test $ac_cv_var_tzname = yes; then
26506 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26513 $as_echo_n "checking for utime.h... " >&6; }
26514 if ${ba_cv_header_utime_h+:} false; then :
26515 $as_echo_n "(cached) " >&6
26518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26519 /* end confdefs.h. */
26521 #include <sys/types.h>
26534 if ac_fn_c_try_compile "$LINENO"; then :
26536 ba_cv_header_utime_h=yes
26540 ba_cv_header_utime_h=no
26544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26549 $as_echo "$ba_cv_header_utime_h" >&6; }
26550 test $ba_cv_header_utime_h = yes &&
26551 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26555 $as_echo_n "checking for socklen_t... " >&6; }
26556 if ${ba_cv_header_socklen_t+:} false; then :
26557 $as_echo_n "(cached) " >&6
26560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26561 /* end confdefs.h. */
26563 #include <sys/types.h>
26564 #include <sys/socket.h>
26576 if ac_fn_c_try_compile "$LINENO"; then :
26578 ba_cv_header_socklen_t=yes
26582 ba_cv_header_socklen_t=no
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26591 $as_echo "$ba_cv_header_socklen_t" >&6; }
26592 test $ba_cv_header_socklen_t = yes &&
26593 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26597 ac_cpp='$CXXCPP $CPPFLAGS'
26598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26603 $as_echo_n "checking for ioctl_req_t... " >&6; }
26604 if ${ba_cv_header_ioctl_req_t+:} false; then :
26605 $as_echo_n "(cached) " >&6
26608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h. */
26611 #include <unistd.h>
26612 #include <sys/types.h>
26613 #include <sys/ioctl.h>
26619 int (*d_ioctl)(int fd, unsigned long int request, ...);
26626 if ac_fn_cxx_try_compile "$LINENO"; then :
26628 ba_cv_header_ioctl_req_t=yes
26632 ba_cv_header_ioctl_req_t=no
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26641 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26642 test $ba_cv_header_ioctl_req_t = yes &&
26643 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26647 ac_cpp='$CPP $CPPFLAGS'
26648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26654 ac_cpp='$CXXCPP $CPPFLAGS'
26655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26660 $as_echo_n "checking for typeof... " >&6; }
26661 if ${ba_cv_have_typeof+:} false; then :
26662 $as_echo_n "(cached) " >&6
26665 if test "$cross_compiling" = yes; then :
26667 ba_cv_have_typeof=no
26671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26672 /* end confdefs.h. */
26674 main(){char *a = 0; a = (typeof a)a;}
26677 if ac_fn_cxx_try_run "$LINENO"; then :
26679 ba_cv_have_typeof=yes
26683 ba_cv_have_typeof=no
26686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26687 conftest.$ac_objext conftest.beam conftest.$ac_ext
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26694 $as_echo "$ba_cv_have_typeof" >&6; }
26695 test $ba_cv_have_typeof = yes &&
26696 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26699 ac_cpp='$CPP $CPPFLAGS'
26700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26706 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26707 if ${ac_cv_c_const+:} false; then :
26708 $as_echo_n "(cached) " >&6
26710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h. */
26716 /* FIXME: Include the comments suggested by Paul. */
26717 #ifndef __cplusplus
26718 /* Ultrix mips cc rejects this. */
26719 typedef int charset[2];
26721 /* SunOS 4.1.1 cc rejects this. */
26722 char const *const *pcpcc;
26724 /* NEC SVR4.0.2 mips cc rejects this. */
26725 struct point {int x, y;};
26726 static struct point const zero = {0,0};
26727 /* AIX XL C 1.02.0.0 rejects this.
26728 It does not let you subtract one const X* pointer from another in
26729 an arm of an if-expression whose if-part is not a constant
26731 const char *g = "string";
26732 pcpcc = &g + (g ? g-g : 0);
26733 /* HPUX 7.0 cc rejects these. */
26735 ppc = (char**) pcpcc;
26736 pcpcc = (char const *const *) ppc;
26737 { /* SCO 3.2v4 cc rejects this. */
26739 char const *s = 0 ? (char *) 0 : (char const *) 0;
26744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26745 int x[] = {25, 17};
26746 const int *foo = &x[0];
26749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26750 typedef const int *iptr;
26754 { /* AIX XL C 1.02.0.0 rejects this saying
26755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26756 struct s { int j; const int *ap[3]; };
26757 struct s *b; b->j = 5;
26759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26760 const int foo = 10;
26761 if (!foo) return 0;
26763 return !cs[0] && !zero.x;
26770 if ac_fn_c_try_compile "$LINENO"; then :
26775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26778 $as_echo "$ac_cv_c_const" >&6; }
26779 if test $ac_cv_c_const = no; then
26781 $as_echo "#define const /**/" >>confdefs.h
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26787 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26788 if ${ac_cv_c_bigendian+:} false; then :
26789 $as_echo_n "(cached) " >&6
26791 ac_cv_c_bigendian=unknown
26792 # See if we're dealing with a universal compiler.
26793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26794 /* end confdefs.h. */
26795 #ifndef __APPLE_CC__
26796 not a universal capable compiler
26801 if ac_fn_c_try_compile "$LINENO"; then :
26803 # Check for potential -arch flags. It is not universal unless
26804 # there are at least two -arch flags with different values.
26807 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26808 if test -n "$ac_prev"; then
26810 i?86 | x86_64 | ppc | ppc64)
26811 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26814 ac_cv_c_bigendian=universal
26820 elif test "x$ac_word" = "x-arch"; then
26825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826 if test $ac_cv_c_bigendian = unknown; then
26827 # See if sys/param.h defines the BYTE_ORDER macro.
26828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26829 /* end confdefs.h. */
26830 #include <sys/types.h>
26831 #include <sys/param.h>
26836 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26837 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26839 bogus endian macros
26846 if ac_fn_c_try_compile "$LINENO"; then :
26847 # It does; now see whether it defined to BIG_ENDIAN or not.
26848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849 /* end confdefs.h. */
26850 #include <sys/types.h>
26851 #include <sys/param.h>
26856 #if BYTE_ORDER != BIG_ENDIAN
26864 if ac_fn_c_try_compile "$LINENO"; then :
26865 ac_cv_c_bigendian=yes
26867 ac_cv_c_bigendian=no
26869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26873 if test $ac_cv_c_bigendian = unknown; then
26874 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h. */
26877 #include <limits.h>
26882 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26883 bogus endian macros
26890 if ac_fn_c_try_compile "$LINENO"; then :
26891 # It does; now see whether it defined to _BIG_ENDIAN or not.
26892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26893 /* end confdefs.h. */
26894 #include <limits.h>
26899 #ifndef _BIG_ENDIAN
26907 if ac_fn_c_try_compile "$LINENO"; then :
26908 ac_cv_c_bigendian=yes
26910 ac_cv_c_bigendian=no
26912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 if test $ac_cv_c_bigendian = unknown; then
26917 # Compile a test program.
26918 if test "$cross_compiling" = yes; then :
26919 # Try to guess by grepping values from an object file.
26920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h. */
26922 short int ascii_mm[] =
26923 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26924 short int ascii_ii[] =
26925 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26926 int use_ascii (int i) {
26927 return ascii_mm[i] + ascii_ii[i];
26929 short int ebcdic_ii[] =
26930 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26931 short int ebcdic_mm[] =
26932 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26933 int use_ebcdic (int i) {
26934 return ebcdic_mm[i] + ebcdic_ii[i];
26941 return use_ascii (foo) == use_ebcdic (foo);
26946 if ac_fn_c_try_compile "$LINENO"; then :
26947 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26948 ac_cv_c_bigendian=yes
26950 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26951 if test "$ac_cv_c_bigendian" = unknown; then
26952 ac_cv_c_bigendian=no
26954 # finding both strings is unlikely to happen, but who knows?
26955 ac_cv_c_bigendian=unknown
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26963 $ac_includes_default
26968 /* Are we little or big endian? From Harbison&Steele. */
26972 char c[sizeof (long int)];
26975 return u.c[sizeof (long int) - 1] == 1;
26981 if ac_fn_c_try_run "$LINENO"; then :
26982 ac_cv_c_bigendian=no
26984 ac_cv_c_bigendian=yes
26986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26987 conftest.$ac_objext conftest.beam conftest.$ac_ext
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26993 $as_echo "$ac_cv_c_bigendian" >&6; }
26994 case $ac_cv_c_bigendian in #(
26997 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
27001 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
27005 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27009 as_fn_error $? "unknown endianness
27010 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
27015 $as_echo_n "checking how to get filesystem type... " >&6; }
27017 # The order of these tests is important.
27018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27019 /* end confdefs.h. */
27021 #include <sys/statvfs.h>
27022 #include <sys/fstyp.h>
27025 if ac_fn_c_try_cpp "$LINENO"; then :
27026 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
27030 rm -f conftest.err conftest.i conftest.$ac_ext
27031 if test $fstype = no; then
27032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h. */
27035 #include <sys/statfs.h>
27036 #include <sys/fstyp.h>
27039 if ac_fn_c_try_cpp "$LINENO"; then :
27040 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
27044 rm -f conftest.err conftest.i conftest.$ac_ext
27046 if test $fstype = no; then
27047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h. */
27050 #include <sys/statfs.h>
27051 #include <sys/vmount.h>
27054 if ac_fn_c_try_cpp "$LINENO"; then :
27055 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
27059 rm -f conftest.err conftest.i conftest.$ac_ext
27061 if test $fstype = no; then
27062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27063 /* end confdefs.h. */
27065 #include <mntent.h>
27068 if ac_fn_c_try_cpp "$LINENO"; then :
27069 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
27073 rm -f conftest.err conftest.i conftest.$ac_ext
27075 if test $fstype = no; then
27076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27077 /* end confdefs.h. */
27078 #include <sys/mount.h>
27081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27082 $EGREP "f_type;" >/dev/null 2>&1; then :
27083 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
27089 if test $fstype = no; then
27090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27091 /* end confdefs.h. */
27093 #include <sys/mount.h>
27094 #include <sys/fs_types.h>
27097 if ac_fn_c_try_cpp "$LINENO"; then :
27098 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
27102 rm -f conftest.err conftest.i conftest.$ac_ext
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27105 $as_echo "$fstype" >&6; }
27107 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27108 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27110 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27117 ac_cpp='$CXXCPP $CPPFLAGS'
27118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27122 for ac_func in backtrace
27124 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27125 if test "x$ac_cv_func_backtrace" = xyes; then :
27126 cat >>confdefs.h <<_ACEOF
27127 #define HAVE_BACKTRACE 1
27134 ac_cpp='$CPP $CPPFLAGS'
27135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27141 $as_echo_n "checking return type of signal handlers... " >&6; }
27142 if ${ac_cv_type_signal+:} false; then :
27143 $as_echo_n "(cached) " >&6
27145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27146 /* end confdefs.h. */
27147 #include <sys/types.h>
27148 #include <signal.h>
27153 return *(signal (0, 0)) (0) == 1;
27158 if ac_fn_c_try_compile "$LINENO"; then :
27159 ac_cv_type_signal=int
27161 ac_cv_type_signal=void
27163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27166 $as_echo "$ac_cv_type_signal" >&6; }
27168 cat >>confdefs.h <<_ACEOF
27169 #define RETSIGTYPE $ac_cv_type_signal
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27175 $as_echo_n "checking for type of signal functions... " >&6; }
27176 if ${bash_cv_signal_vintage+:} false; then :
27177 $as_echo_n "(cached) " >&6
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h. */
27182 #include <signal.h>
27188 struct sigaction sa;
27189 sigemptyset(&ss); sigsuspend(&ss);
27190 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27191 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27197 if ac_fn_c_try_link "$LINENO"; then :
27198 bash_cv_signal_vintage="posix"
27201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27202 /* end confdefs.h. */
27203 #include <signal.h>
27208 int mask = sigmask(SIGINT);
27209 sigsetmask(mask); sigblock(mask); sigpause(mask);
27215 if ac_fn_c_try_link "$LINENO"; then :
27216 bash_cv_signal_vintage="4.2bsd"
27219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27220 /* end confdefs.h. */
27222 #include <signal.h>
27223 RETSIGTYPE foo() { }
27228 int mask = sigmask(SIGINT);
27229 sigset(SIGINT, foo); sigrelse(SIGINT);
27230 sighold(SIGINT); sigpause(SIGINT);
27236 if ac_fn_c_try_link "$LINENO"; then :
27237 bash_cv_signal_vintage="svr3"
27239 bash_cv_signal_vintage="v7"
27242 rm -f core conftest.err conftest.$ac_objext \
27243 conftest$ac_exeext conftest.$ac_ext
27246 rm -f core conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
27250 rm -f core conftest.err conftest.$ac_objext \
27251 conftest$ac_exeext conftest.$ac_ext
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27256 $as_echo "$bash_cv_signal_vintage" >&6; }
27257 if test "$bash_cv_signal_vintage" = "posix"; then
27258 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27260 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27261 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27263 elif test "$bash_cv_signal_vintage" = "svr3"; then
27264 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27268 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27269 if test "x$ac_cv_type_mode_t" = xyes; then :
27273 cat >>confdefs.h <<_ACEOF
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27280 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27281 if ${ac_cv_type_uid_t+:} false; then :
27282 $as_echo_n "(cached) " >&6
27284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h. */
27286 #include <sys/types.h>
27289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27290 $EGREP "uid_t" >/dev/null 2>&1; then :
27291 ac_cv_type_uid_t=yes
27293 ac_cv_type_uid_t=no
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27299 $as_echo "$ac_cv_type_uid_t" >&6; }
27300 if test $ac_cv_type_uid_t = no; then
27302 $as_echo "#define uid_t int" >>confdefs.h
27305 $as_echo "#define gid_t int" >>confdefs.h
27309 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27310 if test "x$ac_cv_type_size_t" = xyes; then :
27314 cat >>confdefs.h <<_ACEOF
27315 #define size_t unsigned int
27320 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27321 if test "x$ac_cv_type_pid_t" = xyes; then :
27325 cat >>confdefs.h <<_ACEOF
27331 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27332 if test "x$ac_cv_type_off_t" = xyes; then :
27336 cat >>confdefs.h <<_ACEOF
27337 #define off_t long int
27343 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27344 if test "x$ac_cv_type_intptr_t" = xyes; then :
27346 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27349 for ac_type in 'int' 'long int' 'long long int'; do
27350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27351 /* end confdefs.h. */
27352 $ac_includes_default
27356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27363 if ac_fn_c_try_compile "$LINENO"; then :
27365 cat >>confdefs.h <<_ACEOF
27366 #define intptr_t $ac_type
27371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372 test -z "$ac_type" && break
27378 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27379 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27381 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27384 for ac_type in 'unsigned int' 'unsigned long int' \
27385 'unsigned long long int'; do
27386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387 /* end confdefs.h. */
27388 $ac_includes_default
27392 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27399 if ac_fn_c_try_compile "$LINENO"; then :
27401 cat >>confdefs.h <<_ACEOF
27402 #define uintptr_t $ac_type
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 test -z "$ac_type" && break
27413 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27414 if test "x$ac_cv_type_ino_t" = xyes; then :
27418 cat >>confdefs.h <<_ACEOF
27419 #define ino_t unsigned long
27424 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27425 if test "x$ac_cv_type_dev_t" = xyes; then :
27429 cat >>confdefs.h <<_ACEOF
27430 #define dev_t unsigned long
27435 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27436 if test "x$ac_cv_type_daddr_t" = xyes; then :
27440 cat >>confdefs.h <<_ACEOF
27441 #define daddr_t long
27446 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27447 if test "x$ac_cv_type_major_t" = xyes; then :
27451 cat >>confdefs.h <<_ACEOF
27452 #define major_t int
27457 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27458 if test "x$ac_cv_type_minor_t" = xyes; then :
27462 cat >>confdefs.h <<_ACEOF
27463 #define minor_t int
27468 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27469 if test "x$ac_cv_type_ssize_t" = xyes; then :
27473 cat >>confdefs.h <<_ACEOF
27474 #define ssize_t int
27479 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27480 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27482 cat >>confdefs.h <<_ACEOF
27483 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27487 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27490 case " $LIBOBJS " in
27491 *" fileblocks.$ac_objext "* ) ;;
27492 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27499 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27500 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27502 cat >>confdefs.h <<_ACEOF
27503 #define HAVE_STRUCT_STAT_ST_RDEV 1
27507 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27513 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27514 if ${ac_cv_struct_tm+:} false; then :
27515 $as_echo_n "(cached) " >&6
27517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27518 /* end confdefs.h. */
27519 #include <sys/types.h>
27526 int *p = &tm.tm_sec;
27532 if ac_fn_c_try_compile "$LINENO"; then :
27533 ac_cv_struct_tm=time.h
27535 ac_cv_struct_tm=sys/time.h
27537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27540 $as_echo "$ac_cv_struct_tm" >&6; }
27541 if test $ac_cv_struct_tm = sys/time.h; then
27543 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27548 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27549 if ${ac_cv_c_const+:} false; then :
27550 $as_echo_n "(cached) " >&6
27552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27553 /* end confdefs.h. */
27558 /* FIXME: Include the comments suggested by Paul. */
27559 #ifndef __cplusplus
27560 /* Ultrix mips cc rejects this. */
27561 typedef int charset[2];
27563 /* SunOS 4.1.1 cc rejects this. */
27564 char const *const *pcpcc;
27566 /* NEC SVR4.0.2 mips cc rejects this. */
27567 struct point {int x, y;};
27568 static struct point const zero = {0,0};
27569 /* AIX XL C 1.02.0.0 rejects this.
27570 It does not let you subtract one const X* pointer from another in
27571 an arm of an if-expression whose if-part is not a constant
27573 const char *g = "string";
27574 pcpcc = &g + (g ? g-g : 0);
27575 /* HPUX 7.0 cc rejects these. */
27577 ppc = (char**) pcpcc;
27578 pcpcc = (char const *const *) ppc;
27579 { /* SCO 3.2v4 cc rejects this. */
27581 char const *s = 0 ? (char *) 0 : (char const *) 0;
27586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27587 int x[] = {25, 17};
27588 const int *foo = &x[0];
27591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27592 typedef const int *iptr;
27596 { /* AIX XL C 1.02.0.0 rejects this saying
27597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27598 struct s { int j; const int *ap[3]; };
27599 struct s *b; b->j = 5;
27601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27602 const int foo = 10;
27603 if (!foo) return 0;
27605 return !cs[0] && !zero.x;
27612 if ac_fn_c_try_compile "$LINENO"; then :
27617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27620 $as_echo "$ac_cv_c_const" >&6; }
27621 if test $ac_cv_c_const = no; then
27623 $as_echo "#define const /**/" >>confdefs.h
27628 # The cast to long int works around a bug in the HP C Compiler
27629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27631 # This bug is HP SR number 8606223364.
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27633 $as_echo_n "checking size of char... " >&6; }
27634 if ${ac_cv_sizeof_char+:} false; then :
27635 $as_echo_n "(cached) " >&6
27637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27640 if test "$ac_cv_type_char" = yes; then
27641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27643 as_fn_error 77 "cannot compute sizeof (char)
27644 See \`config.log' for more details" "$LINENO" 5; }
27646 ac_cv_sizeof_char=0
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27652 $as_echo "$ac_cv_sizeof_char" >&6; }
27656 cat >>confdefs.h <<_ACEOF
27657 #define SIZEOF_CHAR $ac_cv_sizeof_char
27661 # The cast to long int works around a bug in the HP C Compiler
27662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27664 # This bug is HP SR number 8606223364.
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27666 $as_echo_n "checking size of short int... " >&6; }
27667 if ${ac_cv_sizeof_short_int+:} false; then :
27668 $as_echo_n "(cached) " >&6
27670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27673 if test "$ac_cv_type_short_int" = yes; then
27674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27676 as_fn_error 77 "cannot compute sizeof (short int)
27677 See \`config.log' for more details" "$LINENO" 5; }
27679 ac_cv_sizeof_short_int=0
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27685 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27689 cat >>confdefs.h <<_ACEOF
27690 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27694 # The cast to long int works around a bug in the HP C Compiler
27695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27697 # This bug is HP SR number 8606223364.
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27699 $as_echo_n "checking size of int... " >&6; }
27700 if ${ac_cv_sizeof_int+:} false; then :
27701 $as_echo_n "(cached) " >&6
27703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27706 if test "$ac_cv_type_int" = yes; then
27707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27709 as_fn_error 77 "cannot compute sizeof (int)
27710 See \`config.log' for more details" "$LINENO" 5; }
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27718 $as_echo "$ac_cv_sizeof_int" >&6; }
27722 cat >>confdefs.h <<_ACEOF
27723 #define SIZEOF_INT $ac_cv_sizeof_int
27727 # The cast to long int works around a bug in the HP C Compiler
27728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27730 # This bug is HP SR number 8606223364.
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27732 $as_echo_n "checking size of long int... " >&6; }
27733 if ${ac_cv_sizeof_long_int+:} false; then :
27734 $as_echo_n "(cached) " >&6
27736 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27739 if test "$ac_cv_type_long_int" = yes; then
27740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27742 as_fn_error 77 "cannot compute sizeof (long int)
27743 See \`config.log' for more details" "$LINENO" 5; }
27745 ac_cv_sizeof_long_int=0
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27751 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27755 cat >>confdefs.h <<_ACEOF
27756 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27760 # The cast to long int works around a bug in the HP C Compiler
27761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27763 # This bug is HP SR number 8606223364.
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27765 $as_echo_n "checking size of long long int... " >&6; }
27766 if ${ac_cv_sizeof_long_long_int+:} false; then :
27767 $as_echo_n "(cached) " >&6
27769 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27772 if test "$ac_cv_type_long_long_int" = yes; then
27773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27775 as_fn_error 77 "cannot compute sizeof (long long int)
27776 See \`config.log' for more details" "$LINENO" 5; }
27778 ac_cv_sizeof_long_long_int=0
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27784 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27788 cat >>confdefs.h <<_ACEOF
27789 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27793 # The cast to long int works around a bug in the HP C Compiler
27794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27796 # This bug is HP SR number 8606223364.
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27798 $as_echo_n "checking size of int *... " >&6; }
27799 if ${ac_cv_sizeof_int_p+:} false; then :
27800 $as_echo_n "(cached) " >&6
27802 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27805 if test "$ac_cv_type_int_p" = yes; then
27806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27808 as_fn_error 77 "cannot compute sizeof (int *)
27809 See \`config.log' for more details" "$LINENO" 5; }
27811 ac_cv_sizeof_int_p=0
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27817 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27821 cat >>confdefs.h <<_ACEOF
27822 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27828 $as_echo_n "checking for u_int type... " >&6; }
27829 if ${ac_cv_have_u_int+:} false; then :
27830 $as_echo_n "(cached) " >&6
27833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27834 /* end confdefs.h. */
27836 #include <sys/types.h>
27848 if ac_fn_c_try_compile "$LINENO"; then :
27850 ac_cv_have_u_int="yes"
27854 ac_cv_have_u_int="no"
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27863 $as_echo "$ac_cv_have_u_int" >&6; }
27864 if test "x$ac_cv_have_u_int" = "xyes" ; then
27865 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27871 $as_echo_n "checking for intmax_t type... " >&6; }
27872 if ${ac_cv_have_intmax_t+:} false; then :
27873 $as_echo_n "(cached) " >&6
27876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h. */
27879 #include <sys/types.h>
27891 if ac_fn_c_try_compile "$LINENO"; then :
27893 ac_cv_have_intmax_t="yes"
27897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27898 /* end confdefs.h. */
27900 #include <stdint.h>
27912 if ac_fn_c_try_compile "$LINENO"; then :
27914 ac_cv_have_intmax_t="yes"
27918 ac_cv_have_intmax_t="no"
27922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27931 $as_echo "$ac_cv_have_intmax_t" >&6; }
27932 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27933 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27939 $as_echo_n "checking for u_intmax_t type... " >&6; }
27940 if ${ac_cv_have_u_intmax_t+:} false; then :
27941 $as_echo_n "(cached) " >&6
27944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27945 /* end confdefs.h. */
27947 #include <sys/types.h>
27953 u_intmax_t a; a = 1;
27959 if ac_fn_c_try_compile "$LINENO"; then :
27961 ac_cv_have_u_intmax_t="yes"
27965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27966 /* end confdefs.h. */
27968 #include <stdint.h>
27974 u_intmax_t a; a = 1;
27980 if ac_fn_c_try_compile "$LINENO"; then :
27982 ac_cv_have_u_intmax_t="yes"
27986 ac_cv_have_u_intmax_t="no"
27990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27999 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28000 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28001 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28007 $as_echo_n "checking for intXX_t types... " >&6; }
28008 if ${ac_cv_have_intxx_t+:} false; then :
28009 $as_echo_n "(cached) " >&6
28012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28013 /* end confdefs.h. */
28015 #include <sys/types.h>
28021 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28027 if ac_fn_c_try_compile "$LINENO"; then :
28029 ac_cv_have_intxx_t="yes"
28033 ac_cv_have_intxx_t="no"
28037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28042 $as_echo "$ac_cv_have_intxx_t" >&6; }
28043 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28044 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28050 $as_echo_n "checking for int64_t type... " >&6; }
28051 if ${ac_cv_have_int64_t+:} false; then :
28052 $as_echo_n "(cached) " >&6
28055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28056 /* end confdefs.h. */
28058 #include <sys/types.h>
28070 if ac_fn_c_try_compile "$LINENO"; then :
28072 ac_cv_have_int64_t="yes"
28076 ac_cv_have_int64_t="no"
28080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28085 $as_echo "$ac_cv_have_int64_t" >&6; }
28086 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28087 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28093 $as_echo_n "checking for u_intXX_t types... " >&6; }
28094 if ${ac_cv_have_u_intxx_t+:} false; then :
28095 $as_echo_n "(cached) " >&6
28098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28099 /* end confdefs.h. */
28101 #include <sys/types.h>
28107 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28113 if ac_fn_c_try_compile "$LINENO"; then :
28115 ac_cv_have_u_intxx_t="yes"
28119 ac_cv_have_u_intxx_t="no"
28123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28128 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28129 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28130 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28136 $as_echo_n "checking for u_int64_t types... " >&6; }
28137 if ${ac_cv_have_u_int64_t+:} false; then :
28138 $as_echo_n "(cached) " >&6
28141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28142 /* end confdefs.h. */
28144 #include <sys/types.h>
28150 u_int64_t a; a = 1;
28156 if ac_fn_c_try_compile "$LINENO"; then :
28158 ac_cv_have_u_int64_t="yes"
28162 ac_cv_have_u_int64_t="no"
28166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28171 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28172 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28173 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28178 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28179 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28182 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28184 /* end confdefs.h. */
28186 #include <sys/bitypes.h>
28192 int8_t a; int16_t b; int32_t c;
28193 u_int8_t e; u_int16_t f; u_int32_t g;
28194 a = b = c = e = f = g = 1;
28200 if ac_fn_c_try_compile "$LINENO"; then :
28202 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28204 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28206 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28209 $as_echo "yes" >&6; }
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28214 $as_echo "no" >&6; }
28218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28221 if test -z "$have_u_intxx_t" ; then
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28223 $as_echo_n "checking for uintXX_t types... " >&6; }
28224 if ${ac_cv_have_uintxx_t+:} false; then :
28225 $as_echo_n "(cached) " >&6
28228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229 /* end confdefs.h. */
28231 #include <sys/types.h>
28237 uint8_t a; uint16_t b;
28238 uint32_t c; a = b = c = 1;
28244 if ac_fn_c_try_compile "$LINENO"; then :
28246 ac_cv_have_uintxx_t="yes"
28250 ac_cv_have_uintxx_t="no"
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28259 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28260 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28261 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28266 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28267 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28270 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28272 /* end confdefs.h. */
28274 #include <sys/bitypes.h>
28280 int64_t a; u_int64_t b;
28287 if ac_fn_c_try_compile "$LINENO"; then :
28289 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28291 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28294 $as_echo "yes" >&6; }
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28299 $as_echo "no" >&6; }
28303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28306 if (test -z "$have_uintxx_t" && \
28307 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28310 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28312 /* end confdefs.h. */
28314 #include <sys/bitypes.h>
28320 uint8_t a; uint16_t b;
28321 uint32_t c; a = b = c = 1;
28327 if ac_fn_c_try_compile "$LINENO"; then :
28329 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28332 $as_echo "yes" >&6; }
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28337 $as_echo "no" >&6; }
28341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28362 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28363 cat >>confdefs.h <<_ACEOF
28364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28368 echo 'configure: cannot find needed function.'; exit 1
28374 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28377 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28379 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28384 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28385 if test "x$ac_cv_func_closefrom" = xyes; then :
28387 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28391 for ac_func in getpagesize
28393 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28394 if test "x$ac_cv_func_getpagesize" = xyes; then :
28395 cat >>confdefs.h <<_ACEOF
28396 #define HAVE_GETPAGESIZE 1
28399 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28404 for ac_func in malloc_trim
28406 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28407 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28408 cat >>confdefs.h <<_ACEOF
28409 #define HAVE_MALLOC_TRIM 1
28412 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28418 for ac_func in fchdir
28420 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28421 if test "x$ac_cv_func_fchdir" = xyes; then :
28422 cat >>confdefs.h <<_ACEOF
28423 #define HAVE_FCHDIR 1
28425 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28430 for ac_func in strtoll
28432 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28433 if test "x$ac_cv_func_strtoll" = xyes; then :
28434 cat >>confdefs.h <<_ACEOF
28435 #define HAVE_STRTOLL 1
28437 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28442 for ac_func in posix_fadvise
28444 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28445 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28446 cat >>confdefs.h <<_ACEOF
28447 #define HAVE_POSIX_FADVISE 1
28453 for ac_func in fdatasync
28455 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28456 if test "x$ac_cv_func_fdatasync" = xyes; then :
28457 cat >>confdefs.h <<_ACEOF
28458 #define HAVE_FDATASYNC 1
28465 for ac_func in chflags
28467 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28468 if test "x$ac_cv_func_chflags" = xyes; then :
28469 cat >>confdefs.h <<_ACEOF
28470 #define HAVE_CHFLAGS 1
28477 for ac_func in snprintf vsnprintf gethostid fseeko
28479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28482 cat >>confdefs.h <<_ACEOF
28483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28491 $as_echo_n "checking for va_copy... " >&6; }
28492 if ${ba_cv_va_copy+:} false; then :
28493 $as_echo_n "(cached) " >&6
28496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28497 /* end confdefs.h. */
28499 #include <stdarg.h>
28500 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28501 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28507 call_use_va_copy(1,2,3)
28513 if ac_fn_c_try_link "$LINENO"; then :
28523 rm -f core conftest.err conftest.$ac_objext \
28524 conftest$ac_exeext conftest.$ac_ext
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28529 $as_echo "$ba_cv_va_copy" >&6; }
28530 test $ba_cv_va_copy = yes &&
28531 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28534 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28537 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28538 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28539 cat >>confdefs.h <<_ACEOF
28540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28547 # If resolver functions are not in libc check for -lnsl or -lresolv.
28548 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28549 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28551 $as_echo "using libc's resolver" >&6; }
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28554 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28555 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28556 $as_echo_n "(cached) " >&6
28558 ac_check_lib_save_LIBS=$LIBS
28560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28561 /* end confdefs.h. */
28563 /* Override any GCC internal prototype to avoid an error.
28564 Use char because int might match the return type of a GCC
28565 builtin and then its argument prototype would still apply. */
28569 char gethostbyname_r ();
28573 return gethostbyname_r ();
28578 if ac_fn_c_try_link "$LINENO"; then :
28579 ac_cv_lib_nsl_gethostbyname_r=yes
28581 ac_cv_lib_nsl_gethostbyname_r=no
28583 rm -f core conftest.err conftest.$ac_objext \
28584 conftest$ac_exeext conftest.$ac_ext
28585 LIBS=$ac_check_lib_save_LIBS
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28588 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28589 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28590 cat >>confdefs.h <<_ACEOF
28591 #define HAVE_LIBNSL 1
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28599 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28600 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28601 $as_echo_n "(cached) " >&6
28603 ac_check_lib_save_LIBS=$LIBS
28604 LIBS="-lresolv $LIBS"
28605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28606 /* end confdefs.h. */
28608 /* Override any GCC internal prototype to avoid an error.
28609 Use char because int might match the return type of a GCC
28610 builtin and then its argument prototype would still apply. */
28614 char gethostbyname_r ();
28618 return gethostbyname_r ();
28623 if ac_fn_c_try_link "$LINENO"; then :
28624 ac_cv_lib_resolv_gethostbyname_r=yes
28626 ac_cv_lib_resolv_gethostbyname_r=no
28628 rm -f core conftest.err conftest.$ac_objext \
28629 conftest$ac_exeext conftest.$ac_ext
28630 LIBS=$ac_check_lib_save_LIBS
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28633 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28634 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28635 cat >>confdefs.h <<_ACEOF
28636 #define HAVE_LIBRESOLV 1
28639 LIBS="-lresolv $LIBS"
28646 for ac_func in inet_pton
28648 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28649 if test "x$ac_cv_func_inet_pton" = xyes; then :
28650 cat >>confdefs.h <<_ACEOF
28651 #define HAVE_INET_PTON 1
28653 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28658 for ac_func in inet_ntop
28660 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28661 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28662 cat >>confdefs.h <<_ACEOF
28663 #define HAVE_INET_NTOP 1
28665 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28670 for ac_func in gethostbyname2
28672 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28673 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28674 cat >>confdefs.h <<_ACEOF
28675 #define HAVE_GETHOSTBYNAME2 1
28677 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28684 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28685 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28686 $as_echo_n "(cached) " >&6
28689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690 /* end confdefs.h. */
28692 #include <sys/socket.h>
28698 struct sockaddr s; s.sa_len;
28704 if ac_fn_c_try_compile "$LINENO"; then :
28706 ac_cv_struct_sockaddr_sa_len=yes
28709 ac_cv_struct_sockaddr_sa_len=no
28713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28718 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28720 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28722 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28727 $as_echo_n "checking for working getaddrinfo... " >&6; }
28728 if ${ac_cv_working_getaddrinfo+:} false; then :
28729 $as_echo_n "(cached) " >&6
28732 if test "$cross_compiling" = yes; then :
28734 ac_cv_working_getaddrinfo="yes"
28738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28739 /* end confdefs.h. */
28742 #include <string.h>
28743 #include <sys/types.h>
28744 #include <sys/socket.h>
28747 struct addrinfo hints, *ai;
28750 memset(&hints, 0, sizeof(hints));
28751 hints.ai_family = AF_UNSPEC;
28752 hints.ai_socktype = SOCK_STREAM;
28753 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28757 if (ai->ai_addr->sa_family != AF_INET) {
28764 if ac_fn_c_try_run "$LINENO"; then :
28766 ac_cv_working_getaddrinfo="yes"
28770 ac_cv_working_getaddrinfo="no"
28773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28774 conftest.$ac_objext conftest.beam conftest.$ac_ext
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28781 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28782 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28783 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28785 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28790 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28791 if test "$ac_cv_func_gai_strerror" != "yes"; then
28792 ac_cv_working_getaddrinfo="no"
28795 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28800 for ac_func in strftime
28802 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28803 if test "x$ac_cv_func_strftime" = xyes; then :
28804 cat >>confdefs.h <<_ACEOF
28805 #define HAVE_STRFTIME 1
28809 # strftime is in -lintl on SCO UNIX.
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28811 $as_echo_n "checking for strftime in -lintl... " >&6; }
28812 if ${ac_cv_lib_intl_strftime+:} false; then :
28813 $as_echo_n "(cached) " >&6
28815 ac_check_lib_save_LIBS=$LIBS
28816 LIBS="-lintl $LIBS"
28817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28818 /* end confdefs.h. */
28820 /* Override any GCC internal prototype to avoid an error.
28821 Use char because int might match the return type of a GCC
28822 builtin and then its argument prototype would still apply. */
28830 return strftime ();
28835 if ac_fn_c_try_link "$LINENO"; then :
28836 ac_cv_lib_intl_strftime=yes
28838 ac_cv_lib_intl_strftime=no
28840 rm -f core conftest.err conftest.$ac_objext \
28841 conftest$ac_exeext conftest.$ac_ext
28842 LIBS=$ac_check_lib_save_LIBS
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28845 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28846 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28847 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28849 LIBS="-lintl $LIBS"
28855 for ac_func in vprintf
28857 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28858 if test "x$ac_cv_func_vprintf" = xyes; then :
28859 cat >>confdefs.h <<_ACEOF
28860 #define HAVE_VPRINTF 1
28863 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28864 if test "x$ac_cv_func__doprnt" = xyes; then :
28866 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28874 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28875 # for constant arguments. Useless!
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28877 $as_echo_n "checking for working alloca.h... " >&6; }
28878 if ${ac_cv_working_alloca_h+:} false; then :
28879 $as_echo_n "(cached) " >&6
28881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28882 /* end confdefs.h. */
28883 #include <alloca.h>
28887 char *p = (char *) alloca (2 * sizeof (int));
28893 if ac_fn_c_try_link "$LINENO"; then :
28894 ac_cv_working_alloca_h=yes
28896 ac_cv_working_alloca_h=no
28898 rm -f core conftest.err conftest.$ac_objext \
28899 conftest$ac_exeext conftest.$ac_ext
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28902 $as_echo "$ac_cv_working_alloca_h" >&6; }
28903 if test $ac_cv_working_alloca_h = yes; then
28905 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28910 $as_echo_n "checking for alloca... " >&6; }
28911 if ${ac_cv_func_alloca_works+:} false; then :
28912 $as_echo_n "(cached) " >&6
28914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28915 /* end confdefs.h. */
28917 # define alloca __builtin_alloca
28920 # include <malloc.h>
28921 # define alloca _alloca
28923 # ifdef HAVE_ALLOCA_H
28924 # include <alloca.h>
28929 # ifndef alloca /* predefined by HP cc +Olibcalls */
28930 void *alloca (size_t);
28940 char *p = (char *) alloca (1);
28946 if ac_fn_c_try_link "$LINENO"; then :
28947 ac_cv_func_alloca_works=yes
28949 ac_cv_func_alloca_works=no
28951 rm -f core conftest.err conftest.$ac_objext \
28952 conftest$ac_exeext conftest.$ac_ext
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28955 $as_echo "$ac_cv_func_alloca_works" >&6; }
28957 if test $ac_cv_func_alloca_works = yes; then
28959 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28962 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28963 # that cause trouble. Some versions do not even contain alloca or
28964 # contain a buggy version. If you still want to use their alloca,
28965 # use ar to extract alloca.o from them instead of compiling alloca.c.
28967 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28969 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28973 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28974 if ${ac_cv_os_cray+:} false; then :
28975 $as_echo_n "(cached) " >&6
28977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28978 /* end confdefs.h. */
28979 #if defined CRAY && ! defined CRAY2
28986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28987 $EGREP "webecray" >/dev/null 2>&1; then :
28995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28996 $as_echo "$ac_cv_os_cray" >&6; }
28997 if test $ac_cv_os_cray = yes; then
28998 for ac_func in _getb67 GETB67 getb67; do
28999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29001 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29003 cat >>confdefs.h <<_ACEOF
29004 #define CRAY_STACKSEG_END $ac_func
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29014 $as_echo_n "checking stack direction for C alloca... " >&6; }
29015 if ${ac_cv_c_stack_direction+:} false; then :
29016 $as_echo_n "(cached) " >&6
29018 if test "$cross_compiling" = yes; then :
29019 ac_cv_c_stack_direction=0
29021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29022 /* end confdefs.h. */
29023 $ac_includes_default
29025 find_stack_direction ()
29027 static char *addr = 0;
29032 return find_stack_direction ();
29035 return (&dummy > addr) ? 1 : -1;
29041 return find_stack_direction () < 0;
29044 if ac_fn_c_try_run "$LINENO"; then :
29045 ac_cv_c_stack_direction=1
29047 ac_cv_c_stack_direction=-1
29049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29050 conftest.$ac_objext conftest.beam conftest.$ac_ext
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29055 $as_echo "$ac_cv_c_stack_direction" >&6; }
29056 cat >>confdefs.h <<_ACEOF
29057 #define STACK_DIRECTION $ac_cv_c_stack_direction
29063 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29064 # -lseq on Dynix/PTX, -lgen on Unixware.
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29066 $as_echo_n "checking for library containing getmntent... " >&6; }
29067 if ${ac_cv_search_getmntent+:} false; then :
29068 $as_echo_n "(cached) " >&6
29070 ac_func_search_save_LIBS=$LIBS
29071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h. */
29074 /* Override any GCC internal prototype to avoid an error.
29075 Use char because int might match the return type of a GCC
29076 builtin and then its argument prototype would still apply. */
29084 return getmntent ();
29089 for ac_lib in '' sun seq gen; do
29090 if test -z "$ac_lib"; then
29091 ac_res="none required"
29094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29096 if ac_fn_c_try_link "$LINENO"; then :
29097 ac_cv_search_getmntent=$ac_res
29099 rm -f core conftest.err conftest.$ac_objext \
29101 if ${ac_cv_search_getmntent+:} false; then :
29105 if ${ac_cv_search_getmntent+:} false; then :
29108 ac_cv_search_getmntent=no
29110 rm conftest.$ac_ext
29111 LIBS=$ac_func_search_save_LIBS
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29114 $as_echo "$ac_cv_search_getmntent" >&6; }
29115 ac_res=$ac_cv_search_getmntent
29116 if test "$ac_res" != no; then :
29117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29118 ac_cv_func_getmntent=yes
29120 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29123 ac_cv_func_getmntent=no
29127 for ac_func in getmntinfo
29129 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29130 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29131 cat >>confdefs.h <<_ACEOF
29132 #define HAVE_GETMNTINFO 1
29134 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29140 $as_echo_n "checking whether closedir returns void... " >&6; }
29141 if ${ac_cv_func_closedir_void+:} false; then :
29142 $as_echo_n "(cached) " >&6
29144 if test "$cross_compiling" = yes; then :
29145 ac_cv_func_closedir_void=yes
29147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29148 /* end confdefs.h. */
29149 $ac_includes_default
29150 #include <$ac_header_dirent>
29151 #ifndef __cplusplus
29158 return closedir (opendir (".")) != 0;
29163 if ac_fn_c_try_run "$LINENO"; then :
29164 ac_cv_func_closedir_void=no
29166 ac_cv_func_closedir_void=yes
29168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29169 conftest.$ac_objext conftest.beam conftest.$ac_ext
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29174 $as_echo "$ac_cv_func_closedir_void" >&6; }
29175 if test $ac_cv_func_closedir_void = yes; then
29177 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29182 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29183 if ${ac_cv_func_setpgrp_void+:} false; then :
29184 $as_echo_n "(cached) " >&6
29186 if test "$cross_compiling" = yes; then :
29187 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29190 /* end confdefs.h. */
29191 $ac_includes_default
29195 /* If this system has a BSD-style setpgrp which takes arguments,
29196 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29197 exit successfully. */
29198 return setpgrp (1,1) != -1;
29203 if ac_fn_c_try_run "$LINENO"; then :
29204 ac_cv_func_setpgrp_void=no
29206 ac_cv_func_setpgrp_void=yes
29208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29209 conftest.$ac_objext conftest.beam conftest.$ac_ext
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29214 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29215 if test $ac_cv_func_setpgrp_void = yes; then
29217 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29220 # AC_FUNC_FNMATCH dnl use local version
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29223 $as_echo_n "checking for gettext in -lintl... " >&6; }
29224 if ${ac_cv_lib_intl_gettext+:} false; then :
29225 $as_echo_n "(cached) " >&6
29227 ac_check_lib_save_LIBS=$LIBS
29228 LIBS="-lintl $LIBS"
29229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29230 /* end confdefs.h. */
29232 /* Override any GCC internal prototype to avoid an error.
29233 Use char because int might match the return type of a GCC
29234 builtin and then its argument prototype would still apply. */
29247 if ac_fn_c_try_link "$LINENO"; then :
29248 ac_cv_lib_intl_gettext=yes
29250 ac_cv_lib_intl_gettext=no
29252 rm -f core conftest.err conftest.$ac_objext \
29253 conftest$ac_exeext conftest.$ac_ext
29254 LIBS=$ac_check_lib_save_LIBS
29256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29257 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29258 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29259 LIBS="$LIBS -lintl"
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29264 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29265 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29266 $as_echo_n "(cached) " >&6
29268 ac_check_lib_save_LIBS=$LIBS
29270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29271 /* end confdefs.h. */
29273 /* Override any GCC internal prototype to avoid an error.
29274 Use char because int might match the return type of a GCC
29275 builtin and then its argument prototype would still apply. */
29283 return getpwnam ();
29288 if ac_fn_c_try_link "$LINENO"; then :
29289 ac_cv_lib_sun_getpwnam=yes
29291 ac_cv_lib_sun_getpwnam=no
29293 rm -f core conftest.err conftest.$ac_objext \
29294 conftest$ac_exeext conftest.$ac_ext
29295 LIBS=$ac_check_lib_save_LIBS
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29298 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29299 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29300 cat >>confdefs.h <<_ACEOF
29301 #define HAVE_LIBSUN 1
29309 for ac_header in zlib.h
29311 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29312 if test "x$ac_cv_header_zlib_h" = xyes; then :
29313 cat >>confdefs.h <<_ACEOF
29314 #define HAVE_ZLIB_H 1
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29322 $as_echo_n "checking for deflate in -lz... " >&6; }
29323 if ${ac_cv_lib_z_deflate+:} false; then :
29324 $as_echo_n "(cached) " >&6
29326 ac_check_lib_save_LIBS=$LIBS
29328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29329 /* end confdefs.h. */
29331 /* Override any GCC internal prototype to avoid an error.
29332 Use char because int might match the return type of a GCC
29333 builtin and then its argument prototype would still apply. */
29346 if ac_fn_c_try_link "$LINENO"; then :
29347 ac_cv_lib_z_deflate=yes
29349 ac_cv_lib_z_deflate=no
29351 rm -f core conftest.err conftest.$ac_objext \
29352 conftest$ac_exeext conftest.$ac_ext
29353 LIBS=$ac_check_lib_save_LIBS
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29356 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29357 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29362 if test x$ZLIBS = x-lz; then
29363 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29370 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29371 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29373 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29374 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29377 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29378 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29379 $as_echo_n "(cached) " >&6
29381 ac_check_lib_save_LIBS=$LIBS
29382 LIBS="-llzo2 $LIBS"
29383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29384 /* end confdefs.h. */
29386 /* Override any GCC internal prototype to avoid an error.
29387 Use char because int might match the return type of a GCC
29388 builtin and then its argument prototype would still apply. */
29392 char lzo1x_1_compress ();
29396 return lzo1x_1_compress ();
29401 if ac_fn_c_try_link "$LINENO"; then :
29402 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29404 ac_cv_lib_lzo2_lzo1x_1_compress=no
29406 rm -f core conftest.err conftest.$ac_objext \
29407 conftest$ac_exeext conftest.$ac_ext
29408 LIBS=$ac_check_lib_save_LIBS
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29411 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29412 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29416 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29433 # Check whether --enable-acl was given.
29434 if test "${enable_acl+set}" = set; then :
29435 enableval=$enable_acl;
29436 if test x$enableval = xyes; then
29438 elif test x$enableval = xno; then
29447 have_extended_acl=no
29448 if test x$support_acl = xyes -o x$support_acl = xauto; then
29449 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29450 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29452 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29458 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29459 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29467 if test $have_acl = no; then
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29469 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29470 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29471 $as_echo_n "(cached) " >&6
29473 ac_check_lib_save_LIBS=$LIBS
29475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29476 /* end confdefs.h. */
29478 /* Override any GCC internal prototype to avoid an error.
29479 Use char because int might match the return type of a GCC
29480 builtin and then its argument prototype would still apply. */
29484 char acl_get_file ();
29488 return acl_get_file ();
29493 if ac_fn_c_try_link "$LINENO"; then :
29494 ac_cv_lib_acl_acl_get_file=yes
29496 ac_cv_lib_acl_acl_get_file=no
29498 rm -f core conftest.err conftest.$ac_objext \
29499 conftest$ac_exeext conftest.$ac_ext
29500 LIBS=$ac_check_lib_save_LIBS
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29503 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29504 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29507 FDLIBS="-lacl $FDLIBS"
29514 if test $have_acl = no -a \
29515 x${HAVE_OSF1_OS_TRUE} = x; then
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29517 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29518 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29519 $as_echo_n "(cached) " >&6
29521 ac_check_lib_save_LIBS=$LIBS
29522 LIBS="-lpacl $LIBS"
29523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29524 /* end confdefs.h. */
29526 /* Override any GCC internal prototype to avoid an error.
29527 Use char because int might match the return type of a GCC
29528 builtin and then its argument prototype would still apply. */
29532 char acl_get_file ();
29536 return acl_get_file ();
29541 if ac_fn_c_try_link "$LINENO"; then :
29542 ac_cv_lib_pacl_acl_get_file=yes
29544 ac_cv_lib_pacl_acl_get_file=no
29546 rm -f core conftest.err conftest.$ac_objext \
29547 conftest$ac_exeext conftest.$ac_ext
29548 LIBS=$ac_check_lib_save_LIBS
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29551 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29552 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29555 FDLIBS="-lpacl $FDLIBS"
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29562 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29563 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29564 if test $? = 0; then
29566 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29569 $as_echo "yes" >&6; }
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29572 $as_echo "no" >&6; }
29576 if test $have_acl = yes -a \
29577 x${HAVE_DARWIN_OS_TRUE} = x; then
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29579 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29580 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29581 if test $? = 0; then
29583 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29586 $as_echo "yes" >&6; }
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29589 $as_echo "no" >&6; }
29593 if test $have_acl = yes -a \
29594 x${HAVE_FREEBSD_OS_TRUE} = x; then
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29596 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29597 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29598 if test $? = 0; then
29600 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29603 $as_echo "yes" >&6; }
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29606 $as_echo "no" >&6; }
29610 if test $have_acl = no -a \
29611 x${HAVE_SUN_OS_TRUE} = x; then
29612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29613 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29614 if ${ac_cv_lib_sec_acltotext+:} false; then :
29615 $as_echo_n "(cached) " >&6
29617 ac_check_lib_save_LIBS=$LIBS
29619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29620 /* end confdefs.h. */
29622 /* Override any GCC internal prototype to avoid an error.
29623 Use char because int might match the return type of a GCC
29624 builtin and then its argument prototype would still apply. */
29632 return acltotext ();
29637 if ac_fn_c_try_link "$LINENO"; then :
29638 ac_cv_lib_sec_acltotext=yes
29640 ac_cv_lib_sec_acltotext=no
29642 rm -f core conftest.err conftest.$ac_objext \
29643 conftest$ac_exeext conftest.$ac_ext
29644 LIBS=$ac_check_lib_save_LIBS
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29647 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29648 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29651 FDLIBS="-lsec $FDLIBS"
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29654 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29655 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29656 $as_echo_n "(cached) " >&6
29658 ac_check_lib_save_LIBS=$LIBS
29660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29661 /* end confdefs.h. */
29663 /* Override any GCC internal prototype to avoid an error.
29664 Use char because int might match the return type of a GCC
29665 builtin and then its argument prototype would still apply. */
29669 char acl_totext ();
29673 return acl_totext ();
29678 if ac_fn_c_try_link "$LINENO"; then :
29679 ac_cv_lib_sec_acl_totext=yes
29681 ac_cv_lib_sec_acl_totext=no
29683 rm -f core conftest.err conftest.$ac_objext \
29684 conftest$ac_exeext conftest.$ac_ext
29685 LIBS=$ac_check_lib_save_LIBS
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29688 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29689 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29691 have_extended_acl=yes
29702 if test $have_acl = no -a \
29703 x${HAVE_AIX_OS_TRUE} = x; then
29704 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29705 if test "x$ac_cv_func_acl_get" = xyes; then :
29709 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29710 if test "x$ac_cv_func_aclx_get" = xyes; then :
29712 have_extended_acl=yes
29723 if test x$support_acl = xyes -a $have_acl != yes; then
29724 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29725 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29727 if test $have_acl = yes; then
29729 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29733 if test $have_extended_acl = yes; then
29735 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29742 # Check whether --enable-xattr was given.
29743 if test "${enable_xattr+set}" = set; then :
29744 enableval=$enable_xattr;
29745 if test x$enableval = xyes; then
29747 elif test x$enableval = xno; then
29756 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29757 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29758 x${HAVE_NETBSD_OS_TRUE} = x -o \
29759 x${HAVE_OPENBSD_OS_TRUE} = x; then
29760 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29761 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29763 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29768 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29769 if test "x$ac_cv_header_libutil_h" = xyes; then :
29771 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29776 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29779 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29780 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29781 cat >>confdefs.h <<_ACEOF
29782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29787 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29790 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29793 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29801 if test $have_xattr = no; then
29802 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29807 cat >>confdefs.h <<_ACEOF
29808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29813 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29816 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29819 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29828 if test $have_xattr = yes; then
29829 have_extattr_string_in_libc=no
29830 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29835 cat >>confdefs.h <<_ACEOF
29836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29839 have_extattr_string_in_libc=yes
29841 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29844 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29852 if test $have_extattr_string_in_libc = no; then
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29854 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29855 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29856 $as_echo_n "(cached) " >&6
29858 ac_check_lib_save_LIBS=$LIBS
29859 LIBS="-lutil $LIBS"
29860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29861 /* end confdefs.h. */
29863 /* Override any GCC internal prototype to avoid an error.
29864 Use char because int might match the return type of a GCC
29865 builtin and then its argument prototype would still apply. */
29869 char extattr_namespace_to_string extattr_string_to_namespace ();
29873 return extattr_namespace_to_string extattr_string_to_namespace ();
29878 if ac_fn_c_try_link "$LINENO"; then :
29879 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29881 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29883 rm -f core conftest.err conftest.$ac_objext \
29884 conftest$ac_exeext conftest.$ac_ext
29885 LIBS=$ac_check_lib_save_LIBS
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29888 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29889 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29892 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29895 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29897 FDLIBS="-lutil $FDLIBS"
29906 if test $have_xattr = no -a \
29907 x${HAVE_AIX_OS_TRUE} = x; then
29908 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29909 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29911 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29916 for ac_func in llistea lgetea lsetea
29918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29920 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29921 cat >>confdefs.h <<_ACEOF
29922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29927 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29930 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29933 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29941 if test $have_xattr = no; then
29942 for ac_func in listea getea setea
29944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29946 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29947 cat >>confdefs.h <<_ACEOF
29948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29953 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29956 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29959 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29969 if test $have_xattr = no -a \
29970 x${HAVE_OSF1_OS_TRUE} = x; then
29971 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29972 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29974 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29979 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29983 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29984 cat >>confdefs.h <<_ACEOF
29985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29990 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29993 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29996 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29999 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30002 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30011 if test $have_xattr = no -a \
30012 x${HAVE_SUN_OS_TRUE} = x; then
30013 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30014 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30016 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30021 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30022 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30024 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30029 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30030 if test "x$ac_cv_header_attr_h" = xyes; then :
30032 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30038 for ac_func in openat fstatat unlinkat fchownat futimesat
30040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30043 cat >>confdefs.h <<_ACEOF
30044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30049 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30052 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30055 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30058 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30061 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30069 if test $have_xattr = yes; then
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30071 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30072 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30073 $as_echo_n "(cached) " >&6
30075 ac_check_lib_save_LIBS=$LIBS
30076 LIBS="-lnvpair $LIBS"
30077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078 /* end confdefs.h. */
30080 /* Override any GCC internal prototype to avoid an error.
30081 Use char because int might match the return type of a GCC
30082 builtin and then its argument prototype would still apply. */
30086 char nvlist_next_nvpair ();
30090 return nvlist_next_nvpair ();
30095 if ac_fn_c_try_link "$LINENO"; then :
30096 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30098 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30100 rm -f core conftest.err conftest.$ac_objext \
30101 conftest$ac_exeext conftest.$ac_ext
30102 LIBS=$ac_check_lib_save_LIBS
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30105 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30106 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30109 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30111 FDLIBS="-lnvpair $FDLIBS"
30119 if test $have_xattr = no; then
30120 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30121 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30123 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30128 for ac_func in llistxattr lgetxattr lsetxattr
30130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30133 cat >>confdefs.h <<_ACEOF
30134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30139 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30142 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30145 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30153 if test $have_xattr = no; then
30154 for ac_func in listxattr getxattr setxattr
30156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30159 cat >>confdefs.h <<_ACEOF
30160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30165 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30168 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30171 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30181 if test x$support_xattr = xyes -a $have_xattr != yes; then
30182 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30183 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30185 if test $have_xattr = yes; then
30187 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30195 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30196 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30197 $as_echo_n "(cached) " >&6
30199 ac_check_lib_save_LIBS=$LIBS
30200 LIBS="-lpthread $LIBS"
30201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30202 /* end confdefs.h. */
30204 /* Override any GCC internal prototype to avoid an error.
30205 Use char because int might match the return type of a GCC
30206 builtin and then its argument prototype would still apply. */
30210 char pthread_create ();
30214 return pthread_create ();
30219 if ac_fn_c_try_link "$LINENO"; then :
30220 ac_cv_lib_pthread_pthread_create=yes
30222 ac_cv_lib_pthread_pthread_create=no
30224 rm -f core conftest.err conftest.$ac_objext \
30225 conftest$ac_exeext conftest.$ac_ext
30226 LIBS=$ac_check_lib_save_LIBS
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30229 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30230 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30231 PTHREAD_LIB="-lpthread"
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30235 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30236 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30237 $as_echo_n "(cached) " >&6
30239 ac_check_lib_save_LIBS=$LIBS
30240 LIBS="-lpthreads $LIBS"
30241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30242 /* end confdefs.h. */
30244 /* Override any GCC internal prototype to avoid an error.
30245 Use char because int might match the return type of a GCC
30246 builtin and then its argument prototype would still apply. */
30250 char pthread_create ();
30254 return pthread_create ();
30259 if ac_fn_c_try_link "$LINENO"; then :
30260 ac_cv_lib_pthreads_pthread_create=yes
30262 ac_cv_lib_pthreads_pthread_create=no
30264 rm -f core conftest.err conftest.$ac_objext \
30265 conftest$ac_exeext conftest.$ac_ext
30266 LIBS=$ac_check_lib_save_LIBS
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30269 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30270 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30271 PTHREAD_LIB="-lpthreads"
30274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30275 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30276 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30277 $as_echo_n "(cached) " >&6
30279 ac_check_lib_save_LIBS=$LIBS
30281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30282 /* end confdefs.h. */
30284 /* Override any GCC internal prototype to avoid an error.
30285 Use char because int might match the return type of a GCC
30286 builtin and then its argument prototype would still apply. */
30290 char pthread_create ();
30294 return pthread_create ();
30299 if ac_fn_c_try_link "$LINENO"; then :
30300 ac_cv_lib_c_r_pthread_create=yes
30302 ac_cv_lib_c_r_pthread_create=no
30304 rm -f core conftest.err conftest.$ac_objext \
30305 conftest$ac_exeext conftest.$ac_ext
30306 LIBS=$ac_check_lib_save_LIBS
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30309 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30310 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30311 PTHREAD_LIB="-lc_r"
30314 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30315 if test "x$ac_cv_func_pthread_create" = xyes; then :
30332 for ac_header in sys/prctl.h sys/capability.h
30334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30337 cat >>confdefs.h <<_ACEOF
30338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30345 for ac_func in prctl setreuid
30347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30350 cat >>confdefs.h <<_ACEOF
30351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30358 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30359 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30360 $as_echo_n "(cached) " >&6
30362 ac_check_lib_save_LIBS=$LIBS
30364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30365 /* end confdefs.h. */
30367 /* Override any GCC internal prototype to avoid an error.
30368 Use char because int might match the return type of a GCC
30369 builtin and then its argument prototype would still apply. */
30373 char cap_set_proc ();
30377 return cap_set_proc ();
30382 if ac_fn_c_try_link "$LINENO"; then :
30383 ac_cv_lib_cap_cap_set_proc=yes
30385 ac_cv_lib_cap_cap_set_proc=no
30387 rm -f core conftest.err conftest.$ac_objext \
30388 conftest$ac_exeext conftest.$ac_ext
30389 LIBS=$ac_check_lib_save_LIBS
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30392 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30393 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30399 if test x$CAP_LIBS = x-lcap; then
30401 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30407 $as_echo "#define FDLIBS 1" >>confdefs.h
30410 CFLAGS=${CFLAGS--O}
30412 if test x$have_gcc = xyes ; then
30413 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30414 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30416 LDFLAGS=${LDFLAGS--O}
30417 CPPFLAGS="$CPPFLAGS"
30443 PFILES="platforms/Makefile"
30447 COMPRESS_MANPAGES=yes
30449 case "$DISTNAME" in
30452 PSCMD="ps -e -o pid,comm"
30453 PFILES="${PFILES} \
30454 platforms/aix/Makefile"
30455 TAPEDRIVE="/dev/rmt0.1"
30459 PTHREAD_LIB="-lpthread -lexc"
30460 if test "${CC}" = "gcc" ; then
30467 TAPEDRIVE="/dev/nrmt0"
30470 DISTVER=`uname -a |awk '{print $3}'`
30471 TAPEDRIVE="/dev/nrmt0"
30472 PTHREAD_LIB="-pthread"
30473 CFLAGS="${CFLAGS} -pthread"
30474 PSCMD="ps -ax -o pid,command"
30477 PFILES="${PFILES} \
30478 platforms/bsdi/Makefile \
30479 platforms/bsdi/bacula-fd \
30480 platforms/bsdi/bacula-sd \
30481 platforms/bsdi/bacula-dir"
30482 largefile_support="yes"
30485 DISTVER=`uname -a |awk '{print $3}'`
30486 TAPEDRIVE="/dev/nrst0"
30488 WCFLAGS="-mwindows"
30489 WLDFLAGS="-mwindows"
30493 TAPEDRIVE="/dev/nst0"
30494 PSCMD="ps -e -o pid,command"
30496 PFILES="${PFILES} \
30497 platforms/darwin/Makefile"
30501 TAPEDRIVE="/dev/nst0"
30502 PSCMD="ps -e -o pid,command"
30504 PFILES="${PFILES} \
30505 platforms/osx/Makefile"
30508 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30511 DISTVER=`cat /etc/debian_version`
30512 if test -f /etc/lsb-release ; then
30514 if test "x$DISTRIB_ID" != "x" ; then
30515 DISTNAME=$DISTRIB_ID
30517 if test "x$DISTRIB_RELEASE" != "x" ; then
30518 DISTVER=$DISTRIB_RELEASE
30521 if test "$DISTNAME" = "Ubuntu" ; then
30524 TAPEDRIVE="/dev/nst0"
30525 PSCMD="ps -e -o pid,command"
30526 if test "$DISTNAME" = "ubuntu" ; then
30527 PFILES="${PFILES} \
30528 platforms/ubuntu/Makefile \
30529 platforms/ubuntu/bacula-fd \
30530 platforms/ubuntu/bacula-sd \
30531 platforms/ubuntu/bacula-dir"
30533 PFILES="${PFILES} \
30534 platforms/debian/Makefile \
30535 platforms/debian/bacula-fd \
30536 platforms/debian/bacula-sd \
30537 platforms/debian/bacula-dir"
30541 DISTVER=`uname -a |awk '{print $3}'`
30542 VER=`echo $DISTVER | cut -c 1`
30543 if test x$VER = x4 ; then
30544 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30545 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30549 TAPEDRIVE="/dev/nrsa0"
30550 PSCMD="ps -ax -o pid,command"
30551 PFILES="${PFILES} \
30552 platforms/freebsd/Makefile \
30553 platforms/freebsd/bacula-fd \
30554 platforms/freebsd/bacula-sd \
30555 platforms/freebsd/bacula-dir"
30556 largefile_support="yes"
30559 PSCMD="UNIX95=1; ps -e -o pid,comm"
30560 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30562 TAPEDRIVE="/dev/rmt/0hnb"
30563 PTHREAD_LIB="-lpthread"
30564 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30569 TAPEDRIVE="/dev/rmt/0cbn"
30570 PSCMD="ps -e -o pid,comm"
30571 PFILES="${PFILES} \
30572 platforms/irix/Makefile \
30573 platforms/irix/bacula-fd \
30574 platforms/irix/bacula-sd \
30575 platforms/irix/bacula-dir"
30578 DISTVER=`uname -a |awk '{print $3}'`
30581 TAPEDRIVE="/dev/nrst0"
30582 PSCMD="ps -ax -o pid,command"
30583 PTHREAD_LIB="-pthread"
30584 CFLAGS="${CFLAGS} -pthread"
30587 DISTVER=`uname -a |awk '{print $3}'`
30590 TAPEDRIVE="/dev/nrst0"
30591 PSCMD="ps -ax -o pid,command"
30592 PTHREAD_LIB="-pthread"
30593 CFLAGS="${CFLAGS} -pthread"
30594 PFILES="${PFILES} \
30595 platforms/openbsd/Makefile \
30596 platforms/openbsd/bacula-fd \
30597 platforms/openbsd/bacula-sd \
30598 platforms/openbsd/bacula-dir"
30601 if test -f /etc/whitebox-release ; then
30602 f=/etc/whitebox-release
30604 f=/etc/redhat-release
30606 if test `cat $f | grep release |\
30607 cut -f 3 -d ' '`x = "Enterprise"x ; then
30608 DISTVER="Enterprise "`cat $f | grep release |\
30611 DISTVER=`cat /etc/redhat-release | grep release |\
30614 TAPEDRIVE="/dev/nst0"
30615 PSCMD="ps -e -o pid,command"
30616 PFILES="${PFILES} \
30617 platforms/redhat/Makefile \
30618 platforms/redhat/bacula-fd \
30619 platforms/redhat/bacula-sd \
30620 platforms/redhat/bacula-dir
30624 DISTVER=`cat /etc/mandrake-release | grep release |\
30626 TAPEDRIVE="/dev/nst0"
30627 PSCMD="ps -e -o pid,command"
30628 PFILES="${PFILES} \
30629 platforms/mandrake/Makefile \
30630 platforms/mandrake/bacula-fd \
30631 platforms/mandrake/bacula-sd \
30632 platforms/mandrake/bacula-dir \
30636 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30637 TAPEDRIVE="/dev/nst0"
30638 PSCMD="ps -e -o pid,command"
30639 PFILES="${PFILES} \
30640 platforms/gentoo/Makefile \
30641 platforms/gentoo/bacula-init \
30642 platforms/gentoo/bacula-fd \
30643 platforms/gentoo/bacula-sd \
30644 platforms/gentoo/bacula-dir"
30647 DISTVER=`cat /etc/slackware-version`
30648 TAPEDRIVE="/dev/nst0"
30649 PSCMD="ps -e -o pid,command"
30650 PFILES="${PFILES} \
30651 platforms/slackware/Makefile \
30652 platforms/slackware/rc.bacula-fd \
30653 platforms/slackware/rc.bacula-sd \
30654 platforms/slackware/rc.bacula-dir\
30655 platforms/slackware/functions.bacula"
30659 TAPEDRIVE="/dev/rmt/0cbn"
30660 PSCMD="ps -e -o pid,comm"
30661 PFILES="${PFILES} \
30662 platforms/solaris/Makefile \
30663 platforms/solaris/bacula-fd \
30664 platforms/solaris/bacula-sd \
30665 platforms/solaris/bacula-dir"
30669 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30671 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30675 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30681 LIBS="$LIBS -lresolv -lrt"
30684 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30686 TAPEDRIVE="/dev/nst0"
30687 PSCMD="ps -e -o pid,command"
30688 PFILES="${PFILES} \
30689 platforms/suse/Makefile \
30690 platforms/suse/bacula-fd \
30691 platforms/suse/bacula-sd \
30692 platforms/suse/bacula-dir \
30693 platforms/suse/bacula"
30698 TAPEDRIVE="/dev/nst0"
30699 PSCMD="ps -e -o pid,command"
30700 PFILES="${PFILES} \
30701 platforms/suse/Makefile \
30702 platforms/suse/bacula-fd \
30703 platforms/suse/bacula-sd \
30704 platforms/suse/bacula-dir"
30708 TAPEDRIVE="/dev/nst0"
30711 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30716 $as_echo_n "checking for systemd support... " >&6; }
30718 # Check whether --with-systemd was given.
30719 if test "${with_systemd+set}" = set; then :
30720 withval=$with_systemd;
30721 if test "$withval" != "no"; then
30722 if test "$withval" = "yes"; then
30723 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30725 SYSTEMD_UNITDIR="${withval}"
30728 PFILES="${PFILES} \
30729 platforms/systemd/Makefile \
30730 platforms/systemd/bacula.conf \
30731 platforms/systemd/bacula-dir.service \
30732 platforms/systemd/bacula-fd.service \
30733 platforms/systemd/bacula-sd.service"
30735 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30738 $as_echo "yes" >&6; }
30739 support_systemd="yes"
30741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30742 $as_echo "no" >&6; }
30743 support_systemd="no"
30748 support_systemd="no"
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30750 $as_echo "no" >&6; }
30759 LIBS="$PTHREAD_LIB $LIBS"
30761 cat >>confdefs.h <<_ACEOF
30765 cat >>confdefs.h <<_ACEOF
30777 MCOMMON=./autoconf/Make.common
30780 if test "x${subsysdir}" = "x${sbindir}" ; then
30783 echo "You have set both --sbindir and --with-subsys-dir"
30784 echo " equal to: ${subsysdir} "
30785 echo "This is not permitted. Please reconfigure."
30787 echo "Aborting configuration ..."
30793 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec $PFILES"
30795 ac_config_commands="$ac_config_commands default"
30797 cat >confcache <<\_ACEOF
30798 # This file is a shell script that caches the results of configure
30799 # tests run on this system so they can be shared between configure
30800 # scripts and configure runs, see configure's option --config-cache.
30801 # It is not useful on other systems. If it contains results you don't
30802 # want to keep, you may remove or edit it.
30804 # config.status only pays attention to the cache file if you give it
30805 # the --recheck option to rerun configure.
30807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30809 # following values.
30813 # The following way of writing the cache mishandles newlines in values,
30814 # but we know of no workaround that is simple, portable, and efficient.
30815 # So, we kill variables containing newlines.
30816 # Ultrix sh set writes to stderr and can't be redirected directly,
30817 # and sets the high bit in the cache file unless we assign to the vars.
30819 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30820 eval ac_val=\$$ac_var
30824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30828 _ | IFS | as_nl) ;; #(
30829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30830 *) { eval $ac_var=; unset $ac_var;} ;;
30836 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30837 *${as_nl}ac_space=\ *)
30838 # `set' does not quote correctly, so add quotes: double-quote
30839 # substitution turns \\\\ into \\, and sed turns \\ into \.
30842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30845 # `set' quotes correctly as required by POSIX, so do not add quotes.
30846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30857 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30859 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30860 if test -w "$cache_file"; then
30861 if test "x$cache_file" != "x/dev/null"; then
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30863 $as_echo "$as_me: updating cache $cache_file" >&6;}
30864 if test ! -f "$cache_file" || test -h "$cache_file"; then
30865 cat confcache >"$cache_file"
30867 case $cache_file in #(
30869 mv -f confcache "$cache_file"$$ &&
30870 mv -f "$cache_file"$$ "$cache_file" ;; #(
30872 mv -f confcache "$cache_file" ;;
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30884 # Let make expand exec_prefix.
30885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30887 DEFS=-DHAVE_CONFIG_H
30892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30893 # 1. Remove the extension, and $U if already installed.
30894 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30895 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30897 # will be set to the directory where LIBOBJS objects are built.
30898 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30899 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30901 LIBOBJS=$ac_libobjs
30903 LTLIBOBJS=$ac_ltlibobjs
30908 : "${CONFIG_STATUS=./config.status}"
30910 ac_clean_files_save=$ac_clean_files
30911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30913 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30915 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30917 # Generated by $as_me.
30918 # Run this file to recreate the current configuration.
30919 # Compiler output produced by configure, useful for debugging
30920 # configure, is in config.log if it exists.
30923 ac_cs_recheck=false
30926 SHELL=\${CONFIG_SHELL-$SHELL}
30929 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30930 ## -------------------- ##
30931 ## M4sh Initialization. ##
30932 ## -------------------- ##
30934 # Be more Bourne compatible
30935 DUALCASE=1; export DUALCASE # for MKS sh
30936 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30939 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30940 # is contrary to our usage. Disable this feature.
30941 alias -g '${1+"$@"}'='"$@"'
30942 setopt NO_GLOB_SUBST
30944 case `(set -o) 2>/dev/null` in #(
30956 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30957 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30960 # Prefer a ksh shell builtin over an external printf program on Solaris,
30961 # but without wasting forks for bash or zsh.
30962 if test -z "$BASH_VERSION$ZSH_VERSION" \
30963 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30964 as_echo='print -r --'
30965 as_echo_n='print -rn --'
30966 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30967 as_echo='printf %s\n'
30968 as_echo_n='printf %s'
30970 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30971 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30972 as_echo_n='/usr/ucb/echo -n'
30974 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30975 as_echo_n_body='eval
30979 expr "X$arg" : "X\\(.*\\)$as_nl";
30980 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30982 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30984 export as_echo_n_body
30985 as_echo_n='sh -c $as_echo_n_body as_echo'
30987 export as_echo_body
30988 as_echo='sh -c $as_echo_body as_echo'
30991 # The user is always right.
30992 if test "${PATH_SEPARATOR+set}" != set; then
30994 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30995 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31002 # We need space, tab and new line, in precisely that order. Quoting is
31003 # there to prevent editors from complaining about space-tab.
31004 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31005 # splitting by setting IFS to empty value.)
31008 # Find who we are. Look in the path if we contain no directory separator.
31011 *[\\/]* ) as_myself=$0 ;;
31012 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31013 for as_dir in $PATH
31016 test -z "$as_dir" && as_dir=.
31017 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31023 # We did not find ourselves, most probably we were run as `sh COMMAND'
31024 # in which case we are not to be found in the path.
31025 if test "x$as_myself" = x; then
31028 if test ! -f "$as_myself"; then
31029 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31033 # Unset variables that we do not need and which cause bugs (e.g. in
31034 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31035 # suppresses any "Segmentation fault" message there. '((' could
31036 # trigger a bug in pdksh 5.2.14.
31037 for as_var in BASH_ENV ENV MAIL MAILPATH
31038 do eval test x\${$as_var+set} = xset \
31039 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31055 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31056 # ----------------------------------------
31057 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31058 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31059 # script with STATUS, using 1 if that was 0.
31062 as_status=$1; test $as_status -eq 0 && as_status=1
31064 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31065 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31067 $as_echo "$as_me: error: $2" >&2
31068 as_fn_exit $as_status
31072 # as_fn_set_status STATUS
31073 # -----------------------
31074 # Set $? to STATUS, without forking.
31075 as_fn_set_status ()
31078 } # as_fn_set_status
31080 # as_fn_exit STATUS
31081 # -----------------
31082 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31086 as_fn_set_status $1
31092 # Portably unset VAR.
31095 { eval $1=; unset $1;}
31097 as_unset=as_fn_unset
31098 # as_fn_append VAR VALUE
31099 # ----------------------
31100 # Append the text in VALUE to the end of the definition contained in VAR. Take
31101 # advantage of any shell optimizations that allow amortized linear growth over
31102 # repeated appends, instead of the typical quadratic growth present in naive
31104 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31105 eval 'as_fn_append ()
31116 # as_fn_arith ARG...
31117 # ------------------
31118 # Perform arithmetic evaluation on the ARGs, and store the result in the
31119 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31120 # must be portable across $(()) and expr.
31121 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31122 eval 'as_fn_arith ()
31129 as_val=`expr "$@" || test $? -eq 1`
31134 if expr a : '\(a\)' >/dev/null 2>&1 &&
31135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31142 as_basename=basename
31147 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31153 as_me=`$as_basename -- "$0" ||
31154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31155 X"$0" : 'X\(//\)$' \| \
31156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31158 sed '/^.*\/\([^/][^/]*\)\/*$/{
31172 # Avoid depending upon Character Ranges.
31173 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31174 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31175 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31176 as_cr_digits='0123456789'
31177 as_cr_alnum=$as_cr_Letters$as_cr_digits
31179 ECHO_C= ECHO_N= ECHO_T=
31180 case `echo -n x` in #(((((
31182 case `echo 'xy\c'` in
31183 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31185 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31192 rm -f conf$$ conf$$.exe conf$$.file
31193 if test -d conf$$.dir; then
31194 rm -f conf$$.dir/conf$$.file
31197 mkdir conf$$.dir 2>/dev/null
31199 if (echo >conf$$.file) 2>/dev/null; then
31200 if ln -s conf$$.file conf$$ 2>/dev/null; then
31202 # ... but there are two gotchas:
31203 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31204 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31205 # In both cases, we have to default to `cp -p'.
31206 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31208 elif ln conf$$.file conf$$ 2>/dev/null; then
31216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31217 rmdir conf$$.dir 2>/dev/null
31222 # Create "$as_dir" as a directory, including parents if necessary.
31227 -*) as_dir=./$as_dir;;
31229 test -d "$as_dir" || eval $as_mkdir_p || {
31233 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31234 *) as_qdir=$as_dir;;
31236 as_dirs="'$as_qdir' $as_dirs"
31237 as_dir=`$as_dirname -- "$as_dir" ||
31238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31239 X"$as_dir" : 'X\(//\)[^/]' \| \
31240 X"$as_dir" : 'X\(//\)$' \| \
31241 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31242 $as_echo X"$as_dir" |
31243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31247 /^X\(\/\/\)[^/].*/{
31260 test -d "$as_dir" && break
31262 test -z "$as_dirs" || eval "mkdir $as_dirs"
31263 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31267 if mkdir -p . 2>/dev/null; then
31268 as_mkdir_p='mkdir -p "$as_dir"'
31270 test -d ./-p && rmdir ./-p
31274 if test -x / >/dev/null 2>&1; then
31275 as_test_x='test -x'
31277 if ls -dL / >/dev/null 2>&1; then
31284 if test -d "$1"; then
31290 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31291 ???[sx]*):;;*)false;;esac;fi
31295 as_executable_p=$as_test_x
31297 # Sed expression to map a string onto a valid CPP name.
31298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31300 # Sed expression to map a string onto a valid variable name.
31301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31305 ## ----------------------------------- ##
31306 ## Main body of $CONFIG_STATUS script. ##
31307 ## ----------------------------------- ##
31309 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31312 # Save the log message, to keep $0 and so on meaningful, and to
31313 # report actual input values of CONFIG_FILES etc. instead of their
31314 # values after options handling.
31316 This file was extended by bacula $as_me 5.2.8, which was
31317 generated by GNU Autoconf 2.68. Invocation command line was
31319 CONFIG_FILES = $CONFIG_FILES
31320 CONFIG_HEADERS = $CONFIG_HEADERS
31321 CONFIG_LINKS = $CONFIG_LINKS
31322 CONFIG_COMMANDS = $CONFIG_COMMANDS
31325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31330 case $ac_config_files in *"
31331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31334 case $ac_config_headers in *"
31335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31340 # Files that config.status was made for.
31341 config_files="$ac_config_files"
31342 config_headers="$ac_config_headers"
31343 config_commands="$ac_config_commands"
31347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31349 \`$as_me' instantiates files and other configuration actions
31350 from templates according to the current configuration. Unless the files
31351 and actions are specified as TAGs, all are instantiated by default.
31353 Usage: $0 [OPTION]... [TAG]...
31355 -h, --help print this help, then exit
31356 -V, --version print version number and configuration settings, then exit
31357 --config print configuration, then exit
31358 -q, --quiet, --silent
31359 do not print progress messages
31360 -d, --debug don't remove temporary files
31361 --recheck update $as_me by reconfiguring in the same conditions
31362 --file=FILE[:TEMPLATE]
31363 instantiate the configuration file FILE
31364 --header=FILE[:TEMPLATE]
31365 instantiate the configuration header FILE
31367 Configuration files:
31370 Configuration headers:
31373 Configuration commands:
31376 Report bugs to the package provider."
31379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31380 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31382 bacula config.status 5.2.8
31383 configured by $0, generated by GNU Autoconf 2.68,
31384 with options \\"\$ac_cs_config\\"
31386 Copyright (C) 2010 Free Software Foundation, Inc.
31387 This config.status script is free software; the Free Software Foundation
31388 gives unlimited permission to copy, distribute and modify it."
31394 test -n "\$AWK" || AWK=awk
31397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31398 # The default lists apply if the user does not specify any file.
31404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31421 # Handling of the options.
31422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31425 $as_echo "$ac_cs_version"; exit ;;
31426 --config | --confi | --conf | --con | --co | --c )
31427 $as_echo "$ac_cs_config"; exit ;;
31428 --debug | --debu | --deb | --de | --d | -d )
31430 --file | --fil | --fi | --f )
31433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31434 '') as_fn_error $? "missing file argument" ;;
31436 as_fn_append CONFIG_FILES " '$ac_optarg'"
31437 ac_need_defaults=false;;
31438 --header | --heade | --head | --hea )
31441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31443 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31444 ac_need_defaults=false;;
31446 # Conflict between --help and --header
31447 as_fn_error $? "ambiguous option: \`$1'
31448 Try \`$0 --help' for more information.";;
31449 --help | --hel | -h )
31450 $as_echo "$ac_cs_usage"; exit ;;
31451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31455 # This is an error.
31456 -*) as_fn_error $? "unrecognized option: \`$1'
31457 Try \`$0 --help' for more information." ;;
31459 *) as_fn_append ac_config_targets " $1"
31460 ac_need_defaults=false ;;
31466 ac_configure_extra_args=
31468 if $ac_cs_silent; then
31470 ac_configure_extra_args="$ac_configure_extra_args --silent"
31474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31475 if \$ac_cs_recheck; then
31476 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31479 CONFIG_SHELL='$SHELL'
31480 export CONFIG_SHELL
31485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31490 ## Running $as_me. ##
31496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31502 # The HP-UX ksh and POSIX shell print the target directory to stdout
31503 # if CDPATH is set.
31504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31506 sed_quote_subst='$sed_quote_subst'
31507 double_quote_subst='$double_quote_subst'
31508 delay_variable_subst='$delay_variable_subst'
31509 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31510 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31511 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31512 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31513 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31514 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31515 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31516 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31517 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31518 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31519 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31520 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31521 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31522 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31523 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31524 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31525 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31526 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31527 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31528 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31529 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31530 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31531 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31532 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31533 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31534 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31535 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31536 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31537 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31538 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31539 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31540 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31541 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31542 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31543 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31544 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31545 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31546 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31547 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31548 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31549 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31550 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31551 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31552 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31553 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31554 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31555 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31556 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31557 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31558 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31559 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31560 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31561 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31562 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31563 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31564 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"`'
31565 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31566 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31567 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31568 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31569 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31570 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31571 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31572 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31573 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31574 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31575 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31576 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31577 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31578 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31579 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31580 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31581 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31582 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31583 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31584 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31585 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31586 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31587 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31588 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31589 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31590 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31591 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31592 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31593 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31594 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31595 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31596 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31597 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31598 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31599 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31600 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31601 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31602 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31603 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31604 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31605 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31606 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31607 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31608 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31609 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31610 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31611 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31612 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31613 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31614 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31615 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31616 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31617 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31618 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31619 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31620 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31621 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31622 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31623 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31624 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31625 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31626 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31627 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31628 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31629 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31630 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31631 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31632 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31633 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31634 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31635 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31636 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31637 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31638 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31639 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31640 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31641 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31642 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31643 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31644 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31645 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31646 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31647 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31648 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31649 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31650 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31651 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31652 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31653 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31654 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31655 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31656 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31657 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31658 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31659 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31660 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31661 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31662 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31663 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31664 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31665 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31666 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31667 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31668 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31669 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31670 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31671 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31672 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31673 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31674 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31675 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31676 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31677 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31678 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31679 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31680 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31681 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31682 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31683 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31684 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31685 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31686 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31687 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31688 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31689 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31690 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31691 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31692 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31693 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31696 LTCFLAGS='$LTCFLAGS'
31697 compiler='$compiler_DEFAULT'
31699 # A function that is used when there is no print builtin or printf.
31700 func_fallback_echo ()
31702 eval 'cat <<_LTECHO_EOF
31707 # Quote evaled strings.
31721 deplibs_check_method \
31726 sharedlib_from_linklib_cmd \
31729 archiver_list_spec \
31735 lt_cv_sys_global_symbol_pipe \
31736 lt_cv_sys_global_symbol_to_cdecl \
31737 lt_cv_sys_global_symbol_to_c_name_address \
31738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31739 nm_file_list_spec \
31740 lt_prog_compiler_no_builtin_flag \
31741 lt_prog_compiler_pic \
31742 lt_prog_compiler_wl \
31743 lt_prog_compiler_static \
31744 lt_cv_prog_compiler_c_o \
31753 export_dynamic_flag_spec \
31754 whole_archive_flag_spec \
31755 compiler_needs_object \
31757 allow_undefined_flag \
31758 no_undefined_flag \
31759 hardcode_libdir_flag_spec \
31760 hardcode_libdir_flag_spec_ld \
31761 hardcode_libdir_separator \
31765 variables_saved_for_relink \
31767 library_names_spec \
31769 install_override_mode \
31773 compiler_lib_search_dirs \
31778 compiler_lib_search_path \
31782 lt_prog_compiler_no_builtin_flag_CXX \
31783 lt_prog_compiler_pic_CXX \
31784 lt_prog_compiler_wl_CXX \
31785 lt_prog_compiler_static_CXX \
31786 lt_cv_prog_compiler_c_o_CXX \
31787 export_dynamic_flag_spec_CXX \
31788 whole_archive_flag_spec_CXX \
31789 compiler_needs_object_CXX \
31791 allow_undefined_flag_CXX \
31792 no_undefined_flag_CXX \
31793 hardcode_libdir_flag_spec_CXX \
31794 hardcode_libdir_flag_spec_ld_CXX \
31795 hardcode_libdir_separator_CXX \
31796 exclude_expsyms_CXX \
31797 include_expsyms_CXX \
31798 file_list_spec_CXX \
31799 compiler_lib_search_dirs_CXX \
31800 predep_objects_CXX \
31801 postdep_objects_CXX \
31804 compiler_lib_search_path_CXX; do
31805 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31806 *[\\\\\\\`\\"\\\$]*)
31807 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31810 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31815 # Double-quote double-evaled strings.
31816 for var in reload_cmds \
31817 old_postinstall_cmds \
31818 old_postuninstall_cmds \
31820 extract_expsyms_cmds \
31821 old_archive_from_new_cmds \
31822 old_archive_from_expsyms_cmds \
31824 archive_expsym_cmds \
31826 module_expsym_cmds \
31827 export_symbols_cmds \
31831 postuninstall_cmds \
31833 sys_lib_search_path_spec \
31834 sys_lib_dlsearch_path_spec \
31836 old_archive_cmds_CXX \
31837 old_archive_from_new_cmds_CXX \
31838 old_archive_from_expsyms_cmds_CXX \
31840 archive_expsym_cmds_CXX \
31842 module_expsym_cmds_CXX \
31843 export_symbols_cmds_CXX \
31845 postlink_cmds_CXX; do
31846 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31847 *[\\\\\\\`\\"\\\$]*)
31848 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31851 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31856 ac_aux_dir='$ac_aux_dir'
31857 xsi_shell='$xsi_shell'
31858 lt_shell_append='$lt_shell_append'
31860 # See if we are running on zsh, and set the options which allow our
31861 # commands through without removal of \ escapes INIT.
31862 if test -n "\${ZSH_VERSION+set}" ; then
31863 setopt NO_GLOB_SUBST
31869 TIMESTAMP='$TIMESTAMP'
31877 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31878 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31880 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31881 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31882 LINGUAS="${LINGUAS-%UNSET%}"
31887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31889 # Handling of arguments.
31890 for ac_config_target in $ac_config_targets
31892 case $ac_config_target in
31893 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31894 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31895 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31896 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31898 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31899 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31900 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31901 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31902 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31903 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31904 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31905 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31906 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31907 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31908 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31909 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31910 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31911 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31912 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31913 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31914 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31915 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31916 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31917 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31918 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31919 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31920 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31921 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31922 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31923 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31924 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31925 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31926 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31927 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31928 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31929 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31930 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31931 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31932 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31933 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31934 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31935 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31936 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31937 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31938 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31939 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31940 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31941 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31942 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31943 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31944 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31945 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31946 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31947 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31948 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31949 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31950 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31951 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31952 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31953 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31954 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31955 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31956 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31957 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31958 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31959 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31960 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31961 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31962 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31963 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31964 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31965 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31966 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31967 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31968 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31969 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31970 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31971 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31972 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31973 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31974 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31975 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31976 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31977 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31978 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31979 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31980 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31981 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31982 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31983 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31984 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31985 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31986 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31987 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31988 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31989 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31990 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31991 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31992 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31993 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31994 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31995 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31996 "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31997 "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31998 "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31999 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32000 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32001 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32002 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32003 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32004 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32005 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32007 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32012 # If the user did not use the arguments to specify the items to instantiate,
32013 # then the envvar interface is used. Set only those that are not.
32014 # We use the long form for the default assignment because of an extremely
32015 # bizarre bug on SunOS 4.1.3.
32016 if $ac_need_defaults; then
32017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32019 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32022 # Have a temporary directory for convenience. Make it in the build tree
32023 # simply because there is no reason against having it here, and in addition,
32024 # creating and moving files from /tmp can sometimes cause problems.
32025 # Hook for its removal unless debugging.
32026 # Note that there is a small window in which the directory will not be cleaned:
32027 # after its creation but before its name has been assigned to `$tmp'.
32031 trap 'exit_status=$?
32032 : "${ac_tmp:=$tmp}"
32033 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32035 trap 'as_fn_exit 1' 1 2 13 15
32037 # Create a (secure) tmp directory for tmp files.
32040 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32044 tmp=./conf$$-$RANDOM
32045 (umask 077 && mkdir "$tmp")
32046 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32049 # Set up the scripts for CONFIG_FILES section.
32050 # No need to generate them if there are no CONFIG_FILES.
32051 # This happens for instance with `./config.status config.h'.
32052 if test -n "$CONFIG_FILES"; then
32054 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32055 ac_cs_awk_getline=:
32056 ac_cs_awk_pipe_init=
32057 ac_cs_awk_read_file='
32058 while ((getline aline < (F[key])) > 0)
32061 ac_cs_awk_pipe_fini=
32063 ac_cs_awk_getline=false
32064 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32065 ac_cs_awk_read_file='
32067 print "cat " F[key] " &&"
32068 '$ac_cs_awk_pipe_init
32069 # The final `:' finishes the AND list.
32070 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32072 ac_cr=`echo X | tr X '\015'`
32073 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32074 # But we know of no other shell where ac_cr would be empty at this
32075 # point, so we can use a bashism as a fallback.
32076 if test "x$ac_cr" = x; then
32077 eval ac_cr=\$\'\\r\'
32079 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32080 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32083 ac_cs_awk_cr=$ac_cr
32086 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32089 # Create commands to substitute file output variables.
32091 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32092 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32093 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32096 } >conf$$files.sh &&
32097 . ./conf$$files.sh ||
32098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32099 rm -f conf$$files.sh
32102 echo "cat >conf$$subs.awk <<_ACEOF" &&
32103 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32105 } >conf$$subs.sh ||
32106 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32107 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32109 for ac_last_try in false false false false false :; do
32110 . ./conf$$subs.sh ||
32111 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32113 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32114 if test $ac_delim_n = $ac_delim_num; then
32116 elif $ac_last_try; then
32117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32122 rm -f conf$$subs.sh
32124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32125 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32129 s/^/S["/; s/!.*/"]=/
32139 s/\(.\{148\}\)..*/\1/
32141 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32153 s/\(.\{148\}\)..*/\1/
32155 s/["\\]/\\&/g; s/^/"/; s/$/"/
32159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32164 ' <conf$$subs.awk | sed '
32169 ' >>$CONFIG_STATUS || ac_write_fail=1
32170 rm -f conf$$subs.awk
32171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32173 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32174 for (key in S) S_is_set[key] = 1
32176 \$ac_cs_awk_pipe_init
32180 nfields = split(line, field, "@")
32182 len = length(field[1])
32183 for (i = 2; i < nfields; i++) {
32185 keylen = length(key)
32186 if (S_is_set[key]) {
32188 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32189 len += length(value) + length(field[++i])
32194 if (nfields == 3 && !substed) {
32196 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32197 \$ac_cs_awk_read_file
32203 \$ac_cs_awk_pipe_fini
32206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32207 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32208 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32211 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32212 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32215 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32216 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32217 # trailing colons and then remove the whole line if VPATH becomes empty
32218 # (actually we leave an empty line to preserve line numbers).
32219 if test "x$srcdir" = x.; then
32220 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32239 fi # test -n "$CONFIG_FILES"
32241 # Set up the scripts for CONFIG_HEADERS section.
32242 # No need to generate them if there are no CONFIG_HEADERS.
32243 # This happens for instance with `./config.status Makefile'.
32244 if test -n "$CONFIG_HEADERS"; then
32245 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32249 # Transform confdefs.h into an awk script `defines.awk', embedded as
32250 # here-document in config.status, that substitutes the proper values into
32251 # config.h.in to produce config.h.
32253 # Create a delimiter string that does not exist in confdefs.h, to ease
32254 # handling of long lines.
32256 for ac_last_try in false false :; do
32257 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32258 if test -z "$ac_tt"; then
32260 elif $ac_last_try; then
32261 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32267 # For the awk script, D is an array of macro values keyed by name,
32268 # likewise P contains macro parameters if any. Preserve backslash
32269 # newline sequences.
32271 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32273 s/.\{148\}/&'"$ac_delim"'/g
32276 s/^[ ]*#[ ]*define[ ][ ]*/ /
32283 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32289 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32290 D["\1"]=" \3\\\\\\n"\\/p
32292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32297 s/.\{148\}/&'"$ac_delim"'/g
32302 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32305 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32307 ' <confdefs.h | sed '
32308 s/'"$ac_delim"'/"\\\
32309 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32312 for (key in D) D_is_set[key] = 1
32315 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32317 split(line, arg, " ")
32318 if (arg[1] == "#") {
32322 defundef = substr(arg[1], 2)
32325 split(mac1, mac2, "(") #)
32327 prefix = substr(line, 1, index(line, defundef) - 1)
32328 if (D_is_set[macro]) {
32329 # Preserve the white space surrounding the "#".
32330 print prefix "define", macro P[macro] D[macro]
32333 # Replace #undef with comments. This is necessary, for example,
32334 # in the case of _POSIX_SOURCE, which is predefined and required
32335 # on some systems where configure will not decide to define it.
32336 if (defundef == "undef") {
32337 print "/*", prefix defundef, macro, "*/"
32345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32346 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32347 fi # test -n "$CONFIG_HEADERS"
32350 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32355 :[FHLC]) ac_mode=$ac_tag; continue;;
32357 case $ac_mode$ac_tag in
32359 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32360 :[FH]-) ac_tag=-:-;;
32361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32378 -) ac_f="$ac_tmp/stdin";;
32379 *) # Look for the file first in the build tree, then in the source tree
32380 # (if the path is not absolute). The absolute path cannot be DOS-style,
32381 # because $ac_f cannot contain `:'.
32385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32387 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32389 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32390 as_fn_append ac_file_inputs " '$ac_f'"
32393 # Let's still pretend it is `configure' which instantiates (i.e., don't
32394 # use $as_me), people would be surprised to read:
32395 # /* config.h. Generated by config.status. */
32396 configure_input='Generated from '`
32397 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32399 if test x"$ac_file" != x-; then
32400 configure_input="$ac_file. $configure_input"
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32402 $as_echo "$as_me: creating $ac_file" >&6;}
32404 # Neutralize special characters interpreted by sed in replacement strings.
32405 case $configure_input in #(
32406 *\&* | *\|* | *\\* )
32407 ac_sed_conf_input=`$as_echo "$configure_input" |
32408 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32409 *) ac_sed_conf_input=$configure_input;;
32413 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32419 ac_dir=`$as_dirname -- "$ac_file" ||
32420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32421 X"$ac_file" : 'X\(//\)[^/]' \| \
32422 X"$ac_file" : 'X\(//\)$' \| \
32423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32424 $as_echo X"$ac_file" |
32425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32429 /^X\(\/\/\)[^/].*/{
32442 as_dir="$ac_dir"; as_fn_mkdir_p
32446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32449 # A ".." for each directory in $ac_dir_suffix.
32450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32451 case $ac_top_builddir_sub in
32452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32456 ac_abs_top_builddir=$ac_pwd
32457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32458 # for backward compatibility:
32459 ac_top_builddir=$ac_top_build_prefix
32462 .) # We are building in place.
32464 ac_top_srcdir=$ac_top_builddir_sub
32465 ac_abs_top_srcdir=$ac_pwd ;;
32466 [\\/]* | ?:[\\/]* ) # Absolute name.
32467 ac_srcdir=$srcdir$ac_dir_suffix;
32468 ac_top_srcdir=$srcdir
32469 ac_abs_top_srcdir=$srcdir ;;
32470 *) # Relative name.
32471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32472 ac_top_srcdir=$ac_top_build_prefix$srcdir
32473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32491 # If the template does not know about datarootdir, expand it.
32492 # FIXME: This hack should be removed a few years after 2.60.
32493 ac_datarootdir_hack=; ac_datarootdir_seen=
32504 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32505 *datarootdir*) ac_datarootdir_seen=yes;;
32506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32508 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32511 ac_datarootdir_hack='
32512 s&@datadir@&$datadir&g
32513 s&@docdir@&$docdir&g
32514 s&@infodir@&$infodir&g
32515 s&@localedir@&$localedir&g
32516 s&@mandir@&$mandir&g
32517 s&\\\${datarootdir}&$datarootdir&g' ;;
32521 # Neutralize VPATH when `$srcdir' = `.'.
32522 # Shell code in configure.ac might set extrasub.
32523 # FIXME: do we really want to maintain this feature?
32524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32525 ac_sed_extra="$ac_vpsub
32528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32531 s|@configure_input@|$ac_sed_conf_input|;t t
32532 s&@top_builddir@&$ac_top_builddir_sub&;t t
32533 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32534 s&@srcdir@&$ac_srcdir&;t t
32535 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32536 s&@top_srcdir@&$ac_top_srcdir&;t t
32537 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32538 s&@builddir@&$ac_builddir&;t t
32539 s&@abs_builddir@&$ac_abs_builddir&;t t
32540 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32541 s&@INSTALL@&$ac_INSTALL&;t t
32542 $ac_datarootdir_hack
32544 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32545 if $ac_cs_awk_getline; then
32546 $AWK -f "$ac_tmp/subs.awk"
32548 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32550 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32553 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32555 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32557 which seems to be undefined. Please make sure it is defined" >&5
32558 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32559 which seems to be undefined. Please make sure it is defined" >&2;}
32561 rm -f "$ac_tmp/stdin"
32563 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32564 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32572 if test x"$ac_file" != x-; then
32574 $as_echo "/* $configure_input */" \
32575 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32576 } >"$ac_tmp/config.h" \
32577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32578 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32579 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32580 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32583 mv "$ac_tmp/config.h" "$ac_file" \
32584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32587 $as_echo "/* $configure_input */" \
32588 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32589 || as_fn_error $? "could not create -" "$LINENO" 5
32593 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32594 $as_echo "$as_me: executing $ac_file commands" >&6;}
32599 case $ac_file$ac_mode in
32602 # See if we are running on zsh, and set the options which allow our
32603 # commands through without removal of \ escapes.
32604 if test -n "${ZSH_VERSION+set}" ; then
32605 setopt NO_GLOB_SUBST
32608 cfgfile="${ofile}T"
32609 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32612 cat <<_LT_EOF >> "$cfgfile"
32615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32616 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32621 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32623 # Written by Gordon Matzigkeit, 1996
32625 # This file is part of GNU Libtool.
32627 # GNU Libtool is free software; you can redistribute it and/or
32628 # modify it under the terms of the GNU General Public License as
32629 # published by the Free Software Foundation; either version 2 of
32630 # the License, or (at your option) any later version.
32632 # As a special exception to the GNU General Public License,
32633 # if you distribute this file as part of a program or library that
32634 # is built using GNU Libtool, you may include this file under the
32635 # same distribution terms that you use for the rest of that program.
32637 # GNU Libtool is distributed in the hope that it will be useful,
32638 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32639 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32640 # GNU General Public License for more details.
32642 # You should have received a copy of the GNU General Public License
32643 # along with GNU Libtool; see the file COPYING. If not, a copy
32644 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32645 # obtained by writing to the Free Software Foundation, Inc.,
32646 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32649 # The names of the tagged configurations supported by this script.
32650 available_tags="CXX "
32652 # ### BEGIN LIBTOOL CONFIG
32654 # Which release of libtool.m4 was used?
32655 macro_version=$macro_version
32656 macro_revision=$macro_revision
32658 # Whether or not to build shared libraries.
32659 build_libtool_libs=$enable_shared
32661 # Whether or not to build static libraries.
32662 build_old_libs=$enable_static
32664 # What type of objects to build.
32667 # Whether or not to optimize for fast installation.
32668 fast_install=$enable_fast_install
32670 # Shell to use when invoking shell scripts.
32673 # An echo program that protects backslashes.
32677 host_alias=$host_alias
32681 # The build system.
32682 build_alias=$build_alias
32686 # A sed program that does not truncate output.
32689 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32690 Xsed="\$SED -e 1s/^X//"
32692 # A grep program that handles long lines.
32698 # A literal string matcher.
32701 # A BSD- or MS-compatible name lister.
32704 # Whether we need soft or hard links.
32707 # What is the maximum length of a command?
32708 max_cmd_len=$max_cmd_len
32710 # Object file suffix (normally "o").
32713 # Executable file suffix (normally "").
32716 # whether the shell understands "unset".
32719 # turn spaces into newlines.
32722 # turn newlines into spaces.
32725 # convert \$build file names to \$host format.
32726 to_host_file_cmd=$lt_cv_to_host_file_cmd
32728 # convert \$build files to toolchain format.
32729 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32731 # An object symbol dumper.
32732 OBJDUMP=$lt_OBJDUMP
32734 # Method to check whether dependent libraries are shared objects.
32735 deplibs_check_method=$lt_deplibs_check_method
32737 # Command to use when deplibs_check_method = "file_magic".
32738 file_magic_cmd=$lt_file_magic_cmd
32740 # How to find potential files when deplibs_check_method = "file_magic".
32741 file_magic_glob=$lt_file_magic_glob
32743 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32744 want_nocaseglob=$lt_want_nocaseglob
32746 # DLL creation program.
32747 DLLTOOL=$lt_DLLTOOL
32749 # Command to associate shared and link libraries.
32750 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32755 # Flags to create an archive.
32756 AR_FLAGS=$lt_AR_FLAGS
32758 # How to feed a file listing to the archiver.
32759 archiver_list_spec=$lt_archiver_list_spec
32761 # A symbol stripping program.
32764 # Commands used to install an old-style archive.
32766 old_postinstall_cmds=$lt_old_postinstall_cmds
32767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32769 # Whether to use a lock for old archive extraction.
32770 lock_old_archive_extraction=$lock_old_archive_extraction
32775 # LTCC compiler flags.
32776 LTCFLAGS=$lt_CFLAGS
32778 # Take the output of nm and produce a listing of raw symbols and C names.
32779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32781 # Transform the output of nm in a proper C declaration.
32782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32784 # Transform the output of nm in a C name address pair.
32785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32787 # Transform the output of nm in a C name address pair when lib prefix is needed.
32788 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32790 # Specify filename containing input files for \$NM.
32791 nm_file_list_spec=$lt_nm_file_list_spec
32793 # The root where to search for dependent libraries,and in which our libraries should be installed.
32794 lt_sysroot=$lt_sysroot
32796 # The name of the directory that contains temporary libtool files.
32799 # Used to examine libraries when file_magic_cmd begins with "file".
32800 MAGIC_CMD=$MAGIC_CMD
32802 # Must we lock files when doing compilation?
32803 need_locks=$lt_need_locks
32806 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32808 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32809 DSYMUTIL=$lt_DSYMUTIL
32811 # Tool to change global to local symbols on Mac OS X.
32814 # Tool to manipulate fat objects and archives on Mac OS X.
32817 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32820 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32821 OTOOL64=$lt_OTOOL64
32823 # Old archive suffix (normally "a").
32826 # Shared library suffix (normally ".so").
32827 shrext_cmds=$lt_shrext_cmds
32829 # The commands to extract the exported symbol list from a shared archive.
32830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32832 # Variables whose values should be saved in libtool wrapper scripts and
32833 # restored at link time.
32834 variables_saved_for_relink=$lt_variables_saved_for_relink
32836 # Do we need the "lib" prefix for modules?
32837 need_lib_prefix=$need_lib_prefix
32839 # Do we need a version for libraries?
32840 need_version=$need_version
32842 # Library versioning type.
32843 version_type=$version_type
32845 # Shared library runtime path variable.
32846 runpath_var=$runpath_var
32848 # Shared library path variable.
32849 shlibpath_var=$shlibpath_var
32851 # Is shlibpath searched before the hard-coded library search path?
32852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32854 # Format of library name prefix.
32855 libname_spec=$lt_libname_spec
32857 # List of archive names. First name is the real one, the rest are links.
32858 # The last name is the one that the linker finds with -lNAME
32859 library_names_spec=$lt_library_names_spec
32861 # The coded name of the library, if different from the real name.
32862 soname_spec=$lt_soname_spec
32864 # Permission mode override for installation of shared libraries.
32865 install_override_mode=$lt_install_override_mode
32867 # Command to use after installation of a shared archive.
32868 postinstall_cmds=$lt_postinstall_cmds
32870 # Command to use after uninstallation of a shared archive.
32871 postuninstall_cmds=$lt_postuninstall_cmds
32873 # Commands used to finish a libtool library installation in a directory.
32874 finish_cmds=$lt_finish_cmds
32876 # As "finish_cmds", except a single script fragment to be evaled but
32878 finish_eval=$lt_finish_eval
32880 # Whether we should hardcode library paths into libraries.
32881 hardcode_into_libs=$hardcode_into_libs
32883 # Compile-time system search path for libraries.
32884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32886 # Run-time system search path for libraries.
32887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32889 # Whether dlopen is supported.
32890 dlopen_support=$enable_dlopen
32892 # Whether dlopen of programs is supported.
32893 dlopen_self=$enable_dlopen_self
32895 # Whether dlopen of statically linked programs is supported.
32896 dlopen_self_static=$enable_dlopen_self_static
32898 # Commands to strip libraries.
32899 old_striplib=$lt_old_striplib
32900 striplib=$lt_striplib
32903 # The linker used to build libraries.
32906 # How to create reloadable object files.
32907 reload_flag=$lt_reload_flag
32908 reload_cmds=$lt_reload_cmds
32910 # Commands used to build an old-style archive.
32911 old_archive_cmds=$lt_old_archive_cmds
32913 # A language specific compiler.
32916 # Is the compiler the GNU compiler?
32919 # Compiler flag to turn off builtin functions.
32920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32922 # Additional compiler flags for building library objects.
32923 pic_flag=$lt_lt_prog_compiler_pic
32925 # How to pass a linker flag through the compiler.
32926 wl=$lt_lt_prog_compiler_wl
32928 # Compiler flag to prevent dynamic linking.
32929 link_static_flag=$lt_lt_prog_compiler_static
32931 # Does compiler simultaneously support -c and -o options?
32932 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32934 # Whether or not to add -lc for building shared libraries.
32935 build_libtool_need_lc=$archive_cmds_need_lc
32937 # Whether or not to disallow shared libs when runtime libs are static.
32938 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32940 # Compiler flag to allow reflexive dlopens.
32941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32943 # Compiler flag to generate shared objects directly from archives.
32944 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32946 # Whether the compiler copes with passing no objects directly.
32947 compiler_needs_object=$lt_compiler_needs_object
32949 # Create an old-style archive from a shared archive.
32950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32952 # Create a temporary old-style archive to link instead of a shared archive.
32953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32955 # Commands used to build a shared archive.
32956 archive_cmds=$lt_archive_cmds
32957 archive_expsym_cmds=$lt_archive_expsym_cmds
32959 # Commands used to build a loadable module if different from building
32960 # a shared archive.
32961 module_cmds=$lt_module_cmds
32962 module_expsym_cmds=$lt_module_expsym_cmds
32964 # Whether we are building with GNU ld or not.
32965 with_gnu_ld=$lt_with_gnu_ld
32967 # Flag that allows shared libraries with undefined symbols to be built.
32968 allow_undefined_flag=$lt_allow_undefined_flag
32970 # Flag that enforces no undefined symbols.
32971 no_undefined_flag=$lt_no_undefined_flag
32973 # Flag to hardcode \$libdir into a binary during linking.
32974 # This must work even if \$libdir does not exist
32975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32977 # If ld is used when linking, flag to hardcode \$libdir into a binary
32978 # during linking. This must work even if \$libdir does not exist.
32979 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32981 # Whether we need a single "-rpath" flag with a separated argument.
32982 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32984 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32985 # DIR into the resulting binary.
32986 hardcode_direct=$hardcode_direct
32988 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32989 # DIR into the resulting binary and the resulting library dependency is
32990 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32991 # library is relocated.
32992 hardcode_direct_absolute=$hardcode_direct_absolute
32994 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32995 # into the resulting binary.
32996 hardcode_minus_L=$hardcode_minus_L
32998 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32999 # into the resulting binary.
33000 hardcode_shlibpath_var=$hardcode_shlibpath_var
33002 # Set to "yes" if building a shared library automatically hardcodes DIR
33003 # into the library and all subsequent libraries and executables linked
33005 hardcode_automatic=$hardcode_automatic
33007 # Set to yes if linker adds runtime paths of dependent libraries
33008 # to runtime path list.
33009 inherit_rpath=$inherit_rpath
33011 # Whether libtool must link a program against all its dependency libraries.
33012 link_all_deplibs=$link_all_deplibs
33014 # Set to "yes" if exported symbols are required.
33015 always_export_symbols=$always_export_symbols
33017 # The commands to list exported symbols.
33018 export_symbols_cmds=$lt_export_symbols_cmds
33020 # Symbols that should not be listed in the preloaded symbols.
33021 exclude_expsyms=$lt_exclude_expsyms
33023 # Symbols that must always be exported.
33024 include_expsyms=$lt_include_expsyms
33026 # Commands necessary for linking programs (against libraries) with templates.
33027 prelink_cmds=$lt_prelink_cmds
33029 # Commands necessary for finishing linking programs.
33030 postlink_cmds=$lt_postlink_cmds
33032 # Specify filename containing input files.
33033 file_list_spec=$lt_file_list_spec
33035 # How to hardcode a shared library path into an executable.
33036 hardcode_action=$hardcode_action
33038 # The directories searched by this compiler when creating a shared library.
33039 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33041 # Dependencies to place before and after the objects being linked to
33042 # create a shared library.
33043 predep_objects=$lt_predep_objects
33044 postdep_objects=$lt_postdep_objects
33045 predeps=$lt_predeps
33046 postdeps=$lt_postdeps
33048 # The library search path used internally by the compiler when linking
33049 # a shared library.
33050 compiler_lib_search_path=$lt_compiler_lib_search_path
33052 # ### END LIBTOOL CONFIG
33058 cat <<\_LT_EOF >> "$cfgfile"
33059 # AIX sometimes has problems with the GCC collect2 program. For some
33060 # reason, if we set the COLLECT_NAMES environment variable, the problems
33061 # vanish in a puff of smoke.
33062 if test "X${COLLECT_NAMES+set}" != Xset; then
33064 export COLLECT_NAMES
33071 ltmain="$ac_aux_dir/ltmain.sh"
33074 # We use sed instead of cat because bash on DJGPP gets confused if
33075 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33076 # text mode, it properly converts lines to CR/LF. This bash problem
33077 # is reportedly fixed, but why not run on old versions too?
33078 sed '$q' "$ltmain" >> "$cfgfile" \
33079 || (rm -f "$cfgfile"; exit 1)
33081 if test x"$xsi_shell" = xyes; then
33082 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33086 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33087 \ * ) func_dirname_result="${3}" ;;\
33089 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33090 && mv -f "$cfgfile.tmp" "$cfgfile" \
33091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33092 test 0 -eq $? || _lt_function_replace_fail=:
33095 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33098 \ func_basename_result="${1##*/}"\
33099 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33100 && mv -f "$cfgfile.tmp" "$cfgfile" \
33101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33102 test 0 -eq $? || _lt_function_replace_fail=:
33105 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33106 func_dirname_and_basename ()\
33109 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33110 \ * ) func_dirname_result="${3}" ;;\
33112 \ func_basename_result="${1##*/}"\
33113 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33114 && mv -f "$cfgfile.tmp" "$cfgfile" \
33115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33116 test 0 -eq $? || _lt_function_replace_fail=:
33119 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33122 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33123 \ # positional parameters, so assign one to ordinary parameter first.\
33124 \ func_stripname_result=${3}\
33125 \ func_stripname_result=${func_stripname_result#"${1}"}\
33126 \ func_stripname_result=${func_stripname_result%"${2}"}\
33127 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33128 && mv -f "$cfgfile.tmp" "$cfgfile" \
33129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33130 test 0 -eq $? || _lt_function_replace_fail=:
33133 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33134 func_split_long_opt ()\
33136 \ func_split_long_opt_name=${1%%=*}\
33137 \ func_split_long_opt_arg=${1#*=}\
33138 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33139 && mv -f "$cfgfile.tmp" "$cfgfile" \
33140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33141 test 0 -eq $? || _lt_function_replace_fail=:
33144 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33145 func_split_short_opt ()\
33147 \ func_split_short_opt_arg=${1#??}\
33148 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33149 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33150 && mv -f "$cfgfile.tmp" "$cfgfile" \
33151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33152 test 0 -eq $? || _lt_function_replace_fail=:
33155 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33159 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33160 \ *) func_lo2o_result=${1} ;;\
33162 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33163 && mv -f "$cfgfile.tmp" "$cfgfile" \
33164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33165 test 0 -eq $? || _lt_function_replace_fail=:
33168 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33171 func_xform_result=${1%.*}.lo\
33172 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33173 && mv -f "$cfgfile.tmp" "$cfgfile" \
33174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33175 test 0 -eq $? || _lt_function_replace_fail=:
33178 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33181 func_arith_result=$(( $* ))\
33182 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33183 && mv -f "$cfgfile.tmp" "$cfgfile" \
33184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33185 test 0 -eq $? || _lt_function_replace_fail=:
33188 sed -e '/^func_len ()$/,/^} # func_len /c\
33191 func_len_result=${#1}\
33192 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33193 && mv -f "$cfgfile.tmp" "$cfgfile" \
33194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33195 test 0 -eq $? || _lt_function_replace_fail=:
33199 if test x"$lt_shell_append" = xyes; then
33200 sed -e '/^func_append ()$/,/^} # func_append /c\
33203 eval "${1}+=\\${2}"\
33204 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33205 && mv -f "$cfgfile.tmp" "$cfgfile" \
33206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33207 test 0 -eq $? || _lt_function_replace_fail=:
33210 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33211 func_append_quoted ()\
33213 \ func_quote_for_eval "${2}"\
33214 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33215 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33216 && mv -f "$cfgfile.tmp" "$cfgfile" \
33217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33218 test 0 -eq $? || _lt_function_replace_fail=:
33221 # Save a `func_append' function call where possible by direct use of '+='
33222 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33223 && mv -f "$cfgfile.tmp" "$cfgfile" \
33224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33225 test 0 -eq $? || _lt_function_replace_fail=:
33227 # Save a `func_append' function call even when '+=' is not available
33228 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33229 && mv -f "$cfgfile.tmp" "$cfgfile" \
33230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33231 test 0 -eq $? || _lt_function_replace_fail=:
33234 if test x"$_lt_function_replace_fail" = x":"; then
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33236 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33240 mv -f "$cfgfile" "$ofile" ||
33241 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33245 cat <<_LT_EOF >> "$ofile"
33247 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33249 # The linker used to build libraries.
33252 # How to create reloadable object files.
33253 reload_flag=$lt_reload_flag_CXX
33254 reload_cmds=$lt_reload_cmds_CXX
33256 # Commands used to build an old-style archive.
33257 old_archive_cmds=$lt_old_archive_cmds_CXX
33259 # A language specific compiler.
33260 CC=$lt_compiler_CXX
33262 # Is the compiler the GNU compiler?
33265 # Compiler flag to turn off builtin functions.
33266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33268 # Additional compiler flags for building library objects.
33269 pic_flag=$lt_lt_prog_compiler_pic_CXX
33271 # How to pass a linker flag through the compiler.
33272 wl=$lt_lt_prog_compiler_wl_CXX
33274 # Compiler flag to prevent dynamic linking.
33275 link_static_flag=$lt_lt_prog_compiler_static_CXX
33277 # Does compiler simultaneously support -c and -o options?
33278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33280 # Whether or not to add -lc for building shared libraries.
33281 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33283 # Whether or not to disallow shared libs when runtime libs are static.
33284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33286 # Compiler flag to allow reflexive dlopens.
33287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33289 # Compiler flag to generate shared objects directly from archives.
33290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33292 # Whether the compiler copes with passing no objects directly.
33293 compiler_needs_object=$lt_compiler_needs_object_CXX
33295 # Create an old-style archive from a shared archive.
33296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33298 # Create a temporary old-style archive to link instead of a shared archive.
33299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33301 # Commands used to build a shared archive.
33302 archive_cmds=$lt_archive_cmds_CXX
33303 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33305 # Commands used to build a loadable module if different from building
33306 # a shared archive.
33307 module_cmds=$lt_module_cmds_CXX
33308 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33310 # Whether we are building with GNU ld or not.
33311 with_gnu_ld=$lt_with_gnu_ld_CXX
33313 # Flag that allows shared libraries with undefined symbols to be built.
33314 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33316 # Flag that enforces no undefined symbols.
33317 no_undefined_flag=$lt_no_undefined_flag_CXX
33319 # Flag to hardcode \$libdir into a binary during linking.
33320 # This must work even if \$libdir does not exist
33321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33323 # If ld is used when linking, flag to hardcode \$libdir into a binary
33324 # during linking. This must work even if \$libdir does not exist.
33325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33327 # Whether we need a single "-rpath" flag with a separated argument.
33328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33331 # DIR into the resulting binary.
33332 hardcode_direct=$hardcode_direct_CXX
33334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33335 # DIR into the resulting binary and the resulting library dependency is
33336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33337 # library is relocated.
33338 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33341 # into the resulting binary.
33342 hardcode_minus_L=$hardcode_minus_L_CXX
33344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33345 # into the resulting binary.
33346 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33348 # Set to "yes" if building a shared library automatically hardcodes DIR
33349 # into the library and all subsequent libraries and executables linked
33351 hardcode_automatic=$hardcode_automatic_CXX
33353 # Set to yes if linker adds runtime paths of dependent libraries
33354 # to runtime path list.
33355 inherit_rpath=$inherit_rpath_CXX
33357 # Whether libtool must link a program against all its dependency libraries.
33358 link_all_deplibs=$link_all_deplibs_CXX
33360 # Set to "yes" if exported symbols are required.
33361 always_export_symbols=$always_export_symbols_CXX
33363 # The commands to list exported symbols.
33364 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33366 # Symbols that should not be listed in the preloaded symbols.
33367 exclude_expsyms=$lt_exclude_expsyms_CXX
33369 # Symbols that must always be exported.
33370 include_expsyms=$lt_include_expsyms_CXX
33372 # Commands necessary for linking programs (against libraries) with templates.
33373 prelink_cmds=$lt_prelink_cmds_CXX
33375 # Commands necessary for finishing linking programs.
33376 postlink_cmds=$lt_postlink_cmds_CXX
33378 # Specify filename containing input files.
33379 file_list_spec=$lt_file_list_spec_CXX
33381 # How to hardcode a shared library path into an executable.
33382 hardcode_action=$hardcode_action_CXX
33384 # The directories searched by this compiler when creating a shared library.
33385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33387 # Dependencies to place before and after the objects being linked to
33388 # create a shared library.
33389 predep_objects=$lt_predep_objects_CXX
33390 postdep_objects=$lt_postdep_objects_CXX
33391 predeps=$lt_predeps_CXX
33392 postdeps=$lt_postdeps_CXX
33394 # The library search path used internally by the compiler when linking
33395 # a shared library.
33396 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33398 # ### END LIBTOOL TAG CONFIG: CXX
33403 for ac_file in $CONFIG_FILES; do
33404 # Support "outfile[:infile[:infile...]]"
33406 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33408 # PO directories have a Makefile.in generated from Makefile.in.in.
33409 case "$ac_file" in */Makefile.in)
33410 # Adjust a relative srcdir.
33411 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33412 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33413 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33414 # In autoconf-2.13 it is called $ac_given_srcdir.
33415 # In autoconf-2.50 it is called $srcdir.
33416 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33417 case "$ac_given_srcdir" in
33418 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33419 /*) top_srcdir="$ac_given_srcdir" ;;
33420 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33422 # Treat a directory as a PO directory if and only if it has a
33423 # POTFILES.in file. This allows packages to have multiple PO
33424 # directories under different names or in different locations.
33425 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33426 rm -f "$ac_dir/POTFILES"
33427 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33428 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33429 POMAKEFILEDEPS="POTFILES.in"
33430 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33431 # on $ac_dir but don't depend on user-specified configuration
33433 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33434 # The LINGUAS file contains the set of available languages.
33435 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33436 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33438 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33439 # Hide the ALL_LINGUAS assigment from automake.
33440 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33441 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33443 # The set of available languages was given in configure.in.
33444 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33447 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33448 # Compute UPDATEPOFILES
33449 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33450 # Compute DUMMYPOFILES
33451 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33453 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33454 case "$ac_given_srcdir" in
33456 *) srcdirpre='$(srcdir)/' ;;
33462 for lang in $ALL_LINGUAS; do
33463 POFILES="$POFILES $srcdirpre$lang.po"
33464 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33465 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33466 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33468 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33469 # environment variable.
33471 if test -n "$ALL_LINGUAS"; then
33472 for presentlang in $ALL_LINGUAS; do
33474 if test "%UNSET%" != "$LINGUAS"; then
33475 desiredlanguages="$LINGUAS"
33477 desiredlanguages="$ALL_LINGUAS"
33479 for desiredlang in $desiredlanguages; do
33480 # Use the presentlang catalog if desiredlang is
33481 # a. equal to presentlang, or
33482 # b. a variant of presentlang (because in this case,
33483 # presentlang can be used as a fallback for messages
33484 # which are not translated in the desiredlang catalog).
33485 case "$desiredlang" in
33486 "$presentlang"*) useit=yes;;
33489 if test $useit = yes; then
33490 INST_LINGUAS="$INST_LINGUAS $presentlang"
33495 if test -n "$INST_LINGUAS"; then
33496 for lang in $INST_LINGUAS; do
33497 CATALOGS="$CATALOGS $lang.gmo"
33500 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33501 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33502 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33503 if test -f "$f"; then
33505 *.orig | *.bak | *~) ;;
33506 *) cat "$f" >> "$ac_dir/Makefile" ;;
33523 ac_clean_files=$ac_clean_files_save
33525 test $ac_write_fail = 0 ||
33526 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33529 # configure is writing to config.log, and then calls config.status.
33530 # config.status does its own redirection, appending to config.log.
33531 # Unfortunately, on DOS this fails, as config.log is still kept open
33532 # by configure, so config.status won't be able to write to it; its
33533 # output is simply discarded. So we exec the FD to /dev/null,
33534 # effectively closing config.log, so it can be properly (re)opened and
33535 # appended to by config.status. When coming back to configure, we
33536 # need to make the FD available again.
33537 if test "$no_create" != yes; then
33539 ac_config_status_args=
33540 test "$silent" = yes &&
33541 ac_config_status_args="$ac_config_status_args --quiet"
33543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33546 # would make configure fail if this is the last instruction.
33547 $ac_cs_success || as_fn_exit 1
33549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33555 if test "${support_bat}" = "yes" ; then
33556 if test "x$QMAKE" = "xnone"; then
33557 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33561 echo "Creating bat Makefile"
33566 ${MAKE:-make} clean
33570 if test X"$GCC" = "Xyes" ; then
33571 echo "Doing make of dependencies"
33572 ${MAKE:-make} depend
33576 chmod 755 install_conf_file build-depkgs-qt-console
33580 chmod 755 bacula btraceback mtx-changer
33581 chmod 755 dvd-handler dvd-simulator
33582 chmod 755 bconsole mtx-changer devel_bacula logrotate
33586 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33587 chmod 755 $c/update_postgresql_tables_10_to_11
33588 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33589 chmod 755 $c/update_postgresql_tables_11_to_12
33594 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33595 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33597 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33598 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33600 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33601 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33603 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33604 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33606 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33607 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33610 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33611 chmod 755 $c/sqlite
33614 chmod 755 $c/install-default-backend
33616 chmod 755 src/win32/build-depkgs-mingw32
33618 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33619 largefile_support="yes"
33622 if test X"$GCC" = "Xyes" ; then
33623 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33624 if test "x${CCVERSION}" = "x" ; then
33625 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33627 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33628 if test x"${CXXVERSION}" = x ; then
33629 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33633 # clean up any old junk
33637 ${MAKE:-make} clean
33640 Configuration on `date`:
33642 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33643 Bacula version: ${BACULA} ${VERSION} (${DATE})
33644 Source code location: ${srcdir}
33645 Install binaries: ${sbindir}
33646 Install libraries: ${libdir}
33647 Install config files: ${sysconfdir}
33648 Scripts directory: ${scriptdir}
33649 Archive directory: ${archivedir}
33650 Working directory: ${working_dir}
33651 PID directory: ${piddir}
33652 Subsys directory: ${subsysdir}
33653 Man directory: ${mandir}
33654 Data directory: ${datarootdir}
33655 Plugin directory: ${plugindir}
33656 C Compiler: ${CC} ${CCVERSION}
33657 C++ Compiler: ${CXX} ${CXXVERSION}
33658 Compiler flags: ${WCFLAGS} ${CFLAGS}
33659 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33661 Statically Linked Tools: ${support_static_tools}
33662 Statically Linked FD: ${support_static_fd}
33663 Statically Linked SD: ${support_static_sd}
33664 Statically Linked DIR: ${support_static_dir}
33665 Statically Linked CONS: ${support_static_cons}
33666 Database backends: ${db_backends}
33667 Database port: ${db_port}
33668 Database name: ${db_name}
33669 Database user: ${db_user}
33671 Job Output Email: ${job_email}
33672 Traceback Email: ${dump_email}
33673 SMTP Host Address: ${smtp_host}
33675 Director Port: ${dir_port}
33676 File daemon Port: ${fd_port}
33677 Storage daemon Port: ${sd_port}
33679 Director User: ${dir_user}
33680 Director Group: ${dir_group}
33681 Storage Daemon User: ${sd_user}
33682 Storage DaemonGroup: ${sd_group}
33683 File Daemon User: ${fd_user}
33684 File Daemon Group: ${fd_group}
33686 Large file support: $largefile_support
33687 Bacula conio support: ${got_conio} ${CONS_LIBS}
33688 readline support: ${got_readline} ${PRTREADLINE_SRC}
33689 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33690 TLS support: ${support_tls}
33691 Encryption support: ${support_crypto}
33692 ZLIB support: ${have_zlib}
33693 LZO support: ${have_lzo}
33694 enable-smartalloc: ${support_smartalloc}
33695 enable-lockmgr: ${support_lockmgr}
33696 bat support: ${support_bat}
33697 enable-gnome: ${support_gnome} ${gnome_version}
33698 enable-bwx-console: ${support_wx_console} ${wx_version}
33699 enable-tray-monitor: ${support_tray_monitor}
33700 client-only: ${build_client_only}
33701 build-dird: ${build_dird}
33702 build-stored: ${build_stored}
33703 Plugin support: ${have_plugins}
33704 ACL support: ${have_acl}
33705 XATTR support: ${have_xattr}
33706 Python support: ${support_python} ${PYTHON_LIBS}
33707 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33708 Batch insert enabled: ${batch_insert_db_backends}
33712 # create a small shell script useful for support with
33713 # configure options and config.out info
33714 cat > scripts/bacula_config << EOF
33717 $ $0 $ac_configure_args
33719 cat config.out >> scripts/bacula_config
33720 echo __EOC__ >> scripts/bacula_config
33721 chmod 755 scripts/bacula_config