2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.2.4.
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.4'
571 PACKAGE_STRING='bacula 5.2.4'
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
857 LIBBACFIND_LT_RELEASE
858 LIBBACCATS_LT_RELEASE
903 program_transform_name
914 ac_subst_files='MCOMMON'
916 enable_option_checking
930 with_included_gettext
969 with_mon_dir_password
994 ac_precious_vars='build_alias
1012 # Initialize some variables set by options.
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1026 program_transform_name=s,x,x,
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 includedir='${prefix}/include'
1049 oldincludedir='/usr/include'
1050 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1051 infodir='${datarootdir}/info'
1056 libdir='${exec_prefix}/lib'
1057 localedir='${datarootdir}/locale'
1058 mandir='${datarootdir}/man'
1064 # If the previous option needs an argument, assign it.
1065 if test -n "$ac_prev"; then
1066 eval $ac_prev=\$ac_option
1072 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077 # Accept the important Cygnus configure options, so we can diagnose typos.
1079 case $ac_dashdash$ac_option in
1083 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1085 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1086 bindir=$ac_optarg ;;
1088 -build | --build | --buil | --bui | --bu)
1089 ac_prev=build_alias ;;
1090 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1091 build_alias=$ac_optarg ;;
1093 -cache-file | --cache-file | --cache-fil | --cache-fi \
1094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1095 ac_prev=cache_file ;;
1096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1098 cache_file=$ac_optarg ;;
1100 --config-cache | -C)
1101 cache_file=config.cache ;;
1103 -datadir | --datadir | --datadi | --datad)
1105 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1106 datadir=$ac_optarg ;;
1108 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1109 | --dataroo | --dataro | --datar)
1110 ac_prev=datarootdir ;;
1111 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1112 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1113 datarootdir=$ac_optarg ;;
1115 -disable-* | --disable-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid feature name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "enable_$ac_useropt"
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval enable_$ac_useropt=no ;;
1131 -docdir | --docdir | --docdi | --doc | --do)
1133 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1134 docdir=$ac_optarg ;;
1136 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1138 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1139 dvidir=$ac_optarg ;;
1141 -enable-* | --enable-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid feature name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "enable_$ac_useropt"
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval enable_$ac_useropt=\$ac_optarg ;;
1157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1159 | --exec | --exe | --ex)
1160 ac_prev=exec_prefix ;;
1161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1163 | --exec=* | --exe=* | --ex=*)
1164 exec_prefix=$ac_optarg ;;
1166 -gas | --gas | --ga | --g)
1167 # Obsolete; use --with-gas.
1170 -help | --help | --hel | --he | -h)
1171 ac_init_help=long ;;
1172 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1173 ac_init_help=recursive ;;
1174 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1175 ac_init_help=short ;;
1177 -host | --host | --hos | --ho)
1178 ac_prev=host_alias ;;
1179 -host=* | --host=* | --hos=* | --ho=*)
1180 host_alias=$ac_optarg ;;
1182 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1184 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1186 htmldir=$ac_optarg ;;
1188 -includedir | --includedir | --includedi | --included | --include \
1189 | --includ | --inclu | --incl | --inc)
1190 ac_prev=includedir ;;
1191 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1192 | --includ=* | --inclu=* | --incl=* | --inc=*)
1193 includedir=$ac_optarg ;;
1195 -infodir | --infodir | --infodi | --infod | --info | --inf)
1197 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1198 infodir=$ac_optarg ;;
1200 -libdir | --libdir | --libdi | --libd)
1202 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1203 libdir=$ac_optarg ;;
1205 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1206 | --libexe | --libex | --libe)
1207 ac_prev=libexecdir ;;
1208 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1209 | --libexe=* | --libex=* | --libe=*)
1210 libexecdir=$ac_optarg ;;
1212 -localedir | --localedir | --localedi | --localed | --locale)
1213 ac_prev=localedir ;;
1214 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1215 localedir=$ac_optarg ;;
1217 -localstatedir | --localstatedir | --localstatedi | --localstated \
1218 | --localstate | --localstat | --localsta | --localst | --locals)
1219 ac_prev=localstatedir ;;
1220 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1221 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1222 localstatedir=$ac_optarg ;;
1224 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1226 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1227 mandir=$ac_optarg ;;
1229 -nfp | --nfp | --nf)
1230 # Obsolete; use --without-fp.
1233 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1234 | --no-cr | --no-c | -n)
1237 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1238 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1241 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1242 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1243 | --oldin | --oldi | --old | --ol | --o)
1244 ac_prev=oldincludedir ;;
1245 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1246 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1247 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1248 oldincludedir=$ac_optarg ;;
1250 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1252 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1253 prefix=$ac_optarg ;;
1255 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1256 | --program-pre | --program-pr | --program-p)
1257 ac_prev=program_prefix ;;
1258 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1259 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1260 program_prefix=$ac_optarg ;;
1262 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1263 | --program-suf | --program-su | --program-s)
1264 ac_prev=program_suffix ;;
1265 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1266 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1267 program_suffix=$ac_optarg ;;
1269 -program-transform-name | --program-transform-name \
1270 | --program-transform-nam | --program-transform-na \
1271 | --program-transform-n | --program-transform- \
1272 | --program-transform | --program-transfor \
1273 | --program-transfo | --program-transf \
1274 | --program-trans | --program-tran \
1275 | --progr-tra | --program-tr | --program-t)
1276 ac_prev=program_transform_name ;;
1277 -program-transform-name=* | --program-transform-name=* \
1278 | --program-transform-nam=* | --program-transform-na=* \
1279 | --program-transform-n=* | --program-transform-=* \
1280 | --program-transform=* | --program-transfor=* \
1281 | --program-transfo=* | --program-transf=* \
1282 | --program-trans=* | --program-tran=* \
1283 | --progr-tra=* | --program-tr=* | --program-t=*)
1284 program_transform_name=$ac_optarg ;;
1286 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1288 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1289 pdfdir=$ac_optarg ;;
1291 -psdir | --psdir | --psdi | --psd | --ps)
1293 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297 | -silent | --silent | --silen | --sile | --sil)
1300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1304 sbindir=$ac_optarg ;;
1306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1308 | --sharedst | --shareds | --shared | --share | --shar \
1310 ac_prev=sharedstatedir ;;
1311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1315 sharedstatedir=$ac_optarg ;;
1317 -site | --site | --sit)
1319 -site=* | --site=* | --sit=*)
1322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1325 srcdir=$ac_optarg ;;
1327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1328 | --syscon | --sysco | --sysc | --sys | --sy)
1329 ac_prev=sysconfdir ;;
1330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1332 sysconfdir=$ac_optarg ;;
1334 -target | --target | --targe | --targ | --tar | --ta | --t)
1335 ac_prev=target_alias ;;
1336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1337 target_alias=$ac_optarg ;;
1339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1342 -version | --version | --versio | --versi | --vers | -V)
1343 ac_init_version=: ;;
1346 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error $? "invalid package name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1359 eval with_$ac_useropt=\$ac_optarg ;;
1361 -without-* | --without-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365 as_fn_error $? "invalid package name: $ac_useropt"
1366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1375 eval with_$ac_useropt=no ;;
1378 # Obsolete; use --with-x.
1381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1382 | --x-incl | --x-inc | --x-in | --x-i)
1383 ac_prev=x_includes ;;
1384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1386 x_includes=$ac_optarg ;;
1388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1390 ac_prev=x_libraries ;;
1391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1393 x_libraries=$ac_optarg ;;
1395 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1396 Try \`$0 --help' for more information"
1400 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401 # Reject names that are not valid shell variable names.
1402 case $ac_envvar in #(
1403 '' | [0-9]* | *[!_$as_cr_alnum]* )
1404 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1406 eval $ac_envvar=\$ac_optarg
1407 export $ac_envvar ;;
1410 # FIXME: should be removed in autoconf 3.0.
1411 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1412 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1414 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1420 if test -n "$ac_prev"; then
1421 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1422 as_fn_error $? "missing argument to $ac_option"
1425 if test -n "$ac_unrecognized_opts"; then
1426 case $enable_option_checking in
1428 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1429 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433 # Check all directory arguments for consistency.
1434 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435 datadir sysconfdir sharedstatedir localstatedir includedir \
1436 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437 libdir localedir mandir
1439 eval ac_val=\$$ac_var
1440 # Remove trailing slashes.
1443 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1444 eval $ac_var=\$ac_val;;
1446 # Be sure to have absolute directory names.
1448 [\\/$]* | ?:[\\/]* ) continue;;
1449 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1451 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1454 # There might be people who depend on the old broken behavior: `$host'
1455 # used to hold the argument of --host etc.
1456 # FIXME: To remove some day.
1459 target=$target_alias
1461 # FIXME: To remove some day.
1462 if test "x$host_alias" != x; then
1463 if test "x$build_alias" = x; then
1464 cross_compiling=maybe
1465 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1466 If a cross compiler is detected then cross compile mode will be used" >&2
1467 elif test "x$build_alias" != "x$host_alias"; then
1473 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1475 test "$silent" = yes && exec 6>/dev/null
1478 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1479 ac_ls_di=`ls -di .` &&
1480 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1481 as_fn_error $? "working directory cannot be determined"
1482 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483 as_fn_error $? "pwd does not report name of working directory"
1486 # Find the source files, if location was not specified.
1487 if test -z "$srcdir"; then
1488 ac_srcdir_defaulted=yes
1489 # Try the directory containing this script, then the parent directory.
1490 ac_confdir=`$as_dirname -- "$as_myself" ||
1491 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1492 X"$as_myself" : 'X\(//\)[^/]' \| \
1493 X"$as_myself" : 'X\(//\)$' \| \
1494 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1495 $as_echo X"$as_myself" |
1496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514 if test ! -r "$srcdir/$ac_unique_file"; then
1518 ac_srcdir_defaulted=no
1520 if test ! -r "$srcdir/$ac_unique_file"; then
1521 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1522 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1526 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1528 # When building in place, set srcdir=.
1529 if test "$ac_abs_confdir" = "$ac_pwd"; then
1532 # Remove unnecessary trailing slashes from srcdir.
1533 # Double slashes in file names in object file debugging info
1534 # mess up M-x gdb in Emacs.
1536 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1538 for ac_var in $ac_precious_vars; do
1539 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_env_${ac_var}_value=\$${ac_var}
1541 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1542 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 # Report the --help message.
1548 if test "$ac_init_help" = "long"; then
1549 # Omit some internal or obsolete options to make the list less imposing.
1550 # This message is too long to be a string in the A/UX 3.1 sh.
1552 \`configure' configures bacula 5.2.4 to adapt to many kinds of systems.
1554 Usage: $0 [OPTION]... [VAR=VALUE]...
1556 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1557 VAR=VALUE. See below for descriptions of some of the useful variables.
1559 Defaults for the options are specified in brackets.
1562 -h, --help display this help and exit
1563 --help=short display options specific to this package
1564 --help=recursive display the short help of all the included packages
1565 -V, --version display version information and exit
1566 -q, --quiet, --silent do not print \`checking ...' messages
1567 --cache-file=FILE cache test results in FILE [disabled]
1568 -C, --config-cache alias for \`--cache-file=config.cache'
1569 -n, --no-create do not create output files
1570 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1572 Installation directories:
1573 --prefix=PREFIX install architecture-independent files in PREFIX
1574 [$ac_default_prefix]
1575 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1578 By default, \`make install' will install all the files in
1579 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1580 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1581 for instance \`--prefix=\$HOME'.
1583 For better control, use the options below.
1585 Fine tuning of the installation directories:
1586 --bindir=DIR user executables [EPREFIX/bin]
1587 --sbindir=DIR system admin executables [EPREFIX/sbin]
1588 --libexecdir=DIR program executables [EPREFIX/libexec]
1589 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1590 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1591 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1592 --libdir=DIR object code libraries [EPREFIX/lib]
1593 --includedir=DIR C header files [PREFIX/include]
1594 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1595 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1596 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1597 --infodir=DIR info documentation [DATAROOTDIR/info]
1598 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1599 --mandir=DIR man documentation [DATAROOTDIR/man]
1600 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1601 --htmldir=DIR html documentation [DOCDIR]
1602 --dvidir=DIR dvi documentation [DOCDIR]
1603 --pdfdir=DIR pdf documentation [DOCDIR]
1604 --psdir=DIR ps documentation [DOCDIR]
1610 --x-includes=DIR X include files are in DIR
1611 --x-libraries=DIR X library files are in DIR
1614 --build=BUILD configure for building on BUILD [guessed]
1615 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1619 if test -n "$ac_init_help"; then
1620 case $ac_init_help in
1621 short | recursive ) echo "Configuration of bacula 5.2.4:";;
1626 --disable-option-checking ignore unrecognized --enable/--with options
1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1629 --enable-libtool enable building using GNU libtool [default=yes]
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-static[=PKGS] build static libraries [default=no]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-libtool-lock avoid locking (might break parallel builds)
1635 --enable-includes enable installing of include files [default=no]
1636 --disable-nls do not use Native Language Support
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-gnome enable build of bgnome-console GUI [default=no]
1639 --enable-bat enable build of bat Qt4 GUI [default=no]
1640 --enable-bwx-console enable build of wxWidgets console [default=no]
1641 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1643 --enable-smartalloc enable smartalloc debugging support [default=no]
1644 --enable-lockmgr enable lock manager support [default=no]
1645 --enable-static-tools enable static tape tools [default=no]
1646 --enable-static-fd enable static File daemon [default=no]
1647 --enable-static-sd enable static Storage daemon [default=no]
1648 --enable-static-dir enable static Director [default=no]
1649 --enable-static-cons enable static Console [default=no]
1650 --enable-client-only build client (File daemon) only [default=no]
1651 --enable-build-dird enable building of dird (Director) [default=yes]
1652 --enable-build-stored enable building of stored (Storage daemon)
1654 --disable-conio disable conio support [default=no]
1655 --enable-ipv6 enable ipv6 support [default=yes]
1656 --disable-readline disable readline support [default=yes]
1657 --enable-batch-insert enable the DB batch insert code [default=yes]
1658 --disable-largefile omit support for large files
1659 --disable-acl disable acl support [default=auto]
1660 --disable-xattr disable xattr support [default=auto]
1663 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1664 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1665 --with-pic try to use only PIC/non-PIC objects [default=use
1667 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1668 --with-sysroot=DIR Search for dependent libraries within DIR
1669 (or the compiler's sysroot if not specified).
1670 --with-gnu-ld assume the C compiler uses GNU ld default=no
1671 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1672 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1673 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1674 --without-libintl-prefix don't search for libintl in includedir and libdir
1675 --with-included-gettext use the GNU gettext library included here
1676 --with-readline[=DIR] specify readline library directory
1677 --with-python[=DIR] Include Python support. DIR is the Python base
1678 install directory, default is to search through a
1679 number of common places for the Python files.
1680 --with-tcp-wrappers[=DIR]
1681 enable tcpwrappers support
1682 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1683 --with-working-dir=PATH specify path of Bacula working directory
1684 --with-archivedir=PATH specify path of SD archive directory
1685 --with-basename=RESNAME specify base resource name for daemons
1686 --with-hostname=RESNAME specify host name for daemons
1687 --with-scriptdir=PATH specify path of Bacula scripts directory
1688 --with-bsrdir=PATH specify path of Bacula bsrs directory
1689 --with-logdir=PATH specify path of Bacula logs directory
1690 --with-plugindir=PATH specify path of Bacula plugins directory
1691 --with-dump-email=EMAIL dump email address
1692 --with-job-email=EMAIL job output email address
1693 --with-smtp-host=HOST SMTP mail host address
1694 --with-pid-dir=PATH specify location of Bacula pid files
1695 --with-subsys-dir=PATH specify location of Bacula subsys file
1696 --with-baseport=PORT specify base port address for daemons
1697 --with-dir-password=PASSWORD
1698 specify Director's password
1699 --with-fd-password=PASSWORD
1700 specify Client's password
1701 --with-sd-password=PASSWORD
1702 specify Storage daemon's password
1703 --with-mon-dir-password=PASSWORD
1704 specify Director's password used by the monitor
1705 --with-mon-fd-password=PASSWORD
1706 specify Client's password used by the monitor
1707 --with-mon-sd-password=PASSWORD
1708 specify Storage daemon's password used by the
1710 --with-db-name=DBNAME specify database name [default=bacula]
1711 --with-db-user=UNAME specify database user [default=bacula]
1712 --with-db-password=PWD specify database password [default=*none*]
1713 --with-db-port=DBPORT specify a database port [default=null]
1714 --with-dir-user=USER specify user for Director daemon
1715 --with-dir-group=GROUP specify group for Director daemon
1716 --with-sd-user=USER specify user for Storage daemon
1717 --with-sd-group=GROUP specify group for Storage daemon
1718 --with-fd-user=USER specify user for File daemon
1719 --with-fd-group=GROUP specify group for File daemon
1720 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1721 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1722 base install directory, [default=/usr/local/pgsql]
1723 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1724 directory, default is to search through a number of
1725 common places for the MySQL files.
1726 --with-embedded-mysql[=DIR]
1727 Include MySQL support. DIR is the MySQL base install
1728 directory, default is to search through a number of
1729 common places for the MySQL files.
1730 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1731 install directory, default is to search through a
1732 number of common places for the SQLite3 files.
1733 --with-x use the X Window System
1734 --with-systemd[=UNITDIR]
1735 Include systemd support. UNITDIR is where systemd
1736 system .service files are located, default is to ask
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1750 WXCONFIG wx-config command. On some systems, you must set it to
1751 wx-config-2.6 to use wxWidgets 2.6.
1752 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1753 CXXCPP C++ preprocessor
1754 XMKMF Path to xmkmf, Makefile generator for X Window System
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1759 Report bugs to the package provider.
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1789 .) # We are building in place.
1791 ac_top_srcdir=$ac_top_builddir_sub
1792 ac_abs_top_srcdir=$ac_pwd ;;
1793 [\\/]* | ?:[\\/]* ) # Absolute name.
1794 ac_srcdir=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir=$srcdir
1796 ac_abs_top_srcdir=$srcdir ;;
1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804 cd "$ac_dir" || { ac_status=$?; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1815 cd "$ac_pwd" || { ac_status=$?; break; }
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1822 bacula configure 5.2.4
1823 generated by GNU Autoconf 2.68
1825 Copyright (C) 2010 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_compile
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1910 } # ac_fn_cxx_try_compile
1912 # ac_fn_c_try_cpp LINENO
1913 # ----------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_cpp conftest.$ac_ext"
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } > conftest.i && {
1934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1949 # ac_fn_c_try_link LINENO
1950 # -----------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 rm -f conftest.$ac_objext conftest$ac_exeext
1956 if { { ac_try="$ac_link"
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_link") 2>conftest.err
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && {
1972 test -z "$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1974 } && test -s conftest$ac_exeext && {
1975 test "$cross_compiling" = yes ||
1976 $as_test_x conftest$ac_exeext
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1985 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1986 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1987 # interfere with the next link command; also delete a directory that is
1988 # left behind by Apple's compiler. We do this before executing the actions.
1989 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 as_fn_set_status $ac_retval
1993 } # ac_fn_c_try_link
1995 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists and can be compiled using the include files in
1998 # INCLUDES, setting the cache variable VAR accordingly.
1999 ac_fn_c_check_header_compile ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2012 if ac_fn_c_try_compile "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_header_compile
2026 # ac_fn_c_try_run LINENO
2027 # ----------------------
2028 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2029 # that executables *can* be run.
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if { { ac_try="$ac_link"
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_link") 2>&5
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2044 { { case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_try") 2>&5
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; }; }; then :
2056 $as_echo "$as_me: program exited with status $ac_status" >&5
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2060 ac_retval=$ac_status
2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 as_fn_set_status $ac_retval
2068 # ac_fn_c_check_func LINENO FUNC VAR
2069 # ----------------------------------
2070 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2071 ac_fn_c_check_func ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077 $as_echo_n "(cached) " >&6
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2083 #define $2 innocuous_$2
2085 /* System header to define __stub macros and hopefully few prototypes,
2086 which can conflict with char $2 (); below.
2087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088 <limits.h> exists even on freestanding compilers. */
2091 # include <limits.h>
2093 # include <assert.h>
2098 /* Override any GCC internal prototype to avoid an error.
2099 Use char because int might match the return type of a GCC
2100 builtin and then its argument prototype would still apply. */
2105 /* The GNU C library defines this for functions which it implements
2106 to always fail with ENOSYS. Some functions are actually named
2107 something starting with __ and the normal name is an alias. */
2108 #if defined __stub_$2 || defined __stub___$2
2120 if ac_fn_c_try_link "$LINENO"; then :
2125 rm -f core conftest.err conftest.$ac_objext \
2126 conftest$ac_exeext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_func
2135 # ac_fn_cxx_try_cpp LINENO
2136 # ------------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_cxx_try_cpp ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if { { ac_try="$ac_cpp conftest.$ac_ext"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } > conftest.i && {
2157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2162 $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2170 } # ac_fn_cxx_try_cpp
2172 # ac_fn_cxx_try_link LINENO
2173 # -------------------------
2174 # Try to link conftest.$ac_ext, and return whether this succeeded.
2175 ac_fn_cxx_try_link ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 rm -f conftest.$ac_objext conftest$ac_exeext
2179 if { { ac_try="$ac_link"
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>conftest.err
2188 if test -s conftest.err; then
2189 grep -v '^ *+' conftest.err >conftest.er1
2190 cat conftest.er1 >&5
2191 mv -f conftest.er1 conftest.err
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && {
2195 test -z "$ac_cxx_werror_flag" ||
2196 test ! -s conftest.err
2197 } && test -s conftest$ac_exeext && {
2198 test "$cross_compiling" = yes ||
2199 $as_test_x conftest$ac_exeext
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2208 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2209 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2210 # interfere with the next link command; also delete a directory that is
2211 # left behind by Apple's compiler. We do this before executing the actions.
2212 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 as_fn_set_status $ac_retval
2216 } # ac_fn_cxx_try_link
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2256 if ac_fn_c_try_compile "$LINENO"; then :
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_type
2272 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2273 # -------------------------------------------------------
2274 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2275 # the include files in INCLUDES and setting the cache variable VAR
2277 ac_fn_c_check_header_mongrel ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 if eval \${$3+:} false; then :
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval \${$3+:} false; then :
2284 $as_echo_n "(cached) " >&6
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2290 # Is the header compilable?
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2292 $as_echo_n "checking $2 usability... " >&6; }
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 ac_header_compiler=yes
2301 ac_header_compiler=no
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2305 $as_echo "$ac_header_compiler" >&6; }
2307 # Is the header present?
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2309 $as_echo_n "checking $2 presence... " >&6; }
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2314 if ac_fn_c_try_cpp "$LINENO"; then :
2315 ac_header_preproc=yes
2317 ac_header_preproc=no
2319 rm -f conftest.err conftest.i conftest.$ac_ext
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2321 $as_echo "$ac_header_preproc" >&6; }
2323 # So? What about this header?
2324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2327 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2329 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2333 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2335 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2337 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2339 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2341 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347 $as_echo_n "(cached) " >&6
2349 eval "$3=\$ac_header_compiler"
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 } # ac_fn_c_check_header_mongrel
2359 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2360 # --------------------------------------------
2361 # Tries to find the compile-time value of EXPR in a program that includes
2362 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2364 ac_fn_c_compute_int ()
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 if test "$cross_compiling" = yes; then
2368 # Depending upon the size, compute the lo and hi bounds.
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2375 static int test_array [1 - 2 * !(($2) >= 0)];
2382 if ac_fn_c_try_compile "$LINENO"; then :
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399 ac_hi=$ac_mid; break
2401 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2402 if test $ac_lo -le $ac_mid; then
2406 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2417 static int test_array [1 - 2 * !(($2) < 0)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2433 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 ac_lo=$ac_mid; break
2443 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2444 if test $ac_mid -le $ac_hi; then
2448 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 # Binary search between lo and hi bounds.
2459 while test "x$ac_lo" != "x$ac_hi"; do
2460 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2467 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2474 if ac_fn_c_try_compile "$LINENO"; then :
2477 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2489 static long int longval () { return $2; }
2490 static unsigned long int ulongval () { return $2; }
2497 FILE *f = fopen ("conftest.val", "w");
2502 long int i = longval ();
2505 fprintf (f, "%ld", i);
2509 unsigned long int i = ulongval ();
2512 fprintf (f, "%lu", i);
2514 /* Do not output a trailing newline, as this causes \r\n confusion
2515 on some platforms. */
2516 return ferror (f) || fclose (f) != 0;
2522 if ac_fn_c_try_run "$LINENO"; then :
2523 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2528 conftest.$ac_objext conftest.beam conftest.$ac_ext
2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 as_fn_set_status $ac_retval
2535 } # ac_fn_c_compute_int
2537 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2538 # ----------------------------------------------------
2539 # Tries to find if the field MEMBER exists in type AGGR, after including
2540 # INCLUDES, setting cache variable VAR accordingly.
2541 ac_fn_c_check_member ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2545 $as_echo_n "checking for $2.$3... " >&6; }
2546 if eval \${$4+:} false; then :
2547 $as_echo_n "(cached) " >&6
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2562 if ac_fn_c_try_compile "$LINENO"; then :
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2572 if (sizeof ac_aggr.$3)
2578 if ac_fn_c_try_compile "$LINENO"; then :
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2592 } # ac_fn_c_check_member
2594 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2595 # ---------------------------------------------
2596 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2598 ac_fn_c_check_decl ()
2600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601 as_decl_name=`echo $2|sed 's/ *(.*//'`
2602 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2604 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2605 if eval \${$3+:} false; then :
2606 $as_echo_n "(cached) " >&6
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2614 #ifndef $as_decl_name
2616 (void) $as_decl_use;
2618 (void) $as_decl_name;
2626 if ac_fn_c_try_compile "$LINENO"; then :
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635 $as_echo "$ac_res" >&6; }
2636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638 } # ac_fn_c_check_decl
2640 # ac_fn_cxx_try_run LINENO
2641 # ------------------------
2642 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2643 # that executables *can* be run.
2644 ac_fn_cxx_try_run ()
2646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647 if { { ac_try="$ac_link"
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2653 $as_echo "$ac_try_echo"; } >&5
2654 (eval "$ac_link") 2>&5
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2658 { { case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663 $as_echo "$ac_try_echo"; } >&5
2664 (eval "$ac_try") 2>&5
2666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667 test $ac_status = 0; }; }; then :
2670 $as_echo "$as_me: program exited with status $ac_status" >&5
2671 $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 ac_retval=$ac_status
2676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 as_fn_set_status $ac_retval
2680 } # ac_fn_cxx_try_run
2682 # ac_fn_cxx_check_func LINENO FUNC VAR
2683 # ------------------------------------
2684 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2685 ac_fn_cxx_check_func ()
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2689 $as_echo_n "checking for $2... " >&6; }
2690 if eval \${$3+:} false; then :
2691 $as_echo_n "(cached) " >&6
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2695 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2697 #define $2 innocuous_$2
2699 /* System header to define __stub macros and hopefully few prototypes,
2700 which can conflict with char $2 (); below.
2701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2702 <limits.h> exists even on freestanding compilers. */
2705 # include <limits.h>
2707 # include <assert.h>
2712 /* Override any GCC internal prototype to avoid an error.
2713 Use char because int might match the return type of a GCC
2714 builtin and then its argument prototype would still apply. */
2719 /* The GNU C library defines this for functions which it implements
2720 to always fail with ENOSYS. Some functions are actually named
2721 something starting with __ and the normal name is an alias. */
2722 #if defined __stub_$2 || defined __stub___$2
2734 if ac_fn_cxx_try_link "$LINENO"; then :
2739 rm -f core conftest.err conftest.$ac_objext \
2740 conftest$ac_exeext conftest.$ac_ext
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744 $as_echo "$ac_res" >&6; }
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2747 } # ac_fn_cxx_check_func
2748 cat >config.log <<_ACEOF
2749 This file contains any messages produced by compilers while
2750 running configure, to aid debugging if configure makes a mistake.
2752 It was created by bacula $as_me 5.2.4, which was
2753 generated by GNU Autoconf 2.68. Invocation command line was
2765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 $as_echo "PATH: $as_dir"
2805 # Keep a trace of the command line.
2806 # Strip out --no-create and --no-recursion so they do not pile up.
2807 # Strip out --silent because we don't want to record it for future runs.
2808 # Also quote any args containing shell meta-characters.
2809 # Make two passes to allow for proper duplicate-argument suppression.
2813 ac_must_keep_next=false
2819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821 | -silent | --silent | --silen | --sile | --sil)
2824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2829 as_fn_append ac_configure_args1 " '$ac_arg'"
2830 if test $ac_must_keep_next = true; then
2831 ac_must_keep_next=false # Got value, back to normal.
2834 *=* | --config-cache | -C | -disable-* | --disable-* \
2835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837 | -with-* | --with-* | -without-* | --without-* | --x)
2838 case "$ac_configure_args0 " in
2839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2842 -* ) ac_must_keep_next=true ;;
2845 as_fn_append ac_configure_args " '$ac_arg'"
2850 { ac_configure_args0=; unset ac_configure_args0;}
2851 { ac_configure_args1=; unset ac_configure_args1;}
2853 # When interrupted or exit'd, cleanup temporary files, and complete
2854 # config.log. We remove comments because anyway the quotes in there
2855 # would cause problems or look ugly.
2856 # WARNING: Use '\'' to represent an apostrophe within the trap.
2857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858 trap 'exit_status=$?
2859 # Save into config.log some information that might help in debugging.
2863 $as_echo "## ---------------- ##
2864 ## Cache variables. ##
2865 ## ---------------- ##"
2867 # The following way of writing the cache mishandles newlines in values,
2869 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2870 eval ac_val=\$$ac_var
2874 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2878 _ | IFS | as_nl) ;; #(
2879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2880 *) { eval $ac_var=; unset $ac_var;} ;;
2885 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2886 *${as_nl}ac_space=\ *)
2888 "s/'\''/'\''\\\\'\'''\''/g;
2889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2899 $as_echo "## ----------------- ##
2900 ## Output variables. ##
2901 ## ----------------- ##"
2903 for ac_var in $ac_subst_vars
2905 eval ac_val=\$$ac_var
2907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909 $as_echo "$ac_var='\''$ac_val'\''"
2913 if test -n "$ac_subst_files"; then
2914 $as_echo "## ------------------- ##
2915 ## File substitutions. ##
2916 ## ------------------- ##"
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2924 $as_echo "$ac_var='\''$ac_val'\''"
2929 if test -s confdefs.h; then
2930 $as_echo "## ----------- ##
2937 test "$ac_signal" != 0 &&
2938 $as_echo "$as_me: caught signal $ac_signal"
2939 $as_echo "$as_me: exit $exit_status"
2941 rm -f core *.core core.conftest.* &&
2942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2945 for ac_signal in 1 2 13 15; do
2946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2951 rm -f -r conftest* confdefs.h
2953 $as_echo "/* confdefs.h */" > confdefs.h
2955 # Predefined preprocessor variables.
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_NAME "$PACKAGE_NAME"
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_STRING "$PACKAGE_STRING"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_URL "$PACKAGE_URL"
2982 # Let the site file select an alternate cache file if it wants to.
2983 # Prefer an explicitly selected file to automatically selected ones.
2986 if test -n "$CONFIG_SITE"; then
2987 # We do not want a PATH search for config.site.
2988 case $CONFIG_SITE in #((
2989 -*) ac_site_file1=./$CONFIG_SITE;;
2990 */*) ac_site_file1=$CONFIG_SITE;;
2991 *) ac_site_file1=./$CONFIG_SITE;;
2993 elif test "x$prefix" != xNONE; then
2994 ac_site_file1=$prefix/share/config.site
2995 ac_site_file2=$prefix/etc/config.site
2997 ac_site_file1=$ac_default_prefix/share/config.site
2998 ac_site_file2=$ac_default_prefix/etc/config.site
3000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3002 test "x$ac_site_file" = xNONE && continue
3003 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3006 sed 's/^/| /' "$ac_site_file" >&5
3008 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $? "failed to load site script $ac_site_file
3011 See \`config.log' for more details" "$LINENO" 5; }
3015 if test -r "$cache_file"; then
3016 # Some versions of bash will fail to source /dev/null (special files
3017 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3018 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3020 $as_echo "$as_me: loading cache $cache_file" >&6;}
3022 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3023 *) . "./$cache_file";;
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3028 $as_echo "$as_me: creating cache $cache_file" >&6;}
3032 as_fn_append ac_header_list " stdlib.h"
3033 as_fn_append ac_header_list " unistd.h"
3034 as_fn_append ac_header_list " sys/param.h"
3035 # Check that the precious variables saved in the cache have kept the same
3037 ac_cache_corrupted=false
3038 for ac_var in $ac_precious_vars; do
3039 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3040 eval ac_new_set=\$ac_env_${ac_var}_set
3041 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3042 eval ac_new_val=\$ac_env_${ac_var}_value
3043 case $ac_old_set,$ac_new_set in
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3046 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3047 ac_cache_corrupted=: ;;
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3050 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3051 ac_cache_corrupted=: ;;
3054 if test "x$ac_old_val" != "x$ac_new_val"; then
3055 # differences in whitespace do not lead to failure.
3056 ac_old_val_w=`echo x $ac_old_val`
3057 ac_new_val_w=`echo x $ac_new_val`
3058 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3060 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3061 ac_cache_corrupted=:
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3064 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3065 eval $ac_var=\$ac_old_val
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3068 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3070 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3073 # Pass precious variables to config.status.
3074 if test "$ac_new_set" = set; then
3076 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3077 *) ac_arg=$ac_var=$ac_new_val ;;
3079 case " $ac_configure_args " in
3080 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3081 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3085 if $ac_cache_corrupted; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3089 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3090 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3092 ## -------------------- ##
3093 ## Main body of script. ##
3094 ## -------------------- ##
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3113 if test -f "$ac_dir/install-sh"; then
3115 ac_install_sh="$ac_aux_dir/install-sh -c"
3117 elif test -f "$ac_dir/install.sh"; then
3119 ac_install_sh="$ac_aux_dir/install.sh -c"
3121 elif test -f "$ac_dir/shtool"; then
3123 ac_install_sh="$ac_aux_dir/shtool install -c"
3127 if test -z "$ac_aux_dir"; then
3128 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3131 # These three variables are undocumented and unsupported,
3132 # and are intended to be withdrawn in a future Autoconf release.
3133 # They can cause serious problems if a builder's source tree is in a directory
3134 # whose full name contains unusual characters.
3135 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3136 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3137 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3140 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3143 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3144 WIN32MAINDIR=${BUILD_DIR}
3145 WIN32TOPDIR=${TOP_DIR}
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_path_TRUEPRG+:} false; then :
3157 $as_echo_n "(cached) " >&6
3161 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 TRUEPRG=$ac_cv_path_TRUEPRG
3183 if test -n "$TRUEPRG"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3185 $as_echo "$TRUEPRG" >&6; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$TRUEPRG" && break
3194 test -n "$TRUEPRG" || TRUEPRG=":"
3196 for ac_prog in false
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_path_FALSEPRG+:} false; then :
3203 $as_echo_n "(cached) " >&6
3207 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 FALSEPRG=$ac_cv_path_FALSEPRG
3229 if test -n "$FALSEPRG"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3231 $as_echo "$FALSEPRG" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$FALSEPRG" && break
3240 test -n "$FALSEPRG" || FALSEPRG=":"
3245 if test "x$BACULA" != x; then
3246 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3248 BACULA=${BACULA:-Bacula}
3249 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3250 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3251 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3252 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3254 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3255 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3259 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3260 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3263 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3267 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3270 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3275 echo "configuring for ${BACULA} $VERSION ($DATE)"
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 if test -n "$ac_tool_prefix"; then
3285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3323 if test -z "$ac_cv_prog_CC"; then
3325 # Extract the first word of "gcc", so it can be a program name with args.
3326 set dummy gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_ac_ct_CC="gcc"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3361 if test "x$ac_ct_CC" = x; then
3364 case $cross_compiling:$ac_tool_warned in
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned=yes ;;
3376 if test -z "$CC"; then
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}cc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_CC+:} false; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CC="${ac_tool_prefix}cc"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3417 if test -z "$CC"; then
3418 # Extract the first word of "cc", so it can be a program name with args.
3419 set dummy cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3437 ac_prog_rejected=yes
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test $ac_prog_rejected = yes; then
3449 # We found a bogon in the path, so make sure we never use it.
3450 set dummy $ac_cv_prog_CC
3452 if test $# != 0; then
3453 # We chose a different compiler from the bogus one.
3454 # However, it has the same basename, so the bogon will be chosen
3455 # first if we set CC to just the basename; use the full file name.
3457 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3473 if test -z "$CC"; then
3474 if test -n "$ac_tool_prefix"; then
3475 for ac_prog in cl.exe
3477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 test -n "$CC" && break
3517 if test -z "$CC"; then
3519 for ac_prog in cl.exe
3521 # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3526 $as_echo_n "(cached) " >&6
3528 if test -n "$ac_ct_CC"; then
3529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_ac_ct_CC="$ac_prog"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3549 if test -n "$ac_ct_CC"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3551 $as_echo "$ac_ct_CC" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3558 test -n "$ac_ct_CC" && break
3561 if test "x$ac_ct_CC" = x; then
3564 case $cross_compiling:$ac_tool_warned in
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3568 ac_tool_warned=yes ;;
3577 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error $? "no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details" "$LINENO" 5; }
3582 # Provide some information about the compiler.
3583 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3586 for ac_option in --version -v -V -qversion; do
3587 { { ac_try="$ac_compiler $ac_option >&5"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3596 if test -s conftest.err; then
3598 ... rest of stderr output deleted ...
3599 10q' conftest.err >conftest.er1
3600 cat conftest.er1 >&5
3602 rm -f conftest.er1 conftest.err
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3618 ac_clean_files_save=$ac_clean_files
3619 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3620 # Try to create an executable without -o first, disregard a.out.
3621 # It will help us diagnose broken compilers, and finding out an intuition
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3624 $as_echo_n "checking whether the C compiler works... " >&6; }
3625 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3627 # The possible output files:
3628 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3631 for ac_file in $ac_files
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3640 if { { ac_try="$ac_link_default"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link_default") 2>&5
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }; then :
3651 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3652 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3653 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3654 # so that the user can short-circuit this test for compilers unknown to
3656 for ac_file in $ac_files ''
3658 test -f "$ac_file" || continue
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3663 # We found the default executable, but exeext='' is most
3667 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3669 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 # We set ac_cv_exeext here because the later test for it is not
3672 # safe: cross compilers may not add the suffix if given an `-o'
3673 # argument, so we may need to know it at that point already.
3674 # Even if this section looks crufty: it has the advantage of
3681 test "$ac_cv_exeext" = no && ac_cv_exeext=
3686 if test -z "$ac_file"; then :
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error 77 "C compiler cannot create executables
3695 See \`config.log' for more details" "$LINENO" 5; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698 $as_echo "yes" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3701 $as_echo_n "checking for C compiler default output file name... " >&6; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3703 $as_echo "$ac_file" >&6; }
3704 ac_exeext=$ac_cv_exeext
3706 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3707 ac_clean_files=$ac_clean_files_save
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3709 $as_echo_n "checking for suffix of executables... " >&6; }
3710 if { { ac_try="$ac_link"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_link") 2>&5
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3722 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3723 # work properly (i.e., refer to `conftest.exe'), while it won't with
3725 for ac_file in conftest.exe conftest conftest.*; do
3726 test -f "$ac_file" || continue
3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3729 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3738 See \`config.log' for more details" "$LINENO" 5; }
3740 rm -f conftest conftest$ac_cv_exeext
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3742 $as_echo "$ac_cv_exeext" >&6; }
3744 rm -f conftest.$ac_ext
3745 EXEEXT=$ac_cv_exeext
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3753 FILE *f = fopen ("conftest.out", "w");
3754 return ferror (f) || fclose (f) != 0;
3760 ac_clean_files="$ac_clean_files conftest.out"
3761 # Check that the compiler produces executables we can run. If not, either
3762 # the compiler is broken, or we cross compile.
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3764 $as_echo_n "checking whether we are cross compiling... " >&6; }
3765 if test "$cross_compiling" != yes; then
3766 { { ac_try="$ac_link"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772 $as_echo "$ac_try_echo"; } >&5
3773 (eval "$ac_link") 2>&5
3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }
3777 if { ac_try='./conftest$ac_cv_exeext'
3778 { { case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_try") 2>&5
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; }; then
3790 if test "$cross_compiling" = maybe; then
3793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error $? "cannot run C compiled programs.
3796 If you meant to cross compile, use \`--host'.
3797 See \`config.log' for more details" "$LINENO" 5; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3802 $as_echo "$cross_compiling" >&6; }
3804 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3805 ac_clean_files=$ac_clean_files_save
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3807 $as_echo_n "checking for suffix of object files... " >&6; }
3808 if ${ac_cv_objext+:} false; then :
3809 $as_echo_n "(cached) " >&6
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3822 rm -f conftest.o conftest.obj
3823 if { { ac_try="$ac_compile"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_compile") 2>&5
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; then :
3834 for ac_file in conftest.o conftest.obj conftest.*; do
3835 test -f "$ac_file" || continue;
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3838 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3843 $as_echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot compute suffix of object files: cannot compile
3849 See \`config.log' for more details" "$LINENO" 5; }
3851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3854 $as_echo "$ac_cv_objext" >&6; }
3855 OBJEXT=$ac_cv_objext
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3858 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3859 if ${ac_cv_c_compiler_gnu+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3876 if ac_fn_c_try_compile "$LINENO"; then :
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3886 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3887 if test $ac_compiler_gnu = yes; then
3892 ac_test_CFLAGS=${CFLAGS+set}
3893 ac_save_CFLAGS=$CFLAGS
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3895 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3896 if ${ac_cv_prog_cc_g+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 ac_save_c_werror_flag=$ac_c_werror_flag
3900 ac_c_werror_flag=yes
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3914 if ac_fn_c_try_compile "$LINENO"; then :
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3929 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_c_werror_flag=$ac_save_c_werror_flag
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3945 if ac_fn_c_try_compile "$LINENO"; then :
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 ac_c_werror_flag=$ac_save_c_werror_flag
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3956 $as_echo "$ac_cv_prog_cc_g" >&6; }
3957 if test "$ac_test_CFLAGS" = set; then
3958 CFLAGS=$ac_save_CFLAGS
3959 elif test $ac_cv_prog_cc_g = yes; then
3960 if test "$GCC" = yes; then
3966 if test "$GCC" = yes; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3973 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3974 if ${ac_cv_prog_cc_c89+:} false; then :
3975 $as_echo_n "(cached) " >&6
3977 ac_cv_prog_cc_c89=no
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3983 #include <sys/types.h>
3984 #include <sys/stat.h>
3985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3986 struct buf { int x; };
3987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3988 static char *e (p, i)
3994 static char *f (char * (*g) (char **, int), char **p, ...)
3999 s = g (p, va_arg (v,int));
4004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4005 function prototypes and stuff, but not '\xHH' hex character constants.
4006 These don't provoke an error unfortunately, instead are silently treated
4007 as 'x'. The following induces an error, until -std is added to get
4008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4009 array size at least. It's necessary to write '\x00'==0 to get something
4010 that's true only with -std. */
4011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4014 inside strings and character constants. */
4016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4018 int test (int i, double x);
4019 struct s1 {int (*f) (int a);};
4020 struct s2 {int (*f) (double a);};
4021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4027 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4035 CC="$ac_save_CC $ac_arg"
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_prog_cc_c89=$ac_arg
4039 rm -f core conftest.err conftest.$ac_objext
4040 test "x$ac_cv_prog_cc_c89" != "xno" && break
4042 rm -f conftest.$ac_ext
4047 case "x$ac_cv_prog_cc_c89" in
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4050 $as_echo "none needed" >&6; } ;;
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4053 $as_echo "unsupported" >&6; } ;;
4055 CC="$CC $ac_cv_prog_cc_c89"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4057 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4059 if test "x$ac_cv_prog_cc_c89" != xno; then :
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 ac_cpp='$CXXCPP $CPPFLAGS'
4071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4074 if test -z "$CXX"; then
4075 if test -n "$CCC"; then
4078 if test -n "$ac_tool_prefix"; then
4079 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_CXX+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -n "$CXX"; then
4089 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 if test -n "$CXX"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4111 $as_echo "$CXX" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4118 test -n "$CXX" && break
4121 if test -z "$CXX"; then
4123 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4125 # Extract the first word of "$ac_prog", so it can be a program name with args.
4126 set dummy $ac_prog; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4130 $as_echo_n "(cached) " >&6
4132 if test -n "$ac_ct_CXX"; then
4133 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_prog_ac_ct_CXX="$ac_prog"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4153 if test -n "$ac_ct_CXX"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4155 $as_echo "$ac_ct_CXX" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4162 test -n "$ac_ct_CXX" && break
4165 if test "x$ac_ct_CXX" = x; then
4168 case $cross_compiling:$ac_tool_warned in
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4180 # Provide some information about the compiler.
4181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4184 for ac_option in --version -v -V -qversion; do
4185 { { ac_try="$ac_compiler $ac_option >&5"
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191 $as_echo "$ac_try_echo"; } >&5
4192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4194 if test -s conftest.err; then
4196 ... rest of stderr output deleted ...
4197 10q' conftest.err >conftest.er1
4198 cat conftest.er1 >&5
4200 rm -f conftest.er1 conftest.err
4201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202 test $ac_status = 0; }
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4206 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4207 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4224 if ac_fn_cxx_try_compile "$LINENO"; then :
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4234 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4235 if test $ac_compiler_gnu = yes; then
4240 ac_test_CXXFLAGS=${CXXFLAGS+set}
4241 ac_save_CXXFLAGS=$CXXFLAGS
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4243 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4244 if ${ac_cv_prog_cxx_g+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4248 ac_cxx_werror_flag=yes
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4262 if ac_fn_cxx_try_compile "$LINENO"; then :
4263 ac_cv_prog_cxx_g=yes
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 ac_cv_prog_cxx_g=yes
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4304 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4305 if test "$ac_test_CXXFLAGS" = set; then
4306 CXXFLAGS=$ac_save_CXXFLAGS
4307 elif test $ac_cv_prog_cxx_g = yes; then
4308 if test "$GXX" = yes; then
4314 if test "$GXX" = yes; then
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 if test "x$CC" != xcc; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4328 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4331 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4333 set dummy $CC; ac_cc=`$as_echo "$2" |
4334 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4349 # Make sure it works both with $CC and with simple cc.
4350 # We do the test twice because some compilers refuse to overwrite an
4351 # existing .o file with -o, though they will create one.
4352 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4354 if { { case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_try") 2>&5
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; } &&
4364 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_try") 2>&5
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; };
4375 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4376 if test "x$CC" != xcc; then
4377 # Test first that cc exists at all.
4378 if { ac_try='cc -c conftest.$ac_ext >&5'
4379 { { case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_try") 2>&5
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }; }; then
4389 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4391 if { { case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_try") 2>&5
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; } &&
4401 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_try") 2>&5
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; };
4415 # cc exists but doesn't like -o.
4416 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4421 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4423 rm -f core conftest*
4426 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4428 $as_echo "yes" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4433 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4443 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4444 # On Suns, sometimes $CPP names a directory.
4445 if test -n "$CPP" && test -d "$CPP"; then
4448 if test -z "$CPP"; then
4449 if ${ac_cv_prog_CPP+:} false; then :
4450 $as_echo_n "(cached) " >&6
4452 # Double quotes because CPP needs to be expanded
4453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4456 for ac_c_preproc_warn_flag in '' yes
4458 # Use a header file that comes with gcc, so configuring glibc
4459 # with a fresh cross-compiler works.
4460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4461 # <limits.h> exists even on freestanding compilers.
4462 # On the NeXT, cc -E runs the code through the compiler's parser,
4463 # not just through cpp. "Syntax error" is here to catch this case.
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4467 # include <limits.h>
4469 # include <assert.h>
4473 if ac_fn_c_try_cpp "$LINENO"; then :
4476 # Broken: fails on valid input.
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4481 # OK, works on sane cases. Now check whether nonexistent headers
4482 # can be detected and how.
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <ac_nonexistent.h>
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4488 # Broken: success on invalid input.
4491 # Passes both tests.
4495 rm -f conftest.err conftest.i conftest.$ac_ext
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.i conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then :
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4513 $as_echo "$CPP" >&6; }
4515 for ac_c_preproc_warn_flag in '' yes
4517 # Use a header file that comes with gcc, so configuring glibc
4518 # with a fresh cross-compiler works.
4519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520 # <limits.h> exists even on freestanding compilers.
4521 # On the NeXT, cc -E runs the code through the compiler's parser,
4522 # not just through cpp. "Syntax error" is here to catch this case.
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4526 # include <limits.h>
4528 # include <assert.h>
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4535 # Broken: fails on valid input.
4538 rm -f conftest.err conftest.i conftest.$ac_ext
4540 # OK, works on sane cases. Now check whether nonexistent headers
4541 # can be detected and how.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <ac_nonexistent.h>
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4547 # Broken: success on invalid input.
4550 # Passes both tests.
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4558 rm -f conftest.i conftest.err conftest.$ac_ext
4559 if $ac_preproc_ok; then :
4562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details" "$LINENO" 5; }
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4576 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4577 if ${ac_cv_path_GREP+:} false; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -z "$GREP"; then
4581 ac_path_GREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in grep ggrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4592 # Check for GNU ac_path_GREP and select it if it is found.
4593 # Check for GNU $ac_path_GREP
4594 case `"$ac_path_GREP" --version 2>&1` in
4596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 $as_echo_n 0123456789 >"conftest.in"
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'GREP' >> "conftest.nl"
4606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_GREP="$ac_path_GREP"
4612 ac_path_GREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 $ac_path_GREP_found && break 3
4625 if test -z "$ac_cv_path_GREP"; then
4626 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 ac_cv_path_GREP=$GREP
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4634 $as_echo "$ac_cv_path_GREP" >&6; }
4635 GREP="$ac_cv_path_GREP"
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4639 $as_echo_n "checking for egrep... " >&6; }
4640 if ${ac_cv_path_EGREP+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4644 then ac_cv_path_EGREP="$GREP -E"
4646 if test -z "$EGREP"; then
4647 ac_path_EGREP_found=false
4648 # Loop through the user's path and test for each of PROGNAME-LIST
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653 test -z "$as_dir" && as_dir=.
4654 for ac_prog in egrep; do
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4657 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4658 # Check for GNU ac_path_EGREP and select it if it is found.
4659 # Check for GNU $ac_path_EGREP
4660 case `"$ac_path_EGREP" --version 2>&1` in
4662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665 $as_echo_n 0123456789 >"conftest.in"
4668 cat "conftest.in" "conftest.in" >"conftest.tmp"
4669 mv "conftest.tmp" "conftest.in"
4670 cp "conftest.in" "conftest.nl"
4671 $as_echo 'EGREP' >> "conftest.nl"
4672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4674 as_fn_arith $ac_count + 1 && ac_count=$as_val
4675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4676 # Best one so far, save it but keep looking for a better one
4677 ac_cv_path_EGREP="$ac_path_EGREP"
4678 ac_path_EGREP_max=$ac_count
4680 # 10*(2^10) chars as input seems more than enough
4681 test $ac_count -gt 10 && break
4683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 $ac_path_EGREP_found && break 3
4691 if test -z "$ac_cv_path_EGREP"; then
4692 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 ac_cv_path_EGREP=$EGREP
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4701 $as_echo "$ac_cv_path_EGREP" >&6; }
4702 EGREP="$ac_cv_path_EGREP"
4705 if test $ac_cv_c_compiler_gnu = yes; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4707 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4708 if ${ac_cv_prog_gcc_traditional+:} false; then :
4709 $as_echo_n "(cached) " >&6
4711 ac_pattern="Autoconf.*'x'"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4719 ac_cv_prog_gcc_traditional=yes
4721 ac_cv_prog_gcc_traditional=no
4726 if test $ac_cv_prog_gcc_traditional = no; then
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4734 ac_cv_prog_gcc_traditional=yes
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4741 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4742 if test $ac_cv_prog_gcc_traditional = yes; then
4743 CC="$CC -traditional"
4747 BASECC=`basename $CC`
4749 if test "x$BASECC" = xgcc; then
4750 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4754 # Extract the first word of "$CXX", so it can be a program name with args.
4755 set dummy $CXX; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_path_CXX+:} false; then :
4759 $as_echo_n "(cached) " >&6
4763 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4786 if test -n "$CXX"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4788 $as_echo "$CXX" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4795 if test ! -e $CXX; then
4796 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4799 # Find a good install program. We prefer a C program (faster),
4800 # so one script is as good as another. But avoid the broken or
4801 # incompatible versions:
4802 # SysV /etc/install, /usr/sbin/install
4803 # SunOS /usr/etc/install
4804 # IRIX /sbin/install
4806 # AmigaOS /C/install, which installs bootblocks on floppy discs
4807 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4810 # OS/2's system install, which has a completely different semantic
4811 # ./install, which can be erroneously created by make from ./install.sh.
4812 # Reject install programs that cannot install multiple files.
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4814 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4815 if test -z "$INSTALL"; then
4816 if ${ac_cv_path_install+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 # Account for people who put trailing slashes in PATH elements.
4825 case $as_dir/ in #((
4826 ./ | .// | /[cC]/* | \
4827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4828 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4831 # OSF1 and SCO ODT 3.0 have their own names for install.
4832 # Don't use installbsd from OSF since it installs stuff as root
4834 for ac_prog in ginstall scoinst install; do
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4837 if test $ac_prog = install &&
4838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4839 # AIX install. It has an incompatible calling convention.
4841 elif test $ac_prog = install &&
4842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4843 # program-specific install script used by HP pwplus--don't use.
4846 rm -rf conftest.one conftest.two conftest.dir
4847 echo one > conftest.one
4848 echo two > conftest.two
4850 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4851 test -s conftest.one && test -s conftest.two &&
4852 test -s conftest.dir/conftest.one &&
4853 test -s conftest.dir/conftest.two
4855 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4868 rm -rf conftest.one conftest.two conftest.dir
4871 if test "${ac_cv_path_install+set}" = set; then
4872 INSTALL=$ac_cv_path_install
4874 # As a last resort, use the slow shell script. Don't cache a
4875 # value for INSTALL within a source directory, because that will
4876 # break other packages using the cache if that directory is
4877 # removed, or if the value is a relative name.
4878 INSTALL=$ac_install_sh
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4882 $as_echo "$INSTALL" >&6; }
4884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4885 # It thinks the first close brace ends the variable substitution.
4886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4892 # Extract the first word of "mv", so it can be a program name with args.
4893 set dummy mv; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_path_MV+:} false; then :
4897 $as_echo_n "(cached) " >&6
4901 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4924 if test -n "$MV"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4926 $as_echo "$MV" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 # Extract the first word of "rm", so it can be a program name with args.
4934 set dummy rm; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_path_REMOVE+:} false; then :
4938 $as_echo_n "(cached) " >&6
4942 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4964 REMOVE=$ac_cv_path_REMOVE
4965 if test -n "$REMOVE"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4967 $as_echo "$REMOVE" >&6; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4974 # Extract the first word of "cp", so it can be a program name with args.
4975 set dummy cp; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_path_CP+:} false; then :
4979 $as_echo_n "(cached) " >&6
4983 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5006 if test -n "$CP"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5008 $as_echo "$CP" >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5015 # Extract the first word of "sed", so it can be a program name with args.
5016 set dummy sed; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_path_SED+:} false; then :
5020 $as_echo_n "(cached) " >&6
5024 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5047 if test -n "$SED"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5049 $as_echo "$SED" >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5056 # Extract the first word of "echo", so it can be a program name with args.
5057 set dummy echo; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_path_ECHO+:} false; then :
5061 $as_echo_n "(cached) " >&6
5065 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5087 ECHO=$ac_cv_path_ECHO
5088 if test -n "$ECHO"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5090 $as_echo "$ECHO" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5097 # Extract the first word of "cmp", so it can be a program name with args.
5098 set dummy cmp; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_path_CMP+:} false; then :
5102 $as_echo_n "(cached) " >&6
5106 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5129 if test -n "$CMP"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5131 $as_echo "$CMP" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5138 # Extract the first word of "tbl", so it can be a program name with args.
5139 set dummy tbl; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_TBL+:} false; then :
5143 $as_echo_n "(cached) " >&6
5147 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5170 if test -n "$TBL"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5172 $as_echo "$TBL" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 # Extract the first word of "ar", so it can be a program name with args.
5180 set dummy ar; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_path_AR+:} false; then :
5184 $as_echo_n "(cached) " >&6
5188 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5211 if test -n "$AR"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5213 $as_echo "$AR" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 # Extract the first word of "openssl", so it can be a program name with args.
5221 set dummy openssl; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_path_OPENSSL+:} false; then :
5225 $as_echo_n "(cached) " >&6
5229 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5251 OPENSSL=$ac_cv_path_OPENSSL
5252 if test -n "$OPENSSL"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5254 $as_echo "$OPENSSL" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 # Extract the first word of "mtx", so it can be a program name with args.
5262 set dummy mtx; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_path_MTX+:} false; then :
5266 $as_echo_n "(cached) " >&6
5270 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5293 if test -n "$MTX"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5295 $as_echo "$MTX" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5302 # Extract the first word of "dd", so it can be a program name with args.
5303 set dummy dd; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_path_DD+:} false; then :
5307 $as_echo_n "(cached) " >&6
5311 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5334 if test -n "$DD"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5336 $as_echo "$DD" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 # Extract the first word of "mkisofs", so it can be a program name with args.
5344 set dummy mkisofs; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_MKISOFS+:} false; then :
5348 $as_echo_n "(cached) " >&6
5352 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5374 MKISOFS=$ac_cv_path_MKISOFS
5375 if test -n "$MKISOFS"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5377 $as_echo "$MKISOFS" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5384 # Extract the first word of "python", so it can be a program name with args.
5385 set dummy python; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_path_PYTHON+:} false; then :
5389 $as_echo_n "(cached) " >&6
5393 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5415 PYTHON=$ac_cv_path_PYTHON
5416 if test -n "$PYTHON"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5418 $as_echo "$PYTHON" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5425 # Extract the first word of "growisofs", so it can be a program name with args.
5426 set dummy growisofs; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if ${ac_cv_path_GROWISOFS+:} false; then :
5430 $as_echo_n "(cached) " >&6
5434 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5456 GROWISOFS=$ac_cv_path_GROWISOFS
5457 if test -n "$GROWISOFS"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5459 $as_echo "$GROWISOFS" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5466 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5467 set dummy dvd+rw-mediainfo; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5471 $as_echo_n "(cached) " >&6
5473 case $DVDRWMEDIAINFO in
5475 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5497 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5498 if test -n "$DVDRWMEDIAINFO"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5500 $as_echo "$DVDRWMEDIAINFO" >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5507 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5508 set dummy dvd+rw-format; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5512 $as_echo_n "(cached) " >&6
5514 case $DVDRWFORMAT in
5516 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5538 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5539 if test -n "$DVDRWFORMAT"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5541 $as_echo "$DVDRWFORMAT" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5548 # Extract the first word of "pkg-config", so it can be a program name with args.
5549 set dummy pkg-config; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_path_PKGCONFIG+:} false; then :
5553 $as_echo_n "(cached) " >&6
5557 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5579 PKGCONFIG=$ac_cv_path_PKGCONFIG
5580 if test -n "$PKGCONFIG"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5582 $as_echo "$PKGCONFIG" >&6; }
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5589 # Extract the first word of "qmake", so it can be a program name with args.
5590 set dummy qmake; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_path_QMAKE+:} false; then :
5594 $as_echo_n "(cached) " >&6
5598 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5620 QMAKE=$ac_cv_path_QMAKE
5621 if test -n "$QMAKE"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5623 $as_echo "$QMAKE" >&6; }
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5630 # Extract the first word of "gmake", so it can be a program name with args.
5631 set dummy gmake; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_path_GMAKE+:} false; then :
5635 $as_echo_n "(cached) " >&6
5639 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5661 GMAKE=$ac_cv_path_GMAKE
5662 if test -n "$GMAKE"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5664 $as_echo "$GMAKE" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5672 if test "x$WXCONFIG" = x; then
5675 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5676 set dummy ${WXCONFIG}; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_path_WXCONFIG+:} false; then :
5680 $as_echo_n "(cached) " >&6
5684 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5706 WXCONFIG=$ac_cv_path_WXCONFIG
5707 if test -n "$WXCONFIG"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5709 $as_echo "$WXCONFIG" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5717 # Extract the first word of "cdrecord", so it can be a program name with args.
5718 set dummy cdrecord; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_path_CDRECORD+:} false; then :
5722 $as_echo_n "(cached) " >&6
5726 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5748 CDRECORD=$ac_cv_path_CDRECORD
5749 if test -n "$CDRECORD"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5751 $as_echo "$CDRECORD" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5758 # Extract the first word of "pidof", so it can be a program name with args.
5759 set dummy pidof; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_path_PIDOF+:} false; then :
5763 $as_echo_n "(cached) " >&6
5767 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5789 PIDOF=$ac_cv_path_PIDOF
5790 if test -n "$PIDOF"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5792 $as_echo "$PIDOF" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5799 for ac_prog in gawk mawk nawk awk
5801 # Extract the first word of "$ac_prog", so it can be a program name with args.
5802 set dummy $ac_prog; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_AWK+:} false; then :
5806 $as_echo_n "(cached) " >&6
5808 if test -n "$AWK"; then
5809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_AWK="$ac_prog"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 if test -n "$AWK"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5831 $as_echo "$AWK" >&6; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5838 test -n "$AWK" && break
5841 # Some AWK programs fail, so test it and warn the user
5842 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5843 { if ((prog == $2) || (("(" prog ")") == $2) ||
5844 (("" prog "") == $2) ||
5845 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5847 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5848 The regex engine of $AWK is too broken to be used you
5849 might want to install GNU AWK.
5850 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5853 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5854 set dummy $THE_AWK; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_path_AWK+:} false; then :
5858 $as_echo_n "(cached) " >&6
5862 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5885 if test -n "$AWK"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5887 $as_echo "$AWK" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5896 test -n "$ARFLAG" || ARFLAGS="cr"
5908 # Check whether --enable-libtool was given.
5909 if test "${enable_libtool+set}" = set; then :
5910 enableval=$enable_libtool;
5911 if test x$enableval = xno; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5921 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5927 macro_revision='1.3293'
5941 ltmain="$ac_aux_dir/ltmain.sh"
5943 # Make sure we can run config.sub.
5944 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5945 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5948 $as_echo_n "checking build system type... " >&6; }
5949 if ${ac_cv_build+:} false; then :
5950 $as_echo_n "(cached) " >&6
5952 ac_build_alias=$build_alias
5953 test "x$ac_build_alias" = x &&
5954 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5955 test "x$ac_build_alias" = x &&
5956 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5957 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5958 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5962 $as_echo "$ac_cv_build" >&6; }
5963 case $ac_cv_build in
5965 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5968 ac_save_IFS=$IFS; IFS='-'
5974 # Remember, the first character of IFS is used to create $*,
5975 # except with old shells:
5978 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5982 $as_echo_n "checking host system type... " >&6; }
5983 if ${ac_cv_host+:} false; then :
5984 $as_echo_n "(cached) " >&6
5986 if test "x$host_alias" = x; then
5987 ac_cv_host=$ac_cv_build
5989 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5990 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5995 $as_echo "$ac_cv_host" >&6; }
5998 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6001 ac_save_IFS=$IFS; IFS='-'
6007 # Remember, the first character of IFS is used to create $*,
6008 # except with old shells:
6011 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6014 # Backslashify metacharacters that are still active within
6015 # double-quoted strings.
6016 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6018 # Same as above, but do not quote variable references.
6019 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6021 # Sed substitution to delay expansion of an escaped shell variable in a
6022 # double_quote_subst'ed string.
6023 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6025 # Sed substitution to delay expansion of an escaped single quote.
6026 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6028 # Sed substitution to avoid accidental globbing in evaled expressions
6029 no_glob_subst='s/\*/\\\*/g'
6031 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6036 $as_echo_n "checking how to print strings... " >&6; }
6037 # Test print first, because it will be a builtin if present.
6038 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6044 # Use this function as a fallback that always works.
6045 func_fallback_echo ()
6047 eval 'cat <<_LTECHO_EOF
6051 ECHO='func_fallback_echo'
6054 # func_echo_all arg...
6055 # Invoke $ECHO with all args, space-separated.
6062 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6063 $as_echo "printf" >&6; } ;;
6064 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6065 $as_echo "print -r" >&6; } ;;
6066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6067 $as_echo "cat" >&6; } ;;
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6085 if ${ac_cv_path_SED+:} false; then :
6086 $as_echo_n "(cached) " >&6
6088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6089 for ac_i in 1 2 3 4 5 6 7; do
6090 ac_script="$ac_script$as_nl$ac_script"
6092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6093 { ac_script=; unset ac_script;}
6094 if test -z "$SED"; then
6095 ac_path_SED_found=false
6096 # Loop through the user's path and test for each of PROGNAME-LIST
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_prog in sed gsed; do
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6106 # Check for GNU ac_path_SED and select it if it is found.
6107 # Check for GNU $ac_path_SED
6108 case `"$ac_path_SED" --version 2>&1` in
6110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6113 $as_echo_n 0123456789 >"conftest.in"
6116 cat "conftest.in" "conftest.in" >"conftest.tmp"
6117 mv "conftest.tmp" "conftest.in"
6118 cp "conftest.in" "conftest.nl"
6119 $as_echo '' >> "conftest.nl"
6120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6122 as_fn_arith $ac_count + 1 && ac_count=$as_val
6123 if test $ac_count -gt ${ac_path_SED_max-0}; then
6124 # Best one so far, save it but keep looking for a better one
6125 ac_cv_path_SED="$ac_path_SED"
6126 ac_path_SED_max=$ac_count
6128 # 10*(2^10) chars as input seems more than enough
6129 test $ac_count -gt 10 && break
6131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6134 $ac_path_SED_found && break 3
6139 if test -z "$ac_cv_path_SED"; then
6140 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6148 $as_echo "$ac_cv_path_SED" >&6; }
6149 SED="$ac_cv_path_SED"
6152 test -z "$SED" && SED=sed
6153 Xsed="$SED -e 1s/^X//"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6166 $as_echo_n "checking for fgrep... " >&6; }
6167 if ${ac_cv_path_FGREP+:} false; then :
6168 $as_echo_n "(cached) " >&6
6170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6171 then ac_cv_path_FGREP="$GREP -F"
6173 if test -z "$FGREP"; then
6174 ac_path_FGREP_found=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6180 test -z "$as_dir" && as_dir=.
6181 for ac_prog in fgrep; do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6185 # Check for GNU ac_path_FGREP and select it if it is found.
6186 # Check for GNU $ac_path_FGREP
6187 case `"$ac_path_FGREP" --version 2>&1` in
6189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6192 $as_echo_n 0123456789 >"conftest.in"
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo 'FGREP' >> "conftest.nl"
6199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 as_fn_arith $ac_count + 1 && ac_count=$as_val
6202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_FGREP="$ac_path_FGREP"
6205 ac_path_FGREP_max=$ac_count
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6213 $ac_path_FGREP_found && break 3
6218 if test -z "$ac_cv_path_FGREP"; then
6219 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6222 ac_cv_path_FGREP=$FGREP
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6228 $as_echo "$ac_cv_path_FGREP" >&6; }
6229 FGREP="$ac_cv_path_FGREP"
6232 test -z "$GREP" && GREP=grep
6252 # Check whether --with-gnu-ld was given.
6253 if test "${with_gnu_ld+set}" = set; then :
6254 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6260 if test "$GCC" = yes; then
6261 # Check if gcc -print-prog-name=ld gives a path.
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6263 $as_echo_n "checking for ld used by $CC... " >&6; }
6266 # gcc leaves a trailing carriage return which upsets mingw
6267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6272 # Accept absolute paths.
6274 re_direlt='/[^/][^/]*/\.\./'
6275 # Canonicalize the pathname of ld
6276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6280 test -z "$LD" && LD="$ac_prog"
6283 # If it fails, then pretend we aren't using GCC.
6287 # If it is relative, then search for the first ld in PATH.
6291 elif test "$with_gnu_ld" = yes; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6293 $as_echo_n "checking for GNU ld... " >&6; }
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6296 $as_echo_n "checking for non-GNU ld... " >&6; }
6298 if ${lt_cv_path_LD+:} false; then :
6299 $as_echo_n "(cached) " >&6
6301 if test -z "$LD"; then
6302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303 for ac_dir in $PATH; do
6305 test -z "$ac_dir" && ac_dir=.
6306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6307 lt_cv_path_LD="$ac_dir/$ac_prog"
6308 # Check to see if the program is GNU ld. I'd rather use --version,
6309 # but apparently some variants of GNU ld only accept -v.
6310 # Break only if it was the GNU/non-GNU ld that we prefer.
6311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6312 *GNU* | *'with BFD'*)
6313 test "$with_gnu_ld" != no && break
6316 test "$with_gnu_ld" != yes && break
6323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6328 if test -n "$LD"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6330 $as_echo "$LD" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6335 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6337 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6338 if ${lt_cv_prog_gnu_ld+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6342 case `$LD -v 2>&1 </dev/null` in
6343 *GNU* | *'with BFD'*)
6344 lt_cv_prog_gnu_ld=yes
6347 lt_cv_prog_gnu_ld=no
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6352 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6353 with_gnu_ld=$lt_cv_prog_gnu_ld
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6364 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6365 if ${lt_cv_path_NM+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 if test -n "$NM"; then
6369 # Let the user override the test.
6372 lt_nm_to_check="${ac_tool_prefix}nm"
6373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6374 lt_nm_to_check="$lt_nm_to_check nm"
6376 for lt_tmp_nm in $lt_nm_to_check; do
6377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6380 test -z "$ac_dir" && ac_dir=.
6381 tmp_nm="$ac_dir/$lt_tmp_nm"
6382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6383 # Check to see if the nm accepts a BSD-compat flag.
6384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6385 # nm: unknown option "B" ignored
6386 # Tru64's nm complains that /dev/null is an invalid object file
6387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6388 */dev/null* | *'Invalid file or object type'*)
6389 lt_cv_path_NM="$tmp_nm -B"
6393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6395 lt_cv_path_NM="$tmp_nm -p"
6399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6400 continue # so that we can try to find one that supports BSD flags
6409 : ${lt_cv_path_NM=no}
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6413 $as_echo "$lt_cv_path_NM" >&6; }
6414 if test "$lt_cv_path_NM" != "no"; then
6417 # Didn't find any BSD compatible name lister, look for dumpbin.
6418 if test -n "$DUMPBIN"; then :
6419 # Let the user override the test.
6421 if test -n "$ac_tool_prefix"; then
6422 for ac_prog in dumpbin "link -dump"
6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_DUMPBIN+:} false; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$DUMPBIN"; then
6432 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 DUMPBIN=$ac_cv_prog_DUMPBIN
6452 if test -n "$DUMPBIN"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6454 $as_echo "$DUMPBIN" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6461 test -n "$DUMPBIN" && break
6464 if test -z "$DUMPBIN"; then
6465 ac_ct_DUMPBIN=$DUMPBIN
6466 for ac_prog in dumpbin "link -dump"
6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$ac_ct_DUMPBIN"; then
6476 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6496 if test -n "$ac_ct_DUMPBIN"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6498 $as_echo "$ac_ct_DUMPBIN" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6505 test -n "$ac_ct_DUMPBIN" && break
6508 if test "x$ac_ct_DUMPBIN" = x; then
6511 case $cross_compiling:$ac_tool_warned in
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6517 DUMPBIN=$ac_ct_DUMPBIN
6521 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6523 DUMPBIN="$DUMPBIN -symbols"
6531 if test "$DUMPBIN" != ":"; then
6535 test -z "$NM" && NM=nm
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6544 if ${lt_cv_nm_interface+:} false; then :
6545 $as_echo_n "(cached) " >&6
6547 lt_cv_nm_interface="BSD nm"
6548 echo "int some_variable = 0;" > conftest.$ac_ext
6549 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6550 (eval "$ac_compile" 2>conftest.err)
6551 cat conftest.err >&5
6552 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6554 cat conftest.err >&5
6555 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6556 cat conftest.out >&5
6557 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6558 lt_cv_nm_interface="MS dumpbin"
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6563 $as_echo "$lt_cv_nm_interface" >&6; }
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6566 $as_echo_n "checking whether ln -s works... " >&6; }
6568 if test "$LN_S" = "ln -s"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6570 $as_echo "yes" >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6573 $as_echo "no, using $LN_S" >&6; }
6576 # find the maximum length of command line arguments
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6579 if ${lt_cv_sys_max_cmd_len+:} false; then :
6580 $as_echo_n "(cached) " >&6
6587 # On DJGPP, this test can blow up pretty badly due to problems in libc
6588 # (any single argument exceeding 2000 bytes causes a buffer overrun
6589 # during glob expansion). Even if it were fixed, the result of this
6590 # check would be larger than it should be.
6591 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6595 # Under GNU Hurd, this test is not required because there is
6596 # no limit to the length of command line arguments.
6597 # Libtool will interpret -1 as no limit whatsoever
6598 lt_cv_sys_max_cmd_len=-1;
6601 cygwin* | mingw* | cegcc*)
6602 # On Win9x/ME, this test blows up -- it succeeds, but takes
6603 # about 5 minutes as the teststring grows exponentially.
6604 # Worse, since 9x/ME are not pre-emptively multitasking,
6605 # you end up with a "frozen" computer, even though with patience
6606 # the test eventually succeeds (with a max line length of 256k).
6607 # Instead, let's just punt: use the minimum linelength reported by
6608 # all of the supported platforms: 8192 (on NT/2K/XP).
6609 lt_cv_sys_max_cmd_len=8192;
6613 # On MiNT this can take a long time and run out of memory.
6614 lt_cv_sys_max_cmd_len=8192;
6618 # On AmigaOS with pdksh, this test takes hours, literally.
6619 # So we just punt and use a minimum line length of 8192.
6620 lt_cv_sys_max_cmd_len=8192;
6623 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6624 # This has been around since 386BSD, at least. Likely further.
6625 if test -x /sbin/sysctl; then
6626 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6627 elif test -x /usr/sbin/sysctl; then
6628 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6630 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6632 # And add a safety zone
6633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6639 lt_cv_sys_max_cmd_len=196608
6643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6645 # nice to cause kernel panics so lets avoid the loop below.
6646 # First set a reasonable default.
6647 lt_cv_sys_max_cmd_len=16384
6649 if test -x /sbin/sysconfig; then
6650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6651 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6656 lt_cv_sys_max_cmd_len=102400
6658 sysv5* | sco5v6* | sysv4.2uw2*)
6659 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6660 if test -n "$kargmax"; then
6661 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6663 lt_cv_sys_max_cmd_len=32768
6667 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6668 if test -n "$lt_cv_sys_max_cmd_len"; then
6669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6672 # Make teststring a little bigger before we do anything with it.
6673 # a 1K string should be a reasonable start.
6674 for i in 1 2 3 4 5 6 7 8 ; do
6675 teststring=$teststring$teststring
6677 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6678 # If test is not a shell built-in, we'll probably end up computing a
6679 # maximum length that is only half of the actual maximum length, but
6681 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6682 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6683 test $i != 17 # 1/2 MB should be enough
6686 teststring=$teststring$teststring
6688 # Only check the string length outside the loop.
6689 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6691 # Add a significant safety factor because C++ compilers can tack on
6692 # massive amounts of additional arguments before passing them to the
6693 # linker. It appears as though 1/2 is a usable value.
6694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6701 if test -n $lt_cv_sys_max_cmd_len ; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6706 $as_echo "none" >&6; }
6708 max_cmd_len=$lt_cv_sys_max_cmd_len
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6721 # Try some XSI features
6724 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6726 && eval 'test $(( 1 + 1 )) -eq 2 \
6727 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6730 $as_echo "$xsi_shell" >&6; }
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6734 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6736 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6738 && lt_shell_append=yes
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6740 $as_echo "$lt_shell_append" >&6; }
6743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6753 # test EBCDIC or ASCII
6754 case `echo X|tr X '\101'` in
6755 A) # ASCII based system
6756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6757 lt_SP2NL='tr \040 \012'
6758 lt_NL2SP='tr \015\012 \040\040'
6760 *) # EBCDIC based system
6761 lt_SP2NL='tr \100 \n'
6762 lt_NL2SP='tr \r\n \100\100'
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6775 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6776 if ${lt_cv_to_host_file_cmd+:} false; then :
6777 $as_echo_n "(cached) " >&6
6782 *-*-mingw* ) # actually msys
6783 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6786 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6788 * ) # otherwise, assume *nix
6789 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6795 *-*-mingw* ) # actually msys
6796 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6799 lt_cv_to_host_file_cmd=func_convert_file_noop
6801 * ) # otherwise, assume *nix
6802 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6806 * ) # unhandled hosts (and "normal" native builds)
6807 lt_cv_to_host_file_cmd=func_convert_file_noop
6813 to_host_file_cmd=$lt_cv_to_host_file_cmd
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6815 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6822 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6823 if ${lt_cv_to_tool_file_cmd+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 #assume ordinary cross tools, or native build.
6827 lt_cv_to_tool_file_cmd=func_convert_file_noop
6831 *-*-mingw* ) # actually msys
6832 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6840 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6842 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6849 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6850 if ${lt_cv_ld_reload_flag+:} false; then :
6851 $as_echo_n "(cached) " >&6
6853 lt_cv_ld_reload_flag='-r'
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6856 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6857 reload_flag=$lt_cv_ld_reload_flag
6858 case $reload_flag in
6860 *) reload_flag=" $reload_flag" ;;
6862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6864 cygwin* | mingw* | pw32* | cegcc*)
6865 if test "$GCC" != yes; then
6870 if test "$GCC" = yes; then
6871 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6886 if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_OBJDUMP+:} false; then :
6892 $as_echo_n "(cached) " >&6
6894 if test -n "$OBJDUMP"; then
6895 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 OBJDUMP=$ac_cv_prog_OBJDUMP
6915 if test -n "$OBJDUMP"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6917 $as_echo "$OBJDUMP" >&6; }
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6925 if test -z "$ac_cv_prog_OBJDUMP"; then
6926 ac_ct_OBJDUMP=$OBJDUMP
6927 # Extract the first word of "objdump", so it can be a program name with args.
6928 set dummy objdump; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6932 $as_echo_n "(cached) " >&6
6934 if test -n "$ac_ct_OBJDUMP"; then
6935 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6955 if test -n "$ac_ct_OBJDUMP"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6957 $as_echo "$ac_ct_OBJDUMP" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6963 if test "x$ac_ct_OBJDUMP" = x; then
6966 case $cross_compiling:$ac_tool_warned in
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970 ac_tool_warned=yes ;;
6972 OBJDUMP=$ac_ct_OBJDUMP
6975 OBJDUMP="$ac_cv_prog_OBJDUMP"
6978 test -z "$OBJDUMP" && OBJDUMP=objdump
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6989 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6990 if ${lt_cv_deplibs_check_method+:} false; then :
6991 $as_echo_n "(cached) " >&6
6993 lt_cv_file_magic_cmd='$MAGIC_CMD'
6994 lt_cv_file_magic_test_file=
6995 lt_cv_deplibs_check_method='unknown'
6996 # Need to set the preceding variable on all platforms that support
6997 # interlibrary dependencies.
6998 # 'none' -- dependencies not supported.
6999 # `unknown' -- same as none, but documents that we really don't know.
7000 # 'pass_all' -- all dependencies passed with no checks.
7001 # 'test_compile' -- check by making test program.
7002 # 'file_magic [[regex]]' -- check by looking for files in library path
7003 # which responds to the $file_magic_cmd with a given extended regex.
7004 # If you have `file' or equivalent on your system and you're not sure
7005 # whether `pass_all' will *always* work, you probably want this one.
7009 lt_cv_deplibs_check_method=pass_all
7013 lt_cv_deplibs_check_method=pass_all
7017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7018 lt_cv_file_magic_cmd='/usr/bin/file -L'
7019 lt_cv_file_magic_test_file=/shlib/libc.so
7023 # func_win32_libid is a shell function defined in ltmain.sh
7024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7025 lt_cv_file_magic_cmd='func_win32_libid'
7029 # Base MSYS/MinGW do not provide the 'file' command needed by
7030 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7031 # unless we find 'file', for example because we are cross-compiling.
7032 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7033 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7034 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7035 lt_cv_file_magic_cmd='func_win32_libid'
7037 # Keep this pattern in sync with the one in func_win32_libid.
7038 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7039 lt_cv_file_magic_cmd='$OBJDUMP -f'
7044 # use the weaker test based on 'objdump'. See mingw*.
7045 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7046 lt_cv_file_magic_cmd='$OBJDUMP -f'
7049 darwin* | rhapsody*)
7050 lt_cv_deplibs_check_method=pass_all
7053 freebsd* | dragonfly*)
7054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7057 # Not sure whether the presence of OpenBSD here was a mistake.
7058 # Let's accept both of them until this is cleared up.
7059 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7060 lt_cv_file_magic_cmd=/usr/bin/file
7061 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7065 lt_cv_deplibs_check_method=pass_all
7070 lt_cv_deplibs_check_method=pass_all
7074 lt_cv_deplibs_check_method=pass_all
7077 hpux10.20* | hpux11*)
7078 lt_cv_file_magic_cmd=/usr/bin/file
7081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7085 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]'
7086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7096 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7100 irix5* | irix6* | nonstopux*)
7102 *-32|*"-32 ") libmagic=32-bit;;
7103 *-n32|*"-n32 ") libmagic=N32;;
7104 *-64|*"-64 ") libmagic=64-bit;;
7105 *) libmagic=never-match;;
7107 lt_cv_deplibs_check_method=pass_all
7110 # This must be Linux ELF.
7111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7112 lt_cv_deplibs_check_method=pass_all
7116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7125 lt_cv_file_magic_cmd=/usr/bin/file
7126 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7130 lt_cv_deplibs_check_method=pass_all
7134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7141 osf3* | osf4* | osf5*)
7142 lt_cv_deplibs_check_method=pass_all
7146 lt_cv_deplibs_check_method=pass_all
7150 lt_cv_deplibs_check_method=pass_all
7153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7154 lt_cv_deplibs_check_method=pass_all
7158 case $host_vendor in
7160 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]'
7161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7164 lt_cv_deplibs_check_method=pass_all
7167 lt_cv_file_magic_cmd='/bin/file'
7168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7171 lt_cv_file_magic_cmd='/bin/file'
7172 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7173 lt_cv_file_magic_test_file=/lib/libc.so
7176 lt_cv_deplibs_check_method=pass_all
7179 lt_cv_deplibs_check_method=pass_all
7185 lt_cv_deplibs_check_method=pass_all
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7191 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7195 if test "$build" = "$host"; then
7198 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7201 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7207 file_magic_cmd=$lt_cv_file_magic_cmd
7208 deplibs_check_method=$lt_cv_deplibs_check_method
7209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_DLLTOOL+:} false; then :
7238 $as_echo_n "(cached) " >&6
7240 if test -n "$DLLTOOL"; then
7241 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 DLLTOOL=$ac_cv_prog_DLLTOOL
7261 if test -n "$DLLTOOL"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7263 $as_echo "$DLLTOOL" >&6; }
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7271 if test -z "$ac_cv_prog_DLLTOOL"; then
7272 ac_ct_DLLTOOL=$DLLTOOL
7273 # Extract the first word of "dlltool", so it can be a program name with args.
7274 set dummy dlltool; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7278 $as_echo_n "(cached) " >&6
7280 if test -n "$ac_ct_DLLTOOL"; then
7281 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7301 if test -n "$ac_ct_DLLTOOL"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7303 $as_echo "$ac_ct_DLLTOOL" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7309 if test "x$ac_ct_DLLTOOL" = x; then
7312 case $cross_compiling:$ac_tool_warned in
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7318 DLLTOOL=$ac_ct_DLLTOOL
7321 DLLTOOL="$ac_cv_prog_DLLTOOL"
7324 test -z "$DLLTOOL" && DLLTOOL=dlltool
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7336 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7337 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 lt_cv_sharedlib_from_linklib_cmd='unknown'
7343 cygwin* | mingw* | pw32* | cegcc*)
7344 # two different shell functions defined in ltmain.sh
7345 # decide which to use based on capabilities of $DLLTOOL
7346 case `$DLLTOOL --help 2>&1` in
7347 *--identify-strict*)
7348 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7351 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7356 # fallback: assume linklib IS sharedlib
7357 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7363 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7364 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7365 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7373 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_AR+:} false; then :
7381 $as_echo_n "(cached) " >&6
7383 if test -n "$AR"; then
7384 ac_cv_prog_AR="$AR" # Let the user override the test.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 if test -n "$AR"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7406 $as_echo "$AR" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7413 test -n "$AR" && break
7416 if test -z "$AR"; then
7420 # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$ac_ct_AR"; then
7428 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_ac_ct_AR="$ac_prog"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7448 if test -n "$ac_ct_AR"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7450 $as_echo "$ac_ct_AR" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7457 test -n "$ac_ct_AR" && break
7460 if test "x$ac_ct_AR" = x; then
7463 case $cross_compiling:$ac_tool_warned in
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7487 $as_echo_n "checking for archiver @FILE support... " >&6; }
7488 if ${lt_cv_ar_at_file+:} false; then :
7489 $as_echo_n "(cached) " >&6
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504 echo conftest.$ac_objext > conftest.lst
7505 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7507 (eval $lt_ar_try) 2>&5
7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510 test $ac_status = 0; }
7511 if test "$ac_status" -eq 0; then
7512 # Ensure the archiver fails upon bogus file names.
7513 rm -f conftest.$ac_objext libconftest.a
7514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7515 (eval $lt_ar_try) 2>&5
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; }
7519 if test "$ac_status" -ne 0; then
7523 rm -f conftest.* libconftest.a
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7530 $as_echo "$lt_cv_ar_at_file" >&6; }
7532 if test "x$lt_cv_ar_at_file" = xno; then
7535 archiver_list_spec=$lt_cv_ar_at_file
7544 if test -n "$ac_tool_prefix"; then
7545 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}strip; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_STRIP+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 if test -n "$STRIP"; then
7553 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 STRIP=$ac_cv_prog_STRIP
7573 if test -n "$STRIP"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7575 $as_echo "$STRIP" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7583 if test -z "$ac_cv_prog_STRIP"; then
7585 # Extract the first word of "strip", so it can be a program name with args.
7586 set dummy strip; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$ac_ct_STRIP"; then
7593 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_prog_ac_ct_STRIP="strip"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7613 if test -n "$ac_ct_STRIP"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7615 $as_echo "$ac_ct_STRIP" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7621 if test "x$ac_ct_STRIP" = x; then
7624 case $cross_compiling:$ac_tool_warned in
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7633 STRIP="$ac_cv_prog_STRIP"
7636 test -z "$STRIP" && STRIP=:
7643 if test -n "$ac_tool_prefix"; then
7644 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_RANLIB+:} false; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -n "$RANLIB"; then
7652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 RANLIB=$ac_cv_prog_RANLIB
7672 if test -n "$RANLIB"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7674 $as_echo "$RANLIB" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7682 if test -z "$ac_cv_prog_RANLIB"; then
7683 ac_ct_RANLIB=$RANLIB
7684 # Extract the first word of "ranlib", so it can be a program name with args.
7685 set dummy ranlib; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7689 $as_echo_n "(cached) " >&6
7691 if test -n "$ac_ct_RANLIB"; then
7692 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701 ac_cv_prog_ac_ct_RANLIB="ranlib"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7712 if test -n "$ac_ct_RANLIB"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7714 $as_echo "$ac_ct_RANLIB" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7720 if test "x$ac_ct_RANLIB" = x; then
7723 case $cross_compiling:$ac_tool_warned in
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7729 RANLIB=$ac_ct_RANLIB
7732 RANLIB="$ac_cv_prog_RANLIB"
7735 test -z "$RANLIB" && RANLIB=:
7742 # Determine commands to create old-style static archives.
7743 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7744 old_postinstall_cmds='chmod 644 $oldlib'
7745 old_postuninstall_cmds=
7747 if test -n "$RANLIB"; then
7750 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7756 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7761 lock_old_archive_extraction=yes ;;
7763 lock_old_archive_extraction=no ;;
7804 # If no C compiler was specified, use CC.
7807 # If no C compiler flags were specified, use CFLAGS.
7808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7810 # Allow CC to be a program name with arguments.
7814 # Check for command to grab the raw symbol name followed by C symbol from nm.
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7816 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7817 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7818 $as_echo_n "(cached) " >&6
7821 # These are sane defaults that work on at least a few old systems.
7822 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7824 # Character class describing NM global symbol codes.
7825 symcode='[BCDEGRST]'
7827 # Regexp to match symbols that can be accessed directly from C.
7828 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7830 # Define system-specific variables.
7835 cygwin* | mingw* | pw32* | cegcc*)
7836 symcode='[ABCDGISTW]'
7839 if test "$host_cpu" = ia64; then
7840 symcode='[ABCDEGRST]'
7844 symcode='[BCDEGRST]'
7847 symcode='[BCDEGQRST]'
7858 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7866 # If we're using GNU nm, then use its standard symbol codes.
7867 case `$NM -V 2>&1` in
7868 *GNU* | *'with BFD'*)
7869 symcode='[ABCDGIRSTW]' ;;
7872 # Transform an extracted symbol line into a proper C declaration.
7873 # Some systems (esp. on ia64) link data and code symbols differently,
7874 # so use this general approach.
7875 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7877 # Transform an extracted symbol line into symbol name and symbol address
7878 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7879 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'"
7881 # Handle CRLF in mingw tool chain
7885 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7889 # Try without a prefix underscore, then with it.
7890 for ac_symprfx in "" "_"; do
7892 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7893 symxfrm="\\1 $ac_symprfx\\2 \\2"
7895 # Write the raw and C identifiers.
7896 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7897 # Fake it for dumpbin and say T for any non-static function
7898 # and D for any global variable.
7899 # Also find C++ and __fastcall symbols from MSVC++,
7900 # which start with @ or ?.
7901 lt_cv_sys_global_symbol_pipe="$AWK '"\
7902 " {last_section=section; section=\$ 3};"\
7903 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7904 " \$ 0!~/External *\|/{next};"\
7905 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7906 " {if(hide[section]) next};"\
7907 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7908 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7909 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7910 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7911 " ' prfx=^$ac_symprfx"
7913 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7915 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7917 # Check to see that the pipe works correctly.
7921 cat > conftest.$ac_ext <<_LT_EOF
7926 void nm_test_func(void);
7927 void nm_test_func(void){}
7931 int main(){nm_test_var='a';nm_test_func();return(0);}
7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7935 (eval $ac_compile) 2>&5
7937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938 test $ac_status = 0; }; then
7939 # Now try to grab the symbols.
7941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7942 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945 test $ac_status = 0; } && test -s "$nlist"; then
7946 # Try sorting and uniquifying the output.
7947 if sort "$nlist" | uniq > "$nlist"T; then
7948 mv -f "$nlist"T "$nlist"
7953 # Make sure that we snagged all the symbols we need.
7954 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7955 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7956 cat <<_LT_EOF > conftest.$ac_ext
7957 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7958 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7959 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7960 relocations are performed -- see ld's documentation on pseudo-relocs. */
7961 # define LT_DLSYM_CONST
7962 #elif defined(__osf__)
7963 /* This system does not cope well with relocations in const data. */
7964 # define LT_DLSYM_CONST
7966 # define LT_DLSYM_CONST const
7974 # Now generate the symbol file.
7975 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7977 cat <<_LT_EOF >> conftest.$ac_ext
7979 /* The mapping between symbol names and symbols. */
7980 LT_DLSYM_CONST struct {
7984 lt__PROGRAM__LTX_preloaded_symbols[] =
7986 { "@PROGRAM@", (void *) 0 },
7988 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7989 cat <<\_LT_EOF >> conftest.$ac_ext
7993 /* This works around a problem in FreeBSD linker */
7994 #ifdef FREEBSD_WORKAROUND
7995 static const void *lt_preloaded_setup() {
7996 return lt__PROGRAM__LTX_preloaded_symbols;
8004 # Now try linking the two files.
8005 mv conftest.$ac_objext conftstm.$ac_objext
8006 lt_globsym_save_LIBS=$LIBS
8007 lt_globsym_save_CFLAGS=$CFLAGS
8008 LIBS="conftstm.$ac_objext"
8009 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8011 (eval $ac_link) 2>&5
8013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8014 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8017 LIBS=$lt_globsym_save_LIBS
8018 CFLAGS=$lt_globsym_save_CFLAGS
8020 echo "cannot find nm_test_func in $nlist" >&5
8023 echo "cannot find nm_test_var in $nlist" >&5
8026 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8029 echo "$progname: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8032 rm -rf conftest* conftst*
8034 # Do not use the global_symbol_pipe unless it works.
8035 if test "$pipe_works" = yes; then
8038 lt_cv_sys_global_symbol_pipe=
8044 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8045 lt_cv_sys_global_symbol_to_cdecl=
8047 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8049 $as_echo "failed" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8052 $as_echo "ok" >&6; }
8055 # Response file support.
8056 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8057 nm_file_list_spec='@'
8058 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8059 nm_file_list_spec='@'
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8089 $as_echo_n "checking for sysroot... " >&6; }
8091 # Check whether --with-sysroot was given.
8092 if test "${with_sysroot+set}" = set; then :
8093 withval=$with_sysroot;
8100 case ${with_sysroot} in #(
8102 if test "$GCC" = yes; then
8103 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8107 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8113 $as_echo "${with_sysroot}" >&6; }
8114 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8119 $as_echo "${lt_sysroot:-no}" >&6; }
8125 # Check whether --enable-libtool-lock was given.
8126 if test "${enable_libtool_lock+set}" = set; then :
8127 enableval=$enable_libtool_lock;
8130 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8132 # Some flags need to be propagated to the compiler or linker for good
8136 # Find out which ABI we are using.
8137 echo 'int i;' > conftest.$ac_ext
8138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8139 (eval $ac_compile) 2>&5
8141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8142 test $ac_status = 0; }; then
8143 case `/usr/bin/file conftest.$ac_objext` in
8155 # Find out which ABI we are using.
8156 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8158 (eval $ac_compile) 2>&5
8160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8161 test $ac_status = 0; }; then
8162 if test "$lt_cv_prog_gnu_ld" = yes; then
8163 case `/usr/bin/file conftest.$ac_objext` in
8165 LD="${LD-ld} -melf32bsmip"
8168 LD="${LD-ld} -melf32bmipn32"
8171 LD="${LD-ld} -melf64bmip"
8175 case `/usr/bin/file conftest.$ac_objext` in
8191 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8192 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8193 # Find out which ABI we are using.
8194 echo 'int i;' > conftest.$ac_ext
8195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8196 (eval $ac_compile) 2>&5
8198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8199 test $ac_status = 0; }; then
8200 case `/usr/bin/file conftest.o` in
8203 x86_64-*kfreebsd*-gnu)
8204 LD="${LD-ld} -m elf_i386_fbsd"
8207 LD="${LD-ld} -m elf_i386"
8209 ppc64-*linux*|powerpc64-*linux*)
8210 LD="${LD-ld} -m elf32ppclinux"
8213 LD="${LD-ld} -m elf_s390"
8216 LD="${LD-ld} -m elf32_sparc"
8222 x86_64-*kfreebsd*-gnu)
8223 LD="${LD-ld} -m elf_x86_64_fbsd"
8226 LD="${LD-ld} -m elf_x86_64"
8228 ppc*-*linux*|powerpc*-*linux*)
8229 LD="${LD-ld} -m elf64ppc"
8231 s390*-*linux*|s390*-*tpf*)
8232 LD="${LD-ld} -m elf64_s390"
8235 LD="${LD-ld} -m elf64_sparc"
8245 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8246 SAVE_CFLAGS="$CFLAGS"
8247 CFLAGS="$CFLAGS -belf"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8249 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8250 if ${lt_cv_cc_needs_belf+:} false; then :
8251 $as_echo_n "(cached) " >&6
8254 ac_cpp='$CPP $CPPFLAGS'
8255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8270 if ac_fn_c_try_link "$LINENO"; then :
8271 lt_cv_cc_needs_belf=yes
8273 lt_cv_cc_needs_belf=no
8275 rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8278 ac_cpp='$CPP $CPPFLAGS'
8279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8285 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8286 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8287 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8288 CFLAGS="$SAVE_CFLAGS"
8292 # Find out which ABI we are using.
8293 echo 'int i;' > conftest.$ac_ext
8294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8295 (eval $ac_compile) 2>&5
8297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8298 test $ac_status = 0; }; then
8299 case `/usr/bin/file conftest.o` in
8301 case $lt_cv_prog_gnu_ld in
8302 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8304 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8316 need_locks="$enable_libtool_lock"
8318 if test -n "$ac_tool_prefix"; then
8319 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8320 set dummy ${ac_tool_prefix}mt; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8324 $as_echo_n "(cached) " >&6
8326 if test -n "$MANIFEST_TOOL"; then
8327 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8347 if test -n "$MANIFEST_TOOL"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8349 $as_echo "$MANIFEST_TOOL" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8357 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8358 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8359 # Extract the first word of "mt", so it can be a program name with args.
8360 set dummy mt; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8364 $as_echo_n "(cached) " >&6
8366 if test -n "$ac_ct_MANIFEST_TOOL"; then
8367 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8387 if test -n "$ac_ct_MANIFEST_TOOL"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8389 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8395 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8398 case $cross_compiling:$ac_tool_warned in
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8402 ac_tool_warned=yes ;;
8404 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8407 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8410 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8412 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8413 if ${lt_cv_path_mainfest_tool+:} false; then :
8414 $as_echo_n "(cached) " >&6
8416 lt_cv_path_mainfest_tool=no
8417 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8418 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8419 cat conftest.err >&5
8420 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8421 lt_cv_path_mainfest_tool=yes
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8426 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8427 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8437 rhapsody* | darwin*)
8438 if test -n "$ac_tool_prefix"; then
8439 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8440 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8444 $as_echo_n "(cached) " >&6
8446 if test -n "$DSYMUTIL"; then
8447 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8467 if test -n "$DSYMUTIL"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8469 $as_echo "$DSYMUTIL" >&6; }
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8477 if test -z "$ac_cv_prog_DSYMUTIL"; then
8478 ac_ct_DSYMUTIL=$DSYMUTIL
8479 # Extract the first word of "dsymutil", so it can be a program name with args.
8480 set dummy dsymutil; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8484 $as_echo_n "(cached) " >&6
8486 if test -n "$ac_ct_DSYMUTIL"; then
8487 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8507 if test -n "$ac_ct_DSYMUTIL"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8509 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8515 if test "x$ac_ct_DSYMUTIL" = x; then
8518 case $cross_compiling:$ac_tool_warned in
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8524 DSYMUTIL=$ac_ct_DSYMUTIL
8527 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8530 if test -n "$ac_tool_prefix"; then
8531 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_NMEDIT+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 if test -n "$NMEDIT"; then
8539 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8548 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 NMEDIT=$ac_cv_prog_NMEDIT
8559 if test -n "$NMEDIT"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8561 $as_echo "$NMEDIT" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8569 if test -z "$ac_cv_prog_NMEDIT"; then
8570 ac_ct_NMEDIT=$NMEDIT
8571 # Extract the first word of "nmedit", so it can be a program name with args.
8572 set dummy nmedit; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8576 $as_echo_n "(cached) " >&6
8578 if test -n "$ac_ct_NMEDIT"; then
8579 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8599 if test -n "$ac_ct_NMEDIT"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8601 $as_echo "$ac_ct_NMEDIT" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8607 if test "x$ac_ct_NMEDIT" = x; then
8610 case $cross_compiling:$ac_tool_warned in
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8614 ac_tool_warned=yes ;;
8616 NMEDIT=$ac_ct_NMEDIT
8619 NMEDIT="$ac_cv_prog_NMEDIT"
8622 if test -n "$ac_tool_prefix"; then
8623 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8624 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_LIPO+:} false; then :
8628 $as_echo_n "(cached) " >&6
8630 if test -n "$LIPO"; then
8631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 LIPO=$ac_cv_prog_LIPO
8651 if test -n "$LIPO"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8653 $as_echo "$LIPO" >&6; }
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8661 if test -z "$ac_cv_prog_LIPO"; then
8663 # Extract the first word of "lipo", so it can be a program name with args.
8664 set dummy lipo; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8668 $as_echo_n "(cached) " >&6
8670 if test -n "$ac_ct_LIPO"; then
8671 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_prog_ac_ct_LIPO="lipo"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8691 if test -n "$ac_ct_LIPO"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8693 $as_echo "$ac_ct_LIPO" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8699 if test "x$ac_ct_LIPO" = x; then
8702 case $cross_compiling:$ac_tool_warned in
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8706 ac_tool_warned=yes ;;
8711 LIPO="$ac_cv_prog_LIPO"
8714 if test -n "$ac_tool_prefix"; then
8715 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8716 set dummy ${ac_tool_prefix}otool; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if ${ac_cv_prog_OTOOL+:} false; then :
8720 $as_echo_n "(cached) " >&6
8722 if test -n "$OTOOL"; then
8723 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 OTOOL=$ac_cv_prog_OTOOL
8743 if test -n "$OTOOL"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8745 $as_echo "$OTOOL" >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8753 if test -z "$ac_cv_prog_OTOOL"; then
8755 # Extract the first word of "otool", so it can be a program name with args.
8756 set dummy otool; ac_word=$2
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758 $as_echo_n "checking for $ac_word... " >&6; }
8759 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8760 $as_echo_n "(cached) " >&6
8762 if test -n "$ac_ct_OTOOL"; then
8763 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772 ac_cv_prog_ac_ct_OTOOL="otool"
8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8783 if test -n "$ac_ct_OTOOL"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8785 $as_echo "$ac_ct_OTOOL" >&6; }
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8791 if test "x$ac_ct_OTOOL" = x; then
8794 case $cross_compiling:$ac_tool_warned in
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8798 ac_tool_warned=yes ;;
8803 OTOOL="$ac_cv_prog_OTOOL"
8806 if test -n "$ac_tool_prefix"; then
8807 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8808 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if ${ac_cv_prog_OTOOL64+:} false; then :
8812 $as_echo_n "(cached) " >&6
8814 if test -n "$OTOOL64"; then
8815 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821 test -z "$as_dir" && as_dir=.
8822 for ac_exec_ext in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 OTOOL64=$ac_cv_prog_OTOOL64
8835 if test -n "$OTOOL64"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8837 $as_echo "$OTOOL64" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8845 if test -z "$ac_cv_prog_OTOOL64"; then
8846 ac_ct_OTOOL64=$OTOOL64
8847 # Extract the first word of "otool64", so it can be a program name with args.
8848 set dummy otool64; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8852 $as_echo_n "(cached) " >&6
8854 if test -n "$ac_ct_OTOOL64"; then
8855 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8864 ac_cv_prog_ac_ct_OTOOL64="otool64"
8865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8875 if test -n "$ac_ct_OTOOL64"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8877 $as_echo "$ac_ct_OTOOL64" >&6; }
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8883 if test "x$ac_ct_OTOOL64" = x; then
8886 case $cross_compiling:$ac_tool_warned in
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8890 ac_tool_warned=yes ;;
8892 OTOOL64=$ac_ct_OTOOL64
8895 OTOOL64="$ac_cv_prog_OTOOL64"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8925 $as_echo_n "checking for -single_module linker flag... " >&6; }
8926 if ${lt_cv_apple_cc_single_mod+:} false; then :
8927 $as_echo_n "(cached) " >&6
8929 lt_cv_apple_cc_single_mod=no
8930 if test -z "${LT_MULTI_MODULE}"; then
8931 # By default we will add the -single_module flag. You can override
8932 # by either setting the environment variable LT_MULTI_MODULE
8933 # non-empty at configure time, or by adding -multi_module to the
8935 rm -rf libconftest.dylib*
8936 echo "int foo(void){return 1;}" > conftest.c
8937 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8938 -dynamiclib -Wl,-single_module conftest.c" >&5
8939 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8940 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8942 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8943 lt_cv_apple_cc_single_mod=yes
8945 cat conftest.err >&5
8947 rm -rf libconftest.dylib*
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8952 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8954 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8955 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8956 $as_echo_n "(cached) " >&6
8958 lt_cv_ld_exported_symbols_list=no
8959 save_LDFLAGS=$LDFLAGS
8960 echo "_main" > conftest.sym
8961 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8973 if ac_fn_c_try_link "$LINENO"; then :
8974 lt_cv_ld_exported_symbols_list=yes
8976 lt_cv_ld_exported_symbols_list=no
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8980 LDFLAGS="$save_LDFLAGS"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8984 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8986 $as_echo_n "checking for -force_load linker flag... " >&6; }
8987 if ${lt_cv_ld_force_load+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 lt_cv_ld_force_load=no
8991 cat > conftest.c << _LT_EOF
8992 int forced_loaded() { return 2;}
8994 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8995 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8996 echo "$AR cru libconftest.a conftest.o" >&5
8997 $AR cru libconftest.a conftest.o 2>&5
8998 echo "$RANLIB libconftest.a" >&5
8999 $RANLIB libconftest.a 2>&5
9000 cat > conftest.c << _LT_EOF
9001 int main() { return 0;}
9003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9006 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9007 lt_cv_ld_force_load=yes
9009 cat conftest.err >&5
9011 rm -f conftest.err libconftest.a conftest conftest.c
9012 rm -rf conftest.dSYM
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9016 $as_echo "$lt_cv_ld_force_load" >&6; }
9018 rhapsody* | darwin1.[012])
9019 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9022 darwin*) # darwin 5.x on
9023 # if running on 10.5 or later, the deployment target defaults
9024 # to the OS version, if on x86, and 10.4, the deployment
9025 # target defaults to 10.4. Don't you love it?
9026 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9027 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9028 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9036 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9037 _lt_dar_single_mod='$single_module'
9039 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9040 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9042 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9044 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9045 _lt_dsymutil='~$DSYMUTIL $lib || :'
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9053 $as_echo_n "checking for ANSI C header files... " >&6; }
9054 if ${ac_cv_header_stdc+:} false; then :
9055 $as_echo_n "(cached) " >&6
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073 ac_cv_header_stdc=yes
9075 ac_cv_header_stdc=no
9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 if test $ac_cv_header_stdc = yes; then
9080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9087 $EGREP "memchr" >/dev/null 2>&1; then :
9090 ac_cv_header_stdc=no
9096 if test $ac_cv_header_stdc = yes; then
9097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104 $EGREP "free" >/dev/null 2>&1; then :
9107 ac_cv_header_stdc=no
9113 if test $ac_cv_header_stdc = yes; then
9114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9115 if test "$cross_compiling" = yes; then :
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9122 #if ((' ' & 0x0FF) == 0x020)
9123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9126 # define ISLOWER(c) \
9127 (('a' <= (c) && (c) <= 'i') \
9128 || ('j' <= (c) && (c) <= 'r') \
9129 || ('s' <= (c) && (c) <= 'z'))
9130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9138 for (i = 0; i < 256; i++)
9139 if (XOR (islower (i), ISLOWER (i))
9140 || toupper (i) != TOUPPER (i))
9145 if ac_fn_c_try_run "$LINENO"; then :
9148 ac_cv_header_stdc=no
9150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9151 conftest.$ac_objext conftest.beam conftest.$ac_ext
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9157 $as_echo "$ac_cv_header_stdc" >&6; }
9158 if test $ac_cv_header_stdc = yes; then
9160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9164 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9166 inttypes.h stdint.h unistd.h
9168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9172 cat >>confdefs.h <<_ACEOF
9173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181 for ac_header in dlfcn.h
9183 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9185 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_DLFCN_H 1
9197 func_stripname_cnf ()
9200 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9201 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9203 } # func_stripname_cnf
9210 # Check whether --enable-shared was given.
9211 if test "${enable_shared+set}" = set; then :
9212 enableval=$enable_shared; p=${PACKAGE-default}
9214 yes) enable_shared=yes ;;
9215 no) enable_shared=no ;;
9218 # Look at the argument we got. We use all the common list separators.
9219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9220 for pkg in $enableval; do
9222 if test "X$pkg" = "X$p"; then
9239 # Check whether --enable-static was given.
9240 if test "${enable_static+set}" = set; then :
9241 enableval=$enable_static; p=${PACKAGE-default}
9243 yes) enable_static=yes ;;
9244 no) enable_static=no ;;
9247 # Look at the argument we got. We use all the common list separators.
9248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9249 for pkg in $enableval; do
9251 if test "X$pkg" = "X$p"; then
9280 # Check whether --with-pic was given.
9281 if test "${with_pic+set}" = set; then :
9282 withval=$with_pic; pic_mode="$withval"
9288 test -z "$pic_mode" && pic_mode=default
9296 # Check whether --enable-fast-install was given.
9297 if test "${enable_fast_install+set}" = set; then :
9298 enableval=$enable_fast_install; p=${PACKAGE-default}
9300 yes) enable_fast_install=yes ;;
9301 no) enable_fast_install=no ;;
9303 enable_fast_install=no
9304 # Look at the argument we got. We use all the common list separators.
9305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9306 for pkg in $enableval; do
9308 if test "X$pkg" = "X$p"; then
9309 enable_fast_install=yes
9316 enable_fast_install=yes
9329 # This can be used to rebuild libtool when needed
9330 LIBTOOL_DEPS="$ltmain"
9332 # Always use our own libtool.
9333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9360 test -z "$LN_S" && LN_S="ln -s"
9375 if test -n "${ZSH_VERSION+set}" ; then
9376 setopt NO_GLOB_SUBST
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9380 $as_echo_n "checking for objdir... " >&6; }
9381 if ${lt_cv_objdir+:} false; then :
9382 $as_echo_n "(cached) " >&6
9384 rm -f .libs 2>/dev/null
9385 mkdir .libs 2>/dev/null
9386 if test -d .libs; then
9389 # MS-DOS does not allow filenames that begin with a dot.
9392 rmdir .libs 2>/dev/null
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9395 $as_echo "$lt_cv_objdir" >&6; }
9396 objdir=$lt_cv_objdir
9402 cat >>confdefs.h <<_ACEOF
9403 #define LT_OBJDIR "$lt_cv_objdir/"
9411 # AIX sometimes has problems with the GCC collect2 program. For some
9412 # reason, if we set the COLLECT_NAMES environment variable, the problems
9413 # vanish in a puff of smoke.
9414 if test "X${COLLECT_NAMES+set}" != Xset; then
9416 export COLLECT_NAMES
9423 can_build_shared=yes
9425 # All known linkers require a `.a' archive for static linking (except MSVC,
9426 # which needs '.lib').
9429 with_gnu_ld="$lt_cv_prog_gnu_ld"
9432 old_CFLAGS="$CFLAGS"
9434 # Set sane defaults for various variables
9435 test -z "$CC" && CC=cc
9436 test -z "$LTCC" && LTCC=$CC
9437 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9438 test -z "$LD" && LD=ld
9439 test -z "$ac_objext" && ac_objext=o
9441 for cc_temp in $compiler""; do
9443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9449 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9452 # Only perform the check for file, if the check method requires it
9453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9454 case $deplibs_check_method in
9456 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9458 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9459 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9460 $as_echo_n "(cached) " >&6
9464 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9467 lt_save_MAGIC_CMD="$MAGIC_CMD"
9468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9469 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9470 for ac_dir in $ac_dummy; do
9472 test -z "$ac_dir" && ac_dir=.
9473 if test -f $ac_dir/${ac_tool_prefix}file; then
9474 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9475 if test -n "$file_magic_test_file"; then
9476 case $deplibs_check_method in
9478 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9480 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9481 $EGREP "$file_magic_regex" > /dev/null; then
9486 *** Warning: the command libtool uses to detect shared libraries,
9487 *** $file_magic_cmd, produces output that libtool cannot recognize.
9488 *** The result is that libtool may fail to recognize shared libraries
9489 *** as such. This will affect the creation of libtool libraries that
9490 *** depend on shared libraries, but programs linked with such libtool
9491 *** libraries will work regardless of this problem. Nevertheless, you
9492 *** may want to report the problem to your system manager and/or to
9493 *** bug-libtool@gnu.org
9503 MAGIC_CMD="$lt_save_MAGIC_CMD"
9508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9509 if test -n "$MAGIC_CMD"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9511 $as_echo "$MAGIC_CMD" >&6; }
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9521 if test -z "$lt_cv_path_MAGIC_CMD"; then
9522 if test -n "$ac_tool_prefix"; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9524 $as_echo_n "checking for file... " >&6; }
9525 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9526 $as_echo_n "(cached) " >&6
9530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9533 lt_save_MAGIC_CMD="$MAGIC_CMD"
9534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9535 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9536 for ac_dir in $ac_dummy; do
9538 test -z "$ac_dir" && ac_dir=.
9539 if test -f $ac_dir/file; then
9540 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9541 if test -n "$file_magic_test_file"; then
9542 case $deplibs_check_method in
9544 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9547 $EGREP "$file_magic_regex" > /dev/null; then
9552 *** Warning: the command libtool uses to detect shared libraries,
9553 *** $file_magic_cmd, produces output that libtool cannot recognize.
9554 *** The result is that libtool may fail to recognize shared libraries
9555 *** as such. This will affect the creation of libtool libraries that
9556 *** depend on shared libraries, but programs linked with such libtool
9557 *** libraries will work regardless of this problem. Nevertheless, you
9558 *** may want to report the problem to your system manager and/or to
9559 *** bug-libtool@gnu.org
9569 MAGIC_CMD="$lt_save_MAGIC_CMD"
9574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9575 if test -n "$MAGIC_CMD"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9577 $as_echo "$MAGIC_CMD" >&6; }
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9593 # Use C for the default configuration in the libtool script
9597 ac_cpp='$CPP $CPPFLAGS'
9598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9603 # Source file extension for C test sources.
9606 # Object file extension for compiled C test sources.
9610 # Code to be used in simple compile tests
9611 lt_simple_compile_test_code="int some_variable = 0;"
9613 # Code to be used in simple link tests
9614 lt_simple_link_test_code='int main(){return(0);}'
9622 # If no C compiler was specified, use CC.
9625 # If no C compiler flags were specified, use CFLAGS.
9626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9628 # Allow CC to be a program name with arguments.
9631 # Save the default compiler, since it gets overwritten when the other
9632 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9633 compiler_DEFAULT=$CC
9635 # save warnings/boilerplate of simple test code
9636 ac_outfile=conftest.$ac_objext
9637 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9638 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9639 _lt_compiler_boilerplate=`cat conftest.err`
9642 ac_outfile=conftest.$ac_objext
9643 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9644 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9645 _lt_linker_boilerplate=`cat conftest.err`
9650 ## There is no encapsulation within the following macros, do not change
9651 ## the running order or otherwise move them around unless you know exactly
9652 ## what you are doing...
9653 if test -n "$compiler"; then
9655 lt_prog_compiler_no_builtin_flag=
9657 if test "$GCC" = yes; then
9658 case $cc_basename in
9660 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9662 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9666 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9667 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9668 $as_echo_n "(cached) " >&6
9670 lt_cv_prog_compiler_rtti_exceptions=no
9671 ac_outfile=conftest.$ac_objext
9672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9673 lt_compiler_flag="-fno-rtti -fno-exceptions"
9674 # Insert the option either (1) after the last *FLAGS variable, or
9675 # (2) before a word containing "conftest.", or (3) at the end.
9676 # Note that $ac_compile itself does not contain backslashes and begins
9677 # with a dollar sign (not a hyphen), so the echo should work correctly.
9678 # The option is referenced via a variable to avoid confusing sed.
9679 lt_compile=`echo "$ac_compile" | $SED \
9680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9682 -e 's:$: $lt_compiler_flag:'`
9683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9684 (eval "$lt_compile" 2>conftest.err)
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 if (exit $ac_status) && test -s "$ac_outfile"; then
9689 # The compiler can only warn and ignore the option if not recognized
9690 # So say no if there are warnings other than the usual output.
9691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9694 lt_cv_prog_compiler_rtti_exceptions=yes
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9701 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9703 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9704 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9716 lt_prog_compiler_wl=
9717 lt_prog_compiler_pic=
9718 lt_prog_compiler_static=
9721 if test "$GCC" = yes; then
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_static='-static'
9727 # All AIX code is PIC.
9728 if test "$host_cpu" = ia64; then
9729 # AIX 5 now supports IA64 processor
9730 lt_prog_compiler_static='-Bstatic'
9737 # see comment about AmigaOS4 .so support
9738 lt_prog_compiler_pic='-fPIC'
9741 # FIXME: we need at least 68020 code to build shared libraries, but
9742 # adding the `-m68020' flag to GCC prevents building anything better,
9744 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9749 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9750 # PIC is the default for these OSes.
9753 mingw* | cygwin* | pw32* | os2* | cegcc*)
9754 # This hack is so that the source file can tell whether it is being
9755 # built for inclusion in a dll (and should export symbols for example).
9756 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9757 # (--disable-auto-import) libraries
9758 lt_prog_compiler_pic='-DDLL_EXPORT'
9761 darwin* | rhapsody*)
9762 # PIC is the default on this platform
9763 # Common symbols not allowed in MH_DYLIB files
9764 lt_prog_compiler_pic='-fno-common'
9768 # PIC is the default for Haiku.
9769 # The "-static" flag exists, but is broken.
9770 lt_prog_compiler_static=
9774 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9775 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9776 # sets the default TLS model and affects inlining.
9782 lt_prog_compiler_pic='-fPIC'
9788 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9789 # Instead, we relocate shared libraries at runtime.
9793 # Just because we use GCC doesn't mean we suddenly get shared libraries
9794 # on systems that don't support them.
9795 lt_prog_compiler_can_build_shared=no
9800 # QNX uses GNU C++, but need to define -shared option too, otherwise
9802 lt_prog_compiler_pic='-fPIC -shared'
9806 if test -d /usr/nec; then
9807 lt_prog_compiler_pic=-Kconform_pic
9812 lt_prog_compiler_pic='-fPIC'
9816 case $cc_basename in
9817 nvcc*) # Cuda Compiler Driver 2.2
9818 lt_prog_compiler_wl='-Xlinker '
9819 lt_prog_compiler_pic='-Xcompiler -fPIC'
9823 # PORTME Check for flag to pass linker flags through the system compiler.
9826 lt_prog_compiler_wl='-Wl,'
9827 if test "$host_cpu" = ia64; then
9828 # AIX 5 now supports IA64 processor
9829 lt_prog_compiler_static='-Bstatic'
9831 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9835 mingw* | cygwin* | pw32* | os2* | cegcc*)
9836 # This hack is so that the source file can tell whether it is being
9837 # built for inclusion in a dll (and should export symbols for example).
9838 lt_prog_compiler_pic='-DDLL_EXPORT'
9841 hpux9* | hpux10* | hpux11*)
9842 lt_prog_compiler_wl='-Wl,'
9843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9850 lt_prog_compiler_pic='+Z'
9853 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9854 lt_prog_compiler_static='${wl}-a ${wl}archive'
9857 irix5* | irix6* | nonstopux*)
9858 lt_prog_compiler_wl='-Wl,'
9859 # PIC (with -KPIC) is the default.
9860 lt_prog_compiler_static='-non_shared'
9863 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9864 case $cc_basename in
9865 # old Intel for x86_64 which still supported -KPIC.
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_pic='-KPIC'
9869 lt_prog_compiler_static='-static'
9871 # icc used to be incompatible with GCC.
9872 # ICC 10 doesn't accept -KPIC any more.
9874 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_pic='-fPIC'
9876 lt_prog_compiler_static='-static'
9878 # Lahey Fortran 8.1.
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='--shared'
9882 lt_prog_compiler_static='--static'
9885 # NAG Fortran compiler
9886 lt_prog_compiler_wl='-Wl,-Wl,,'
9887 lt_prog_compiler_pic='-PIC'
9888 lt_prog_compiler_static='-Bstatic'
9890 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9891 # Portland Group compilers (*not* the Pentium gcc compiler,
9892 # which looks to be a dead project)
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-fpic'
9895 lt_prog_compiler_static='-Bstatic'
9898 lt_prog_compiler_wl='-Wl,'
9899 # All Alpha code is PIC.
9900 lt_prog_compiler_static='-non_shared'
9902 xl* | bgxl* | bgf* | mpixl*)
9903 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-qpic'
9906 lt_prog_compiler_static='-qstaticlink'
9909 case `$CC -V 2>&1 | sed 5q` in
9910 *Sun\ F* | *Sun*Fortran*)
9911 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 lt_prog_compiler_wl=''
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9920 lt_prog_compiler_wl='-Wl,'
9928 lt_prog_compiler_pic='-KPIC'
9929 lt_prog_compiler_static='-Bstatic'
9933 # QNX uses GNU C++, but need to define -shared option too, otherwise
9935 lt_prog_compiler_pic='-fPIC -shared'
9938 osf3* | osf4* | osf5*)
9939 lt_prog_compiler_wl='-Wl,'
9940 # All OSF/1 code is PIC.
9941 lt_prog_compiler_static='-non_shared'
9945 lt_prog_compiler_static='-non_shared'
9949 lt_prog_compiler_pic='-KPIC'
9950 lt_prog_compiler_static='-Bstatic'
9951 case $cc_basename in
9952 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9953 lt_prog_compiler_wl='-Qoption ld ';;
9955 lt_prog_compiler_wl='-Wl,';;
9960 lt_prog_compiler_wl='-Qoption ld '
9961 lt_prog_compiler_pic='-PIC'
9962 lt_prog_compiler_static='-Bstatic'
9965 sysv4 | sysv4.2uw2* | sysv4.3*)
9966 lt_prog_compiler_wl='-Wl,'
9967 lt_prog_compiler_pic='-KPIC'
9968 lt_prog_compiler_static='-Bstatic'
9972 if test -d /usr/nec ;then
9973 lt_prog_compiler_pic='-Kconform_pic'
9974 lt_prog_compiler_static='-Bstatic'
9978 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9979 lt_prog_compiler_wl='-Wl,'
9980 lt_prog_compiler_pic='-KPIC'
9981 lt_prog_compiler_static='-Bstatic'
9985 lt_prog_compiler_wl='-Wl,'
9986 lt_prog_compiler_can_build_shared=no
9990 lt_prog_compiler_pic='-pic'
9991 lt_prog_compiler_static='-Bstatic'
9995 lt_prog_compiler_can_build_shared=no
10001 # For platforms which do not support PIC, -DPIC is meaningless:
10003 lt_prog_compiler_pic=
10006 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10012 if ${lt_cv_prog_compiler_pic+:} false; then :
10013 $as_echo_n "(cached) " >&6
10015 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10018 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10019 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10022 # Check to make sure the PIC flag actually works.
10024 if test -n "$lt_prog_compiler_pic"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10026 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10027 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10028 $as_echo_n "(cached) " >&6
10030 lt_cv_prog_compiler_pic_works=no
10031 ac_outfile=conftest.$ac_objext
10032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10033 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10034 # Insert the option either (1) after the last *FLAGS variable, or
10035 # (2) before a word containing "conftest.", or (3) at the end.
10036 # Note that $ac_compile itself does not contain backslashes and begins
10037 # with a dollar sign (not a hyphen), so the echo should work correctly.
10038 # The option is referenced via a variable to avoid confusing sed.
10039 lt_compile=`echo "$ac_compile" | $SED \
10040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10042 -e 's:$: $lt_compiler_flag:'`
10043 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10044 (eval "$lt_compile" 2>conftest.err)
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 if (exit $ac_status) && test -s "$ac_outfile"; then
10049 # The compiler can only warn and ignore the option if not recognized
10050 # So say no if there are warnings other than the usual output.
10051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_pic_works=yes
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10061 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10063 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10064 case $lt_prog_compiler_pic in
10066 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10069 lt_prog_compiler_pic=
10070 lt_prog_compiler_can_build_shared=no
10086 # Check to make sure the static flag actually works.
10088 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10090 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10091 if ${lt_cv_prog_compiler_static_works+:} false; then :
10092 $as_echo_n "(cached) " >&6
10094 lt_cv_prog_compiler_static_works=no
10095 save_LDFLAGS="$LDFLAGS"
10096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099 # The linker can only warn and ignore the option if not recognized
10100 # So say no if there are warnings
10101 if test -s conftest.err; then
10102 # Append any errors to the config.log.
10103 cat conftest.err 1>&5
10104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106 if diff conftest.exp conftest.er2 >/dev/null; then
10107 lt_cv_prog_compiler_static_works=yes
10110 lt_cv_prog_compiler_static_works=yes
10114 LDFLAGS="$save_LDFLAGS"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10118 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10120 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10123 lt_prog_compiler_static=
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10134 if ${lt_cv_prog_compiler_c_o+:} false; then :
10135 $as_echo_n "(cached) " >&6
10137 lt_cv_prog_compiler_c_o=no
10138 $RM -r conftest 2>/dev/null
10142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10144 lt_compiler_flag="-o out/conftest2.$ac_objext"
10145 # Insert the option either (1) after the last *FLAGS variable, or
10146 # (2) before a word containing "conftest.", or (3) at the end.
10147 # Note that $ac_compile itself does not contain backslashes and begins
10148 # with a dollar sign (not a hyphen), so the echo should work correctly.
10149 lt_compile=`echo "$ac_compile" | $SED \
10150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10152 -e 's:$: $lt_compiler_flag:'`
10153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10154 (eval "$lt_compile" 2>out/conftest.err)
10156 cat out/conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10160 # The compiler can only warn and ignore the option if not recognized
10161 # So say no if there are warnings
10162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10165 lt_cv_prog_compiler_c_o=yes
10170 # SGI C++ compiler will create directory out/ii_files/ for
10171 # template instantiation
10172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10173 $RM out/* && rmdir out
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190 $as_echo_n "(cached) " >&6
10192 lt_cv_prog_compiler_c_o=no
10193 $RM -r conftest 2>/dev/null
10197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10199 lt_compiler_flag="-o out/conftest2.$ac_objext"
10200 # Insert the option either (1) after the last *FLAGS variable, or
10201 # (2) before a word containing "conftest.", or (3) at the end.
10202 # Note that $ac_compile itself does not contain backslashes and begins
10203 # with a dollar sign (not a hyphen), so the echo should work correctly.
10204 lt_compile=`echo "$ac_compile" | $SED \
10205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207 -e 's:$: $lt_compiler_flag:'`
10208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209 (eval "$lt_compile" 2>out/conftest.err)
10211 cat out/conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10215 # The compiler can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
10217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler_c_o=yes
10225 # SGI C++ compiler will create directory out/ii_files/ for
10226 # template instantiation
10227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228 $RM out/* && rmdir out
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10240 hard_links="nottested"
10241 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10242 # do not overwrite the value of need_locks provided by the user
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10244 $as_echo_n "checking if we can lock with hard links... " >&6; }
10247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10249 ln conftest.a conftest.b 2>&5 || hard_links=no
10250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10252 $as_echo "$hard_links" >&6; }
10253 if test "$hard_links" = no; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10255 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10271 allow_undefined_flag=
10272 always_export_symbols=no
10274 archive_expsym_cmds=
10275 compiler_needs_object=no
10276 enable_shared_with_static_runtimes=no
10277 export_dynamic_flag_spec=
10278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10279 hardcode_automatic=no
10281 hardcode_direct_absolute=no
10282 hardcode_libdir_flag_spec=
10283 hardcode_libdir_flag_spec_ld=
10284 hardcode_libdir_separator=
10285 hardcode_minus_L=no
10286 hardcode_shlibpath_var=unsupported
10288 link_all_deplibs=unknown
10290 module_expsym_cmds=
10291 old_archive_from_new_cmds=
10292 old_archive_from_expsyms_cmds=
10293 thread_safe_flag_spec=
10294 whole_archive_flag_spec=
10295 # include_expsyms should be a list of space-separated symbols to be *always*
10296 # included in the symbol list
10298 # exclude_expsyms can be an extended regexp of symbols to exclude
10299 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10300 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10301 # as well as any symbol that contains `d'.
10302 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10303 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10304 # platforms (ab)use it in PIC code, but their linkers get confused if
10305 # the symbol is explicitly referenced. Since portable code cannot
10306 # rely on this symbol name, it's probably fine to never include it in
10307 # preloaded symbol tables.
10308 # Exclude shared library initialization/finalization symbols.
10309 extract_expsyms_cmds=
10312 cygwin* | mingw* | pw32* | cegcc*)
10313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10314 # When not using gcc, we currently assume that we are using
10315 # Microsoft Visual C++.
10316 if test "$GCC" != yes; then
10321 # we just hope/assume this is gcc and not c89 (= MSVC++)
10331 # On some targets, GNU ld is compatible enough with the native linker
10332 # that we're better off using the native interface for both.
10333 lt_use_gnu_ld_interface=no
10334 if test "$with_gnu_ld" = yes; then
10337 # The AIX port of GNU ld has always aspired to compatibility
10338 # with the native linker. However, as the warning in the GNU ld
10339 # block says, versions before 2.19.5* couldn't really create working
10340 # shared libraries, regardless of the interface used.
10341 case `$LD -v 2>&1` in
10342 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10343 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10344 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10346 lt_use_gnu_ld_interface=yes
10351 lt_use_gnu_ld_interface=yes
10356 if test "$lt_use_gnu_ld_interface" = yes; then
10357 # If archive_cmds runs LD, not CC, wlarc should be empty
10360 # Set some defaults for GNU ld with shared library support. These
10361 # are reset later if shared libraries are not supported. Putting them
10362 # here allows them to be overridden if necessary.
10363 runpath_var=LD_RUN_PATH
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 export_dynamic_flag_spec='${wl}--export-dynamic'
10366 # ancient GNU ld didn't support --whole-archive et. al.
10367 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10368 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10370 whole_archive_flag_spec=
10372 supports_anon_versioning=no
10373 case `$LD -v 2>&1` in
10374 *GNU\ gold*) supports_anon_versioning=yes ;;
10375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10378 *\ 2.11.*) ;; # other 2.11 versions
10379 *) supports_anon_versioning=yes ;;
10382 # See if GNU ld supports shared libraries.
10385 # On AIX/PPC, the GNU linker is very broken
10386 if test "$host_cpu" != ia64; then
10390 *** Warning: the GNU linker, at least up to release 2.19, is reported
10391 *** to be unable to reliably create shared libraries on AIX.
10392 *** Therefore, libtool is disabling shared libraries support. If you
10393 *** really care for shared libraries, you may want to install binutils
10394 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10395 *** You will then need to restart the configuration process.
10404 # see comment about AmigaOS4 .so support
10405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10406 archive_expsym_cmds=''
10409 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)'
10410 hardcode_libdir_flag_spec='-L$libdir'
10411 hardcode_minus_L=yes
10417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418 allow_undefined_flag=unsupported
10419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10420 # support --undefined. This deserves some investigation. FIXME
10421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10427 cygwin* | mingw* | pw32* | cegcc*)
10428 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10429 # as there is no search path for DLLs.
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 export_dynamic_flag_spec='${wl}--export-all-symbols'
10432 allow_undefined_flag=unsupported
10433 always_export_symbols=no
10434 enable_shared_with_static_runtimes=yes
10435 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'
10436 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10438 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10440 # If the export-symbols file already is a .def file (1st line
10441 # is EXPORTS), use it as is; otherwise, prepend...
10442 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10443 cp $export_symbols $output_objdir/$soname.def;
10445 echo EXPORTS > $output_objdir/$soname.def;
10446 cat $export_symbols >> $output_objdir/$soname.def;
10448 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 link_all_deplibs=yes
10461 hardcode_shlibpath_var=no
10462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10463 export_dynamic_flag_spec='${wl}-E'
10464 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10465 # Instead, shared libraries are loaded at an image base (0x10000000 by
10466 # default) and relocated if they conflict, which is a slow very memory
10467 # consuming and fragmenting process. To avoid this, we pick a random,
10468 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10469 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10471 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'
10474 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10476 if test "$host_os" = linux-dietlibc; then
10477 case $cc_basename in
10478 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10481 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10482 && test "$tmp_diet" = no
10484 tmp_addflag=' $pic_flag'
10485 tmp_sharedflag='-shared'
10486 case $cc_basename,$host_cpu in
10487 pgcc*) # Portland Group C compiler
10488 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'
10489 tmp_addflag=' $pic_flag'
10491 pgf77* | pgf90* | pgf95* | pgfortran*)
10492 # Portland Group f77 and f90 compilers
10493 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'
10494 tmp_addflag=' $pic_flag -Mnomain' ;;
10495 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10496 tmp_addflag=' -i_dynamic' ;;
10497 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10498 tmp_addflag=' -i_dynamic -nofor_main' ;;
10499 ifc* | ifort*) # Intel Fortran compiler
10500 tmp_addflag=' -nofor_main' ;;
10501 lf95*) # Lahey Fortran 8.1
10502 whole_archive_flag_spec=
10503 tmp_sharedflag='--shared' ;;
10504 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10505 tmp_sharedflag='-qmkshrobj'
10507 nvcc*) # Cuda Compiler Driver 2.2
10508 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'
10509 compiler_needs_object=yes
10512 case `$CC -V 2>&1 | sed 5q` in
10513 *Sun\ C*) # Sun C 5.9
10514 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'
10515 compiler_needs_object=yes
10516 tmp_sharedflag='-G' ;;
10517 *Sun\ F*) # Sun Fortran 8.3
10518 tmp_sharedflag='-G' ;;
10520 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522 if test "x$supports_anon_versioning" = xyes; then
10523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10525 echo "local: *; };" >> $output_objdir/$libname.ver~
10526 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10529 case $cc_basename in
10530 xlf* | bgf* | bgxlf* | mpixlf*)
10531 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10532 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10533 hardcode_libdir_flag_spec=
10534 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10535 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10536 if test "x$supports_anon_versioning" = xyes; then
10537 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10539 echo "local: *; };" >> $output_objdir/$libname.ver~
10540 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10551 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10555 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10560 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10565 *** create shared libraries on Solaris systems. Therefore, libtool
10566 *** is disabling shared libraries support. We urge you to upgrade GNU
10567 *** binutils to release 2.9.1 or newer. Another option is to modify
10568 *** your PATH or compiler configuration so that the native linker is
10569 *** used, and then restart.
10572 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10573 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10574 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10581 case `$LD -v 2>&1` in
10582 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10587 *** reliably create shared libraries on SCO systems. Therefore, libtool
10588 *** is disabling shared libraries support. We urge you to upgrade GNU
10589 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10590 *** your PATH or compiler configuration so that the native linker is
10591 *** used, and then restart.
10596 # For security reasons, it is highly recommended that you always
10597 # use absolute paths for naming shared libraries, and exclude the
10598 # DT_RUNPATH tag from executables and libraries. But doing so
10599 # requires that you compile everything twice, which is a pain.
10600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10612 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10619 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10621 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10628 if test "$ld_shlibs" = no; then
10630 hardcode_libdir_flag_spec=
10631 export_dynamic_flag_spec=
10632 whole_archive_flag_spec=
10635 # PORTME fill in a description of your system's linker (not GNU ld)
10638 allow_undefined_flag=unsupported
10639 always_export_symbols=yes
10640 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'
10641 # Note: this linker hardcodes the directories in LIBPATH if there
10642 # are no directories specified by -L.
10643 hardcode_minus_L=yes
10644 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10645 # Neither direct hardcoding nor static linking is supported with a
10647 hardcode_direct=unsupported
10652 if test "$host_cpu" = ia64; then
10653 # On IA64, the linker does run time linking by default, so we don't
10654 # have to do anything special.
10655 aix_use_runtimelinking=no
10656 exp_sym_flag='-Bexport'
10659 # If we're using GNU nm, then we don't want the "-C" option.
10660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10661 # Also, AIX nm treats weak defined symbols like other global
10662 # defined symbols, whereas GNU nm marks them as "W".
10663 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10664 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'
10666 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'
10668 aix_use_runtimelinking=no
10670 # Test if we are trying to use run time linking or normal
10671 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10672 # need to do runtime linking.
10673 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10674 for ld_flag in $LDFLAGS; do
10675 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10676 aix_use_runtimelinking=yes
10683 exp_sym_flag='-bexport'
10684 no_entry_flag='-bnoentry'
10687 # When large executables or shared objects are built, AIX ld can
10688 # have problems creating the table of contents. If linking a library
10689 # or program results in "error TOC overflow" add -mminimal-toc to
10690 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10691 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10694 hardcode_direct=yes
10695 hardcode_direct_absolute=yes
10696 hardcode_libdir_separator=':'
10697 link_all_deplibs=yes
10698 file_list_spec='${wl}-f,'
10700 if test "$GCC" = yes; then
10701 case $host_os in aix4.[012]|aix4.[012].*)
10702 # We only want to do this on AIX 4.2 and lower, the check
10703 # below for broken collect2 doesn't work under 4.3+
10704 collect2name=`${CC} -print-prog-name=collect2`
10705 if test -f "$collect2name" &&
10706 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10708 # We have reworked collect2
10711 # We have old collect2
10712 hardcode_direct=unsupported
10713 # It fails to find uninstalled libraries when the uninstalled
10714 # path is not listed in the libpath. Setting hardcode_minus_L
10715 # to unsupported forces relinking
10716 hardcode_minus_L=yes
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_libdir_separator=
10722 shared_flag='-shared'
10723 if test "$aix_use_runtimelinking" = yes; then
10724 shared_flag="$shared_flag "'${wl}-G'
10728 if test "$host_cpu" = ia64; then
10729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10730 # chokes on -Wl,-G. The following line is correct:
10733 if test "$aix_use_runtimelinking" = yes; then
10734 shared_flag='${wl}-G'
10736 shared_flag='${wl}-bM:SRE'
10741 export_dynamic_flag_spec='${wl}-bexpall'
10742 # It seems that -bexpall does not export symbols beginning with
10743 # underscore (_), so it is better to generate a list of symbols to export.
10744 always_export_symbols=yes
10745 if test "$aix_use_runtimelinking" = yes; then
10746 # Warning - without using the other runtime loading flags (-brtl),
10747 # -berok will link without error, but may produce a broken library.
10748 allow_undefined_flag='-berok'
10749 # Determine the default libpath from the value encoded in an
10750 # empty executable.
10751 if test "${lt_cv_aix_libpath+set}" = set; then
10752 aix_libpath=$lt_cv_aix_libpath
10754 if ${lt_cv_aix_libpath_+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10768 if ac_fn_c_try_link "$LINENO"; then :
10770 lt_aix_libpath_sed='
10771 /Import File Strings/,/^$/ {
10773 s/^0 *\([^ ]*\) *$/\1/
10777 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10778 # Check for a 64-bit object if we didn't find anything.
10779 if test -z "$lt_cv_aix_libpath_"; then
10780 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 if test -z "$lt_cv_aix_libpath_"; then
10786 lt_cv_aix_libpath_="/usr/lib:/lib"
10791 aix_libpath=$lt_cv_aix_libpath_
10794 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795 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"
10797 if test "$host_cpu" = ia64; then
10798 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10799 allow_undefined_flag="-z nodefs"
10800 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"
10802 # Determine the default libpath from the value encoded in an
10803 # empty executable.
10804 if test "${lt_cv_aix_libpath+set}" = set; then
10805 aix_libpath=$lt_cv_aix_libpath
10807 if ${lt_cv_aix_libpath_+:} false; then :
10808 $as_echo_n "(cached) " >&6
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10821 if ac_fn_c_try_link "$LINENO"; then :
10823 lt_aix_libpath_sed='
10824 /Import File Strings/,/^$/ {
10826 s/^0 *\([^ ]*\) *$/\1/
10830 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10831 # Check for a 64-bit object if we didn't find anything.
10832 if test -z "$lt_cv_aix_libpath_"; then
10833 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 if test -z "$lt_cv_aix_libpath_"; then
10839 lt_cv_aix_libpath_="/usr/lib:/lib"
10844 aix_libpath=$lt_cv_aix_libpath_
10847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10848 # Warning - without using the other run time loading flags,
10849 # -berok will link without error, but may produce a broken library.
10850 no_undefined_flag=' ${wl}-bernotok'
10851 allow_undefined_flag=' ${wl}-berok'
10852 if test "$with_gnu_ld" = yes; then
10853 # We only use this code for GNU lds that support --whole-archive.
10854 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10856 # Exported symbols can be pulled into shared objects from archives
10857 whole_archive_flag_spec='$convenience'
10859 archive_cmds_need_lc=yes
10860 # This is similar to how AIX traditionally builds its shared libraries.
10861 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'
10869 # see comment about AmigaOS4 .so support
10870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871 archive_expsym_cmds=''
10874 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)'
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_minus_L=yes
10882 export_dynamic_flag_spec=-rdynamic
10885 cygwin* | mingw* | pw32* | cegcc*)
10886 # When not using gcc, we currently assume that we are using
10887 # Microsoft Visual C++.
10888 # hardcode_libdir_flag_spec is actually meaningless, as there is
10889 # no search path for DLLs.
10890 case $cc_basename in
10893 hardcode_libdir_flag_spec=' '
10894 allow_undefined_flag=unsupported
10895 always_export_symbols=yes
10897 # Tell ltmain to make .lib files, not .a files.
10899 # Tell ltmain to make .dll files, not .so files.
10901 # FIXME: Setting linknames here is a bad hack.
10902 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10903 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10904 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10906 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10908 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10910 # The linker will not automatically build a static lib if we build a DLL.
10911 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10912 enable_shared_with_static_runtimes=yes
10913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10915 old_postinstall_cmds='chmod 644 $oldlib'
10916 postlink_cmds='lt_outputfile="@OUTPUT@"~
10917 lt_tool_outputfile="@TOOL_OUTPUT@"~
10918 case $lt_outputfile in
10921 lt_outputfile="$lt_outputfile.exe"
10922 lt_tool_outputfile="$lt_tool_outputfile.exe"
10925 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10926 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10927 $RM "$lt_outputfile.manifest";
10931 # Assume MSVC wrapper
10932 hardcode_libdir_flag_spec=' '
10933 allow_undefined_flag=unsupported
10934 # Tell ltmain to make .lib files, not .a files.
10936 # Tell ltmain to make .dll files, not .so files.
10938 # FIXME: Setting linknames here is a bad hack.
10939 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10940 # The linker will automatically build a .lib file if we build a DLL.
10941 old_archive_from_new_cmds='true'
10942 # FIXME: Should let the user specify the lib program.
10943 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10944 enable_shared_with_static_runtimes=yes
10949 darwin* | rhapsody*)
10952 archive_cmds_need_lc=no
10954 hardcode_automatic=yes
10955 hardcode_shlibpath_var=unsupported
10956 if test "$lt_cv_ld_force_load" = "yes"; then
10957 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\"`'
10959 whole_archive_flag_spec=''
10961 link_all_deplibs=yes
10962 allow_undefined_flag="$_lt_dar_allow_undefined"
10963 case $cc_basename in
10964 ifort*) _lt_dar_can_shared=yes ;;
10965 *) _lt_dar_can_shared=$GCC ;;
10967 if test "$_lt_dar_can_shared" = "yes"; then
10968 output_verbose_link_cmd=func_echo_all
10969 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10970 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10971 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}"
10972 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}"
10981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_libdir_flag_spec='-L$libdir'
10983 hardcode_shlibpath_var=no
10990 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10991 # support. Future versions do this automatically, but an explicit c++rt0.o
10992 # does not break anything, and helps significantly (at the cost of a little
10995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10996 hardcode_libdir_flag_spec='-R$libdir'
10997 hardcode_direct=yes
10998 hardcode_shlibpath_var=no
11001 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11004 hardcode_direct=yes
11005 hardcode_minus_L=yes
11006 hardcode_shlibpath_var=no
11009 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11010 freebsd* | dragonfly*)
11011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11012 hardcode_libdir_flag_spec='-R$libdir'
11013 hardcode_direct=yes
11014 hardcode_shlibpath_var=no
11018 if test "$GCC" = yes; then
11019 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'
11021 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'
11023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11024 hardcode_libdir_separator=:
11025 hardcode_direct=yes
11027 # hardcode_minus_L: Not really in the search PATH,
11028 # but as the default location of the library.
11029 hardcode_minus_L=yes
11030 export_dynamic_flag_spec='${wl}-E'
11034 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11035 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11039 if test "$with_gnu_ld" = no; then
11040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11041 hardcode_libdir_flag_spec_ld='+b $libdir'
11042 hardcode_libdir_separator=:
11043 hardcode_direct=yes
11044 hardcode_direct_absolute=yes
11045 export_dynamic_flag_spec='${wl}-E'
11046 # hardcode_minus_L: Not really in the search PATH,
11047 # but as the default location of the library.
11048 hardcode_minus_L=yes
11053 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11056 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11062 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11075 # Older versions of the 11.00 compiler do not understand -b yet
11076 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11078 $as_echo_n "checking if $CC understands -b... " >&6; }
11079 if ${lt_cv_prog_compiler__b+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 lt_cv_prog_compiler__b=no
11083 save_LDFLAGS="$LDFLAGS"
11084 LDFLAGS="$LDFLAGS -b"
11085 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11087 # The linker can only warn and ignore the option if not recognized
11088 # So say no if there are warnings
11089 if test -s conftest.err; then
11090 # Append any errors to the config.log.
11091 cat conftest.err 1>&5
11092 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11094 if diff conftest.exp conftest.er2 >/dev/null; then
11095 lt_cv_prog_compiler__b=yes
11098 lt_cv_prog_compiler__b=yes
11102 LDFLAGS="$save_LDFLAGS"
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11106 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11108 if test x"$lt_cv_prog_compiler__b" = xyes; then
11109 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11111 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11117 if test "$with_gnu_ld" = no; then
11118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11119 hardcode_libdir_separator=:
11124 hardcode_shlibpath_var=no
11127 hardcode_direct=yes
11128 hardcode_direct_absolute=yes
11129 export_dynamic_flag_spec='${wl}-E'
11131 # hardcode_minus_L: Not really in the search PATH,
11132 # but as the default location of the library.
11133 hardcode_minus_L=yes
11139 irix5* | irix6* | nonstopux*)
11140 if test "$GCC" = yes; then
11141 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'
11142 # Try to use the -exported_symbol ld option, if it does not
11143 # work, assume that -exports_file does not work either and
11144 # implicitly export all symbols.
11145 # This should be the same for all languages, so no per-tag cache variable.
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11147 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11148 if ${lt_cv_irix_exported_symbol+:} false; then :
11149 $as_echo_n "(cached) " >&6
11151 save_LDFLAGS="$LDFLAGS"
11152 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11155 int foo (void) { return 0; }
11157 if ac_fn_c_try_link "$LINENO"; then :
11158 lt_cv_irix_exported_symbol=yes
11160 lt_cv_irix_exported_symbol=no
11162 rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LDFLAGS="$save_LDFLAGS"
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11167 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11168 if test "$lt_cv_irix_exported_symbol" = yes; then
11169 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'
11172 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'
11173 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'
11175 archive_cmds_need_lc='no'
11176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11177 hardcode_libdir_separator=:
11179 link_all_deplibs=yes
11183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11186 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11188 hardcode_libdir_flag_spec='-R$libdir'
11189 hardcode_direct=yes
11190 hardcode_shlibpath_var=no
11194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11195 hardcode_direct=yes
11196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11197 hardcode_libdir_separator=:
11198 hardcode_shlibpath_var=no
11205 if test -f /usr/libexec/ld.so; then
11206 hardcode_direct=yes
11207 hardcode_shlibpath_var=no
11208 hardcode_direct_absolute=yes
11209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11211 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11212 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11213 export_dynamic_flag_spec='${wl}-E'
11216 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11218 hardcode_libdir_flag_spec='-R$libdir'
11221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11222 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11232 hardcode_libdir_flag_spec='-L$libdir'
11233 hardcode_minus_L=yes
11234 allow_undefined_flag=unsupported
11235 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'
11236 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11240 if test "$GCC" = yes; then
11241 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11242 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'
11244 allow_undefined_flag=' -expect_unresolved \*'
11245 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'
11247 archive_cmds_need_lc='no'
11248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11249 hardcode_libdir_separator=:
11252 osf4* | osf5*) # as osf3* with the addition of -msym flag
11253 if test "$GCC" = yes; then
11254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11255 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'
11256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11258 allow_undefined_flag=' -expect_unresolved \*'
11259 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'
11260 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~
11261 $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'
11263 # Both c and cxx compiler support -rpath directly
11264 hardcode_libdir_flag_spec='-rpath $libdir'
11266 archive_cmds_need_lc='no'
11267 hardcode_libdir_separator=:
11271 no_undefined_flag=' -z defs'
11272 if test "$GCC" = yes; then
11274 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11276 $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'
11278 case `$CC -V 2>&1` in
11281 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11283 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11287 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11289 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11293 hardcode_libdir_flag_spec='-R$libdir'
11294 hardcode_shlibpath_var=no
11296 solaris2.[0-5] | solaris2.[0-5].*) ;;
11298 # The compiler driver will combine and reorder linker options,
11299 # but understands `-z linker_flag'. GCC discards it without `$wl',
11300 # but is careful enough not to reorder.
11301 # Supported since Solaris 2.6 (maybe 2.5.1?)
11302 if test "$GCC" = yes; then
11303 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11305 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11309 link_all_deplibs=yes
11313 if test "x$host_vendor" = xsequent; then
11314 # Use $CC to link under sequent, because it throws in some extra .o
11315 # files that make .init and .fini sections work.
11316 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11318 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11320 hardcode_libdir_flag_spec='-L$libdir'
11321 hardcode_direct=yes
11322 hardcode_minus_L=yes
11323 hardcode_shlibpath_var=no
11327 case $host_vendor in
11329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330 hardcode_direct=yes # is this really true???
11333 ## LD is ld it makes a PLAMLIB
11334 ## CC just makes a GrossModule.
11335 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11336 reload_cmds='$CC -r -o $output$reload_objs'
11340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11344 runpath_var='LD_RUN_PATH'
11345 hardcode_shlibpath_var=no
11349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350 hardcode_shlibpath_var=no
11351 export_dynamic_flag_spec='-Bexport'
11355 if test -d /usr/nec; then
11356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11357 hardcode_shlibpath_var=no
11358 runpath_var=LD_RUN_PATH
11359 hardcode_runpath_var=yes
11364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11365 no_undefined_flag='${wl}-z,text'
11366 archive_cmds_need_lc=no
11367 hardcode_shlibpath_var=no
11368 runpath_var='LD_RUN_PATH'
11370 if test "$GCC" = yes; then
11371 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379 sysv5* | sco3.2v5* | sco5v6*)
11380 # Note: We can NOT use -z defs as we might desire, because we do not
11381 # link with -lc, and that would cause any symbols used from libc to
11382 # always be unresolved, which means just about no library would
11383 # ever link correctly. If we're not using GNU ld we use -z text
11384 # though, which does catch some bad symbols but isn't as heavy-handed
11386 no_undefined_flag='${wl}-z,text'
11387 allow_undefined_flag='${wl}-z,nodefs'
11388 archive_cmds_need_lc=no
11389 hardcode_shlibpath_var=no
11390 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11391 hardcode_libdir_separator=':'
11392 link_all_deplibs=yes
11393 export_dynamic_flag_spec='${wl}-Bexport'
11394 runpath_var='LD_RUN_PATH'
11396 if test "$GCC" = yes; then
11397 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11407 hardcode_libdir_flag_spec='-L$libdir'
11408 hardcode_shlibpath_var=no
11416 if test x$host_vendor = xsni; then
11418 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11419 export_dynamic_flag_spec='${wl}-Blargedynsym'
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11426 $as_echo "$ld_shlibs" >&6; }
11427 test "$ld_shlibs" = no && can_build_shared=no
11429 with_gnu_ld=$with_gnu_ld
11446 # Do we need to explicitly link libc?
11448 case "x$archive_cmds_need_lc" in
11450 # Assume -lc should be added
11451 archive_cmds_need_lc=yes
11453 if test "$enable_shared" = yes && test "$GCC" = yes; then
11454 case $archive_cmds in
11456 # FIXME: we may have to deal with multi-command sequences.
11459 # Test whether the compiler implicitly links with -lc since on some
11460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11461 # to ld, don't add -lc before -lgcc.
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11463 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11464 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11465 $as_echo_n "(cached) " >&6
11468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11471 (eval $ac_compile) 2>&5
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; } 2>conftest.err; then
11477 libobjs=conftest.$ac_objext
11479 wl=$lt_prog_compiler_wl
11480 pic_flag=$lt_prog_compiler_pic
11486 lt_save_allow_undefined_flag=$allow_undefined_flag
11487 allow_undefined_flag=
11488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11489 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11492 test $ac_status = 0; }
11494 lt_cv_archive_cmds_need_lc=no
11496 lt_cv_archive_cmds_need_lc=yes
11498 allow_undefined_flag=$lt_save_allow_undefined_flag
11500 cat conftest.err 1>&5
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11506 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11507 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11671 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11673 if test "$GCC" = yes; then
11675 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11676 *) lt_awk_arg="/^libraries:/" ;;
11679 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11680 *) lt_sed_strip_eq="s,=/,/,g" ;;
11682 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11683 case $lt_search_path_spec in
11685 # if the path contains ";" then we assume it to be the separator
11686 # otherwise default to the standard path separator (i.e. ":") - it is
11687 # assumed that no part of a normal pathname contains ";" but that should
11688 # okay in the real world where ";" in dirpaths is itself problematic.
11689 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11692 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11695 # Ok, now we have the path, separated by spaces, we can step through it
11696 # and add multilib dir if necessary.
11697 lt_tmp_lt_search_path_spec=
11698 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11699 for lt_sys_path in $lt_search_path_spec; do
11700 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11701 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11703 test -d "$lt_sys_path" && \
11704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11707 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11708 BEGIN {RS=" "; FS="/|\n";} {
11711 for (lt_i = NF; lt_i > 0; lt_i--) {
11712 if ($lt_i != "" && $lt_i != ".") {
11713 if ($lt_i == "..") {
11716 if (lt_count == 0) {
11717 lt_foo="/" $lt_i lt_foo;
11724 if (lt_foo != "") { lt_freq[lt_foo]++; }
11725 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11727 # AWK program above erroneously prepends '/' to C:/dos/paths
11730 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11731 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11733 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11737 library_names_spec=
11738 libname_spec='lib$name'
11742 postuninstall_cmds=
11746 shlibpath_overrides_runpath=unknown
11748 dynamic_linker="$host_os ld.so"
11749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11750 need_lib_prefix=unknown
11751 hardcode_into_libs=no
11753 # when you set need_version to no, make sure it does not cause -set_version
11754 # flags to be left without arguments
11755 need_version=unknown
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11761 shlibpath_var=LIBPATH
11763 # AIX 3 has no versioning support, so we append a major version to the name.
11764 soname_spec='${libname}${release}${shared_ext}$major'
11771 hardcode_into_libs=yes
11772 if test "$host_cpu" = ia64; then
11773 # AIX 5 supports IA64
11774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11775 shlibpath_var=LD_LIBRARY_PATH
11777 # With GCC up to 2.95.x, collect2 would create an import file
11778 # for dependence libraries. The import file would start with
11779 # the line `#! .'. This would cause the generated library to
11780 # depend on `.', always an invalid library. This was fixed in
11781 # development snapshots of GCC prior to 3.0.
11783 aix4 | aix4.[01] | aix4.[01].*)
11784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11786 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11789 can_build_shared=no
11793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11794 # soname into executable. Probably we can add versioning support to
11795 # collect2, so additional links can be useful in future.
11796 if test "$aix_use_runtimelinking" = yes; then
11797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11798 # instead of lib<name>.a to let people know that these are not
11799 # typical AIX shared libraries.
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802 # We preserve .a as extension for shared libraries through AIX4.2
11803 # and later when we are not doing run time linking.
11804 library_names_spec='${libname}${release}.a $libname.a'
11805 soname_spec='${libname}${release}${shared_ext}$major'
11807 shlibpath_var=LIBPATH
11814 # Since July 2007 AmigaOS4 officially supports .so libraries.
11815 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 library_names_spec='$libname.ixlibrary $libname.a'
11820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11821 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'
11827 library_names_spec='${libname}${shared_ext}'
11828 dynamic_linker="$host_os ld.so"
11829 shlibpath_var=LIBRARY_PATH
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836 soname_spec='${libname}${release}${shared_ext}$major'
11837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11841 # the default ld.so.conf also contains /usr/contrib/lib and
11842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11843 # libtool to hard-code these into programs
11846 cygwin* | mingw* | pw32* | cegcc*)
11847 version_type=windows
11852 case $GCC,$cc_basename in
11855 library_names_spec='$libname.dll.a'
11856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11857 postinstall_cmds='base_file=`basename \${file}`~
11858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11859 dldir=$destdir/`dirname \$dlpath`~
11860 test -d \$dldir || mkdir -p \$dldir~
11861 $install_prog $dir/$dlname \$dldir/$dlname~
11862 chmod a+x \$dldir/$dlname~
11863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11867 dlpath=$dir/\$dldll~
11869 shlibpath_overrides_runpath=yes
11873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11876 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11879 # MinGW DLLs use traditional 'lib' prefix
11880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883 # pw32 DLLs use 'pw' prefix rather than 'lib'
11884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11887 dynamic_linker='Win32 ld.exe'
11892 libname_spec='$name'
11893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11894 library_names_spec='${libname}.dll.lib'
11898 sys_lib_search_path_spec=
11901 for lt_path in $LIB
11904 # Let DOS variable expansion print the short 8.3 style file name.
11905 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11906 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11909 # Convert to MSYS style.
11910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11913 # Convert to unix form, then to dos form, then back to unix form
11914 # but this time dos style (no spaces!) so that the unix form looks
11915 # like /cygdrive/c/PROGRA~1:/cygdr...
11916 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11917 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11918 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11921 sys_lib_search_path_spec="$LIB"
11922 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11923 # It is most probably a Windows format PATH.
11924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11928 # FIXME: find the short name or the path components, as spaces are
11929 # common. (e.g. "Program Files" -> "PROGRA~1")
11933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11934 postinstall_cmds='base_file=`basename \${file}`~
11935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11936 dldir=$destdir/`dirname \$dlpath`~
11937 test -d \$dldir || mkdir -p \$dldir~
11938 $install_prog $dir/$dlname \$dldir/$dlname'
11939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11940 dlpath=$dir/\$dldll~
11942 shlibpath_overrides_runpath=yes
11943 dynamic_linker='Win32 link.exe'
11947 # Assume MSVC wrapper
11948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11949 dynamic_linker='Win32 ld.exe'
11952 # FIXME: first we should search . and the directory the executable is in
11956 darwin* | rhapsody*)
11957 dynamic_linker="$host_os dyld"
11958 version_type=darwin
11961 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11962 soname_spec='${libname}${release}${major}$shared_ext'
11963 shlibpath_overrides_runpath=yes
11964 shlibpath_var=DYLD_LIBRARY_PATH
11965 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11967 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11977 shlibpath_var=LD_LIBRARY_PATH
11984 freebsd* | dragonfly*)
11985 # DragonFly does not have aout. When/if they implement a new
11986 # versioning mechanism, adjust this.
11987 if test -x /usr/bin/objformat; then
11988 objformat=`/usr/bin/objformat`
11991 freebsd[123]*) objformat=aout ;;
11992 *) objformat=elf ;;
11995 version_type=freebsd-$objformat
11996 case $version_type in
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12007 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=yes
12012 freebsd3.[01]* | freebsdelf3.[01]*)
12013 shlibpath_overrides_runpath=yes
12014 hardcode_into_libs=yes
12016 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12017 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12018 shlibpath_overrides_runpath=no
12019 hardcode_into_libs=yes
12021 *) # from 4.6 on, and DragonFly
12022 shlibpath_overrides_runpath=yes
12023 hardcode_into_libs=yes
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 hardcode_into_libs=yes
12042 dynamic_linker="$host_os runtime_loader"
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12044 soname_spec='${libname}${release}${shared_ext}$major'
12045 shlibpath_var=LIBRARY_PATH
12046 shlibpath_overrides_runpath=yes
12047 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12048 hardcode_into_libs=yes
12051 hpux9* | hpux10* | hpux11*)
12052 # Give a soname corresponding to the major version so that dld.sl refuses to
12053 # link against other versions.
12060 hardcode_into_libs=yes
12061 dynamic_linker="$host_os dld.so"
12062 shlibpath_var=LD_LIBRARY_PATH
12063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 soname_spec='${libname}${release}${shared_ext}$major'
12066 if test "X$HPUX_IA64_MODE" = X32; then
12067 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12069 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12075 hardcode_into_libs=yes
12076 dynamic_linker="$host_os dld.sl"
12077 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080 soname_spec='${libname}${release}${shared_ext}$major'
12081 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12086 dynamic_linker="$host_os dld.sl"
12087 shlibpath_var=SHLIB_PATH
12088 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12093 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12094 postinstall_cmds='chmod 555 $lib'
12095 # or fails outright, so override atomically:
12096 install_override_mode=555
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12104 soname_spec='${libname}${release}${shared_ext}$major'
12105 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=no
12108 hardcode_into_libs=yes
12111 irix5* | irix6* | nonstopux*)
12113 nonstopux*) version_type=nonstopux ;;
12115 if test "$lt_cv_prog_gnu_ld" = yes; then
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12126 irix5* | nonstopux*)
12127 libsuff= shlibsuff=
12130 case $LD in # libtool.m4 will add one of these switches to LD
12131 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12132 libsuff= shlibsuff= libmagic=32-bit;;
12133 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12134 libsuff=32 shlibsuff=N32 libmagic=N32;;
12135 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12136 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12137 *) libsuff= shlibsuff= libmagic=never-match;;
12141 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12142 shlibpath_overrides_runpath=no
12143 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12144 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12145 hardcode_into_libs=yes
12148 # No shared lib support for Linux oldld, aout, or coff.
12149 linux*oldld* | linux*aout* | linux*coff*)
12153 # This must be Linux ELF.
12154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12161 shlibpath_var=LD_LIBRARY_PATH
12162 shlibpath_overrides_runpath=no
12164 # Some binutils ld are patched to set DT_RUNPATH
12165 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12166 $as_echo_n "(cached) " >&6
12168 lt_cv_shlibpath_overrides_runpath=no
12169 save_LDFLAGS=$LDFLAGS
12170 save_libdir=$libdir
12171 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12172 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12184 if ac_fn_c_try_link "$LINENO"; then :
12185 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12186 lt_cv_shlibpath_overrides_runpath=yes
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 LDFLAGS=$save_LDFLAGS
12192 libdir=$save_libdir
12196 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12198 # This implies no fast_install, which is unacceptable.
12199 # Some rework will be needed to allow for fast_install
12200 # before this can be enabled.
12201 hardcode_into_libs=yes
12203 # Append ld.so.conf contents to the search path
12204 if test -f /etc/ld.so.conf; then
12205 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' ' '`
12206 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12209 # We used to test for /lib/ld.so.1 and disable shared libraries on
12210 # powerpc, because MkLinux only supported shared libraries with the
12211 # GNU dynamic linker. Since this was broken with cross compilers,
12212 # most powerpc-linux boxes support dynamic linking these days and
12213 # people can always --disable-shared, the test was removed, and we
12214 # assume the GNU/Linux dynamic linker is in use.
12215 dynamic_linker='GNU/Linux ld.so'
12222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12225 dynamic_linker='NetBSD (a.out) ld.so'
12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12228 soname_spec='${libname}${release}${shared_ext}$major'
12229 dynamic_linker='NetBSD ld.elf_so'
12231 shlibpath_var=LD_LIBRARY_PATH
12232 shlibpath_overrides_runpath=yes
12233 hardcode_into_libs=yes
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath=yes
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 shlibpath_overrides_runpath=no
12251 hardcode_into_libs=yes
12252 dynamic_linker='ldqnx.so'
12257 sys_lib_dlsearch_path_spec="/usr/lib"
12259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12261 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12262 *) need_version=no ;;
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12269 openbsd2.[89] | openbsd2.[89].*)
12270 shlibpath_overrides_runpath=no
12273 shlibpath_overrides_runpath=yes
12277 shlibpath_overrides_runpath=yes
12282 libname_spec='$name'
12285 library_names_spec='$libname${shared_ext} $libname.a'
12286 dynamic_linker='OS/2 ld.exe'
12287 shlibpath_var=LIBPATH
12290 osf3* | osf4* | osf5*)
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296 shlibpath_var=LD_LIBRARY_PATH
12297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310 soname_spec='${libname}${release}${shared_ext}$major'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 shlibpath_overrides_runpath=yes
12313 hardcode_into_libs=yes
12314 # ldd complains unless libraries are executable
12315 postinstall_cmds='chmod +x $lib'
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes
12324 if test "$with_gnu_ld" = yes; then
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333 soname_spec='${libname}${release}${shared_ext}$major'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 case $host_vendor in
12337 shlibpath_overrides_runpath=no
12339 runpath_var=LD_RUN_PATH
12347 shlibpath_overrides_runpath=no
12348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12354 if test -d /usr/nec ;then
12356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12357 soname_spec='$libname${shared_ext}.$major'
12358 shlibpath_var=LD_LIBRARY_PATH
12362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12363 version_type=freebsd-elf
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 shlibpath_overrides_runpath=yes
12370 hardcode_into_libs=yes
12371 if test "$with_gnu_ld" = yes; then
12372 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12377 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12381 sys_lib_dlsearch_path_spec='/usr/lib'
12385 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=no
12392 hardcode_into_libs=yes
12397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398 soname_spec='${libname}${release}${shared_ext}$major'
12399 shlibpath_var=LD_LIBRARY_PATH
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12407 $as_echo "$dynamic_linker" >&6; }
12408 test "$dynamic_linker" = no && can_build_shared=no
12410 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12411 if test "$GCC" = yes; then
12412 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12415 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12416 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12418 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12419 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12514 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12516 if test -n "$hardcode_libdir_flag_spec" ||
12517 test -n "$runpath_var" ||
12518 test "X$hardcode_automatic" = "Xyes" ; then
12520 # We can hardcode non-existent directories.
12521 if test "$hardcode_direct" != no &&
12522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12523 # have to relink, otherwise we might link with an installed library
12524 # when we should be linking with a yet-to-be-installed one
12525 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12526 test "$hardcode_minus_L" != no; then
12527 # Linking always hardcodes the temporary library directory.
12528 hardcode_action=relink
12530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12531 hardcode_action=immediate
12534 # We cannot hardcode anything, or else we can only hardcode existing
12536 hardcode_action=unsupported
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12539 $as_echo "$hardcode_action" >&6; }
12541 if test "$hardcode_action" = relink ||
12542 test "$inherit_rpath" = yes; then
12543 # Fast installation is not supported
12544 enable_fast_install=no
12545 elif test "$shlibpath_overrides_runpath" = yes ||
12546 test "$enable_shared" = no; then
12547 # Fast installation is not necessary
12548 enable_fast_install=needless
12556 if test "x$enable_dlopen" != xyes; then
12557 enable_dlopen=unknown
12558 enable_dlopen_self=unknown
12559 enable_dlopen_self_static=unknown
12566 lt_cv_dlopen="load_add_on"
12568 lt_cv_dlopen_self=yes
12571 mingw* | pw32* | cegcc*)
12572 lt_cv_dlopen="LoadLibrary"
12577 lt_cv_dlopen="dlopen"
12582 # if libdl is installed we need to link against it
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12585 if ${ac_cv_lib_dl_dlopen+:} false; then :
12586 $as_echo_n "(cached) " >&6
12588 ac_check_lib_save_LIBS=$LIBS
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12608 if ac_fn_c_try_link "$LINENO"; then :
12609 ac_cv_lib_dl_dlopen=yes
12611 ac_cv_lib_dl_dlopen=no
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12618 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12619 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12623 lt_cv_dlopen="dyld"
12625 lt_cv_dlopen_self=yes
12632 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12633 if test "x$ac_cv_func_shl_load" = xyes; then :
12634 lt_cv_dlopen="shl_load"
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12637 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12638 if ${ac_cv_lib_dld_shl_load+:} false; then :
12639 $as_echo_n "(cached) " >&6
12641 ac_check_lib_save_LIBS=$LIBS
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12656 return shl_load ();
12661 if ac_fn_c_try_link "$LINENO"; then :
12662 ac_cv_lib_dld_shl_load=yes
12664 ac_cv_lib_dld_shl_load=no
12666 rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12668 LIBS=$ac_check_lib_save_LIBS
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12671 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12672 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12673 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12675 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12676 if test "x$ac_cv_func_dlopen" = xyes; then :
12677 lt_cv_dlopen="dlopen"
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12680 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12681 if ${ac_cv_lib_dl_dlopen+:} false; then :
12682 $as_echo_n "(cached) " >&6
12684 ac_check_lib_save_LIBS=$LIBS
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12704 if ac_fn_c_try_link "$LINENO"; then :
12705 ac_cv_lib_dl_dlopen=yes
12707 ac_cv_lib_dl_dlopen=no
12709 rm -f core conftest.err conftest.$ac_objext \
12710 conftest$ac_exeext conftest.$ac_ext
12711 LIBS=$ac_check_lib_save_LIBS
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12714 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12715 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12719 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12720 if ${ac_cv_lib_svld_dlopen+:} false; then :
12721 $as_echo_n "(cached) " >&6
12723 ac_check_lib_save_LIBS=$LIBS
12724 LIBS="-lsvld $LIBS"
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12728 /* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12743 if ac_fn_c_try_link "$LINENO"; then :
12744 ac_cv_lib_svld_dlopen=yes
12746 ac_cv_lib_svld_dlopen=no
12748 rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12753 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12754 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12758 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12759 if ${ac_cv_lib_dld_dld_link+:} false; then :
12760 $as_echo_n "(cached) " >&6
12762 ac_check_lib_save_LIBS=$LIBS
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12767 /* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
12777 return dld_link ();
12782 if ac_fn_c_try_link "$LINENO"; then :
12783 ac_cv_lib_dld_dld_link=yes
12785 ac_cv_lib_dld_dld_link=no
12787 rm -f core conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12792 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12793 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12794 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12815 if test "x$lt_cv_dlopen" != xno; then
12821 case $lt_cv_dlopen in
12823 save_CPPFLAGS="$CPPFLAGS"
12824 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12826 save_LDFLAGS="$LDFLAGS"
12827 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12830 LIBS="$lt_cv_dlopen_libs $LIBS"
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12833 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12834 if ${lt_cv_dlopen_self+:} false; then :
12835 $as_echo_n "(cached) " >&6
12837 if test "$cross_compiling" = yes; then :
12838 lt_cv_dlopen_self=cross
12840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12841 lt_status=$lt_dlunknown
12842 cat > conftest.$ac_ext <<_LT_EOF
12843 #line $LINENO "configure"
12844 #include "confdefs.h"
12853 # define LT_DLGLOBAL RTLD_GLOBAL
12856 # define LT_DLGLOBAL DL_GLOBAL
12858 # define LT_DLGLOBAL 0
12862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12863 find out it does not work in some platform. */
12864 #ifndef LT_DLLAZY_OR_NOW
12866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12869 # define LT_DLLAZY_OR_NOW DL_LAZY
12872 # define LT_DLLAZY_OR_NOW RTLD_NOW
12875 # define LT_DLLAZY_OR_NOW DL_NOW
12877 # define LT_DLLAZY_OR_NOW 0
12884 /* When -fvisbility=hidden is used, assume the code has been annotated
12885 correspondingly for the symbols needed. */
12886 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12887 int fnord () __attribute__((visibility("default")));
12890 int fnord () { return 42; }
12893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12894 int status = $lt_dlunknown;
12898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12902 else puts (dlerror ());
12904 /* dlclose (self); */
12912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12913 (eval $ac_link) 2>&5
12915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12916 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12917 (./conftest; exit; ) >&5 2>/dev/null
12919 case x$lt_status in
12920 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12921 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12922 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12925 # compilation failed
12926 lt_cv_dlopen_self=no
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12934 $as_echo "$lt_cv_dlopen_self" >&6; }
12936 if test "x$lt_cv_dlopen_self" = xyes; then
12937 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12939 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12940 if ${lt_cv_dlopen_self_static+:} false; then :
12941 $as_echo_n "(cached) " >&6
12943 if test "$cross_compiling" = yes; then :
12944 lt_cv_dlopen_self_static=cross
12946 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12947 lt_status=$lt_dlunknown
12948 cat > conftest.$ac_ext <<_LT_EOF
12949 #line $LINENO "configure"
12950 #include "confdefs.h"
12959 # define LT_DLGLOBAL RTLD_GLOBAL
12962 # define LT_DLGLOBAL DL_GLOBAL
12964 # define LT_DLGLOBAL 0
12968 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12969 find out it does not work in some platform. */
12970 #ifndef LT_DLLAZY_OR_NOW
12972 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12975 # define LT_DLLAZY_OR_NOW DL_LAZY
12978 # define LT_DLLAZY_OR_NOW RTLD_NOW
12981 # define LT_DLLAZY_OR_NOW DL_NOW
12983 # define LT_DLLAZY_OR_NOW 0
12990 /* When -fvisbility=hidden is used, assume the code has been annotated
12991 correspondingly for the symbols needed. */
12992 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12993 int fnord () __attribute__((visibility("default")));
12996 int fnord () { return 42; }
12999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13000 int status = $lt_dlunknown;
13004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13007 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13008 else puts (dlerror ());
13010 /* dlclose (self); */
13018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13019 (eval $ac_link) 2>&5
13021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13022 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13023 (./conftest; exit; ) >&5 2>/dev/null
13025 case x$lt_status in
13026 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13027 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13028 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13031 # compilation failed
13032 lt_cv_dlopen_self_static=no
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13040 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13043 CPPFLAGS="$save_CPPFLAGS"
13044 LDFLAGS="$save_LDFLAGS"
13049 case $lt_cv_dlopen_self in
13050 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13051 *) enable_dlopen_self=unknown ;;
13054 case $lt_cv_dlopen_self_static in
13055 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13056 *) enable_dlopen_self_static=unknown ;;
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13079 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13080 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13082 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13086 # FIXME - insert some real tests, host_os isn't really good enough
13089 if test -n "$STRIP" ; then
13090 striplib="$STRIP -x"
13091 old_striplib="$STRIP -S"
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093 $as_echo "yes" >&6; }
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13117 # Report which library types will actually be built
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13119 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13121 $as_echo "$can_build_shared" >&6; }
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13124 $as_echo_n "checking whether to build shared libraries... " >&6; }
13125 test "$can_build_shared" = "no" && enable_shared=no
13127 # On AIX, shared libraries and static libraries use the same namespace, and
13128 # are all built from PIC.
13131 test "$enable_shared" = yes && enable_static=no
13132 if test -n "$RANLIB"; then
13133 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13134 postinstall_cmds='$RANLIB $lib'
13139 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13140 test "$enable_shared" = yes && enable_static=no
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13145 $as_echo "$enable_shared" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13148 $as_echo_n "checking whether to build static libraries... " >&6; }
13149 # Make sure either enable_shared or enable_static is yes.
13150 test "$enable_shared" = yes || enable_static=yes
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13152 $as_echo "$enable_static" >&6; }
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13166 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13167 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13168 (test "X$CXX" != "Xg++"))) ; then
13170 ac_cpp='$CXXCPP $CPPFLAGS'
13171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13175 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13176 if test -z "$CXXCPP"; then
13177 if ${ac_cv_prog_CXXCPP+:} false; then :
13178 $as_echo_n "(cached) " >&6
13180 # Double quotes because CXXCPP needs to be expanded
13181 for CXXCPP in "$CXX -E" "/lib/cpp"
13183 ac_preproc_ok=false
13184 for ac_cxx_preproc_warn_flag in '' yes
13186 # Use a header file that comes with gcc, so configuring glibc
13187 # with a fresh cross-compiler works.
13188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13189 # <limits.h> exists even on freestanding compilers.
13190 # On the NeXT, cc -E runs the code through the compiler's parser,
13191 # not just through cpp. "Syntax error" is here to catch this case.
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13195 # include <limits.h>
13197 # include <assert.h>
13201 if ac_fn_cxx_try_cpp "$LINENO"; then :
13204 # Broken: fails on valid input.
13207 rm -f conftest.err conftest.i conftest.$ac_ext
13209 # OK, works on sane cases. Now check whether nonexistent headers
13210 # can be detected and how.
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213 #include <ac_nonexistent.h>
13215 if ac_fn_cxx_try_cpp "$LINENO"; then :
13216 # Broken: success on invalid input.
13219 # Passes both tests.
13223 rm -f conftest.err conftest.i conftest.$ac_ext
13226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13227 rm -f conftest.i conftest.err conftest.$ac_ext
13228 if $ac_preproc_ok; then :
13233 ac_cv_prog_CXXCPP=$CXXCPP
13236 CXXCPP=$ac_cv_prog_CXXCPP
13238 ac_cv_prog_CXXCPP=$CXXCPP
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13241 $as_echo "$CXXCPP" >&6; }
13242 ac_preproc_ok=false
13243 for ac_cxx_preproc_warn_flag in '' yes
13245 # Use a header file that comes with gcc, so configuring glibc
13246 # with a fresh cross-compiler works.
13247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13248 # <limits.h> exists even on freestanding compilers.
13249 # On the NeXT, cc -E runs the code through the compiler's parser,
13250 # not just through cpp. "Syntax error" is here to catch this case.
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13254 # include <limits.h>
13256 # include <assert.h>
13260 if ac_fn_cxx_try_cpp "$LINENO"; then :
13263 # Broken: fails on valid input.
13266 rm -f conftest.err conftest.i conftest.$ac_ext
13268 # OK, works on sane cases. Now check whether nonexistent headers
13269 # can be detected and how.
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272 #include <ac_nonexistent.h>
13274 if ac_fn_cxx_try_cpp "$LINENO"; then :
13275 # Broken: success on invalid input.
13278 # Passes both tests.
13282 rm -f conftest.err conftest.i conftest.$ac_ext
13285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13286 rm -f conftest.i conftest.err conftest.$ac_ext
13287 if $ac_preproc_ok; then :
13290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13292 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13293 See \`config.log' for more details" "$LINENO" 5; }
13297 ac_cpp='$CPP $CPPFLAGS'
13298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13303 _lt_caught_CXX_error=yes
13307 ac_cpp='$CXXCPP $CPPFLAGS'
13308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13312 archive_cmds_need_lc_CXX=no
13313 allow_undefined_flag_CXX=
13314 always_export_symbols_CXX=no
13315 archive_expsym_cmds_CXX=
13316 compiler_needs_object_CXX=no
13317 export_dynamic_flag_spec_CXX=
13318 hardcode_direct_CXX=no
13319 hardcode_direct_absolute_CXX=no
13320 hardcode_libdir_flag_spec_CXX=
13321 hardcode_libdir_flag_spec_ld_CXX=
13322 hardcode_libdir_separator_CXX=
13323 hardcode_minus_L_CXX=no
13324 hardcode_shlibpath_var_CXX=unsupported
13325 hardcode_automatic_CXX=no
13326 inherit_rpath_CXX=no
13328 module_expsym_cmds_CXX=
13329 link_all_deplibs_CXX=unknown
13330 old_archive_cmds_CXX=$old_archive_cmds
13331 reload_flag_CXX=$reload_flag
13332 reload_cmds_CXX=$reload_cmds
13333 no_undefined_flag_CXX=
13334 whole_archive_flag_spec_CXX=
13335 enable_shared_with_static_runtimes_CXX=no
13337 # Source file extension for C++ test sources.
13340 # Object file extension for compiled C++ test sources.
13344 # No sense in running all these tests if we already determined that
13345 # the CXX compiler isn't working. Some variables (like enable_shared)
13346 # are currently assumed to apply to all compilers on this platform,
13347 # and will be corrupted by setting them based on a non-working compiler.
13348 if test "$_lt_caught_CXX_error" != yes; then
13349 # Code to be used in simple compile tests
13350 lt_simple_compile_test_code="int some_variable = 0;"
13352 # Code to be used in simple link tests
13353 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13355 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13362 # If no C compiler was specified, use CC.
13365 # If no C compiler flags were specified, use CFLAGS.
13366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13368 # Allow CC to be a program name with arguments.
13372 # save warnings/boilerplate of simple test code
13373 ac_outfile=conftest.$ac_objext
13374 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13376 _lt_compiler_boilerplate=`cat conftest.err`
13379 ac_outfile=conftest.$ac_objext
13380 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13382 _lt_linker_boilerplate=`cat conftest.err`
13386 # Allow CC to be a program name with arguments.
13388 lt_save_CFLAGS=$CFLAGS
13392 lt_save_with_gnu_ld=$with_gnu_ld
13393 lt_save_path_LD=$lt_cv_path_LD
13394 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13395 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13397 $as_unset lt_cv_prog_gnu_ld
13399 if test -n "${lt_cv_path_LDCXX+set}"; then
13400 lt_cv_path_LD=$lt_cv_path_LDCXX
13402 $as_unset lt_cv_path_LD
13404 test -z "${LDCXX+set}" || LD=$LDCXX
13409 for cc_temp in $compiler""; do
13411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13417 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13420 if test -n "$compiler"; then
13421 # We don't want -fno-exception when compiling C++ code, so set the
13422 # no_builtin_flag separately
13423 if test "$GXX" = yes; then
13424 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13426 lt_prog_compiler_no_builtin_flag_CXX=
13429 if test "$GXX" = yes; then
13430 # Set up default GNU C++ configuration
13434 # Check whether --with-gnu-ld was given.
13435 if test "${with_gnu_ld+set}" = set; then :
13436 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13442 if test "$GCC" = yes; then
13443 # Check if gcc -print-prog-name=ld gives a path.
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13445 $as_echo_n "checking for ld used by $CC... " >&6; }
13448 # gcc leaves a trailing carriage return which upsets mingw
13449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13454 # Accept absolute paths.
13456 re_direlt='/[^/][^/]*/\.\./'
13457 # Canonicalize the pathname of ld
13458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13462 test -z "$LD" && LD="$ac_prog"
13465 # If it fails, then pretend we aren't using GCC.
13469 # If it is relative, then search for the first ld in PATH.
13470 with_gnu_ld=unknown
13473 elif test "$with_gnu_ld" = yes; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13475 $as_echo_n "checking for GNU ld... " >&6; }
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13478 $as_echo_n "checking for non-GNU ld... " >&6; }
13480 if ${lt_cv_path_LD+:} false; then :
13481 $as_echo_n "(cached) " >&6
13483 if test -z "$LD"; then
13484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13485 for ac_dir in $PATH; do
13487 test -z "$ac_dir" && ac_dir=.
13488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13489 lt_cv_path_LD="$ac_dir/$ac_prog"
13490 # Check to see if the program is GNU ld. I'd rather use --version,
13491 # but apparently some variants of GNU ld only accept -v.
13492 # Break only if it was the GNU/non-GNU ld that we prefer.
13493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13494 *GNU* | *'with BFD'*)
13495 test "$with_gnu_ld" != no && break
13498 test "$with_gnu_ld" != yes && break
13505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13509 LD="$lt_cv_path_LD"
13510 if test -n "$LD"; then
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13512 $as_echo "$LD" >&6; }
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13515 $as_echo "no" >&6; }
13517 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13519 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13520 if ${lt_cv_prog_gnu_ld+:} false; then :
13521 $as_echo_n "(cached) " >&6
13523 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13524 case `$LD -v 2>&1 </dev/null` in
13525 *GNU* | *'with BFD'*)
13526 lt_cv_prog_gnu_ld=yes
13529 lt_cv_prog_gnu_ld=no
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13534 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13535 with_gnu_ld=$lt_cv_prog_gnu_ld
13543 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13544 # archiving commands below assume that GNU ld is being used.
13545 if test "$with_gnu_ld" = yes; then
13546 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13547 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'
13549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13550 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13552 # If archive_cmds runs LD, not CC, wlarc should be empty
13553 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13554 # investigate it a little bit more. (MM)
13557 # ancient GNU ld didn't support --whole-archive et. al.
13558 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13559 $GREP 'no-whole-archive' > /dev/null; then
13560 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13562 whole_archive_flag_spec_CXX=
13568 # A generic and very simple default shared library creation
13569 # command for GNU C++ for the case where it uses the native
13570 # linker, instead of GNU ld. If possible, this setting should
13571 # overridden to take advantage of the native linker features on
13572 # the platform it is being used on.
13573 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13576 # Commands to make compiler produce verbose output that lists
13577 # what "hidden" libraries, object files and flags are used when
13578 # linking a shared library.
13579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13587 # PORTME: fill in a description of your system's C++ link characteristics
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13589 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13593 # FIXME: insert proper C++ library support
13597 if test "$host_cpu" = ia64; then
13598 # On IA64, the linker does run time linking by default, so we don't
13599 # have to do anything special.
13600 aix_use_runtimelinking=no
13601 exp_sym_flag='-Bexport'
13604 aix_use_runtimelinking=no
13606 # Test if we are trying to use run time linking or normal
13607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13608 # need to do runtime linking.
13609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13610 for ld_flag in $LDFLAGS; do
13613 aix_use_runtimelinking=yes
13621 exp_sym_flag='-bexport'
13622 no_entry_flag='-bnoentry'
13625 # When large executables or shared objects are built, AIX ld can
13626 # have problems creating the table of contents. If linking a library
13627 # or program results in "error TOC overflow" add -mminimal-toc to
13628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13631 archive_cmds_CXX=''
13632 hardcode_direct_CXX=yes
13633 hardcode_direct_absolute_CXX=yes
13634 hardcode_libdir_separator_CXX=':'
13635 link_all_deplibs_CXX=yes
13636 file_list_spec_CXX='${wl}-f,'
13638 if test "$GXX" = yes; then
13639 case $host_os in aix4.[012]|aix4.[012].*)
13640 # We only want to do this on AIX 4.2 and lower, the check
13641 # below for broken collect2 doesn't work under 4.3+
13642 collect2name=`${CC} -print-prog-name=collect2`
13643 if test -f "$collect2name" &&
13644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13646 # We have reworked collect2
13649 # We have old collect2
13650 hardcode_direct_CXX=unsupported
13651 # It fails to find uninstalled libraries when the uninstalled
13652 # path is not listed in the libpath. Setting hardcode_minus_L
13653 # to unsupported forces relinking
13654 hardcode_minus_L_CXX=yes
13655 hardcode_libdir_flag_spec_CXX='-L$libdir'
13656 hardcode_libdir_separator_CXX=
13659 shared_flag='-shared'
13660 if test "$aix_use_runtimelinking" = yes; then
13661 shared_flag="$shared_flag "'${wl}-G'
13665 if test "$host_cpu" = ia64; then
13666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13667 # chokes on -Wl,-G. The following line is correct:
13670 if test "$aix_use_runtimelinking" = yes; then
13671 shared_flag='${wl}-G'
13673 shared_flag='${wl}-bM:SRE'
13678 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13679 # It seems that -bexpall does not export symbols beginning with
13680 # underscore (_), so it is better to generate a list of symbols to
13682 always_export_symbols_CXX=yes
13683 if test "$aix_use_runtimelinking" = yes; then
13684 # Warning - without using the other runtime loading flags (-brtl),
13685 # -berok will link without error, but may produce a broken library.
13686 allow_undefined_flag_CXX='-berok'
13687 # Determine the default libpath from the value encoded in an empty
13689 if test "${lt_cv_aix_libpath+set}" = set; then
13690 aix_libpath=$lt_cv_aix_libpath
13692 if ${lt_cv_aix_libpath__CXX+:} false; then :
13693 $as_echo_n "(cached) " >&6
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13706 if ac_fn_cxx_try_link "$LINENO"; then :
13708 lt_aix_libpath_sed='
13709 /Import File Strings/,/^$/ {
13711 s/^0 *\([^ ]*\) *$/\1/
13715 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13716 # Check for a 64-bit object if we didn't find anything.
13717 if test -z "$lt_cv_aix_libpath__CXX"; then
13718 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13721 rm -f core conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13723 if test -z "$lt_cv_aix_libpath__CXX"; then
13724 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13729 aix_libpath=$lt_cv_aix_libpath__CXX
13732 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13734 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"
13736 if test "$host_cpu" = ia64; then
13737 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13738 allow_undefined_flag_CXX="-z nodefs"
13739 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"
13741 # Determine the default libpath from the value encoded in an
13742 # empty executable.
13743 if test "${lt_cv_aix_libpath+set}" = set; then
13744 aix_libpath=$lt_cv_aix_libpath
13746 if ${lt_cv_aix_libpath__CXX+:} false; then :
13747 $as_echo_n "(cached) " >&6
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13760 if ac_fn_cxx_try_link "$LINENO"; then :
13762 lt_aix_libpath_sed='
13763 /Import File Strings/,/^$/ {
13765 s/^0 *\([^ ]*\) *$/\1/
13769 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13770 # Check for a 64-bit object if we didn't find anything.
13771 if test -z "$lt_cv_aix_libpath__CXX"; then
13772 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13775 rm -f core conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 if test -z "$lt_cv_aix_libpath__CXX"; then
13778 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13783 aix_libpath=$lt_cv_aix_libpath__CXX
13786 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13787 # Warning - without using the other run time loading flags,
13788 # -berok will link without error, but may produce a broken library.
13789 no_undefined_flag_CXX=' ${wl}-bernotok'
13790 allow_undefined_flag_CXX=' ${wl}-berok'
13791 if test "$with_gnu_ld" = yes; then
13792 # We only use this code for GNU lds that support --whole-archive.
13793 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13795 # Exported symbols can be pulled into shared objects from archives
13796 whole_archive_flag_spec_CXX='$convenience'
13798 archive_cmds_need_lc_CXX=yes
13799 # This is similar to how AIX traditionally builds its shared
13801 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'
13807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13808 allow_undefined_flag_CXX=unsupported
13809 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13810 # support --undefined. This deserves some investigation. FIXME
13811 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818 case $cc_basename in
13820 # FIXME: insert proper C++ library support
13826 cygwin* | mingw* | pw32* | cegcc*)
13827 case $GXX,$cc_basename in
13830 # hardcode_libdir_flag_spec is actually meaningless, as there is
13831 # no search path for DLLs.
13832 hardcode_libdir_flag_spec_CXX=' '
13833 allow_undefined_flag_CXX=unsupported
13834 always_export_symbols_CXX=yes
13835 file_list_spec_CXX='@'
13836 # Tell ltmain to make .lib files, not .a files.
13838 # Tell ltmain to make .dll files, not .so files.
13840 # FIXME: Setting linknames here is a bad hack.
13841 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13842 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13843 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13845 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13847 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13849 # The linker will not automatically build a static lib if we build a DLL.
13850 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13851 enable_shared_with_static_runtimes_CXX=yes
13853 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13854 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13855 lt_tool_outputfile="@TOOL_OUTPUT@"~
13856 case $lt_outputfile in
13859 lt_outputfile="$lt_outputfile.exe"
13860 lt_tool_outputfile="$lt_tool_outputfile.exe"
13863 func_to_tool_file "$lt_outputfile"~
13864 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13865 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13866 $RM "$lt_outputfile.manifest";
13871 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13872 # as there is no search path for DLLs.
13873 hardcode_libdir_flag_spec_CXX='-L$libdir'
13874 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13875 allow_undefined_flag_CXX=unsupported
13876 always_export_symbols_CXX=no
13877 enable_shared_with_static_runtimes_CXX=yes
13879 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13880 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'
13881 # If the export-symbols file already is a .def file (1st line
13882 # is EXPORTS), use it as is; otherwise, prepend...
13883 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13884 cp $export_symbols $output_objdir/$soname.def;
13886 echo EXPORTS > $output_objdir/$soname.def;
13887 cat $export_symbols >> $output_objdir/$soname.def;
13889 $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'
13896 darwin* | rhapsody*)
13899 archive_cmds_need_lc_CXX=no
13900 hardcode_direct_CXX=no
13901 hardcode_automatic_CXX=yes
13902 hardcode_shlibpath_var_CXX=unsupported
13903 if test "$lt_cv_ld_force_load" = "yes"; then
13904 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\"`'
13906 whole_archive_flag_spec_CXX=''
13908 link_all_deplibs_CXX=yes
13909 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13910 case $cc_basename in
13911 ifort*) _lt_dar_can_shared=yes ;;
13912 *) _lt_dar_can_shared=$GCC ;;
13914 if test "$_lt_dar_can_shared" = "yes"; then
13915 output_verbose_link_cmd=func_echo_all
13916 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}"
13917 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13918 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}"
13919 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}"
13920 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13921 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}"
13922 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}"
13932 case $cc_basename in
13934 # FIXME: insert proper C++ library support
13938 # Green Hills C++ Compiler
13939 # FIXME: insert proper C++ library support
13943 # FIXME: insert proper C++ library support
13950 # C++ shared libraries reported to be fairly broken before
13956 archive_cmds_need_lc_CXX=no
13959 freebsd* | dragonfly*)
13960 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13969 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13970 link_all_deplibs_CXX=yes
13974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13975 hardcode_libdir_separator_CXX=:
13976 export_dynamic_flag_spec_CXX='${wl}-E'
13977 hardcode_direct_CXX=yes
13978 hardcode_minus_L_CXX=yes # Not in the search PATH,
13979 # but as the default
13980 # location of the library.
13982 case $cc_basename in
13984 # FIXME: insert proper C++ library support
13988 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'
13989 # Commands to make compiler produce verbose output that lists
13990 # what "hidden" libraries, object files and flags are used when
13991 # linking a shared library.
13993 # There doesn't appear to be a way to prevent this compiler from
13994 # explicitly linking system object files so we need to strip them
13995 # from the output so that they don't get included in the library
13997 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"'
14000 if test "$GXX" = yes; then
14001 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'
14003 # FIXME: insert proper C++ library support
14011 if test $with_gnu_ld = no; then
14012 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14013 hardcode_libdir_separator_CXX=:
14019 export_dynamic_flag_spec_CXX='${wl}-E'
14025 hardcode_direct_CXX=no
14026 hardcode_shlibpath_var_CXX=no
14029 hardcode_direct_CXX=yes
14030 hardcode_direct_absolute_CXX=yes
14031 hardcode_minus_L_CXX=yes # Not in the search PATH,
14032 # but as the default
14033 # location of the library.
14037 case $cc_basename in
14039 # FIXME: insert proper C++ library support
14045 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14048 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14051 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14054 # Commands to make compiler produce verbose output that lists
14055 # what "hidden" libraries, object files and flags are used when
14056 # linking a shared library.
14058 # There doesn't appear to be a way to prevent this compiler from
14059 # explicitly linking system object files so we need to strip them
14060 # from the output so that they don't get included in the library
14062 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"'
14065 if test "$GXX" = yes; then
14066 if test $with_gnu_ld = no; then
14069 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14072 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14075 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'
14080 # FIXME: insert proper C++ library support
14088 hardcode_direct_CXX=no
14089 hardcode_shlibpath_var_CXX=no
14090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14091 export_dynamic_flag_spec_CXX='${wl}-E'
14092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14093 # Instead, shared libraries are loaded at an image base (0x10000000 by
14094 # default) and relocated if they conflict, which is a slow very memory
14095 # consuming and fragmenting process. To avoid this, we pick a random,
14096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14098 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'
14099 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'
14102 case $cc_basename in
14105 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'
14107 # Archives containing C++ object files must be created using
14108 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14109 # necessary to make sure instantiated templates are included
14111 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14114 if test "$GXX" = yes; then
14115 if test "$with_gnu_ld" = no; then
14116 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'
14118 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'
14121 link_all_deplibs_CXX=yes
14124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14125 hardcode_libdir_separator_CXX=:
14126 inherit_rpath_CXX=yes
14129 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14130 case $cc_basename in
14132 # Kuck and Associates, Inc. (KAI) C++ Compiler
14134 # KCC will only create a shared library if the output file
14135 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14136 # to its proper name (with version) after linking.
14137 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'
14138 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'
14139 # Commands to make compiler produce verbose output that lists
14140 # what "hidden" libraries, object files and flags are used when
14141 # linking a shared library.
14143 # There doesn't appear to be a way to prevent this compiler from
14144 # explicitly linking system object files so we need to strip them
14145 # from the output so that they don't get included in the library
14147 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"'
14149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14152 # Archives containing C++ object files must be created using
14153 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14154 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14159 # version 8.0 and above of icpc choke on multiply defined symbols
14160 # if we add $predep_objects and $postdep_objects, however 7.1 and
14161 # earlier do not add the objects themselves.
14162 case `$CC -V 2>&1` in
14164 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165 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'
14167 *) # Version 8.0 or newer
14170 ia64*) tmp_idyn=' -i_dynamic';;
14172 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14173 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'
14176 archive_cmds_need_lc_CXX=no
14177 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14178 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14179 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14182 # Portland Group C++ compiler
14184 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14185 prelink_cmds_CXX='tpldir=Template.dir~
14187 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14188 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14189 old_archive_cmds_CXX='tpldir=Template.dir~
14191 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14192 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14194 archive_cmds_CXX='tpldir=Template.dir~
14196 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14197 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14198 archive_expsym_cmds_CXX='tpldir=Template.dir~
14200 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14201 $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'
14203 *) # Version 6 and above use weak symbols
14204 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14205 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'
14209 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14211 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'
14215 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14216 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'
14218 runpath_var=LD_RUN_PATH
14219 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14220 hardcode_libdir_separator_CXX=:
14222 # Commands to make compiler produce verbose output that lists
14223 # what "hidden" libraries, object files and flags are used when
14224 # linking a shared library.
14226 # There doesn't appear to be a way to prevent this compiler from
14227 # explicitly linking system object files so we need to strip them
14228 # from the output so that they don't get included in the library
14230 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'
14232 xl* | mpixl* | bgxl*)
14233 # IBM XL 8.0 on PPC, with GNU ld
14234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14236 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14237 if test "x$supports_anon_versioning" = xyes; then
14238 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14240 echo "local: *; };" >> $output_objdir/$libname.ver~
14241 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14245 case `$CC -V 2>&1 | sed 5q` in
14248 no_undefined_flag_CXX=' -zdefs'
14249 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14250 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'
14251 hardcode_libdir_flag_spec_CXX='-R$libdir'
14252 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'
14253 compiler_needs_object_CXX=yes
14255 # Not sure whether something based on
14256 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14258 output_verbose_link_cmd='func_echo_all'
14260 # Archives containing C++ object files must be created using
14261 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14262 # necessary to make sure instantiated templates are included
14264 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14272 # FIXME: insert proper C++ library support
14277 # FIXME: insert proper C++ library support
14282 case $cc_basename in
14284 # FIXME: insert proper C++ library support
14288 # FIXME: insert proper C++ library support
14295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14296 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14298 hardcode_libdir_flag_spec_CXX='-R$libdir'
14299 hardcode_direct_CXX=yes
14300 hardcode_shlibpath_var_CXX=no
14302 # Workaround some broken pre-1.5 toolchains
14303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14311 # C++ shared libraries are fairly broken
14316 if test -f /usr/libexec/ld.so; then
14317 hardcode_direct_CXX=yes
14318 hardcode_shlibpath_var_CXX=no
14319 hardcode_direct_absolute_CXX=yes
14320 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14323 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14324 export_dynamic_flag_spec_CXX='${wl}-E'
14325 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14327 output_verbose_link_cmd=func_echo_all
14333 osf3* | osf4* | osf5*)
14334 case $cc_basename in
14336 # Kuck and Associates, Inc. (KAI) C++ Compiler
14338 # KCC will only create a shared library if the output file
14339 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14340 # to its proper name (with version) after linking.
14341 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'
14343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14344 hardcode_libdir_separator_CXX=:
14346 # Archives containing C++ object files must be created using
14347 # the KAI C++ compiler.
14349 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14350 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14354 # Rational C++ 2.4.1
14355 # FIXME: insert proper C++ library support
14361 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14362 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'
14363 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14366 allow_undefined_flag_CXX=' -expect_unresolved \*'
14367 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'
14368 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14369 echo "-hidden">> $lib.exp~
14370 $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~
14372 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14376 hardcode_libdir_separator_CXX=:
14378 # Commands to make compiler produce verbose output that lists
14379 # what "hidden" libraries, object files and flags are used when
14380 # linking a shared library.
14382 # There doesn't appear to be a way to prevent this compiler from
14383 # explicitly linking system object files so we need to strip them
14384 # from the output so that they don't get included in the library
14386 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"'
14389 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14390 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14393 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'
14396 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'
14400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14401 hardcode_libdir_separator_CXX=:
14403 # Commands to make compiler produce verbose output that lists
14404 # what "hidden" libraries, object files and flags are used when
14405 # linking a shared library.
14406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14409 # FIXME: insert proper C++ library support
14417 # FIXME: insert proper C++ library support
14422 case $cc_basename in
14425 # FIXME: insert proper C++ library support
14430 # FIXME: insert proper C++ library support
14434 # FIXME: insert proper C++ library support
14441 case $cc_basename in
14443 # Sun C++ 4.2, 5.x and Centerline C++
14444 archive_cmds_need_lc_CXX=yes
14445 no_undefined_flag_CXX=' -zdefs'
14446 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14447 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14448 $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'
14450 hardcode_libdir_flag_spec_CXX='-R$libdir'
14451 hardcode_shlibpath_var_CXX=no
14453 solaris2.[0-5] | solaris2.[0-5].*) ;;
14455 # The compiler driver will combine and reorder linker options,
14456 # but understands `-z linker_flag'.
14457 # Supported since Solaris 2.6 (maybe 2.5.1?)
14458 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14461 link_all_deplibs_CXX=yes
14463 output_verbose_link_cmd='func_echo_all'
14465 # Archives containing C++ object files must be created using
14466 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14467 # necessary to make sure instantiated templates are included
14469 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14472 # Green Hills C++ Compiler
14473 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14475 # The C++ compiler must be used to create the archive.
14476 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14479 # GNU C++ compiler with Solaris linker
14480 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14481 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14482 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14483 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14484 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14485 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14487 # Commands to make compiler produce verbose output that lists
14488 # what "hidden" libraries, object files and flags are used when
14489 # linking a shared library.
14490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14492 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14494 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14495 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14496 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14498 # Commands to make compiler produce verbose output that lists
14499 # what "hidden" libraries, object files and flags are used when
14500 # linking a shared library.
14501 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14504 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14506 solaris2.[0-5] | solaris2.[0-5].*) ;;
14508 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14517 no_undefined_flag_CXX='${wl}-z,text'
14518 archive_cmds_need_lc_CXX=no
14519 hardcode_shlibpath_var_CXX=no
14520 runpath_var='LD_RUN_PATH'
14522 case $cc_basename in
14524 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14529 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534 sysv5* | sco3.2v5* | sco5v6*)
14535 # Note: We can NOT use -z defs as we might desire, because we do not
14536 # link with -lc, and that would cause any symbols used from libc to
14537 # always be unresolved, which means just about no library would
14538 # ever link correctly. If we're not using GNU ld we use -z text
14539 # though, which does catch some bad symbols but isn't as heavy-handed
14541 no_undefined_flag_CXX='${wl}-z,text'
14542 allow_undefined_flag_CXX='${wl}-z,nodefs'
14543 archive_cmds_need_lc_CXX=no
14544 hardcode_shlibpath_var_CXX=no
14545 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14546 hardcode_libdir_separator_CXX=':'
14547 link_all_deplibs_CXX=yes
14548 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14549 runpath_var='LD_RUN_PATH'
14551 case $cc_basename in
14553 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14556 '"$old_archive_cmds_CXX"
14557 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14558 '"$reload_cmds_CXX"
14561 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14562 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 case $cc_basename in
14570 # NonStop-UX NCC 3.20
14571 # FIXME: insert proper C++ library support
14575 # FIXME: insert proper C++ library support
14582 # FIXME: insert proper C++ library support
14587 # FIXME: insert proper C++ library support
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14593 $as_echo "$ld_shlibs_CXX" >&6; }
14594 test "$ld_shlibs_CXX" = no && can_build_shared=no
14600 ## There is no encapsulation within the following macros, do not change
14601 ## the running order or otherwise move them around unless you know exactly
14602 ## what you are doing...
14603 # Dependencies to place before and after the object being linked:
14604 predep_objects_CXX=
14605 postdep_objects_CXX=
14608 compiler_lib_search_path_CXX=
14610 cat > conftest.$ac_ext <<_LT_EOF
14614 Foo (void) { a = 0; }
14621 _lt_libdeps_save_CFLAGS=$CFLAGS
14622 case "$CC $CFLAGS " in #(
14623 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14624 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14628 (eval $ac_compile) 2>&5
14630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14631 test $ac_status = 0; }; then
14632 # Parse the compiler output and extract the necessary
14633 # objects, libraries and library flags.
14635 # Sentinel used to keep track of whether or not we are before
14636 # the conftest object file.
14637 pre_test_object_deps_done=no
14639 for p in `eval "$output_verbose_link_cmd"`; do
14640 case ${prev}${p} in
14643 # Some compilers place space between "-{L,R}" and the path.
14644 # Remove the space.
14645 if test $p = "-L" ||
14646 test $p = "-R"; then
14651 # Expand the sysroot to ease extracting the directories later.
14652 if test -z "$prev"; then
14654 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14655 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14656 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14660 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14662 if test "$pre_test_object_deps_done" = no; then
14665 # Internal compiler library paths should come after those
14666 # provided the user. The postdeps already come after the
14667 # user supplied libs so there is no need to process them.
14668 if test -z "$compiler_lib_search_path_CXX"; then
14669 compiler_lib_search_path_CXX="${prev}${p}"
14671 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14674 # The "-l" case would never come before the object being
14675 # linked, so don't bother handling this case.
14678 if test -z "$postdeps_CXX"; then
14679 postdeps_CXX="${prev}${p}"
14681 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14687 *.lto.$objext) ;; # Ignore GCC LTO objects
14689 # This assumes that the test object file only shows up
14690 # once in the compiler output.
14691 if test "$p" = "conftest.$objext"; then
14692 pre_test_object_deps_done=yes
14696 if test "$pre_test_object_deps_done" = no; then
14697 if test -z "$predep_objects_CXX"; then
14698 predep_objects_CXX="$p"
14700 predep_objects_CXX="$predep_objects_CXX $p"
14703 if test -z "$postdep_objects_CXX"; then
14704 postdep_objects_CXX="$p"
14706 postdep_objects_CXX="$postdep_objects_CXX $p"
14711 *) ;; # Ignore the rest.
14719 echo "libtool.m4: error: problem compiling CXX test program"
14722 $RM -f confest.$objext
14723 CFLAGS=$_lt_libdeps_save_CFLAGS
14725 # PORTME: override above test on systems where it is broken
14728 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14729 # hack all around it, let's just trust "g++" to DTRT.
14730 predep_objects_CXX=
14731 postdep_objects_CXX=
14736 case `$CC -V 2>&1 | sed 5q` in
14740 # The more standards-conforming stlport4 library is
14741 # incompatible with the Cstd library. Avoid specifying
14742 # it if it's in CXXFLAGS. Ignore libCrun as
14743 # -library=stlport4 depends on it.
14744 case " $CXX $CXXFLAGS " in
14745 *" -library=stlport4 "*)
14746 solaris_use_stlport4=yes
14750 if test "$solaris_use_stlport4" != yes; then
14751 postdeps_CXX='-library=Cstd -library=Crun'
14758 case $cc_basename in
14760 # The more standards-conforming stlport4 library is
14761 # incompatible with the Cstd library. Avoid specifying
14762 # it if it's in CXXFLAGS. Ignore libCrun as
14763 # -library=stlport4 depends on it.
14764 case " $CXX $CXXFLAGS " in
14765 *" -library=stlport4 "*)
14766 solaris_use_stlport4=yes
14770 # Adding this requires a known-good setup of shared libraries for
14771 # Sun compiler versions before 5.6, else PIC objects from an old
14772 # archive will be linked into the output, leading to subtle bugs.
14773 if test "$solaris_use_stlport4" != yes; then
14774 postdeps_CXX='-library=Cstd -library=Crun'
14782 case " $postdeps_CXX " in
14783 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14785 compiler_lib_search_dirs_CXX=
14786 if test -n "${compiler_lib_search_path_CXX}"; then
14787 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14820 lt_prog_compiler_wl_CXX=
14821 lt_prog_compiler_pic_CXX=
14822 lt_prog_compiler_static_CXX=
14825 # C++ specific cases for pic, static, wl, etc.
14826 if test "$GXX" = yes; then
14827 lt_prog_compiler_wl_CXX='-Wl,'
14828 lt_prog_compiler_static_CXX='-static'
14832 # All AIX code is PIC.
14833 if test "$host_cpu" = ia64; then
14834 # AIX 5 now supports IA64 processor
14835 lt_prog_compiler_static_CXX='-Bstatic'
14842 # see comment about AmigaOS4 .so support
14843 lt_prog_compiler_pic_CXX='-fPIC'
14846 # FIXME: we need at least 68020 code to build shared libraries, but
14847 # adding the `-m68020' flag to GCC prevents building anything better,
14849 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14854 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14855 # PIC is the default for these OSes.
14857 mingw* | cygwin* | os2* | pw32* | cegcc*)
14858 # This hack is so that the source file can tell whether it is being
14859 # built for inclusion in a dll (and should export symbols for example).
14860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14861 # (--disable-auto-import) libraries
14862 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14864 darwin* | rhapsody*)
14865 # PIC is the default on this platform
14866 # Common symbols not allowed in MH_DYLIB files
14867 lt_prog_compiler_pic_CXX='-fno-common'
14870 # DJGPP does not support shared libraries at all
14871 lt_prog_compiler_pic_CXX=
14874 # PIC is the default for Haiku.
14875 # The "-static" flag exists, but is broken.
14876 lt_prog_compiler_static_CXX=
14879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14880 # Instead, we relocate shared libraries at runtime.
14883 if test -d /usr/nec; then
14884 lt_prog_compiler_pic_CXX=-Kconform_pic
14888 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14889 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14890 # sets the default TLS model and affects inlining.
14895 lt_prog_compiler_pic_CXX='-fPIC'
14900 # QNX uses GNU C++, but need to define -shared option too, otherwise
14901 # it will coredump.
14902 lt_prog_compiler_pic_CXX='-fPIC -shared'
14905 lt_prog_compiler_pic_CXX='-fPIC'
14911 # All AIX code is PIC.
14912 if test "$host_cpu" = ia64; then
14913 # AIX 5 now supports IA64 processor
14914 lt_prog_compiler_static_CXX='-Bstatic'
14916 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14920 case $cc_basename in
14922 # Green Hills C++ Compiler
14923 # _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"
14927 mingw* | cygwin* | os2* | pw32* | cegcc*)
14928 # This hack is so that the source file can tell whether it is being
14929 # built for inclusion in a dll (and should export symbols for example).
14930 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14933 case $cc_basename in
14935 lt_prog_compiler_pic_CXX='-KPIC'
14938 # Green Hills C++ Compiler
14939 lt_prog_compiler_pic_CXX='-pic'
14945 freebsd* | dragonfly*)
14946 # FreeBSD uses GNU C++
14948 hpux9* | hpux10* | hpux11*)
14949 case $cc_basename in
14951 lt_prog_compiler_wl_CXX='-Wl,'
14952 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14953 if test "$host_cpu" != ia64; then
14954 lt_prog_compiler_pic_CXX='+Z'
14958 lt_prog_compiler_wl_CXX='-Wl,'
14959 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14965 lt_prog_compiler_pic_CXX='+Z'
14974 # This is c89, which is MS Visual C++ (no shared libs)
14975 # Anyone wants to do a port?
14977 irix5* | irix6* | nonstopux*)
14978 case $cc_basename in
14980 lt_prog_compiler_wl_CXX='-Wl,'
14981 lt_prog_compiler_static_CXX='-non_shared'
14982 # CC pic flag -KPIC is the default.
14988 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14989 case $cc_basename in
14992 lt_prog_compiler_wl_CXX='--backend -Wl,'
14993 lt_prog_compiler_pic_CXX='-fPIC'
14996 # old Intel C++ for x86_64 which still supported -KPIC.
14997 lt_prog_compiler_wl_CXX='-Wl,'
14998 lt_prog_compiler_pic_CXX='-KPIC'
14999 lt_prog_compiler_static_CXX='-static'
15002 # Intel C++, used to be incompatible with GCC.
15003 # ICC 10 doesn't accept -KPIC any more.
15004 lt_prog_compiler_wl_CXX='-Wl,'
15005 lt_prog_compiler_pic_CXX='-fPIC'
15006 lt_prog_compiler_static_CXX='-static'
15009 # Portland Group C++ compiler
15010 lt_prog_compiler_wl_CXX='-Wl,'
15011 lt_prog_compiler_pic_CXX='-fpic'
15012 lt_prog_compiler_static_CXX='-Bstatic'
15016 # Make sure the PIC flag is empty. It appears that all Alpha
15017 # Linux and Compaq Tru64 Unix objects are PIC.
15018 lt_prog_compiler_pic_CXX=
15019 lt_prog_compiler_static_CXX='-non_shared'
15021 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15022 # IBM XL 8.0, 9.0 on PPC and BlueGene
15023 lt_prog_compiler_wl_CXX='-Wl,'
15024 lt_prog_compiler_pic_CXX='-qpic'
15025 lt_prog_compiler_static_CXX='-qstaticlink'
15028 case `$CC -V 2>&1 | sed 5q` in
15031 lt_prog_compiler_pic_CXX='-KPIC'
15032 lt_prog_compiler_static_CXX='-Bstatic'
15033 lt_prog_compiler_wl_CXX='-Qoption ld '
15044 case $cc_basename in
15046 lt_prog_compiler_pic_CXX='-W c,exportall'
15055 # QNX uses GNU C++, but need to define -shared option too, otherwise
15056 # it will coredump.
15057 lt_prog_compiler_pic_CXX='-fPIC -shared'
15059 osf3* | osf4* | osf5*)
15060 case $cc_basename in
15062 lt_prog_compiler_wl_CXX='--backend -Wl,'
15065 # Rational C++ 2.4.1
15066 lt_prog_compiler_pic_CXX='-pic'
15069 # Digital/Compaq C++
15070 lt_prog_compiler_wl_CXX='-Wl,'
15071 # Make sure the PIC flag is empty. It appears that all Alpha
15072 # Linux and Compaq Tru64 Unix objects are PIC.
15073 lt_prog_compiler_pic_CXX=
15074 lt_prog_compiler_static_CXX='-non_shared'
15083 case $cc_basename in
15085 # Sun C++ 4.2, 5.x and Centerline C++
15086 lt_prog_compiler_pic_CXX='-KPIC'
15087 lt_prog_compiler_static_CXX='-Bstatic'
15088 lt_prog_compiler_wl_CXX='-Qoption ld '
15091 # Green Hills C++ Compiler
15092 lt_prog_compiler_pic_CXX='-PIC'
15099 case $cc_basename in
15102 lt_prog_compiler_pic_CXX='-pic'
15103 lt_prog_compiler_static_CXX='-Bstatic'
15107 lt_prog_compiler_pic_CXX='-pic'
15113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15114 case $cc_basename in
15116 lt_prog_compiler_wl_CXX='-Wl,'
15117 lt_prog_compiler_pic_CXX='-KPIC'
15118 lt_prog_compiler_static_CXX='-Bstatic'
15123 case $cc_basename in
15125 # NonStop-UX NCC 3.20
15126 lt_prog_compiler_pic_CXX='-KPIC'
15135 lt_prog_compiler_can_build_shared_CXX=no
15141 # For platforms which do not support PIC, -DPIC is meaningless:
15143 lt_prog_compiler_pic_CXX=
15146 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15151 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15152 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15153 $as_echo_n "(cached) " >&6
15155 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15158 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15159 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15162 # Check to make sure the PIC flag actually works.
15164 if test -n "$lt_prog_compiler_pic_CXX"; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15166 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15167 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15168 $as_echo_n "(cached) " >&6
15170 lt_cv_prog_compiler_pic_works_CXX=no
15171 ac_outfile=conftest.$ac_objext
15172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15173 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15174 # Insert the option either (1) after the last *FLAGS variable, or
15175 # (2) before a word containing "conftest.", or (3) at the end.
15176 # Note that $ac_compile itself does not contain backslashes and begins
15177 # with a dollar sign (not a hyphen), so the echo should work correctly.
15178 # The option is referenced via a variable to avoid confusing sed.
15179 lt_compile=`echo "$ac_compile" | $SED \
15180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15182 -e 's:$: $lt_compiler_flag:'`
15183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15184 (eval "$lt_compile" 2>conftest.err)
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 if (exit $ac_status) && test -s "$ac_outfile"; then
15189 # The compiler can only warn and ignore the option if not recognized
15190 # So say no if there are warnings other than the usual output.
15191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15194 lt_cv_prog_compiler_pic_works_CXX=yes
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15201 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15203 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15204 case $lt_prog_compiler_pic_CXX in
15206 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15209 lt_prog_compiler_pic_CXX=
15210 lt_prog_compiler_can_build_shared_CXX=no
15220 # Check to make sure the static flag actually works.
15222 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15224 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15225 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15226 $as_echo_n "(cached) " >&6
15228 lt_cv_prog_compiler_static_works_CXX=no
15229 save_LDFLAGS="$LDFLAGS"
15230 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15231 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15233 # The linker can only warn and ignore the option if not recognized
15234 # So say no if there are warnings
15235 if test -s conftest.err; then
15236 # Append any errors to the config.log.
15237 cat conftest.err 1>&5
15238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15240 if diff conftest.exp conftest.er2 >/dev/null; then
15241 lt_cv_prog_compiler_static_works_CXX=yes
15244 lt_cv_prog_compiler_static_works_CXX=yes
15248 LDFLAGS="$save_LDFLAGS"
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15252 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15254 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15257 lt_prog_compiler_static_CXX=
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15265 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15266 $as_echo_n "(cached) " >&6
15268 lt_cv_prog_compiler_c_o_CXX=no
15269 $RM -r conftest 2>/dev/null
15273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15275 lt_compiler_flag="-o out/conftest2.$ac_objext"
15276 # Insert the option either (1) after the last *FLAGS variable, or
15277 # (2) before a word containing "conftest.", or (3) at the end.
15278 # Note that $ac_compile itself does not contain backslashes and begins
15279 # with a dollar sign (not a hyphen), so the echo should work correctly.
15280 lt_compile=`echo "$ac_compile" | $SED \
15281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15283 -e 's:$: $lt_compiler_flag:'`
15284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15285 (eval "$lt_compile" 2>out/conftest.err)
15287 cat out/conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15291 # The compiler can only warn and ignore the option if not recognized
15292 # So say no if there are warnings
15293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15296 lt_cv_prog_compiler_c_o_CXX=yes
15301 # SGI C++ compiler will create directory out/ii_files/ for
15302 # template instantiation
15303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15304 $RM out/* && rmdir out
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15311 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15316 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15317 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15318 $as_echo_n "(cached) " >&6
15320 lt_cv_prog_compiler_c_o_CXX=no
15321 $RM -r conftest 2>/dev/null
15325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15327 lt_compiler_flag="-o out/conftest2.$ac_objext"
15328 # Insert the option either (1) after the last *FLAGS variable, or
15329 # (2) before a word containing "conftest.", or (3) at the end.
15330 # Note that $ac_compile itself does not contain backslashes and begins
15331 # with a dollar sign (not a hyphen), so the echo should work correctly.
15332 lt_compile=`echo "$ac_compile" | $SED \
15333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15335 -e 's:$: $lt_compiler_flag:'`
15336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15337 (eval "$lt_compile" 2>out/conftest.err)
15339 cat out/conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15343 # The compiler can only warn and ignore the option if not recognized
15344 # So say no if there are warnings
15345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15348 lt_cv_prog_compiler_c_o_CXX=yes
15353 # SGI C++ compiler will create directory out/ii_files/ for
15354 # template instantiation
15355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15356 $RM out/* && rmdir out
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15363 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15368 hard_links="nottested"
15369 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15370 # do not overwrite the value of need_locks provided by the user
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15372 $as_echo_n "checking if we can lock with hard links... " >&6; }
15375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15377 ln conftest.a conftest.b 2>&5 || hard_links=no
15378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15380 $as_echo "$hard_links" >&6; }
15381 if test "$hard_links" = no; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15383 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15395 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15399 # If we're using GNU nm, then we don't want the "-C" option.
15400 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15401 # Also, AIX nm treats weak defined symbols like other global defined
15402 # symbols, whereas GNU nm marks them as "W".
15403 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15404 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'
15406 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'
15410 export_symbols_cmds_CXX="$ltdll_cmds"
15412 cygwin* | mingw* | cegcc*)
15413 case $cc_basename in
15416 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'
15417 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15422 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15427 $as_echo "$ld_shlibs_CXX" >&6; }
15428 test "$ld_shlibs_CXX" = no && can_build_shared=no
15430 with_gnu_ld_CXX=$with_gnu_ld
15438 # Do we need to explicitly link libc?
15440 case "x$archive_cmds_need_lc_CXX" in
15442 # Assume -lc should be added
15443 archive_cmds_need_lc_CXX=yes
15445 if test "$enable_shared" = yes && test "$GCC" = yes; then
15446 case $archive_cmds_CXX in
15448 # FIXME: we may have to deal with multi-command sequences.
15451 # Test whether the compiler implicitly links with -lc since on some
15452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15453 # to ld, don't add -lc before -lgcc.
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15456 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15457 $as_echo_n "(cached) " >&6
15460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15463 (eval $ac_compile) 2>&5
15465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15466 test $ac_status = 0; } 2>conftest.err; then
15469 libobjs=conftest.$ac_objext
15471 wl=$lt_prog_compiler_wl_CXX
15472 pic_flag=$lt_prog_compiler_pic_CXX
15478 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15479 allow_undefined_flag_CXX=
15480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15481 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15484 test $ac_status = 0; }
15486 lt_cv_archive_cmds_need_lc_CXX=no
15488 lt_cv_archive_cmds_need_lc_CXX=yes
15490 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15492 cat conftest.err 1>&5
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15498 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15499 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15570 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15572 library_names_spec=
15573 libname_spec='lib$name'
15577 postuninstall_cmds=
15581 shlibpath_overrides_runpath=unknown
15583 dynamic_linker="$host_os ld.so"
15584 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15585 need_lib_prefix=unknown
15586 hardcode_into_libs=no
15588 # when you set need_version to no, make sure it does not cause -set_version
15589 # flags to be left without arguments
15590 need_version=unknown
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15596 shlibpath_var=LIBPATH
15598 # AIX 3 has no versioning support, so we append a major version to the name.
15599 soname_spec='${libname}${release}${shared_ext}$major'
15606 hardcode_into_libs=yes
15607 if test "$host_cpu" = ia64; then
15608 # AIX 5 supports IA64
15609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15610 shlibpath_var=LD_LIBRARY_PATH
15612 # With GCC up to 2.95.x, collect2 would create an import file
15613 # for dependence libraries. The import file would start with
15614 # the line `#! .'. This would cause the generated library to
15615 # depend on `.', always an invalid library. This was fixed in
15616 # development snapshots of GCC prior to 3.0.
15618 aix4 | aix4.[01] | aix4.[01].*)
15619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15621 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15624 can_build_shared=no
15628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15629 # soname into executable. Probably we can add versioning support to
15630 # collect2, so additional links can be useful in future.
15631 if test "$aix_use_runtimelinking" = yes; then
15632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15633 # instead of lib<name>.a to let people know that these are not
15634 # typical AIX shared libraries.
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 # We preserve .a as extension for shared libraries through AIX4.2
15638 # and later when we are not doing run time linking.
15639 library_names_spec='${libname}${release}.a $libname.a'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15642 shlibpath_var=LIBPATH
15649 # Since July 2007 AmigaOS4 officially supports .so libraries.
15650 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 library_names_spec='$libname.ixlibrary $libname.a'
15655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15656 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'
15662 library_names_spec='${libname}${shared_ext}'
15663 dynamic_linker="$host_os ld.so"
15664 shlibpath_var=LIBRARY_PATH
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15676 # the default ld.so.conf also contains /usr/contrib/lib and
15677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15678 # libtool to hard-code these into programs
15681 cygwin* | mingw* | pw32* | cegcc*)
15682 version_type=windows
15687 case $GCC,$cc_basename in
15690 library_names_spec='$libname.dll.a'
15691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692 postinstall_cmds='base_file=`basename \${file}`~
15693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15694 dldir=$destdir/`dirname \$dlpath`~
15695 test -d \$dldir || mkdir -p \$dldir~
15696 $install_prog $dir/$dlname \$dldir/$dlname~
15697 chmod a+x \$dldir/$dlname~
15698 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15699 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15702 dlpath=$dir/\$dldll~
15704 shlibpath_overrides_runpath=yes
15708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15713 # MinGW DLLs use traditional 'lib' prefix
15714 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15717 # pw32 DLLs use 'pw' prefix rather than 'lib'
15718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721 dynamic_linker='Win32 ld.exe'
15726 libname_spec='$name'
15727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15728 library_names_spec='${libname}.dll.lib'
15732 sys_lib_search_path_spec=
15735 for lt_path in $LIB
15738 # Let DOS variable expansion print the short 8.3 style file name.
15739 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15740 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15743 # Convert to MSYS style.
15744 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15747 # Convert to unix form, then to dos form, then back to unix form
15748 # but this time dos style (no spaces!) so that the unix form looks
15749 # like /cygdrive/c/PROGRA~1:/cygdr...
15750 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15751 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15752 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15755 sys_lib_search_path_spec="$LIB"
15756 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15757 # It is most probably a Windows format PATH.
15758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15762 # FIXME: find the short name or the path components, as spaces are
15763 # common. (e.g. "Program Files" -> "PROGRA~1")
15767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15768 postinstall_cmds='base_file=`basename \${file}`~
15769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15770 dldir=$destdir/`dirname \$dlpath`~
15771 test -d \$dldir || mkdir -p \$dldir~
15772 $install_prog $dir/$dlname \$dldir/$dlname'
15773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15774 dlpath=$dir/\$dldll~
15776 shlibpath_overrides_runpath=yes
15777 dynamic_linker='Win32 link.exe'
15781 # Assume MSVC wrapper
15782 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15783 dynamic_linker='Win32 ld.exe'
15786 # FIXME: first we should search . and the directory the executable is in
15790 darwin* | rhapsody*)
15791 dynamic_linker="$host_os dyld"
15792 version_type=darwin
15795 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15796 soname_spec='${libname}${release}${major}$shared_ext'
15797 shlibpath_overrides_runpath=yes
15798 shlibpath_var=DYLD_LIBRARY_PATH
15799 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15809 soname_spec='${libname}${release}${shared_ext}$major'
15810 shlibpath_var=LD_LIBRARY_PATH
15817 freebsd* | dragonfly*)
15818 # DragonFly does not have aout. When/if they implement a new
15819 # versioning mechanism, adjust this.
15820 if test -x /usr/bin/objformat; then
15821 objformat=`/usr/bin/objformat`
15824 freebsd[123]*) objformat=aout ;;
15825 *) objformat=elf ;;
15828 version_type=freebsd-$objformat
15829 case $version_type in
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15840 shlibpath_var=LD_LIBRARY_PATH
15843 shlibpath_overrides_runpath=yes
15845 freebsd3.[01]* | freebsdelf3.[01]*)
15846 shlibpath_overrides_runpath=yes
15847 hardcode_into_libs=yes
15849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15851 shlibpath_overrides_runpath=no
15852 hardcode_into_libs=yes
15854 *) # from 4.6 on, and DragonFly
15855 shlibpath_overrides_runpath=yes
15856 hardcode_into_libs=yes
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15866 soname_spec='${libname}${release}${shared_ext}$major'
15867 shlibpath_var=LD_LIBRARY_PATH
15868 hardcode_into_libs=yes
15875 dynamic_linker="$host_os runtime_loader"
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15878 shlibpath_var=LIBRARY_PATH
15879 shlibpath_overrides_runpath=yes
15880 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15881 hardcode_into_libs=yes
15884 hpux9* | hpux10* | hpux11*)
15885 # Give a soname corresponding to the major version so that dld.sl refuses to
15886 # link against other versions.
15893 hardcode_into_libs=yes
15894 dynamic_linker="$host_os dld.so"
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 if test "X$HPUX_IA64_MODE" = X32; then
15900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15908 hardcode_into_libs=yes
15909 dynamic_linker="$host_os dld.sl"
15910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=SHLIB_PATH
15921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15926 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15927 postinstall_cmds='chmod 555 $lib'
15928 # or fails outright, so override atomically:
15929 install_override_mode=555
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=no
15941 hardcode_into_libs=yes
15944 irix5* | irix6* | nonstopux*)
15946 nonstopux*) version_type=nonstopux ;;
15948 if test "$lt_cv_prog_gnu_ld" = yes; then
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15959 irix5* | nonstopux*)
15960 libsuff= shlibsuff=
15963 case $LD in # libtool.m4 will add one of these switches to LD
15964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15965 libsuff= shlibsuff= libmagic=32-bit;;
15966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15967 libsuff=32 shlibsuff=N32 libmagic=N32;;
15968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15970 *) libsuff= shlibsuff= libmagic=never-match;;
15974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15975 shlibpath_overrides_runpath=no
15976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15978 hardcode_into_libs=yes
15981 # No shared lib support for Linux oldld, aout, or coff.
15982 linux*oldld* | linux*aout* | linux*coff*)
15986 # This must be Linux ELF.
15987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=no
15997 # Some binutils ld are patched to set DT_RUNPATH
15998 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15999 $as_echo_n "(cached) " >&6
16001 lt_cv_shlibpath_overrides_runpath=no
16002 save_LDFLAGS=$LDFLAGS
16003 save_libdir=$libdir
16004 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16005 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16017 if ac_fn_cxx_try_link "$LINENO"; then :
16018 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16019 lt_cv_shlibpath_overrides_runpath=yes
16022 rm -f core conftest.err conftest.$ac_objext \
16023 conftest$ac_exeext conftest.$ac_ext
16024 LDFLAGS=$save_LDFLAGS
16025 libdir=$save_libdir
16029 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16031 # This implies no fast_install, which is unacceptable.
16032 # Some rework will be needed to allow for fast_install
16033 # before this can be enabled.
16034 hardcode_into_libs=yes
16036 # Append ld.so.conf contents to the search path
16037 if test -f /etc/ld.so.conf; then
16038 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' ' '`
16039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16042 # We used to test for /lib/ld.so.1 and disable shared libraries on
16043 # powerpc, because MkLinux only supported shared libraries with the
16044 # GNU dynamic linker. Since this was broken with cross compilers,
16045 # most powerpc-linux boxes support dynamic linking these days and
16046 # people can always --disable-shared, the test was removed, and we
16047 # assume the GNU/Linux dynamic linker is in use.
16048 dynamic_linker='GNU/Linux ld.so'
16055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16058 dynamic_linker='NetBSD (a.out) ld.so'
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 dynamic_linker='NetBSD ld.elf_so'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 shlibpath_overrides_runpath=yes
16066 hardcode_into_libs=yes
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 shlibpath_var=LD_LIBRARY_PATH
16073 shlibpath_overrides_runpath=yes
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 shlibpath_overrides_runpath=no
16084 hardcode_into_libs=yes
16085 dynamic_linker='ldqnx.so'
16090 sys_lib_dlsearch_path_spec="/usr/lib"
16092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16095 *) need_version=no ;;
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16102 openbsd2.[89] | openbsd2.[89].*)
16103 shlibpath_overrides_runpath=no
16106 shlibpath_overrides_runpath=yes
16110 shlibpath_overrides_runpath=yes
16115 libname_spec='$name'
16118 library_names_spec='$libname${shared_ext} $libname.a'
16119 dynamic_linker='OS/2 ld.exe'
16120 shlibpath_var=LIBPATH
16123 osf3* | osf4* | osf5*)
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=yes
16146 hardcode_into_libs=yes
16147 # ldd complains unless libraries are executable
16148 postinstall_cmds='chmod +x $lib'
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 shlibpath_overrides_runpath=yes
16157 if test "$with_gnu_ld" = yes; then
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 case $host_vendor in
16170 shlibpath_overrides_runpath=no
16172 runpath_var=LD_RUN_PATH
16180 shlibpath_overrides_runpath=no
16181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16187 if test -d /usr/nec ;then
16189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16190 soname_spec='$libname${shared_ext}.$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16196 version_type=freebsd-elf
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=yes
16203 hardcode_into_libs=yes
16204 if test "$with_gnu_ld" = yes; then
16205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16214 sys_lib_dlsearch_path_spec='/usr/lib'
16218 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223 shlibpath_var=LD_LIBRARY_PATH
16224 shlibpath_overrides_runpath=no
16225 hardcode_into_libs=yes
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 shlibpath_var=LD_LIBRARY_PATH
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16240 $as_echo "$dynamic_linker" >&6; }
16241 test "$dynamic_linker" = no && can_build_shared=no
16243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16244 if test "$GCC" = yes; then
16245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16248 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16249 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16251 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16252 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16294 hardcode_action_CXX=
16295 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16296 test -n "$runpath_var_CXX" ||
16297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16299 # We can hardcode non-existent directories.
16300 if test "$hardcode_direct_CXX" != no &&
16301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16302 # have to relink, otherwise we might link with an installed library
16303 # when we should be linking with a yet-to-be-installed one
16304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16305 test "$hardcode_minus_L_CXX" != no; then
16306 # Linking always hardcodes the temporary library directory.
16307 hardcode_action_CXX=relink
16309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16310 hardcode_action_CXX=immediate
16313 # We cannot hardcode anything, or else we can only hardcode existing
16315 hardcode_action_CXX=unsupported
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16318 $as_echo "$hardcode_action_CXX" >&6; }
16320 if test "$hardcode_action_CXX" = relink ||
16321 test "$inherit_rpath_CXX" = yes; then
16322 # Fast installation is not supported
16323 enable_fast_install=no
16324 elif test "$shlibpath_overrides_runpath" = yes ||
16325 test "$enable_shared" = no; then
16326 # Fast installation is not necessary
16327 enable_fast_install=needless
16336 fi # test -n "$compiler"
16339 CFLAGS=$lt_save_CFLAGS
16343 with_gnu_ld=$lt_save_with_gnu_ld
16344 lt_cv_path_LDCXX=$lt_cv_path_LD
16345 lt_cv_path_LD=$lt_save_path_LD
16346 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16347 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16348 fi # test "$_lt_caught_CXX_error" != yes
16351 ac_cpp='$CPP $CPPFLAGS'
16352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16368 ac_config_commands="$ac_config_commands libtool"
16373 # Only expand once:
16378 if test x$use_libtool != xno; then
16379 DEFAULT_OBJECT_TYPE=".lo"
16380 DEFAULT_ARCHIVE_TYPE=".la"
16381 DEFAULT_SHARED_OBJECT_TYPE=".la"
16382 LIBTOOL="\$(LIBTOOL)"
16383 LIBTOOL_INSTALL_TARGET="libtool-install"
16384 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16385 LIBTOOL_CLEAN_TARGET="libtool-clean"
16386 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16387 FD_PLUGIN_DIR="src/plugins/fd"
16390 DEFAULT_OBJECT_TYPE=".o"
16391 DEFAULT_ARCHIVE_TYPE=".a"
16392 DEFAULT_SHARED_OBJECT_TYPE=".so"
16393 LIBTOOL="# \$(LIBTOOL)"
16394 LIBTOOL_INSTALL_TARGET=""
16395 LIBTOOL_UNINSTALL_TARGET=""
16396 LIBTOOL_CLEAN_TARGET=""
16397 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16412 # Check whether --enable-includes was given.
16413 if test "${enable_includes+set}" = set; then :
16414 enableval=$enable_includes;
16415 if test x$enableval = xyes; then
16416 install_includes=yes
16424 if test x$use_libtool != xno -a x$install_includes = xyes; then
16425 INCLUDE_INSTALL_TARGET="install-includes"
16426 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16428 INCLUDE_INSTALL_TARGET=""
16429 INCLUDE_UNINSTALL_TARGET=""
16437 *cygwin* ) CYGWIN=yes;;
16441 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16447 HAVE_SUN_OS_FALSE='#'
16449 HAVE_SUN_OS_TRUE='#'
16452 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16459 HAVE_SUN_OS_FALSE='#'
16461 HAVE_SUN_OS_TRUE='#'
16466 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16472 HAVE_OSF1_OS_FALSE='#'
16474 HAVE_OSF1_OS_TRUE='#'
16475 HAVE_OSF1_OS_FALSE=
16477 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16484 HAVE_OSF1_OS_FALSE='#'
16486 HAVE_OSF1_OS_TRUE='#'
16487 HAVE_OSF1_OS_FALSE=
16491 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16497 HAVE_AIX_OS_FALSE='#'
16499 HAVE_AIX_OS_TRUE='#'
16502 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16509 HAVE_AIX_OS_FALSE='#'
16511 HAVE_AIX_OS_TRUE='#'
16516 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16522 HAVE_HPUX_OS_FALSE='#'
16524 HAVE_HPUX_OS_TRUE='#'
16525 HAVE_HPUX_OS_FALSE=
16527 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16534 HAVE_HPUX_OS_FALSE='#'
16536 HAVE_HPUX_OS_TRUE='#'
16537 HAVE_HPUX_OS_FALSE=
16541 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16546 HAVE_LINUX_OS_TRUE=
16547 HAVE_LINUX_OS_FALSE='#'
16549 HAVE_LINUX_OS_TRUE='#'
16550 HAVE_LINUX_OS_FALSE=
16552 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16558 HAVE_LINUX_OS_TRUE=
16559 HAVE_LINUX_OS_FALSE='#'
16561 HAVE_LINUX_OS_TRUE='#'
16562 HAVE_LINUX_OS_FALSE=
16566 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16571 HAVE_FREEBSD_OS_TRUE=
16572 HAVE_FREEBSD_OS_FALSE='#'
16574 HAVE_FREEBSD_OS_TRUE='#'
16575 HAVE_FREEBSD_OS_FALSE=
16577 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16583 HAVE_FREEBSD_OS_TRUE=
16584 HAVE_FREEBSD_OS_FALSE='#'
16586 HAVE_FREEBSD_OS_TRUE='#'
16587 HAVE_FREEBSD_OS_FALSE=
16591 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16596 HAVE_NETBSD_OS_TRUE=
16597 HAVE_NETBSD_OS_FALSE='#'
16599 HAVE_NETBSD_OS_TRUE='#'
16600 HAVE_NETBSD_OS_FALSE=
16602 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16608 HAVE_NETBSD_OS_TRUE=
16609 HAVE_NETBSD_OS_FALSE='#'
16611 HAVE_NETBSD_OS_TRUE='#'
16612 HAVE_NETBSD_OS_FALSE=
16616 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16621 HAVE_OPENBSD_OS_TRUE=
16622 HAVE_OPENBSD_OS_FALSE='#'
16624 HAVE_OPENBSD_OS_TRUE='#'
16625 HAVE_OPENBSD_OS_FALSE=
16627 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16633 HAVE_OPENBSD_OS_TRUE=
16634 HAVE_OPENBSD_OS_FALSE='#'
16636 HAVE_OPENBSD_OS_TRUE='#'
16637 HAVE_OPENBSD_OS_FALSE=
16641 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16647 HAVE_BSDI_OS_FALSE='#'
16649 HAVE_BSDI_OS_TRUE='#'
16650 HAVE_BSDI_OS_FALSE=
16652 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16659 HAVE_BSDI_OS_FALSE='#'
16661 HAVE_BSDI_OS_TRUE='#'
16662 HAVE_BSDI_OS_FALSE=
16666 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16672 HAVE_SGI_OS_FALSE='#'
16674 HAVE_SGI_OS_TRUE='#'
16677 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16684 HAVE_SGI_OS_FALSE='#'
16686 HAVE_SGI_OS_TRUE='#'
16691 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16697 HAVE_IRIX_OS_FALSE='#'
16699 HAVE_IRIX_OS_TRUE='#'
16700 HAVE_IRIX_OS_FALSE=
16702 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16709 HAVE_IRIX_OS_FALSE='#'
16711 HAVE_IRIX_OS_TRUE='#'
16712 HAVE_IRIX_OS_FALSE=
16716 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16721 HAVE_DARWIN_OS_TRUE=
16722 HAVE_DARWIN_OS_FALSE='#'
16724 HAVE_DARWIN_OS_TRUE='#'
16725 HAVE_DARWIN_OS_FALSE=
16727 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16733 HAVE_DARWIN_OS_TRUE=
16734 HAVE_DARWIN_OS_FALSE='#'
16736 HAVE_DARWIN_OS_TRUE='#'
16737 HAVE_DARWIN_OS_FALSE=
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16743 $as_echo_n "checking for Operating System Distribution... " >&6; }
16744 if test "x$DISTNAME" != "x"
16746 echo "distname set to $DISTNAME"
16747 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16750 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16753 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16756 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16759 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16762 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16765 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16768 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16771 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16774 elif test -f /etc/SuSE-release
16777 elif test -d /etc/SuSEconfig
16780 elif test -f /etc/mandrake-release
16783 elif test -f /etc/whitebox-release
16786 elif test -f /etc/redhat-release
16789 elif test -f /etc/gentoo-release
16792 elif test -f /etc/debian_version
16795 elif test -f /etc/slackware-version
16798 elif test x$host_vendor = xapple
16801 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16804 elif test -f /etc/engarde-version
16807 elif test -f /etc/arch-release
16810 elif test "$CYGWIN" = yes
16813 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16819 $as_echo "done" >&6; }
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16827 $as_echo_n "(cached) " >&6
16829 cat >conftest.make <<\_ACEOF
16832 @echo '@@@%%%=$(MAKE)=@@@%%%'
16834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16836 *@@@%%%=?*=@@@%%%*)
16837 eval ac_cv_prog_make_${ac_make}_set=yes;;
16839 eval ac_cv_prog_make_${ac_make}_set=no;;
16841 rm -f conftest.make
16843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16845 $as_echo "yes" >&6; }
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16849 $as_echo "no" >&6; }
16850 SET_MAKE="MAKE=${MAKE-make}"
16856 if test -n "$ac_aux_dir"; then
16857 case "$ac_aux_dir" in
16858 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16859 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16862 if test -z "$MKINSTALLDIRS"; then
16863 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16869 $as_echo_n "checking whether NLS is requested... " >&6; }
16870 # Check whether --enable-nls was given.
16871 if test "${enable_nls+set}" = set; then :
16872 enableval=$enable_nls; USE_NLS=$enableval
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16878 $as_echo "$USE_NLS" >&6; }
16885 # Prepare PATH_SEPARATOR.
16886 # The user is always right.
16887 if test "${PATH_SEPARATOR+set}" != set; then
16888 echo "#! /bin/sh" >conf$$.sh
16889 echo "exit 0" >>conf$$.sh
16891 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16899 # Find out how to test for executable files. Don't use a zero-byte file,
16900 # as systems may use methods other than mode bits to determine executability.
16901 cat >conf$$.file <<_ASEOF
16905 chmod +x conf$$.file
16906 if test -x conf$$.file >/dev/null 2>&1; then
16907 ac_executable_p="test -x"
16909 ac_executable_p="test -f"
16913 # Extract the first word of "msgfmt", so it can be a program name with args.
16914 set dummy msgfmt; ac_word=$2
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16916 $as_echo_n "checking for $ac_word... " >&6; }
16917 if ${ac_cv_path_MSGFMT+:} false; then :
16918 $as_echo_n "(cached) " >&6
16922 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16925 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16926 for ac_dir in $PATH; do
16928 test -z "$ac_dir" && ac_dir=.
16929 for ac_exec_ext in '' $ac_executable_extensions; do
16930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16931 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16932 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16933 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16934 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16941 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16945 MSGFMT="$ac_cv_path_MSGFMT"
16946 if test "$MSGFMT" != ":"; then
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16948 $as_echo "$MSGFMT" >&6; }
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16951 $as_echo "no" >&6; }
16954 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16955 set dummy gmsgfmt; ac_word=$2
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16957 $as_echo_n "checking for $ac_word... " >&6; }
16958 if ${ac_cv_path_GMSGFMT+:} false; then :
16959 $as_echo_n "(cached) " >&6
16963 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16967 for as_dir in $PATH
16970 test -z "$as_dir" && as_dir=.
16971 for ac_exec_ext in '' $ac_executable_extensions; do
16972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16973 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16981 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16985 GMSGFMT=$ac_cv_path_GMSGFMT
16986 if test -n "$GMSGFMT"; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16988 $as_echo "$GMSGFMT" >&6; }
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16997 # Prepare PATH_SEPARATOR.
16998 # The user is always right.
16999 if test "${PATH_SEPARATOR+set}" != set; then
17000 echo "#! /bin/sh" >conf$$.sh
17001 echo "exit 0" >>conf$$.sh
17003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17011 # Find out how to test for executable files. Don't use a zero-byte file,
17012 # as systems may use methods other than mode bits to determine executability.
17013 cat >conf$$.file <<_ASEOF
17017 chmod +x conf$$.file
17018 if test -x conf$$.file >/dev/null 2>&1; then
17019 ac_executable_p="test -x"
17021 ac_executable_p="test -f"
17025 # Extract the first word of "xgettext", so it can be a program name with args.
17026 set dummy xgettext; ac_word=$2
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17028 $as_echo_n "checking for $ac_word... " >&6; }
17029 if ${ac_cv_path_XGETTEXT+:} false; then :
17030 $as_echo_n "(cached) " >&6
17032 case "$XGETTEXT" in
17034 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17037 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17038 for ac_dir in $PATH; do
17040 test -z "$ac_dir" && ac_dir=.
17041 for ac_exec_ext in '' $ac_executable_extensions; do
17042 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17043 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17044 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17045 (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
17046 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17053 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17057 XGETTEXT="$ac_cv_path_XGETTEXT"
17058 if test "$XGETTEXT" != ":"; then
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17060 $as_echo "$XGETTEXT" >&6; }
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17069 # Prepare PATH_SEPARATOR.
17070 # The user is always right.
17071 if test "${PATH_SEPARATOR+set}" != set; then
17072 echo "#! /bin/sh" >conf$$.sh
17073 echo "exit 0" >>conf$$.sh
17075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17083 # Find out how to test for executable files. Don't use a zero-byte file,
17084 # as systems may use methods other than mode bits to determine executability.
17085 cat >conf$$.file <<_ASEOF
17089 chmod +x conf$$.file
17090 if test -x conf$$.file >/dev/null 2>&1; then
17091 ac_executable_p="test -x"
17093 ac_executable_p="test -f"
17097 # Extract the first word of "msgmerge", so it can be a program name with args.
17098 set dummy msgmerge; ac_word=$2
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17100 $as_echo_n "checking for $ac_word... " >&6; }
17101 if ${ac_cv_path_MSGMERGE+:} false; then :
17102 $as_echo_n "(cached) " >&6
17104 case "$MSGMERGE" in
17106 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17109 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17110 for ac_dir in $PATH; do
17112 test -z "$ac_dir" && ac_dir=.
17113 for ac_exec_ext in '' $ac_executable_extensions; do
17114 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17115 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17116 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17117 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17124 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17128 MSGMERGE="$ac_cv_path_MSGMERGE"
17129 if test "$MSGMERGE" != ":"; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17131 $as_echo "$MSGMERGE" >&6; }
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134 $as_echo "no" >&6; }
17138 if test "$GMSGFMT" != ":"; then
17139 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17140 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17143 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17145 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17150 if test "$XGETTEXT" != ":"; then
17151 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17152 (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
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17156 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17162 ac_config_commands="$ac_config_commands default-1"
17166 if test "X$prefix" = "XNONE"; then
17167 acl_final_prefix="$ac_default_prefix"
17169 acl_final_prefix="$prefix"
17171 if test "X$exec_prefix" = "XNONE"; then
17172 acl_final_exec_prefix='${prefix}'
17174 acl_final_exec_prefix="$exec_prefix"
17176 acl_save_prefix="$prefix"
17177 prefix="$acl_final_prefix"
17178 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17179 prefix="$acl_save_prefix"
17182 # Check whether --with-gnu-ld was given.
17183 if test "${with_gnu_ld+set}" = set; then :
17184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17189 # Prepare PATH_SEPARATOR.
17190 # The user is always right.
17191 if test "${PATH_SEPARATOR+set}" != set; then
17192 echo "#! /bin/sh" >conf$$.sh
17193 echo "exit 0" >>conf$$.sh
17195 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17203 if test "$GCC" = yes; then
17204 # Check if gcc -print-prog-name=ld gives a path.
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17206 $as_echo_n "checking for ld used by GCC... " >&6; }
17209 # gcc leaves a trailing carriage return which upsets mingw
17210 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17212 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17215 # Accept absolute paths.
17216 [\\/]* | [A-Za-z]:[\\/]*)
17217 re_direlt='/[^/][^/]*/\.\./'
17218 # Canonicalize the path of ld
17219 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17220 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17221 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17223 test -z "$LD" && LD="$ac_prog"
17226 # If it fails, then pretend we aren't using GCC.
17230 # If it is relative, then search for the first ld in PATH.
17231 with_gnu_ld=unknown
17234 elif test "$with_gnu_ld" = yes; then
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17236 $as_echo_n "checking for GNU ld... " >&6; }
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17239 $as_echo_n "checking for non-GNU ld... " >&6; }
17241 if ${acl_cv_path_LD+:} false; then :
17242 $as_echo_n "(cached) " >&6
17244 if test -z "$LD"; then
17245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17246 for ac_dir in $PATH; do
17247 test -z "$ac_dir" && ac_dir=.
17248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17249 acl_cv_path_LD="$ac_dir/$ac_prog"
17250 # Check to see if the program is GNU ld. I'd rather use --version,
17251 # but apparently some GNU ld's only accept -v.
17252 # Break only if it was the GNU/non-GNU ld that we prefer.
17253 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17254 *GNU* | *'with BFD'*)
17255 test "$with_gnu_ld" != no && break ;;
17257 test "$with_gnu_ld" != yes && break ;;
17263 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17267 LD="$acl_cv_path_LD"
17268 if test -n "$LD"; then
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17270 $as_echo "$LD" >&6; }
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17275 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17277 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17278 if ${acl_cv_prog_gnu_ld+:} false; then :
17279 $as_echo_n "(cached) " >&6
17281 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17282 case `$LD -v 2>&1 </dev/null` in
17283 *GNU* | *'with BFD'*)
17284 acl_cv_prog_gnu_ld=yes ;;
17286 acl_cv_prog_gnu_ld=no ;;
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17290 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17291 with_gnu_ld=$acl_cv_prog_gnu_ld
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17297 $as_echo_n "checking for shared library run path origin... " >&6; }
17298 if ${acl_cv_rpath+:} false; then :
17299 $as_echo_n "(cached) " >&6
17302 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17303 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17305 rm -f ./conftest.sh
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17310 $as_echo "$acl_cv_rpath" >&6; }
17312 libext="$acl_cv_libext"
17313 shlibext="$acl_cv_shlibext"
17314 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17315 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17316 hardcode_direct="$acl_cv_hardcode_direct"
17317 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17318 # Check whether --enable-rpath was given.
17319 if test "${enable_rpath+set}" = set; then :
17320 enableval=$enable_rpath; :
17334 acl_save_prefix="$prefix"
17335 prefix="$acl_final_prefix"
17336 acl_save_exec_prefix="$exec_prefix"
17337 exec_prefix="$acl_final_exec_prefix"
17339 eval additional_includedir=\"$includedir\"
17340 eval additional_libdir=\"$libdir\"
17342 exec_prefix="$acl_save_exec_prefix"
17343 prefix="$acl_save_prefix"
17346 # Check whether --with-libiconv-prefix was given.
17347 if test "${with_libiconv_prefix+set}" = set; then :
17348 withval=$with_libiconv_prefix;
17349 if test "X$withval" = "Xno"; then
17352 if test "X$withval" = "X"; then
17354 acl_save_prefix="$prefix"
17355 prefix="$acl_final_prefix"
17356 acl_save_exec_prefix="$exec_prefix"
17357 exec_prefix="$acl_final_exec_prefix"
17359 eval additional_includedir=\"$includedir\"
17360 eval additional_libdir=\"$libdir\"
17362 exec_prefix="$acl_save_exec_prefix"
17363 prefix="$acl_save_prefix"
17366 additional_includedir="$withval/include"
17367 additional_libdir="$withval/lib"
17378 names_already_handled=
17379 names_next_round='iconv '
17380 while test -n "$names_next_round"; do
17381 names_this_round="$names_next_round"
17383 for name in $names_this_round; do
17385 for n in $names_already_handled; do
17386 if test "$n" = "$name"; then
17387 already_handled=yes
17391 if test -z "$already_handled"; then
17392 names_already_handled="$names_already_handled $name"
17393 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17394 eval value=\"\$HAVE_LIB$uppername\"
17395 if test -n "$value"; then
17396 if test "$value" = yes; then
17397 eval value=\"\$LIB$uppername\"
17398 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17399 eval value=\"\$LTLIB$uppername\"
17400 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17409 if test $use_additional = yes; then
17410 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17411 found_dir="$additional_libdir"
17412 found_so="$additional_libdir/lib$name.$shlibext"
17413 if test -f "$additional_libdir/lib$name.la"; then
17414 found_la="$additional_libdir/lib$name.la"
17417 if test -f "$additional_libdir/lib$name.$libext"; then
17418 found_dir="$additional_libdir"
17419 found_a="$additional_libdir/lib$name.$libext"
17420 if test -f "$additional_libdir/lib$name.la"; then
17421 found_la="$additional_libdir/lib$name.la"
17426 if test "X$found_dir" = "X"; then
17427 for x in $LDFLAGS $LTLIBICONV; do
17429 acl_save_prefix="$prefix"
17430 prefix="$acl_final_prefix"
17431 acl_save_exec_prefix="$exec_prefix"
17432 exec_prefix="$acl_final_exec_prefix"
17434 exec_prefix="$acl_save_exec_prefix"
17435 prefix="$acl_save_prefix"
17439 dir=`echo "X$x" | sed -e 's/^X-L//'`
17440 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17442 found_so="$dir/lib$name.$shlibext"
17443 if test -f "$dir/lib$name.la"; then
17444 found_la="$dir/lib$name.la"
17447 if test -f "$dir/lib$name.$libext"; then
17449 found_a="$dir/lib$name.$libext"
17450 if test -f "$dir/lib$name.la"; then
17451 found_la="$dir/lib$name.la"
17457 if test "X$found_dir" != "X"; then
17462 if test "X$found_dir" != "X"; then
17463 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17464 if test "X$found_so" != "X"; then
17465 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17469 for x in $ltrpathdirs; do
17470 if test "X$x" = "X$found_dir"; then
17475 if test -z "$haveit"; then
17476 ltrpathdirs="$ltrpathdirs $found_dir"
17478 if test "$hardcode_direct" = yes; then
17479 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17481 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17482 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17484 for x in $rpathdirs; do
17485 if test "X$x" = "X$found_dir"; then
17490 if test -z "$haveit"; then
17491 rpathdirs="$rpathdirs $found_dir"
17495 for x in $LDFLAGS $LIBICONV; do
17497 acl_save_prefix="$prefix"
17498 prefix="$acl_final_prefix"
17499 acl_save_exec_prefix="$exec_prefix"
17500 exec_prefix="$acl_final_exec_prefix"
17502 exec_prefix="$acl_save_exec_prefix"
17503 prefix="$acl_save_prefix"
17505 if test "X$x" = "X-L$found_dir"; then
17510 if test -z "$haveit"; then
17511 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17513 if test "$hardcode_minus_L" != no; then
17514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17516 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17522 if test "X$found_a" != "X"; then
17523 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17528 additional_includedir=
17529 case "$found_dir" in
17531 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17532 additional_includedir="$basedir/include"
17535 if test "X$additional_includedir" != "X"; then
17536 if test "X$additional_includedir" != "X/usr/include"; then
17538 if test "X$additional_includedir" = "X/usr/local/include"; then
17539 if test -n "$GCC"; then
17541 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17545 if test -z "$haveit"; then
17546 for x in $CPPFLAGS $INCICONV; do
17548 acl_save_prefix="$prefix"
17549 prefix="$acl_final_prefix"
17550 acl_save_exec_prefix="$exec_prefix"
17551 exec_prefix="$acl_final_exec_prefix"
17553 exec_prefix="$acl_save_exec_prefix"
17554 prefix="$acl_save_prefix"
17556 if test "X$x" = "X-I$additional_includedir"; then
17561 if test -z "$haveit"; then
17562 if test -d "$additional_includedir"; then
17563 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17569 if test -n "$found_la"; then
17570 save_libdir="$libdir"
17571 case "$found_la" in
17572 */* | *\\*) . "$found_la" ;;
17573 *) . "./$found_la" ;;
17575 libdir="$save_libdir"
17576 for dep in $dependency_libs; do
17579 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17580 if test "X$additional_libdir" != "X/usr/lib"; then
17582 if test "X$additional_libdir" = "X/usr/local/lib"; then
17583 if test -n "$GCC"; then
17585 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17589 if test -z "$haveit"; then
17591 for x in $LDFLAGS $LIBICONV; do
17593 acl_save_prefix="$prefix"
17594 prefix="$acl_final_prefix"
17595 acl_save_exec_prefix="$exec_prefix"
17596 exec_prefix="$acl_final_exec_prefix"
17598 exec_prefix="$acl_save_exec_prefix"
17599 prefix="$acl_save_prefix"
17601 if test "X$x" = "X-L$additional_libdir"; then
17606 if test -z "$haveit"; then
17607 if test -d "$additional_libdir"; then
17608 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17612 for x in $LDFLAGS $LTLIBICONV; do
17614 acl_save_prefix="$prefix"
17615 prefix="$acl_final_prefix"
17616 acl_save_exec_prefix="$exec_prefix"
17617 exec_prefix="$acl_final_exec_prefix"
17619 exec_prefix="$acl_save_exec_prefix"
17620 prefix="$acl_save_prefix"
17622 if test "X$x" = "X-L$additional_libdir"; then
17627 if test -z "$haveit"; then
17628 if test -d "$additional_libdir"; then
17629 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17636 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17637 if test "$enable_rpath" != no; then
17639 for x in $rpathdirs; do
17640 if test "X$x" = "X$dir"; then
17645 if test -z "$haveit"; then
17646 rpathdirs="$rpathdirs $dir"
17649 for x in $ltrpathdirs; do
17650 if test "X$x" = "X$dir"; then
17655 if test -z "$haveit"; then
17656 ltrpathdirs="$ltrpathdirs $dir"
17661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17664 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17667 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17674 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17681 if test "X$rpathdirs" != "X"; then
17682 if test -n "$hardcode_libdir_separator"; then
17684 for found_dir in $rpathdirs; do
17685 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17687 acl_save_libdir="$libdir"
17689 eval flag=\"$hardcode_libdir_flag_spec\"
17690 libdir="$acl_save_libdir"
17691 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17693 for found_dir in $rpathdirs; do
17694 acl_save_libdir="$libdir"
17695 libdir="$found_dir"
17696 eval flag=\"$hardcode_libdir_flag_spec\"
17697 libdir="$acl_save_libdir"
17698 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17702 if test "X$ltrpathdirs" != "X"; then
17703 for found_dir in $ltrpathdirs; do
17704 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17726 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17727 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17728 $as_echo_n "(cached) " >&6
17730 gt_save_CPPFLAGS="$CPPFLAGS"
17731 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17732 gt_save_LIBS="$LIBS"
17733 LIBS="$LIBS -framework CoreFoundation"
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17736 #include <CFPreferences.h>
17740 CFPreferencesCopyAppValue(NULL, NULL)
17745 if ac_fn_c_try_link "$LINENO"; then :
17746 gt_cv_func_CFPreferencesCopyAppValue=yes
17748 gt_cv_func_CFPreferencesCopyAppValue=no
17750 rm -f core conftest.err conftest.$ac_objext \
17751 conftest$ac_exeext conftest.$ac_ext
17752 CPPFLAGS="$gt_save_CPPFLAGS"
17753 LIBS="$gt_save_LIBS"
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17756 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17757 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17759 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17763 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17764 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17765 $as_echo_n "(cached) " >&6
17767 gt_save_CPPFLAGS="$CPPFLAGS"
17768 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17769 gt_save_LIBS="$LIBS"
17770 LIBS="$LIBS -framework CoreFoundation"
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17773 #include <CFLocale.h>
17777 CFLocaleCopyCurrent();
17782 if ac_fn_c_try_link "$LINENO"; then :
17783 gt_cv_func_CFLocaleCopyCurrent=yes
17785 gt_cv_func_CFLocaleCopyCurrent=no
17787 rm -f core conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 CPPFLAGS="$gt_save_CPPFLAGS"
17790 LIBS="$gt_save_LIBS"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17793 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17794 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17796 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17800 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17801 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17808 $as_echo_n "checking whether NLS is requested... " >&6; }
17809 # Check whether --enable-nls was given.
17810 if test "${enable_nls+set}" = set; then :
17811 enableval=$enable_nls; USE_NLS=$enableval
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17817 $as_echo "$USE_NLS" >&6; }
17826 if test "$USE_NLS" = "yes"; then
17827 gt_use_preinstalled_gnugettext=no
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17835 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17836 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17837 $as_echo_n "(cached) " >&6
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17841 #include <libintl.h>
17842 extern int _nl_msg_cat_cntr;
17843 extern int *_nl_domain_bindings;
17847 bindtextdomain ("", "");
17848 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17853 if ac_fn_c_try_link "$LINENO"; then :
17854 gt_cv_func_gnugettext1_libc=yes
17856 gt_cv_func_gnugettext1_libc=no
17858 rm -f core conftest.err conftest.$ac_objext \
17859 conftest$ac_exeext conftest.$ac_ext
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17862 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17864 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17870 am_save_CPPFLAGS="$CPPFLAGS"
17872 for element in $INCICONV; do
17874 for x in $CPPFLAGS; do
17876 acl_save_prefix="$prefix"
17877 prefix="$acl_final_prefix"
17878 acl_save_exec_prefix="$exec_prefix"
17879 exec_prefix="$acl_final_exec_prefix"
17881 exec_prefix="$acl_save_exec_prefix"
17882 prefix="$acl_save_prefix"
17884 if test "X$x" = "X$element"; then
17889 if test -z "$haveit"; then
17890 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17896 $as_echo_n "checking for iconv... " >&6; }
17897 if ${am_cv_func_iconv+:} false; then :
17898 $as_echo_n "(cached) " >&6
17901 am_cv_func_iconv="no, consider installing GNU libiconv"
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17905 #include <stdlib.h>
17910 iconv_t cd = iconv_open("","");
17911 iconv(cd,NULL,NULL,NULL,NULL);
17917 if ac_fn_c_try_link "$LINENO"; then :
17918 am_cv_func_iconv=yes
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 if test "$am_cv_func_iconv" != yes; then
17923 am_save_LIBS="$LIBS"
17924 LIBS="$LIBS $LIBICONV"
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17927 #include <stdlib.h>
17932 iconv_t cd = iconv_open("","");
17933 iconv(cd,NULL,NULL,NULL,NULL);
17939 if ac_fn_c_try_link "$LINENO"; then :
17940 am_cv_lib_iconv=yes
17941 am_cv_func_iconv=yes
17943 rm -f core conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17945 LIBS="$am_save_LIBS"
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17950 $as_echo "$am_cv_func_iconv" >&6; }
17951 if test "$am_cv_func_iconv" = yes; then
17953 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17956 if test "$am_cv_lib_iconv" = yes; then
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17958 $as_echo_n "checking how to link with libiconv... " >&6; }
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17960 $as_echo "$LIBICONV" >&6; }
17962 CPPFLAGS="$am_save_CPPFLAGS"
17974 acl_save_prefix="$prefix"
17975 prefix="$acl_final_prefix"
17976 acl_save_exec_prefix="$exec_prefix"
17977 exec_prefix="$acl_final_exec_prefix"
17979 eval additional_includedir=\"$includedir\"
17980 eval additional_libdir=\"$libdir\"
17982 exec_prefix="$acl_save_exec_prefix"
17983 prefix="$acl_save_prefix"
17986 # Check whether --with-libintl-prefix was given.
17987 if test "${with_libintl_prefix+set}" = set; then :
17988 withval=$with_libintl_prefix;
17989 if test "X$withval" = "Xno"; then
17992 if test "X$withval" = "X"; then
17994 acl_save_prefix="$prefix"
17995 prefix="$acl_final_prefix"
17996 acl_save_exec_prefix="$exec_prefix"
17997 exec_prefix="$acl_final_exec_prefix"
17999 eval additional_includedir=\"$includedir\"
18000 eval additional_libdir=\"$libdir\"
18002 exec_prefix="$acl_save_exec_prefix"
18003 prefix="$acl_save_prefix"
18006 additional_includedir="$withval/include"
18007 additional_libdir="$withval/lib"
18018 names_already_handled=
18019 names_next_round='intl '
18020 while test -n "$names_next_round"; do
18021 names_this_round="$names_next_round"
18023 for name in $names_this_round; do
18025 for n in $names_already_handled; do
18026 if test "$n" = "$name"; then
18027 already_handled=yes
18031 if test -z "$already_handled"; then
18032 names_already_handled="$names_already_handled $name"
18033 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18034 eval value=\"\$HAVE_LIB$uppername\"
18035 if test -n "$value"; then
18036 if test "$value" = yes; then
18037 eval value=\"\$LIB$uppername\"
18038 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18039 eval value=\"\$LTLIB$uppername\"
18040 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18049 if test $use_additional = yes; then
18050 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18051 found_dir="$additional_libdir"
18052 found_so="$additional_libdir/lib$name.$shlibext"
18053 if test -f "$additional_libdir/lib$name.la"; then
18054 found_la="$additional_libdir/lib$name.la"
18057 if test -f "$additional_libdir/lib$name.$libext"; then
18058 found_dir="$additional_libdir"
18059 found_a="$additional_libdir/lib$name.$libext"
18060 if test -f "$additional_libdir/lib$name.la"; then
18061 found_la="$additional_libdir/lib$name.la"
18066 if test "X$found_dir" = "X"; then
18067 for x in $LDFLAGS $LTLIBINTL; do
18069 acl_save_prefix="$prefix"
18070 prefix="$acl_final_prefix"
18071 acl_save_exec_prefix="$exec_prefix"
18072 exec_prefix="$acl_final_exec_prefix"
18074 exec_prefix="$acl_save_exec_prefix"
18075 prefix="$acl_save_prefix"
18079 dir=`echo "X$x" | sed -e 's/^X-L//'`
18080 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18082 found_so="$dir/lib$name.$shlibext"
18083 if test -f "$dir/lib$name.la"; then
18084 found_la="$dir/lib$name.la"
18087 if test -f "$dir/lib$name.$libext"; then
18089 found_a="$dir/lib$name.$libext"
18090 if test -f "$dir/lib$name.la"; then
18091 found_la="$dir/lib$name.la"
18097 if test "X$found_dir" != "X"; then
18102 if test "X$found_dir" != "X"; then
18103 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18104 if test "X$found_so" != "X"; then
18105 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18109 for x in $ltrpathdirs; do
18110 if test "X$x" = "X$found_dir"; then
18115 if test -z "$haveit"; then
18116 ltrpathdirs="$ltrpathdirs $found_dir"
18118 if test "$hardcode_direct" = yes; then
18119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18121 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18122 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18124 for x in $rpathdirs; do
18125 if test "X$x" = "X$found_dir"; then
18130 if test -z "$haveit"; then
18131 rpathdirs="$rpathdirs $found_dir"
18135 for x in $LDFLAGS $LIBINTL; do
18137 acl_save_prefix="$prefix"
18138 prefix="$acl_final_prefix"
18139 acl_save_exec_prefix="$exec_prefix"
18140 exec_prefix="$acl_final_exec_prefix"
18142 exec_prefix="$acl_save_exec_prefix"
18143 prefix="$acl_save_prefix"
18145 if test "X$x" = "X-L$found_dir"; then
18150 if test -z "$haveit"; then
18151 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18153 if test "$hardcode_minus_L" != no; then
18154 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18156 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18162 if test "X$found_a" != "X"; then
18163 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18165 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18168 additional_includedir=
18169 case "$found_dir" in
18171 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18172 additional_includedir="$basedir/include"
18175 if test "X$additional_includedir" != "X"; then
18176 if test "X$additional_includedir" != "X/usr/include"; then
18178 if test "X$additional_includedir" = "X/usr/local/include"; then
18179 if test -n "$GCC"; then
18181 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18185 if test -z "$haveit"; then
18186 for x in $CPPFLAGS $INCINTL; do
18188 acl_save_prefix="$prefix"
18189 prefix="$acl_final_prefix"
18190 acl_save_exec_prefix="$exec_prefix"
18191 exec_prefix="$acl_final_exec_prefix"
18193 exec_prefix="$acl_save_exec_prefix"
18194 prefix="$acl_save_prefix"
18196 if test "X$x" = "X-I$additional_includedir"; then
18201 if test -z "$haveit"; then
18202 if test -d "$additional_includedir"; then
18203 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18209 if test -n "$found_la"; then
18210 save_libdir="$libdir"
18211 case "$found_la" in
18212 */* | *\\*) . "$found_la" ;;
18213 *) . "./$found_la" ;;
18215 libdir="$save_libdir"
18216 for dep in $dependency_libs; do
18219 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18220 if test "X$additional_libdir" != "X/usr/lib"; then
18222 if test "X$additional_libdir" = "X/usr/local/lib"; then
18223 if test -n "$GCC"; then
18225 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18229 if test -z "$haveit"; then
18231 for x in $LDFLAGS $LIBINTL; do
18233 acl_save_prefix="$prefix"
18234 prefix="$acl_final_prefix"
18235 acl_save_exec_prefix="$exec_prefix"
18236 exec_prefix="$acl_final_exec_prefix"
18238 exec_prefix="$acl_save_exec_prefix"
18239 prefix="$acl_save_prefix"
18241 if test "X$x" = "X-L$additional_libdir"; then
18246 if test -z "$haveit"; then
18247 if test -d "$additional_libdir"; then
18248 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18252 for x in $LDFLAGS $LTLIBINTL; do
18254 acl_save_prefix="$prefix"
18255 prefix="$acl_final_prefix"
18256 acl_save_exec_prefix="$exec_prefix"
18257 exec_prefix="$acl_final_exec_prefix"
18259 exec_prefix="$acl_save_exec_prefix"
18260 prefix="$acl_save_prefix"
18262 if test "X$x" = "X-L$additional_libdir"; then
18267 if test -z "$haveit"; then
18268 if test -d "$additional_libdir"; then
18269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18276 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18277 if test "$enable_rpath" != no; then
18279 for x in $rpathdirs; do
18280 if test "X$x" = "X$dir"; then
18285 if test -z "$haveit"; then
18286 rpathdirs="$rpathdirs $dir"
18289 for x in $ltrpathdirs; do
18290 if test "X$x" = "X$dir"; then
18295 if test -z "$haveit"; then
18296 ltrpathdirs="$ltrpathdirs $dir"
18301 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18304 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18307 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18308 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18314 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18315 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18321 if test "X$rpathdirs" != "X"; then
18322 if test -n "$hardcode_libdir_separator"; then
18324 for found_dir in $rpathdirs; do
18325 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18327 acl_save_libdir="$libdir"
18329 eval flag=\"$hardcode_libdir_flag_spec\"
18330 libdir="$acl_save_libdir"
18331 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18333 for found_dir in $rpathdirs; do
18334 acl_save_libdir="$libdir"
18335 libdir="$found_dir"
18336 eval flag=\"$hardcode_libdir_flag_spec\"
18337 libdir="$acl_save_libdir"
18338 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18342 if test "X$ltrpathdirs" != "X"; then
18343 for found_dir in $ltrpathdirs; do
18344 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18349 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18350 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18351 $as_echo_n "(cached) " >&6
18353 gt_save_CPPFLAGS="$CPPFLAGS"
18354 CPPFLAGS="$CPPFLAGS $INCINTL"
18355 gt_save_LIBS="$LIBS"
18356 LIBS="$LIBS $LIBINTL"
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18359 #include <libintl.h>
18360 extern int _nl_msg_cat_cntr;
18365 const char *_nl_expand_alias (const char *);
18369 bindtextdomain ("", "");
18370 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18375 if ac_fn_c_try_link "$LINENO"; then :
18376 gt_cv_func_gnugettext1_libintl=yes
18378 gt_cv_func_gnugettext1_libintl=no
18380 rm -f core conftest.err conftest.$ac_objext \
18381 conftest$ac_exeext conftest.$ac_ext
18382 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18383 LIBS="$LIBS $LIBICONV"
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <libintl.h>
18387 extern int _nl_msg_cat_cntr;
18392 const char *_nl_expand_alias (const char *);
18396 bindtextdomain ("", "");
18397 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18402 if ac_fn_c_try_link "$LINENO"; then :
18403 LIBINTL="$LIBINTL $LIBICONV"
18404 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18405 gt_cv_func_gnugettext1_libintl=yes
18408 rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18411 CPPFLAGS="$gt_save_CPPFLAGS"
18412 LIBS="$gt_save_LIBS"
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18415 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18418 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18419 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18420 && test "$PACKAGE" != gettext-runtime \
18421 && test "$PACKAGE" != gettext-tools; }; then
18422 gt_use_preinstalled_gnugettext=yes
18431 if test -n "$INTL_MACOSX_LIBS"; then
18432 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18433 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18434 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18435 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18439 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18440 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18442 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18450 $as_echo_n "checking whether to use NLS... " >&6; }
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18452 $as_echo "$USE_NLS" >&6; }
18453 if test "$USE_NLS" = "yes"; then
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18455 $as_echo_n "checking where the gettext function comes from... " >&6; }
18456 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18457 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18458 gt_source="external libintl"
18463 gt_source="included intl directory"
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18466 $as_echo "$gt_source" >&6; }
18469 if test "$USE_NLS" = "yes"; then
18471 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18472 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18474 $as_echo_n "checking how to link with libintl... " >&6; }
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18476 $as_echo "$LIBINTL" >&6; }
18478 for element in $INCINTL; do
18480 for x in $CPPFLAGS; do
18482 acl_save_prefix="$prefix"
18483 prefix="$acl_final_prefix"
18484 acl_save_exec_prefix="$exec_prefix"
18485 exec_prefix="$acl_final_exec_prefix"
18487 exec_prefix="$acl_save_exec_prefix"
18488 prefix="$acl_save_prefix"
18490 if test "X$x" = "X$element"; then
18495 if test -z "$haveit"; then
18496 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18503 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18506 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18515 INTLLIBS="$LIBINTL"
18523 os_name=`uname -s 2>/dev/null`
18524 if test x${prefix} = xNONE ; then
18525 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18526 sysconfdir=/etc/bacula
18529 if test `eval echo ${libdir}` = NONE/lib ; then
18532 os_processor=`uname -p 2>/dev/null`
18533 case ${os_processor} in
18548 if test `eval echo ${includedir}` = NONE/include ; then
18549 includedir=/usr/include
18552 if test `eval echo ${datarootdir}` = NONE/share ; then
18553 datarootdir=/usr/share
18558 if test x${exec_prefix} = xNONE ; then
18559 exec_prefix=${prefix}
18562 sysconfdir=`eval echo ${sysconfdir}`
18563 datarootdir=`eval echo ${datarootdir}`
18564 docdir=`eval echo ${docdir}`
18565 htmldir=`eval echo ${htmldir}`
18566 libdir=`eval echo ${libdir}`
18567 includedir=`eval echo ${includedir}`
18568 localedir=`eval echo ${datarootdir}/locale`
18569 cat >>confdefs.h <<_ACEOF
18570 #define SYSCONFDIR "$sysconfdir"
18573 cat >>confdefs.h <<_ACEOF
18574 #define LOCALEDIR "$localedir"
18578 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18579 sbindir=${exec_prefix}/sbin
18581 sbindir=`eval echo ${sbindir}`
18583 if test x$mandir = x'${prefix}/man' ; then
18584 mandir=/usr/share/man
18587 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18588 htmldir=`eval echo ${docdir}html`
18591 if test x$docdir = x'/usr/share/doc/' ; then
18592 docdir=`eval echo ${docdir}bacula`
18596 for ac_prog in msgfmt
18598 # Extract the first word of "$ac_prog", so it can be a program name with args.
18599 set dummy $ac_prog; ac_word=$2
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18601 $as_echo_n "checking for $ac_word... " >&6; }
18602 if ${ac_cv_path_MSGFMT+:} false; then :
18603 $as_echo_n "(cached) " >&6
18607 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18611 for as_dir in $PATH
18614 test -z "$as_dir" && as_dir=.
18615 for ac_exec_ext in '' $ac_executable_extensions; do
18616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18617 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18628 MSGFMT=$ac_cv_path_MSGFMT
18629 if test -n "$MSGFMT"; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18631 $as_echo "$MSGFMT" >&6; }
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634 $as_echo "no" >&6; }
18638 test -n "$MSGFMT" && break
18640 test -n "$MSGFMT" || MSGFMT="no"
18642 if test "$MSGFMT" = "no"
18644 echo 'msgfmt program not found, disabling NLS !'
18646 USE_INCLUDED_LIBINTL=no
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18650 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18651 if ${ac_cv_gnu_library_2+:} false; then :
18652 $as_echo_n "(cached) " >&6
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18657 #include <features.h>
18658 #ifdef __GNU_LIBRARY__
18659 #if (__GLIBC__ >= 2)
18665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18666 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18667 ac_cv_gnu_library_2=yes
18669 ac_cv_gnu_library_2=no
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18677 $as_echo "$ac_cv_gnu_library_2" >&6; }
18679 GLIBC2="$ac_cv_gnu_library_2"
18682 if test -n "$ac_tool_prefix"; then
18683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686 $as_echo_n "checking for $ac_word... " >&6; }
18687 if ${ac_cv_prog_RANLIB+:} false; then :
18688 $as_echo_n "(cached) " >&6
18690 if test -n "$RANLIB"; then
18691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18694 for as_dir in $PATH
18697 test -z "$as_dir" && as_dir=.
18698 for ac_exec_ext in '' $ac_executable_extensions; do
18699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18710 RANLIB=$ac_cv_prog_RANLIB
18711 if test -n "$RANLIB"; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18713 $as_echo "$RANLIB" >&6; }
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18721 if test -z "$ac_cv_prog_RANLIB"; then
18722 ac_ct_RANLIB=$RANLIB
18723 # Extract the first word of "ranlib", so it can be a program name with args.
18724 set dummy ranlib; ac_word=$2
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18726 $as_echo_n "checking for $ac_word... " >&6; }
18727 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18728 $as_echo_n "(cached) " >&6
18730 if test -n "$ac_ct_RANLIB"; then
18731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18734 for as_dir in $PATH
18737 test -z "$as_dir" && as_dir=.
18738 for ac_exec_ext in '' $ac_executable_extensions; do
18739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18740 ac_cv_prog_ac_ct_RANLIB="ranlib"
18741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18751 if test -n "$ac_ct_RANLIB"; then
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18753 $as_echo "$ac_ct_RANLIB" >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18759 if test "x$ac_ct_RANLIB" = x; then
18762 case $cross_compiling:$ac_tool_warned in
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18766 ac_tool_warned=yes ;;
18768 RANLIB=$ac_ct_RANLIB
18771 RANLIB="$ac_cv_prog_RANLIB"
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18776 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18777 if ${ac_cv_lib_cposix_strerror+:} false; then :
18778 $as_echo_n "(cached) " >&6
18780 ac_check_lib_save_LIBS=$LIBS
18781 LIBS="-lcposix $LIBS"
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18795 return strerror ();
18800 if ac_fn_c_try_link "$LINENO"; then :
18801 ac_cv_lib_cposix_strerror=yes
18803 ac_cv_lib_cposix_strerror=no
18805 rm -f core conftest.err conftest.$ac_objext \
18806 conftest$ac_exeext conftest.$ac_ext
18807 LIBS=$ac_check_lib_save_LIBS
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18810 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18811 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18812 LIBS="$LIBS -lcposix"
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18818 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18819 if ${ac_cv_c_const+:} false; then :
18820 $as_echo_n "(cached) " >&6
18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18828 /* FIXME: Include the comments suggested by Paul. */
18829 #ifndef __cplusplus
18830 /* Ultrix mips cc rejects this. */
18831 typedef int charset[2];
18833 /* SunOS 4.1.1 cc rejects this. */
18834 char const *const *pcpcc;
18836 /* NEC SVR4.0.2 mips cc rejects this. */
18837 struct point {int x, y;};
18838 static struct point const zero = {0,0};
18839 /* AIX XL C 1.02.0.0 rejects this.
18840 It does not let you subtract one const X* pointer from another in
18841 an arm of an if-expression whose if-part is not a constant
18843 const char *g = "string";
18844 pcpcc = &g + (g ? g-g : 0);
18845 /* HPUX 7.0 cc rejects these. */
18847 ppc = (char**) pcpcc;
18848 pcpcc = (char const *const *) ppc;
18849 { /* SCO 3.2v4 cc rejects this. */
18851 char const *s = 0 ? (char *) 0 : (char const *) 0;
18856 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18857 int x[] = {25, 17};
18858 const int *foo = &x[0];
18861 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18862 typedef const int *iptr;
18866 { /* AIX XL C 1.02.0.0 rejects this saying
18867 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18868 struct s { int j; const int *ap[3]; };
18869 struct s *b; b->j = 5;
18871 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18872 const int foo = 10;
18873 if (!foo) return 0;
18875 return !cs[0] && !zero.x;
18882 if ac_fn_c_try_compile "$LINENO"; then :
18887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18890 $as_echo "$ac_cv_c_const" >&6; }
18891 if test $ac_cv_c_const = no; then
18893 $as_echo "#define const /**/" >>confdefs.h
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18899 $as_echo_n "checking for signed... " >&6; }
18900 if ${bh_cv_c_signed+:} false; then :
18901 $as_echo_n "(cached) " >&6
18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18914 if ac_fn_c_try_compile "$LINENO"; then :
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18922 $as_echo "$bh_cv_c_signed" >&6; }
18923 if test $bh_cv_c_signed = no; then
18925 $as_echo "#define signed /**/" >>confdefs.h
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18930 $as_echo_n "checking for inline... " >&6; }
18931 if ${ac_cv_c_inline+:} false; then :
18932 $as_echo_n "(cached) " >&6
18935 for ac_kw in inline __inline__ __inline; do
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18938 #ifndef __cplusplus
18940 static $ac_kw foo_t static_foo () {return 0; }
18941 $ac_kw foo_t foo () {return 0; }
18945 if ac_fn_c_try_compile "$LINENO"; then :
18946 ac_cv_c_inline=$ac_kw
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949 test "$ac_cv_c_inline" != no && break
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18954 $as_echo "$ac_cv_c_inline" >&6; }
18956 case $ac_cv_c_inline in
18959 case $ac_cv_c_inline in
18961 *) ac_val=$ac_cv_c_inline;;
18963 cat >>confdefs.h <<_ACEOF
18964 #ifndef __cplusplus
18965 #define inline $ac_val
18971 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18972 if test "x$ac_cv_type_off_t" = xyes; then :
18976 cat >>confdefs.h <<_ACEOF
18977 #define off_t long int
18982 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18983 if test "x$ac_cv_type_size_t" = xyes; then :
18987 cat >>confdefs.h <<_ACEOF
18988 #define size_t unsigned int
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18995 $as_echo_n "checking for long long... " >&6; }
18996 if ${ac_cv_type_long_long+:} false; then :
18997 $as_echo_n "(cached) " >&6
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19001 long long ll = 1LL; int i = 63;
19005 long long llmax = (long long) -1;
19006 return ll << i | ll >> i | llmax / ll | llmax % ll;
19011 if ac_fn_c_try_link "$LINENO"; then :
19012 ac_cv_type_long_long=yes
19014 ac_cv_type_long_long=no
19016 rm -f core conftest.err conftest.$ac_objext \
19017 conftest$ac_exeext conftest.$ac_ext
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19020 $as_echo "$ac_cv_type_long_long" >&6; }
19021 if test $ac_cv_type_long_long = yes; then
19023 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19029 $as_echo_n "checking for long double... " >&6; }
19030 if ${gt_cv_c_long_double+:} false; then :
19031 $as_echo_n "(cached) " >&6
19033 if test "$GCC" = yes; then
19034 gt_cv_c_long_double=yes
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19039 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19040 long double foo = 0.0;
19041 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19042 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19052 if ac_fn_c_try_compile "$LINENO"; then :
19053 gt_cv_c_long_double=yes
19055 gt_cv_c_long_double=no
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19061 $as_echo "$gt_cv_c_long_double" >&6; }
19062 if test $gt_cv_c_long_double = yes; then
19064 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19070 $as_echo_n "checking for wchar_t... " >&6; }
19071 if ${gt_cv_c_wchar_t+:} false; then :
19072 $as_echo_n "(cached) " >&6
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19076 #include <stddef.h>
19077 wchar_t foo = (wchar_t)'\0';
19086 if ac_fn_c_try_compile "$LINENO"; then :
19087 gt_cv_c_wchar_t=yes
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19094 $as_echo "$gt_cv_c_wchar_t" >&6; }
19095 if test $gt_cv_c_wchar_t = yes; then
19097 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19103 $as_echo_n "checking for wint_t... " >&6; }
19104 if ${gt_cv_c_wint_t+:} false; then :
19105 $as_echo_n "(cached) " >&6
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19110 wint_t foo = (wchar_t)'\0';
19119 if ac_fn_c_try_compile "$LINENO"; then :
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19127 $as_echo "$gt_cv_c_wint_t" >&6; }
19128 if test $gt_cv_c_wint_t = yes; then
19130 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19136 $as_echo_n "checking for inttypes.h... " >&6; }
19137 if ${gl_cv_header_inttypes_h+:} false; then :
19138 $as_echo_n "(cached) " >&6
19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19142 #include <sys/types.h>
19143 #include <inttypes.h>
19147 uintmax_t i = (uintmax_t) -1;
19152 if ac_fn_c_try_compile "$LINENO"; then :
19153 gl_cv_header_inttypes_h=yes
19155 gl_cv_header_inttypes_h=no
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19160 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19161 if test $gl_cv_header_inttypes_h = yes; then
19163 cat >>confdefs.h <<_ACEOF
19164 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19171 $as_echo_n "checking for stdint.h... " >&6; }
19172 if ${gl_cv_header_stdint_h+:} false; then :
19173 $as_echo_n "(cached) " >&6
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h. */
19177 #include <sys/types.h>
19178 #include <stdint.h>
19182 uintmax_t i = (uintmax_t) -1;
19187 if ac_fn_c_try_compile "$LINENO"; then :
19188 gl_cv_header_stdint_h=yes
19190 gl_cv_header_stdint_h=no
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19195 $as_echo "$gl_cv_header_stdint_h" >&6; }
19196 if test $gl_cv_header_stdint_h = yes; then
19198 cat >>confdefs.h <<_ACEOF
19199 #define HAVE_STDINT_H_WITH_UINTMAX 1
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19208 $as_echo_n "checking for intmax_t... " >&6; }
19209 if ${gt_cv_c_intmax_t+:} false; then :
19210 $as_echo_n "(cached) " >&6
19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h. */
19215 #include <stddef.h>
19216 #include <stdlib.h>
19217 #if HAVE_STDINT_H_WITH_UINTMAX
19218 #include <stdint.h>
19220 #if HAVE_INTTYPES_H_WITH_UINTMAX
19221 #include <inttypes.h>
19232 if ac_fn_c_try_compile "$LINENO"; then :
19233 gt_cv_c_intmax_t=yes
19235 gt_cv_c_intmax_t=no
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19240 $as_echo "$gt_cv_c_intmax_t" >&6; }
19241 if test $gt_cv_c_intmax_t = yes; then
19243 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19250 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19251 if ${gt_cv_func_printf_posix+:} false; then :
19252 $as_echo_n "(cached) " >&6
19255 if test "$cross_compiling" = yes; then :
19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h. */
19260 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19266 $EGREP "notposix" >/dev/null 2>&1; then :
19267 gt_cv_func_printf_posix="guessing no"
19269 gt_cv_func_printf_posix="guessing yes"
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19279 #include <string.h>
19280 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19281 dollar expansion (possibly an autoconf bug). */
19282 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19283 static char buf[100];
19286 sprintf (buf, format, 33, 55);
19287 return (strcmp (buf, "55 33") != 0);
19290 if ac_fn_c_try_run "$LINENO"; then :
19291 gt_cv_func_printf_posix=yes
19293 gt_cv_func_printf_posix=no
19295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19296 conftest.$ac_objext conftest.beam conftest.$ac_ext
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19302 $as_echo "$gt_cv_func_printf_posix" >&6; }
19303 case $gt_cv_func_printf_posix in
19306 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19311 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19312 # for constant arguments. Useless!
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19314 $as_echo_n "checking for working alloca.h... " >&6; }
19315 if ${ac_cv_working_alloca_h+:} false; then :
19316 $as_echo_n "(cached) " >&6
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19320 #include <alloca.h>
19324 char *p = (char *) alloca (2 * sizeof (int));
19330 if ac_fn_c_try_link "$LINENO"; then :
19331 ac_cv_working_alloca_h=yes
19333 ac_cv_working_alloca_h=no
19335 rm -f core conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext conftest.$ac_ext
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19339 $as_echo "$ac_cv_working_alloca_h" >&6; }
19340 if test $ac_cv_working_alloca_h = yes; then
19342 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19347 $as_echo_n "checking for alloca... " >&6; }
19348 if ${ac_cv_func_alloca_works+:} false; then :
19349 $as_echo_n "(cached) " >&6
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19354 # define alloca __builtin_alloca
19357 # include <malloc.h>
19358 # define alloca _alloca
19360 # ifdef HAVE_ALLOCA_H
19361 # include <alloca.h>
19366 # ifndef alloca /* predefined by HP cc +Olibcalls */
19367 void *alloca (size_t);
19377 char *p = (char *) alloca (1);
19383 if ac_fn_c_try_link "$LINENO"; then :
19384 ac_cv_func_alloca_works=yes
19386 ac_cv_func_alloca_works=no
19388 rm -f core conftest.err conftest.$ac_objext \
19389 conftest$ac_exeext conftest.$ac_ext
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19392 $as_echo "$ac_cv_func_alloca_works" >&6; }
19394 if test $ac_cv_func_alloca_works = yes; then
19396 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19399 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19400 # that cause trouble. Some versions do not even contain alloca or
19401 # contain a buggy version. If you still want to use their alloca,
19402 # use ar to extract alloca.o from them instead of compiling alloca.c.
19404 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19406 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19410 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19411 if ${ac_cv_os_cray+:} false; then :
19412 $as_echo_n "(cached) " >&6
19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19416 #if defined CRAY && ! defined CRAY2
19423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19424 $EGREP "webecray" >/dev/null 2>&1; then :
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19433 $as_echo "$ac_cv_os_cray" >&6; }
19434 if test $ac_cv_os_cray = yes; then
19435 for ac_func in _getb67 GETB67 getb67; do
19436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19438 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19440 cat >>confdefs.h <<_ACEOF
19441 #define CRAY_STACKSEG_END $ac_func
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19451 $as_echo_n "checking stack direction for C alloca... " >&6; }
19452 if ${ac_cv_c_stack_direction+:} false; then :
19453 $as_echo_n "(cached) " >&6
19455 if test "$cross_compiling" = yes; then :
19456 ac_cv_c_stack_direction=0
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19460 $ac_includes_default
19462 find_stack_direction ()
19464 static char *addr = 0;
19469 return find_stack_direction ();
19472 return (&dummy > addr) ? 1 : -1;
19478 return find_stack_direction () < 0;
19481 if ac_fn_c_try_run "$LINENO"; then :
19482 ac_cv_c_stack_direction=1
19484 ac_cv_c_stack_direction=-1
19486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19487 conftest.$ac_objext conftest.beam conftest.$ac_ext
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19492 $as_echo "$ac_cv_c_stack_direction" >&6; }
19493 cat >>confdefs.h <<_ACEOF
19494 #define STACK_DIRECTION $ac_cv_c_stack_direction
19503 for ac_header in $ac_header_list
19505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19506 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19509 cat >>confdefs.h <<_ACEOF
19510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19524 for ac_func in getpagesize
19526 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19527 if test "x$ac_cv_func_getpagesize" = xyes; then :
19528 cat >>confdefs.h <<_ACEOF
19529 #define HAVE_GETPAGESIZE 1
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19536 $as_echo_n "checking for working mmap... " >&6; }
19537 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19538 $as_echo_n "(cached) " >&6
19540 if test "$cross_compiling" = yes; then :
19541 ac_cv_func_mmap_fixed_mapped=no
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545 $ac_includes_default
19546 /* malloc might have been renamed as rpl_malloc. */
19549 /* Thanks to Mike Haertel and Jim Avera for this test.
19550 Here is a matrix of mmap possibilities:
19551 mmap private not fixed
19552 mmap private fixed at somewhere currently unmapped
19553 mmap private fixed at somewhere already mapped
19554 mmap shared not fixed
19555 mmap shared fixed at somewhere currently unmapped
19556 mmap shared fixed at somewhere already mapped
19557 For private mappings, we should verify that changes cannot be read()
19558 back from the file, nor mmap's back from the file at a different
19559 address. (There have been systems where private was not correctly
19560 implemented like the infamous i386 svr4.0, and systems where the
19561 VM page cache was not coherent with the file system buffer cache
19562 like early versions of FreeBSD and possibly contemporary NetBSD.)
19563 For shared mappings, we should conversely verify that changes get
19564 propagated back to all the places they're supposed to be.
19566 Grep wants private fixed already mapped.
19567 The main things grep needs to know about mmap are:
19568 * does it exist and is it safe to write into the mmap'd area
19569 * how to use it (BSD variants) */
19572 #include <sys/mman.h>
19574 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19578 /* This mess was copied from the GNU getpagesize.h. */
19579 #ifndef HAVE_GETPAGESIZE
19580 # ifdef _SC_PAGESIZE
19581 # define getpagesize() sysconf(_SC_PAGESIZE)
19582 # else /* no _SC_PAGESIZE */
19583 # ifdef HAVE_SYS_PARAM_H
19584 # include <sys/param.h>
19585 # ifdef EXEC_PAGESIZE
19586 # define getpagesize() EXEC_PAGESIZE
19587 # else /* no EXEC_PAGESIZE */
19589 # define getpagesize() NBPG * CLSIZE
19592 # endif /* no CLSIZE */
19593 # else /* no NBPG */
19595 # define getpagesize() NBPC
19596 # else /* no NBPC */
19598 # define getpagesize() PAGESIZE
19599 # endif /* PAGESIZE */
19600 # endif /* no NBPC */
19601 # endif /* no NBPG */
19602 # endif /* no EXEC_PAGESIZE */
19603 # else /* no HAVE_SYS_PARAM_H */
19604 # define getpagesize() 8192 /* punt totally */
19605 # endif /* no HAVE_SYS_PARAM_H */
19606 # endif /* no _SC_PAGESIZE */
19608 #endif /* no HAVE_GETPAGESIZE */
19613 char *data, *data2, *data3;
19614 const char *cdata2;
19618 pagesize = getpagesize ();
19620 /* First, make a file with some known garbage in it. */
19621 data = (char *) malloc (pagesize);
19624 for (i = 0; i < pagesize; ++i)
19625 *(data + i) = rand ();
19627 fd = creat ("conftest.mmap", 0600);
19630 if (write (fd, data, pagesize) != pagesize)
19634 /* Next, check that the tail of a page is zero-filled. File must have
19635 non-zero length, otherwise we risk SIGBUS for entire page. */
19636 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19640 if (write (fd2, cdata2, 1) != 1)
19642 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19643 if (data2 == MAP_FAILED)
19645 for (i = 0; i < pagesize; ++i)
19649 if (munmap (data2, pagesize))
19652 /* Next, try to mmap the file at a fixed address which already has
19653 something else allocated at it. If we can, also make sure that
19654 we see the same garbage. */
19655 fd = open ("conftest.mmap", O_RDWR);
19658 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19661 for (i = 0; i < pagesize; ++i)
19662 if (*(data + i) != *(data2 + i))
19665 /* Finally, make sure that changes to the mapped area do not
19666 percolate back to the file as seen by read(). (This is a bug on
19667 some variants of i386 svr4.0.) */
19668 for (i = 0; i < pagesize; ++i)
19669 *(data2 + i) = *(data2 + i) + 1;
19670 data3 = (char *) malloc (pagesize);
19673 if (read (fd, data3, pagesize) != pagesize)
19675 for (i = 0; i < pagesize; ++i)
19676 if (*(data + i) != *(data3 + i))
19682 if ac_fn_c_try_run "$LINENO"; then :
19683 ac_cv_func_mmap_fixed_mapped=yes
19685 ac_cv_func_mmap_fixed_mapped=no
19687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19688 conftest.$ac_objext conftest.beam conftest.$ac_ext
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19693 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19694 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19696 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19699 rm -f conftest.mmap conftest.txt
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19703 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19704 if ${ac_cv_gnu_library_2_1+:} false; then :
19705 $as_echo_n "(cached) " >&6
19707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19710 #include <features.h>
19711 #ifdef __GNU_LIBRARY__
19712 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19719 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19720 ac_cv_gnu_library_2_1=yes
19722 ac_cv_gnu_library_2_1=no
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19730 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19732 GLIBC21="$ac_cv_gnu_library_2_1"
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19738 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19739 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19740 $as_echo_n "(cached) " >&6
19743 if test "$cross_compiling" = yes; then :
19745 # Guess based on the CPU.
19746 case "$host_cpu" in
19747 alpha* | i3456786 | m68k | s390*)
19748 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19750 gt_cv_int_divbyzero_sigfpe="guessing no";;
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19757 #include <stdlib.h>
19758 #include <signal.h>
19762 sigfpe_handler (int sig)
19764 sigfpe_handler (sig) int sig;
19767 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19768 exit (sig != SIGFPE);
19778 signal (SIGFPE, sigfpe_handler);
19779 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19780 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19781 signal (SIGTRAP, sigfpe_handler);
19783 /* Linux/SPARC yields signal SIGILL. */
19784 #if defined (__sparc__) && defined (__linux__)
19785 signal (SIGILL, sigfpe_handler);
19794 if ac_fn_c_try_run "$LINENO"; then :
19795 gt_cv_int_divbyzero_sigfpe=yes
19797 gt_cv_int_divbyzero_sigfpe=no
19799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19800 conftest.$ac_objext conftest.beam conftest.$ac_ext
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19806 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19807 case "$gt_cv_int_divbyzero_sigfpe" in
19812 cat >>confdefs.h <<_ACEOF
19813 #define INTDIV0_RAISES_SIGFPE $value
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19819 $as_echo_n "checking for unsigned long long... " >&6; }
19820 if ${ac_cv_type_unsigned_long_long+:} false; then :
19821 $as_echo_n "(cached) " >&6
19823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824 /* end confdefs.h. */
19825 unsigned long long ull = 1ULL; int i = 63;
19829 unsigned long long ullmax = (unsigned long long) -1;
19830 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19835 if ac_fn_c_try_link "$LINENO"; then :
19836 ac_cv_type_unsigned_long_long=yes
19838 ac_cv_type_unsigned_long_long=no
19840 rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19844 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19845 if test $ac_cv_type_unsigned_long_long = yes; then
19847 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19854 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19856 test $ac_cv_type_unsigned_long_long = yes \
19857 && ac_type='unsigned long long' \
19858 || ac_type='unsigned long'
19860 cat >>confdefs.h <<_ACEOF
19861 #define uintmax_t $ac_type
19866 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19872 $as_echo_n "checking for inttypes.h... " >&6; }
19873 if ${gt_cv_header_inttypes_h+:} false; then :
19874 $as_echo_n "(cached) " >&6
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879 #include <sys/types.h>
19880 #include <inttypes.h>
19889 if ac_fn_c_try_compile "$LINENO"; then :
19890 gt_cv_header_inttypes_h=yes
19892 gt_cv_header_inttypes_h=no
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19898 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19899 if test $gt_cv_header_inttypes_h = yes; then
19901 cat >>confdefs.h <<_ACEOF
19902 #define HAVE_INTTYPES_H 1
19909 if test $gt_cv_header_inttypes_h = yes; then
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19911 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19912 if ${gt_cv_inttypes_pri_broken+:} false; then :
19913 $as_echo_n "(cached) " >&6
19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h. */
19918 #include <inttypes.h>
19931 if ac_fn_c_try_compile "$LINENO"; then :
19932 gt_cv_inttypes_pri_broken=no
19934 gt_cv_inttypes_pri_broken=yes
19936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19940 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19942 if test "$gt_cv_inttypes_pri_broken" = yes; then
19944 cat >>confdefs.h <<_ACEOF
19945 #define PRI_MACROS_BROKEN 1
19951 for ac_header in stdint.h
19953 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19954 if test "x$ac_cv_header_stdint_h" = xyes; then :
19955 cat >>confdefs.h <<_ACEOF
19956 #define HAVE_STDINT_H 1
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19964 $as_echo_n "checking for SIZE_MAX... " >&6; }
19966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19967 /* end confdefs.h. */
19969 #include <limits.h>
19971 #include <stdint.h>
19978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19979 $EGREP "Found it" >/dev/null 2>&1; then :
19984 if test -z "$result"; then
19985 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19992 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19999 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20006 if test "$fits_in_uint" = 1; then
20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h. */
20009 #include <stddef.h>
20011 extern unsigned long foo;
20021 if ac_fn_c_try_compile "$LINENO"; then :
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026 if test -z "$result"; then
20027 if test "$fits_in_uint" = 1; then
20028 result="$res_hi$res_lo"U
20030 result="$res_hi$res_lo"UL
20033 result='~(size_t)0'
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20037 $as_echo "$result" >&6; }
20038 if test "$result" != yes; then
20040 cat >>confdefs.h <<_ACEOF
20041 #define SIZE_MAX $result
20049 for ac_header in stdint.h
20051 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20052 if test "x$ac_cv_header_stdint_h" = xyes; then :
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_STDINT_H 1
20068 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20069 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20073 $as_echo "#define ptrdiff_t long" >>confdefs.h
20078 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20079 stdlib.h string.h unistd.h sys/param.h
20081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20084 cat >>confdefs.h <<_ACEOF
20085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20092 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20093 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20094 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20099 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20100 cat >>confdefs.h <<_ACEOF
20101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20110 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20111 if ${ac_cv_have_decl__snprintf+:} false; then :
20112 $as_echo_n "(cached) " >&6
20114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20115 /* end confdefs.h. */
20122 char *p = (char *) _snprintf;
20129 if ac_fn_c_try_compile "$LINENO"; then :
20130 ac_cv_have_decl__snprintf=yes
20132 ac_cv_have_decl__snprintf=no
20134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20137 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20138 if test $ac_cv_have_decl__snprintf = yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define HAVE_DECL__SNPRINTF $gt_value
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20151 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20152 if ${ac_cv_have_decl__snwprintf+:} false; then :
20153 $as_echo_n "(cached) " >&6
20155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20156 /* end confdefs.h. */
20163 char *p = (char *) _snwprintf;
20170 if ac_fn_c_try_compile "$LINENO"; then :
20171 ac_cv_have_decl__snwprintf=yes
20173 ac_cv_have_decl__snwprintf=no
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20178 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20179 if test $ac_cv_have_decl__snwprintf = yes; then
20185 cat >>confdefs.h <<_ACEOF
20186 #define HAVE_DECL__SNWPRINTF $gt_value
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20193 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20194 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20195 $as_echo_n "(cached) " >&6
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20204 #ifndef feof_unlocked
20205 char *p = (char *) feof_unlocked;
20212 if ac_fn_c_try_compile "$LINENO"; then :
20213 ac_cv_have_decl_feof_unlocked=yes
20215 ac_cv_have_decl_feof_unlocked=no
20217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20220 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20221 if test $ac_cv_have_decl_feof_unlocked = yes; then
20227 cat >>confdefs.h <<_ACEOF
20228 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20234 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20235 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20236 $as_echo_n "(cached) " >&6
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20245 #ifndef fgets_unlocked
20246 char *p = (char *) fgets_unlocked;
20253 if ac_fn_c_try_compile "$LINENO"; then :
20254 ac_cv_have_decl_fgets_unlocked=yes
20256 ac_cv_have_decl_fgets_unlocked=no
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20261 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20262 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20275 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20276 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20277 $as_echo_n "(cached) " >&6
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20286 #ifndef getc_unlocked
20287 char *p = (char *) getc_unlocked;
20294 if ac_fn_c_try_compile "$LINENO"; then :
20295 ac_cv_have_decl_getc_unlocked=yes
20297 ac_cv_have_decl_getc_unlocked=no
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20302 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20303 if test $ac_cv_have_decl_getc_unlocked = yes; then
20309 cat >>confdefs.h <<_ACEOF
20310 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20315 case $gt_cv_func_printf_posix in
20316 *yes) HAVE_POSIX_PRINTF=1 ;;
20317 *) HAVE_POSIX_PRINTF=0 ;;
20320 if test "$ac_cv_func_asprintf" = yes; then
20326 if test "$ac_cv_func_snprintf" = yes; then
20332 if test "$ac_cv_func_wprintf" = yes; then
20344 am_save_CPPFLAGS="$CPPFLAGS"
20346 for element in $INCICONV; do
20348 for x in $CPPFLAGS; do
20350 acl_save_prefix="$prefix"
20351 prefix="$acl_final_prefix"
20352 acl_save_exec_prefix="$exec_prefix"
20353 exec_prefix="$acl_final_exec_prefix"
20355 exec_prefix="$acl_save_exec_prefix"
20356 prefix="$acl_save_prefix"
20358 if test "X$x" = "X$element"; then
20363 if test -z "$haveit"; then
20364 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20370 $as_echo_n "checking for iconv... " >&6; }
20371 if ${am_cv_func_iconv+:} false; then :
20372 $as_echo_n "(cached) " >&6
20375 am_cv_func_iconv="no, consider installing GNU libiconv"
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h. */
20379 #include <stdlib.h>
20384 iconv_t cd = iconv_open("","");
20385 iconv(cd,NULL,NULL,NULL,NULL);
20391 if ac_fn_c_try_link "$LINENO"; then :
20392 am_cv_func_iconv=yes
20394 rm -f core conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20396 if test "$am_cv_func_iconv" != yes; then
20397 am_save_LIBS="$LIBS"
20398 LIBS="$LIBS $LIBICONV"
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20401 #include <stdlib.h>
20406 iconv_t cd = iconv_open("","");
20407 iconv(cd,NULL,NULL,NULL,NULL);
20413 if ac_fn_c_try_link "$LINENO"; then :
20414 am_cv_lib_iconv=yes
20415 am_cv_func_iconv=yes
20417 rm -f core conftest.err conftest.$ac_objext \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS="$am_save_LIBS"
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20424 $as_echo "$am_cv_func_iconv" >&6; }
20425 if test "$am_cv_func_iconv" = yes; then
20427 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20430 if test "$am_cv_lib_iconv" = yes; then
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20432 $as_echo_n "checking how to link with libiconv... " >&6; }
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20434 $as_echo "$LIBICONV" >&6; }
20436 CPPFLAGS="$am_save_CPPFLAGS"
20443 if test "$am_cv_func_iconv" = yes; then
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20445 $as_echo_n "checking for iconv declaration... " >&6; }
20446 if ${am_cv_proto_iconv+:} false; then :
20447 $as_echo_n "(cached) " >&6
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h. */
20453 #include <stdlib.h>
20459 #if defined(__STDC__) || defined(__cplusplus)
20460 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20473 if ac_fn_c_try_compile "$LINENO"; then :
20474 am_cv_proto_iconv_arg1=""
20476 am_cv_proto_iconv_arg1="const"
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 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);"
20482 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20484 }$am_cv_proto_iconv" >&5
20486 }$am_cv_proto_iconv" >&6; }
20488 cat >>confdefs.h <<_ACEOF
20489 #define ICONV_CONST $am_cv_proto_iconv_arg1
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20496 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20497 if ${am_cv_langinfo_codeset+:} false; then :
20498 $as_echo_n "(cached) " >&6
20500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20501 /* end confdefs.h. */
20502 #include <langinfo.h>
20506 char* cs = nl_langinfo(CODESET);
20511 if ac_fn_c_try_link "$LINENO"; then :
20512 am_cv_langinfo_codeset=yes
20514 am_cv_langinfo_codeset=no
20516 rm -f core conftest.err conftest.$ac_objext \
20517 conftest$ac_exeext conftest.$ac_ext
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20521 $as_echo "$am_cv_langinfo_codeset" >&6; }
20522 if test $am_cv_langinfo_codeset = yes; then
20524 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20528 if test $ac_cv_header_locale_h = yes; then
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20531 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20532 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20533 $as_echo_n "(cached) " >&6
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20537 #include <locale.h>
20546 if ac_fn_c_try_link "$LINENO"; then :
20547 gt_cv_val_LC_MESSAGES=yes
20549 gt_cv_val_LC_MESSAGES=no
20551 rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20555 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20556 if test $gt_cv_val_LC_MESSAGES = yes; then
20558 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20564 if test -n "$INTL_MACOSX_LIBS"; then
20565 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20568 for ac_prog in bison
20570 # Extract the first word of "$ac_prog", so it can be a program name with args.
20571 set dummy $ac_prog; ac_word=$2
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20573 $as_echo_n "checking for $ac_word... " >&6; }
20574 if ${ac_cv_prog_INTLBISON+:} false; then :
20575 $as_echo_n "(cached) " >&6
20577 if test -n "$INTLBISON"; then
20578 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20581 for as_dir in $PATH
20584 test -z "$as_dir" && as_dir=.
20585 for ac_exec_ext in '' $ac_executable_extensions; do
20586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20587 ac_cv_prog_INTLBISON="$ac_prog"
20588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20597 INTLBISON=$ac_cv_prog_INTLBISON
20598 if test -n "$INTLBISON"; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20600 $as_echo "$INTLBISON" >&6; }
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603 $as_echo "no" >&6; }
20607 test -n "$INTLBISON" && break
20610 if test -z "$INTLBISON"; then
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20614 $as_echo_n "checking version of bison... " >&6; }
20615 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20616 case $ac_prog_version in
20617 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20618 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20619 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20620 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20623 $as_echo "$ac_prog_version" >&6; }
20625 if test $ac_verc_fail = yes; then
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20645 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20646 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20647 $as_echo_n "(cached) " >&6
20649 gt_save_CPPFLAGS="$CPPFLAGS"
20650 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20651 gt_save_LIBS="$LIBS"
20652 LIBS="$LIBS -framework CoreFoundation"
20653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h. */
20655 #include <CFPreferences.h>
20659 CFPreferencesCopyAppValue(NULL, NULL)
20664 if ac_fn_c_try_link "$LINENO"; then :
20665 gt_cv_func_CFPreferencesCopyAppValue=yes
20667 gt_cv_func_CFPreferencesCopyAppValue=no
20669 rm -f core conftest.err conftest.$ac_objext \
20670 conftest$ac_exeext conftest.$ac_ext
20671 CPPFLAGS="$gt_save_CPPFLAGS"
20672 LIBS="$gt_save_LIBS"
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20675 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20676 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20678 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20682 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20683 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20684 $as_echo_n "(cached) " >&6
20686 gt_save_CPPFLAGS="$CPPFLAGS"
20687 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20688 gt_save_LIBS="$LIBS"
20689 LIBS="$LIBS -framework CoreFoundation"
20690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691 /* end confdefs.h. */
20692 #include <CFLocale.h>
20696 CFLocaleCopyCurrent();
20701 if ac_fn_c_try_link "$LINENO"; then :
20702 gt_cv_func_CFLocaleCopyCurrent=yes
20704 gt_cv_func_CFLocaleCopyCurrent=no
20706 rm -f core conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708 CPPFLAGS="$gt_save_CPPFLAGS"
20709 LIBS="$gt_save_LIBS"
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20712 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20713 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20715 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20719 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20720 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20727 $as_echo_n "checking whether NLS is requested... " >&6; }
20728 # Check whether --enable-nls was given.
20729 if test "${enable_nls+set}" = set; then :
20730 enableval=$enable_nls; USE_NLS=$enableval
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20736 $as_echo "$USE_NLS" >&6; }
20741 BUILD_INCLUDED_LIBINTL=no
20742 USE_INCLUDED_LIBINTL=no
20748 if test "$USE_NLS" = "yes"; then
20749 gt_use_preinstalled_gnugettext=no
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20752 $as_echo_n "checking whether included gettext is requested... " >&6; }
20754 # Check whether --with-included-gettext was given.
20755 if test "${with_included_gettext+set}" = set; then :
20756 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20758 nls_cv_force_use_gnu_gettext=no
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20762 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20764 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20765 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20773 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20774 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20775 $as_echo_n "(cached) " >&6
20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h. */
20779 #include <libintl.h>
20780 extern int _nl_msg_cat_cntr;
20781 extern int *_nl_domain_bindings;
20785 bindtextdomain ("", "");
20786 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20791 if ac_fn_c_try_link "$LINENO"; then :
20792 gt_cv_func_gnugettext1_libc=yes
20794 gt_cv_func_gnugettext1_libc=no
20796 rm -f core conftest.err conftest.$ac_objext \
20797 conftest$ac_exeext conftest.$ac_ext
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20800 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20802 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20808 acl_save_prefix="$prefix"
20809 prefix="$acl_final_prefix"
20810 acl_save_exec_prefix="$exec_prefix"
20811 exec_prefix="$acl_final_exec_prefix"
20813 eval additional_includedir=\"$includedir\"
20814 eval additional_libdir=\"$libdir\"
20816 exec_prefix="$acl_save_exec_prefix"
20817 prefix="$acl_save_prefix"
20820 # Check whether --with-libintl-prefix was given.
20821 if test "${with_libintl_prefix+set}" = set; then :
20822 withval=$with_libintl_prefix;
20823 if test "X$withval" = "Xno"; then
20826 if test "X$withval" = "X"; then
20828 acl_save_prefix="$prefix"
20829 prefix="$acl_final_prefix"
20830 acl_save_exec_prefix="$exec_prefix"
20831 exec_prefix="$acl_final_exec_prefix"
20833 eval additional_includedir=\"$includedir\"
20834 eval additional_libdir=\"$libdir\"
20836 exec_prefix="$acl_save_exec_prefix"
20837 prefix="$acl_save_prefix"
20840 additional_includedir="$withval/include"
20841 additional_libdir="$withval/lib"
20852 names_already_handled=
20853 names_next_round='intl '
20854 while test -n "$names_next_round"; do
20855 names_this_round="$names_next_round"
20857 for name in $names_this_round; do
20859 for n in $names_already_handled; do
20860 if test "$n" = "$name"; then
20861 already_handled=yes
20865 if test -z "$already_handled"; then
20866 names_already_handled="$names_already_handled $name"
20867 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20868 eval value=\"\$HAVE_LIB$uppername\"
20869 if test -n "$value"; then
20870 if test "$value" = yes; then
20871 eval value=\"\$LIB$uppername\"
20872 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20873 eval value=\"\$LTLIB$uppername\"
20874 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20883 if test $use_additional = yes; then
20884 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20885 found_dir="$additional_libdir"
20886 found_so="$additional_libdir/lib$name.$shlibext"
20887 if test -f "$additional_libdir/lib$name.la"; then
20888 found_la="$additional_libdir/lib$name.la"
20891 if test -f "$additional_libdir/lib$name.$libext"; then
20892 found_dir="$additional_libdir"
20893 found_a="$additional_libdir/lib$name.$libext"
20894 if test -f "$additional_libdir/lib$name.la"; then
20895 found_la="$additional_libdir/lib$name.la"
20900 if test "X$found_dir" = "X"; then
20901 for x in $LDFLAGS $LTLIBINTL; do
20903 acl_save_prefix="$prefix"
20904 prefix="$acl_final_prefix"
20905 acl_save_exec_prefix="$exec_prefix"
20906 exec_prefix="$acl_final_exec_prefix"
20908 exec_prefix="$acl_save_exec_prefix"
20909 prefix="$acl_save_prefix"
20913 dir=`echo "X$x" | sed -e 's/^X-L//'`
20914 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20916 found_so="$dir/lib$name.$shlibext"
20917 if test -f "$dir/lib$name.la"; then
20918 found_la="$dir/lib$name.la"
20921 if test -f "$dir/lib$name.$libext"; then
20923 found_a="$dir/lib$name.$libext"
20924 if test -f "$dir/lib$name.la"; then
20925 found_la="$dir/lib$name.la"
20931 if test "X$found_dir" != "X"; then
20936 if test "X$found_dir" != "X"; then
20937 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20938 if test "X$found_so" != "X"; then
20939 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20940 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20943 for x in $ltrpathdirs; do
20944 if test "X$x" = "X$found_dir"; then
20949 if test -z "$haveit"; then
20950 ltrpathdirs="$ltrpathdirs $found_dir"
20952 if test "$hardcode_direct" = yes; then
20953 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20955 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20956 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20958 for x in $rpathdirs; do
20959 if test "X$x" = "X$found_dir"; then
20964 if test -z "$haveit"; then
20965 rpathdirs="$rpathdirs $found_dir"
20969 for x in $LDFLAGS $LIBINTL; do
20971 acl_save_prefix="$prefix"
20972 prefix="$acl_final_prefix"
20973 acl_save_exec_prefix="$exec_prefix"
20974 exec_prefix="$acl_final_exec_prefix"
20976 exec_prefix="$acl_save_exec_prefix"
20977 prefix="$acl_save_prefix"
20979 if test "X$x" = "X-L$found_dir"; then
20984 if test -z "$haveit"; then
20985 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20987 if test "$hardcode_minus_L" != no; then
20988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20990 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20996 if test "X$found_a" != "X"; then
20997 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20999 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21002 additional_includedir=
21003 case "$found_dir" in
21005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21006 additional_includedir="$basedir/include"
21009 if test "X$additional_includedir" != "X"; then
21010 if test "X$additional_includedir" != "X/usr/include"; then
21012 if test "X$additional_includedir" = "X/usr/local/include"; then
21013 if test -n "$GCC"; then
21015 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21019 if test -z "$haveit"; then
21020 for x in $CPPFLAGS $INCINTL; do
21022 acl_save_prefix="$prefix"
21023 prefix="$acl_final_prefix"
21024 acl_save_exec_prefix="$exec_prefix"
21025 exec_prefix="$acl_final_exec_prefix"
21027 exec_prefix="$acl_save_exec_prefix"
21028 prefix="$acl_save_prefix"
21030 if test "X$x" = "X-I$additional_includedir"; then
21035 if test -z "$haveit"; then
21036 if test -d "$additional_includedir"; then
21037 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21043 if test -n "$found_la"; then
21044 save_libdir="$libdir"
21045 case "$found_la" in
21046 */* | *\\*) . "$found_la" ;;
21047 *) . "./$found_la" ;;
21049 libdir="$save_libdir"
21050 for dep in $dependency_libs; do
21053 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21054 if test "X$additional_libdir" != "X/usr/lib"; then
21056 if test "X$additional_libdir" = "X/usr/local/lib"; then
21057 if test -n "$GCC"; then
21059 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21063 if test -z "$haveit"; then
21065 for x in $LDFLAGS $LIBINTL; do
21067 acl_save_prefix="$prefix"
21068 prefix="$acl_final_prefix"
21069 acl_save_exec_prefix="$exec_prefix"
21070 exec_prefix="$acl_final_exec_prefix"
21072 exec_prefix="$acl_save_exec_prefix"
21073 prefix="$acl_save_prefix"
21075 if test "X$x" = "X-L$additional_libdir"; then
21080 if test -z "$haveit"; then
21081 if test -d "$additional_libdir"; then
21082 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21086 for x in $LDFLAGS $LTLIBINTL; do
21088 acl_save_prefix="$prefix"
21089 prefix="$acl_final_prefix"
21090 acl_save_exec_prefix="$exec_prefix"
21091 exec_prefix="$acl_final_exec_prefix"
21093 exec_prefix="$acl_save_exec_prefix"
21094 prefix="$acl_save_prefix"
21096 if test "X$x" = "X-L$additional_libdir"; then
21101 if test -z "$haveit"; then
21102 if test -d "$additional_libdir"; then
21103 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21110 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21111 if test "$enable_rpath" != no; then
21113 for x in $rpathdirs; do
21114 if test "X$x" = "X$dir"; then
21119 if test -z "$haveit"; then
21120 rpathdirs="$rpathdirs $dir"
21123 for x in $ltrpathdirs; do
21124 if test "X$x" = "X$dir"; then
21129 if test -z "$haveit"; then
21130 ltrpathdirs="$ltrpathdirs $dir"
21135 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21141 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21142 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21148 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21149 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21155 if test "X$rpathdirs" != "X"; then
21156 if test -n "$hardcode_libdir_separator"; then
21158 for found_dir in $rpathdirs; do
21159 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21161 acl_save_libdir="$libdir"
21163 eval flag=\"$hardcode_libdir_flag_spec\"
21164 libdir="$acl_save_libdir"
21165 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21167 for found_dir in $rpathdirs; do
21168 acl_save_libdir="$libdir"
21169 libdir="$found_dir"
21170 eval flag=\"$hardcode_libdir_flag_spec\"
21171 libdir="$acl_save_libdir"
21172 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21176 if test "X$ltrpathdirs" != "X"; then
21177 for found_dir in $ltrpathdirs; do
21178 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21183 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21184 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21185 $as_echo_n "(cached) " >&6
21187 gt_save_CPPFLAGS="$CPPFLAGS"
21188 CPPFLAGS="$CPPFLAGS $INCINTL"
21189 gt_save_LIBS="$LIBS"
21190 LIBS="$LIBS $LIBINTL"
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21193 #include <libintl.h>
21194 extern int _nl_msg_cat_cntr;
21199 const char *_nl_expand_alias (const char *);
21203 bindtextdomain ("", "");
21204 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21209 if ac_fn_c_try_link "$LINENO"; then :
21210 gt_cv_func_gnugettext1_libintl=yes
21212 gt_cv_func_gnugettext1_libintl=no
21214 rm -f core conftest.err conftest.$ac_objext \
21215 conftest$ac_exeext conftest.$ac_ext
21216 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21217 LIBS="$LIBS $LIBICONV"
21218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21219 /* end confdefs.h. */
21220 #include <libintl.h>
21221 extern int _nl_msg_cat_cntr;
21226 const char *_nl_expand_alias (const char *);
21230 bindtextdomain ("", "");
21231 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21236 if ac_fn_c_try_link "$LINENO"; then :
21237 LIBINTL="$LIBINTL $LIBICONV"
21238 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21239 gt_cv_func_gnugettext1_libintl=yes
21242 rm -f core conftest.err conftest.$ac_objext \
21243 conftest$ac_exeext conftest.$ac_ext
21245 CPPFLAGS="$gt_save_CPPFLAGS"
21246 LIBS="$gt_save_LIBS"
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21249 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21252 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21253 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21254 && test "$PACKAGE" != gettext-runtime \
21255 && test "$PACKAGE" != gettext-tools; }; then
21256 gt_use_preinstalled_gnugettext=yes
21264 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21265 nls_cv_use_gnu_gettext=yes
21269 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21270 BUILD_INCLUDED_LIBINTL=yes
21271 USE_INCLUDED_LIBINTL=yes
21272 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21273 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21274 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21278 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21279 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21284 if test -n "$INTL_MACOSX_LIBS"; then
21285 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21286 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21287 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21288 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21292 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21293 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21295 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21303 $as_echo_n "checking whether to use NLS... " >&6; }
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21305 $as_echo "$USE_NLS" >&6; }
21306 if test "$USE_NLS" = "yes"; then
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21308 $as_echo_n "checking where the gettext function comes from... " >&6; }
21309 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21310 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21311 gt_source="external libintl"
21316 gt_source="included intl directory"
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21319 $as_echo "$gt_source" >&6; }
21322 if test "$USE_NLS" = "yes"; then
21324 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21325 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21327 $as_echo_n "checking how to link with libintl... " >&6; }
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21329 $as_echo "$LIBINTL" >&6; }
21331 for element in $INCINTL; do
21333 for x in $CPPFLAGS; do
21335 acl_save_prefix="$prefix"
21336 prefix="$acl_final_prefix"
21337 acl_save_exec_prefix="$exec_prefix"
21338 exec_prefix="$acl_final_exec_prefix"
21340 exec_prefix="$acl_save_exec_prefix"
21341 prefix="$acl_save_prefix"
21343 if test "X$x" = "X$element"; then
21348 if test -z "$haveit"; then
21349 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21356 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21359 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21367 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21368 BUILD_INCLUDED_LIBINTL=yes
21375 nls_cv_header_intl=
21376 nls_cv_header_libgt=
21388 if test "$USE_INCLUDED_LIBINTL" = yes; then
21389 INTLOBJS="\$(GETTOBJS)"
21393 INTL_LIBTOOL_SUFFIX_PREFIX=
21397 INTLLIBS="$LIBINTL"
21406 support_smartalloc=yes
21407 support_readline=yes
21411 support_wx_console=no
21412 support_tray_monitor=no
21417 support_static_tools=no
21418 support_static_fd=no
21419 support_static_sd=no
21420 support_static_dir=no
21421 support_static_cons=no
21423 build_client_only=no
21427 batch_insert_db_backends=""
21431 # Check whether --enable-gnome was given.
21432 if test "${enable_gnome+set}" = set; then :
21433 enableval=$enable_gnome;
21434 if test x$enableval = xyes; then
21443 if test x$support_gnome = xyes; then
21444 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21445 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21447 # AC_SUBST(GNOME_DIR)
21449 # Check whether --enable-bat was given.
21450 if test "${enable_bat+set}" = set; then :
21451 enableval=$enable_bat;
21452 if test x$enableval = xyes; then
21454 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21464 if test x$support_bat = xyes; then
21465 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21467 if test $pkg = 0; then
21468 BAT_DIR=src/qt-console
21470 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21488 # Check whether --enable-bwx-console was given.
21489 if test "${enable_bwx_console+set}" = set; then :
21490 enableval=$enable_bwx_console;
21491 if test x$enableval = xyes; then
21492 support_wx_console=yes
21500 if test x$support_wx_console = xyes; then
21501 abc=`$WXCONFIG $WXFLAGS --cppflags`
21503 if test $pkg = 0; then
21504 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21505 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21506 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21510 WX_DIR="src/wx-console"
21513 echo "wx-config program not found. bwx-console disabled."
21515 support_wx_console=no
21520 # Check whether --enable-tray-monitor was given.
21521 if test "${enable_tray_monitor+set}" = set; then :
21522 enableval=$enable_tray_monitor;
21523 if test x$enableval = xyes; then
21524 support_tray_monitor=yes
21532 if test x$support_tray_monitor = xyes; then
21533 abc=`$PKGCONFIG --exists gtk+-2.0`
21535 if test $pkg = 0; then
21536 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21537 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21540 TRAY_MONITOR_DIR=src/tray-monitor
21541 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21543 if test $pkg = 0; then
21545 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21552 # Check whether --enable-smartalloc was given.
21553 if test "${enable_smartalloc+set}" = set; then :
21554 enableval=$enable_smartalloc;
21555 if test x$enableval = xno; then
21556 support_smartalloc=no
21563 if test x$support_smartalloc = xyes; then
21565 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21569 # Check whether --enable-lockmgr was given.
21570 if test "${enable_lockmgr+set}" = set; then :
21571 enableval=$enable_lockmgr;
21572 if test x$enableval = xyes; then
21573 support_lockmgr=yes
21580 if test x$support_lockmgr = xyes; then
21582 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21587 # Check whether --enable-static-tools was given.
21588 if test "${enable_static_tools+set}" = set; then :
21589 enableval=$enable_static_tools;
21590 if test x$enableval = xyes; then
21591 if test x$use_libtool = xyes; then
21592 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21593 please rerun configure with --disable-libtool" "$LINENO" 5
21595 support_static_tools=yes
21603 if test x$support_static_tools = xyes; then
21604 TTOOL_LDFLAGS="-static"
21608 # Check whether --enable-static-fd was given.
21609 if test "${enable_static_fd+set}" = set; then :
21610 enableval=$enable_static_fd;
21611 if test x$enableval = xyes; then
21612 if test x$use_libtool = xyes; then
21613 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21614 please rerun configure with --disable-libtool" "$LINENO" 5
21616 support_static_fd=yes
21624 if test x$support_static_fd = xyes; then
21625 STATIC_FD="static-bacula-fd"
21629 # Check whether --enable-static-sd was given.
21630 if test "${enable_static_sd+set}" = set; then :
21631 enableval=$enable_static_sd;
21632 if test x$enableval = xyes; then
21633 if test x$use_libtool = xyes; then
21634 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21635 please rerun configure with --disable-libtool" "$LINENO" 5
21637 support_static_sd=yes
21645 if test x$support_static_sd = xyes; then
21646 STATIC_SD="static-bacula-sd"
21650 # Check whether --enable-static-dir was given.
21651 if test "${enable_static_dir+set}" = set; then :
21652 enableval=$enable_static_dir;
21653 if test x$enableval = xyes; then
21654 if test x$use_libtool = xyes; then
21655 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21656 please rerun configure with --disable-libtool" "$LINENO" 5
21658 support_static_dir=yes
21666 if test x$support_static_dir = xyes; then
21667 STATIC_DIR="static-bacula-dir"
21671 # Check whether --enable-static-cons was given.
21672 if test "${enable_static_cons+set}" = set; then :
21673 enableval=$enable_static_cons;
21674 if test x$enableval = xyes; then
21675 if test x$use_libtool = xyes; then
21676 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21677 please rerun configure with --disable-libtool" "$LINENO" 5
21679 support_static_cons=yes
21689 if test x$support_static_cons = xyes; then
21690 STATIC_CONS="static-bconsole"
21691 STATIC_GNOME_CONS="static-bgnome-console"
21692 STATIC_WX_CONS="static-bwx-console"
21698 # Check whether --enable-client-only was given.
21699 if test "${enable_client_only+set}" = set; then :
21700 enableval=$enable_client_only;
21701 if test x$enableval = xyes; then
21702 build_client_only=yes
21710 if test x$build_client_only = xno; then
21717 # Check whether --enable-build-dird was given.
21718 if test "${enable_build_dird+set}" = set; then :
21719 enableval=$enable_build_dird;
21720 if test x$enableval = xno; then
21727 if test x$build_dird = xyes; then
21728 DIRD_DIR="src/dird"
21729 DIR_TOOLS="DIRTOOLS"
21732 DIR_TOOLS="NODIRTOOLS"
21737 # Check whether --enable-build-stored was given.
21738 if test "${enable_build_stored+set}" = set; then :
21739 enableval=$enable_build_stored;
21740 if test x$enableval = xno; then
21747 if test x$build_stored = xyes; then
21748 STORED_DIR="src/stored"
21754 # Check whether --enable-conio was given.
21755 if test "${enable_conio+set}" = set; then :
21756 enableval=$enable_conio;
21757 if test x$enableval = xno; then
21767 # Check whether --enable-ipv6 was given.
21768 if test "${enable_ipv6+set}" = set; then :
21769 enableval=$enable_ipv6;
21770 if test x$enableval = xno; then
21778 if test x$support_ipv6 = xyes; then
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21781 #include <sys/types.h>
21782 #include <sys/socket.h>
21783 #include <netinet/in.h>
21787 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21792 if ac_fn_c_try_link "$LINENO"; then :
21797 rm -f core conftest.err conftest.$ac_objext \
21798 conftest$ac_exeext conftest.$ac_ext
21801 if test x$support_ipv6 = xyes; then
21803 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21808 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21809 if test "x$ac_cv_header_curses_h" = xyes; then :
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21812 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21813 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21814 $as_echo_n "(cached) " >&6
21816 ac_check_lib_save_LIBS=$LIBS
21817 LIBS="-ltinfo $LIBS"
21818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819 /* end confdefs.h. */
21821 /* Override any GCC internal prototype to avoid an error.
21822 Use char because int might match the return type of a GCC
21823 builtin and then its argument prototype would still apply. */
21836 if ac_fn_c_try_link "$LINENO"; then :
21837 ac_cv_lib_tinfo_tgetent=yes
21839 ac_cv_lib_tinfo_tgetent=no
21841 rm -f core conftest.err conftest.$ac_objext \
21842 conftest$ac_exeext conftest.$ac_ext
21843 LIBS=$ac_check_lib_save_LIBS
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21846 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21847 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21852 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21853 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21854 $as_echo_n "(cached) " >&6
21856 ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-lncurses $LIBS"
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h. */
21861 /* Override any GCC internal prototype to avoid an error.
21862 Use char because int might match the return type of a GCC
21863 builtin and then its argument prototype would still apply. */
21876 if ac_fn_c_try_link "$LINENO"; then :
21877 ac_cv_lib_ncurses_tgetent=yes
21879 ac_cv_lib_ncurses_tgetent=no
21881 rm -f core conftest.err conftest.$ac_objext \
21882 conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21886 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21887 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21888 TERM_LIB="-lncurses"
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21892 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21893 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21894 $as_echo_n "(cached) " >&6
21896 ac_check_lib_save_LIBS=$LIBS
21897 LIBS="-ltermcap $LIBS"
21898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21899 /* end confdefs.h. */
21901 /* Override any GCC internal prototype to avoid an error.
21902 Use char because int might match the return type of a GCC
21903 builtin and then its argument prototype would still apply. */
21916 if ac_fn_c_try_link "$LINENO"; then :
21917 ac_cv_lib_termcap_tgetent=yes
21919 ac_cv_lib_termcap_tgetent=no
21921 rm -f core conftest.err conftest.$ac_objext \
21922 conftest$ac_exeext conftest.$ac_ext
21923 LIBS=$ac_check_lib_save_LIBS
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21926 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21927 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21928 TERM_LIB="-ltermcap"
21939 for ac_header in curses.h
21941 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21942 if test "x$ac_cv_header_curses_h" = xyes; then :
21943 cat >>confdefs.h <<_ACEOF
21944 #define HAVE_CURSES_H 1
21951 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21952 if test "x$ac_cv_header_term_h" = xyes; then :
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21954 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21955 if ${ac_cv_lib_curses_tgetent+:} false; then :
21956 $as_echo_n "(cached) " >&6
21958 ac_check_lib_save_LIBS=$LIBS
21959 LIBS="-lcurses $LIBS"
21960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h. */
21963 /* Override any GCC internal prototype to avoid an error.
21964 Use char because int might match the return type of a GCC
21965 builtin and then its argument prototype would still apply. */
21978 if ac_fn_c_try_link "$LINENO"; then :
21979 ac_cv_lib_curses_tgetent=yes
21981 ac_cv_lib_curses_tgetent=no
21983 rm -f core conftest.err conftest.$ac_objext \
21984 conftest$ac_exeext conftest.$ac_ext
21985 LIBS=$ac_check_lib_save_LIBS
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21988 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21989 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21990 TERM_LIB="-lcurses"
22004 if test x$support_conio = xyes; then
22005 if test x$TERM_LIB != x; then
22006 CONS_LIBS=$TERM_LIB
22010 support_readline=no
22012 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22015 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22020 # Check whether --enable-readline was given.
22021 if test "${enable_readline+set}" = set; then :
22022 enableval=$enable_readline;
22023 if test x$enableval = xno; then
22024 support_readline=no
22030 if test x$TERM_LIB = x ; then
22031 support_readline=no
22036 if test x$support_readline = xyes; then
22038 # Check whether --with-readline was given.
22039 if test "${with_readline+set}" = set; then :
22040 withval=$with_readline;
22041 case "$with_readline" in
22046 if test -f ${with_readline}/readline.h; then
22047 CONS_INC="-I${with_readline}"
22048 CONS_LDFLAGS="-L$with_readline"
22049 elif test -f ${with_readline}/include/readline/readline.h; then
22050 CONS_INC="-I${with_readline}/include/readline"
22051 CONS_LDFLAGS="-L${with_readline}/lib"
22052 with_readline="${with_readline}/include/readline"
22054 with_readline="/usr/include/readline"
22057 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22058 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22062 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22064 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22070 echo "readline.h not found. readline turned off ..."
22082 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22083 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22086 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22089 CONS_INC="-I/usr/include/readline"
22090 CONS_LIBS="-lreadline $TERM_LIB"
22094 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22095 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22099 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22102 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22103 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22104 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22105 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22110 echo "readline.h not found. readline turned off ..."
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22138 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22139 if ${ac_cv_header_stat_broken+:} false; then :
22140 $as_echo_n "(cached) " >&6
22142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h. */
22144 #include <sys/types.h>
22145 #include <sys/stat.h>
22147 #if defined S_ISBLK && defined S_IFDIR
22148 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22151 #if defined S_ISBLK && defined S_IFCHR
22152 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22155 #if defined S_ISLNK && defined S_IFREG
22156 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22159 #if defined S_ISSOCK && defined S_IFREG
22160 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22164 if ac_fn_c_try_compile "$LINENO"; then :
22165 ac_cv_header_stat_broken=no
22167 ac_cv_header_stat_broken=yes
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22172 $as_echo "$ac_cv_header_stat_broken" >&6; }
22173 if test $ac_cv_header_stat_broken = yes; then
22175 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22179 ac_header_dirent=no
22180 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22181 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22183 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22184 if eval \${$as_ac_Header+:} false; then :
22185 $as_echo_n "(cached) " >&6
22187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22189 #include <sys/types.h>
22201 if ac_fn_c_try_compile "$LINENO"; then :
22202 eval "$as_ac_Header=yes"
22204 eval "$as_ac_Header=no"
22206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22208 eval ac_res=\$$as_ac_Header
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22210 $as_echo "$ac_res" >&6; }
22211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22212 cat >>confdefs.h <<_ACEOF
22213 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22216 ac_header_dirent=$ac_hdr; break
22220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22221 if test $ac_header_dirent = dirent.h; then
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22223 $as_echo_n "checking for library containing opendir... " >&6; }
22224 if ${ac_cv_search_opendir+:} false; then :
22225 $as_echo_n "(cached) " >&6
22227 ac_func_search_save_LIBS=$LIBS
22228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h. */
22231 /* Override any GCC internal prototype to avoid an error.
22232 Use char because int might match the return type of a GCC
22233 builtin and then its argument prototype would still apply. */
22246 for ac_lib in '' dir; do
22247 if test -z "$ac_lib"; then
22248 ac_res="none required"
22251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22253 if ac_fn_c_try_link "$LINENO"; then :
22254 ac_cv_search_opendir=$ac_res
22256 rm -f core conftest.err conftest.$ac_objext \
22258 if ${ac_cv_search_opendir+:} false; then :
22262 if ${ac_cv_search_opendir+:} false; then :
22265 ac_cv_search_opendir=no
22267 rm conftest.$ac_ext
22268 LIBS=$ac_func_search_save_LIBS
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22271 $as_echo "$ac_cv_search_opendir" >&6; }
22272 ac_res=$ac_cv_search_opendir
22273 if test "$ac_res" != no; then :
22274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22280 $as_echo_n "checking for library containing opendir... " >&6; }
22281 if ${ac_cv_search_opendir+:} false; then :
22282 $as_echo_n "(cached) " >&6
22284 ac_func_search_save_LIBS=$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 for ac_lib in '' x; do
22304 if test -z "$ac_lib"; then
22305 ac_res="none required"
22308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22310 if ac_fn_c_try_link "$LINENO"; then :
22311 ac_cv_search_opendir=$ac_res
22313 rm -f core conftest.err conftest.$ac_objext \
22315 if ${ac_cv_search_opendir+:} false; then :
22319 if ${ac_cv_search_opendir+:} false; then :
22322 ac_cv_search_opendir=no
22324 rm conftest.$ac_ext
22325 LIBS=$ac_func_search_save_LIBS
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22328 $as_echo "$ac_cv_search_opendir" >&6; }
22329 ac_res=$ac_cv_search_opendir
22330 if test "$ac_res" != no; then :
22331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22337 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22341 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22342 cat >>confdefs.h <<_ACEOF
22343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22349 for ac_func in nanosleep nl_langinfo
22351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22352 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22353 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22354 cat >>confdefs.h <<_ACEOF
22355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22361 for ac_header in varargs.h
22363 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22364 if test "x$ac_cv_header_varargs_h" = xyes; then :
22365 cat >>confdefs.h <<_ACEOF
22366 #define HAVE_VARARGS_H 1
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22376 $as_echo_n "checking for Python support... " >&6; }
22378 # Check whether --with-python was given.
22379 if test "${with_python+set}" = set; then :
22380 withval=$with_python;
22383 if test "$withval" != "no"; then
22384 if test "$withval" = "yes"; then
22385 if test -e /usr/bin/python-config ; then
22386 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22387 PYTHON_LIBS=`/usr/bin/python-config --libs`
22389 for python_root in /usr /usr/local /usr/sfw; do
22390 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22391 if test -f $python_root/include/${ver}/Python.h; then
22392 PYTHON_INCDIR=-I$python_root/include/${ver}
22393 if test -d $python_root/lib64/${ver}/config; then
22394 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22396 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22403 if test x$PYTHON_INCDIR = x; then
22404 if test -f $prefix/include/Python.h; then
22405 PYTHON_INCDIR=-I$prefix/include
22406 if test -d $prefix/lib64/config; then
22407 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22409 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22413 $as_echo "no" >&6; }
22414 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22419 if test -e $withval/bin/python-config ; then
22420 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22421 PYTHON_LIBS=`$withval/bin/python-config --libs`
22422 elif test -f $withval/Python.h; then
22423 PYTHON_INCDIR=-I$withval
22424 PYTHON_LIBS="-L$withval/config -lpython"
22425 elif test -f $withval/include/Python.h; then
22426 PYTHON_INCDIR=-I$withval/include
22427 if test -d $withval/lib64/config; then
22428 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22430 PYTHON_LIBS="-L$withval/lib/config -lpython"
22432 elif test -f $withval/include/python/Python.h; then
22433 PYTHON_INCDIR=-I$withval/include/python
22434 if test -d $withval/lib64/python/config; then
22435 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22437 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22441 $as_echo "no" >&6; }
22442 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22446 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22449 $as_echo "yes" >&6; }
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22452 $as_echo "$as_me: checking for more Python libs" >&6;}
22453 saved_LIBS="$LIBS"; LIBS=
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22455 $as_echo_n "checking for library containing shm_open... " >&6; }
22456 if ${ac_cv_search_shm_open+:} false; then :
22457 $as_echo_n "(cached) " >&6
22459 ac_func_search_save_LIBS=$LIBS
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h. */
22463 /* Override any GCC internal prototype to avoid an error.
22464 Use char because int might match the return type of a GCC
22465 builtin and then its argument prototype would still apply. */
22473 return shm_open ();
22478 for ac_lib in '' rt; do
22479 if test -z "$ac_lib"; then
22480 ac_res="none required"
22483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22485 if ac_fn_c_try_link "$LINENO"; then :
22486 ac_cv_search_shm_open=$ac_res
22488 rm -f core conftest.err conftest.$ac_objext \
22490 if ${ac_cv_search_shm_open+:} false; then :
22494 if ${ac_cv_search_shm_open+:} false; then :
22497 ac_cv_search_shm_open=no
22499 rm conftest.$ac_ext
22500 LIBS=$ac_func_search_save_LIBS
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22503 $as_echo "$ac_cv_search_shm_open" >&6; }
22504 ac_res=$ac_cv_search_shm_open
22505 if test "$ac_res" != no; then :
22506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22511 $as_echo_n "checking for openpty in -lutil... " >&6; }
22512 if ${ac_cv_lib_util_openpty+:} false; then :
22513 $as_echo_n "(cached) " >&6
22515 ac_check_lib_save_LIBS=$LIBS
22516 LIBS="-lutil $LIBS"
22517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22518 /* end confdefs.h. */
22520 /* Override any GCC internal prototype to avoid an error.
22521 Use char because int might match the return type of a GCC
22522 builtin and then its argument prototype would still apply. */
22535 if ac_fn_c_try_link "$LINENO"; then :
22536 ac_cv_lib_util_openpty=yes
22538 ac_cv_lib_util_openpty=no
22540 rm -f core conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext conftest.$ac_ext
22542 LIBS=$ac_check_lib_save_LIBS
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22545 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22546 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22547 cat >>confdefs.h <<_ACEOF
22548 #define HAVE_LIBUTIL 1
22551 LIBS="-lutil $LIBS"
22555 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559 $as_echo "no" >&6; }
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22565 $as_echo "no" >&6; }
22573 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22574 if test "x$ac_cv_func_socket" = xyes; then :
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22576 $as_echo "using libc's socket" >&6; }
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22579 $as_echo_n "checking for socket in -lxnet... " >&6; }
22580 if ${ac_cv_lib_xnet_socket+:} false; then :
22581 $as_echo_n "(cached) " >&6
22583 ac_check_lib_save_LIBS=$LIBS
22584 LIBS="-lxnet $LIBS"
22585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22586 /* end confdefs.h. */
22588 /* Override any GCC internal prototype to avoid an error.
22589 Use char because int might match the return type of a GCC
22590 builtin and then its argument prototype would still apply. */
22603 if ac_fn_c_try_link "$LINENO"; then :
22604 ac_cv_lib_xnet_socket=yes
22606 ac_cv_lib_xnet_socket=no
22608 rm -f core conftest.err conftest.$ac_objext \
22609 conftest$ac_exeext conftest.$ac_ext
22610 LIBS=$ac_check_lib_save_LIBS
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22613 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22614 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22615 cat >>confdefs.h <<_ACEOF
22616 #define HAVE_LIBXNET 1
22619 LIBS="-lxnet $LIBS"
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22624 $as_echo_n "checking for socket in -lsocket... " >&6; }
22625 if ${ac_cv_lib_socket_socket+:} false; then :
22626 $as_echo_n "(cached) " >&6
22628 ac_check_lib_save_LIBS=$LIBS
22629 LIBS="-lsocket $LIBS"
22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h. */
22633 /* Override any GCC internal prototype to avoid an error.
22634 Use char because int might match the return type of a GCC
22635 builtin and then its argument prototype would still apply. */
22648 if ac_fn_c_try_link "$LINENO"; then :
22649 ac_cv_lib_socket_socket=yes
22651 ac_cv_lib_socket_socket=no
22653 rm -f core conftest.err conftest.$ac_objext \
22654 conftest$ac_exeext conftest.$ac_ext
22655 LIBS=$ac_check_lib_save_LIBS
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22658 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22659 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22660 cat >>confdefs.h <<_ACEOF
22661 #define HAVE_LIBSOCKET 1
22664 LIBS="-lsocket $LIBS"
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22669 $as_echo_n "checking for socket in -linet... " >&6; }
22670 if ${ac_cv_lib_inet_socket+:} false; then :
22671 $as_echo_n "(cached) " >&6
22673 ac_check_lib_save_LIBS=$LIBS
22674 LIBS="-linet $LIBS"
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22678 /* Override any GCC internal prototype to avoid an error.
22679 Use char because int might match the return type of a GCC
22680 builtin and then its argument prototype would still apply. */
22693 if ac_fn_c_try_link "$LINENO"; then :
22694 ac_cv_lib_inet_socket=yes
22696 ac_cv_lib_inet_socket=no
22698 rm -f core conftest.err conftest.$ac_objext \
22699 conftest$ac_exeext conftest.$ac_ext
22700 LIBS=$ac_check_lib_save_LIBS
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22703 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22704 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22705 cat >>confdefs.h <<_ACEOF
22706 #define HAVE_LIBINET 1
22709 LIBS="-linet $LIBS"
22719 # Check whether --with-tcp-wrappers was given.
22720 if test "${with_tcp_wrappers+set}" = set; then :
22721 withval=$with_tcp_wrappers;
22722 if test "x$withval" != "xno" ; then
22724 LIBS="$saved_LIBS -lwrap"
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22726 $as_echo_n "checking for library containing nanosleep... " >&6; }
22727 if ${ac_cv_search_nanosleep+:} false; then :
22728 $as_echo_n "(cached) " >&6
22730 ac_func_search_save_LIBS=$LIBS
22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h. */
22734 /* Override any GCC internal prototype to avoid an error.
22735 Use char because int might match the return type of a GCC
22736 builtin and then its argument prototype would still apply. */
22744 return nanosleep ();
22749 for ac_lib in '' rt; do
22750 if test -z "$ac_lib"; then
22751 ac_res="none required"
22754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22756 if ac_fn_c_try_link "$LINENO"; then :
22757 ac_cv_search_nanosleep=$ac_res
22759 rm -f core conftest.err conftest.$ac_objext \
22761 if ${ac_cv_search_nanosleep+:} false; then :
22765 if ${ac_cv_search_nanosleep+:} false; then :
22768 ac_cv_search_nanosleep=no
22770 rm conftest.$ac_ext
22771 LIBS=$ac_func_search_save_LIBS
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22774 $as_echo "$ac_cv_search_nanosleep" >&6; }
22775 ac_res=$ac_cv_search_nanosleep
22776 if test "$ac_res" != no; then :
22777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22782 $as_echo_n "checking for libwrap... " >&6; }
22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22786 #include <sys/types.h>
22788 int deny_severity = 0;
22789 int allow_severity = 0;
22790 struct request_info *req;
22802 if ac_fn_c_try_link "$LINENO"; then :
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22805 $as_echo "yes" >&6; }
22807 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22815 LIBS="$saved_LIBS -lwrap -lnsl"
22816 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818 /* end confdefs.h. */
22820 #include <sys/types.h>
22822 int deny_severity = 0;
22823 int allow_severity = 0;
22824 struct request_info *req;
22836 if ac_fn_c_try_link "$LINENO"; then :
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22839 $as_echo "yes" >&6; }
22841 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22849 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22853 rm -f core conftest.err conftest.$ac_objext \
22854 conftest$ac_exeext conftest.$ac_ext
22858 rm -f core conftest.err conftest.$ac_objext \
22859 conftest$ac_exeext conftest.$ac_ext
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22867 $as_echo_n "checking for OpenSSL... " >&6; }
22869 # Check whether --with-openssl was given.
22870 if test "${with_openssl+set}" = set; then :
22871 withval=$with_openssl;
22872 with_openssl_directory=${withval}
22878 if test "x$with_openssl_directory" != "xno"; then
22879 OPENSSL_LIBS="-lssl -lcrypto"
22882 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22884 # Make sure the $with_openssl_directory also makes sense
22886 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22887 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22888 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22892 saved_LIBS="${LIBS}"
22893 saved_CFLAGS="${CFLAGS}"
22894 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22895 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h. */
22900 #include <openssl/ssl.h>
22906 CRYPTO_set_id_callback(NULL);
22912 if ac_fn_c_try_link "$LINENO"; then :
22915 support_crypto="yes"
22920 support_crypto="no"
22924 rm -f core conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h. */
22930 #include <openssl/evp.h>
22942 if ac_fn_c_try_link "$LINENO"; then :
22944 ac_cv_openssl_sha2="yes"
22948 ac_cv_openssl_sha2="no"
22952 rm -f core conftest.err conftest.$ac_objext \
22953 conftest$ac_exeext conftest.$ac_ext
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22958 #include <openssl/evp.h>
22970 if ac_fn_c_try_link "$LINENO"; then :
22972 ac_cv_openssl_export="no"
22976 ac_cv_openssl_export="yes"
22980 rm -f core conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22984 $as_echo "$support_tls" >&6; }
22985 if test "$support_tls" = "yes"; then
22987 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22990 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22993 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22997 if test "$ac_cv_openssl_sha2" = "yes"; then
22999 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23003 if test "$ac_cv_openssl_export" = "yes"; then
23005 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23009 if test "$support_crypto" = "yes"; then
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23011 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23012 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23013 $as_echo_n "(cached) " >&6
23015 ac_check_lib_save_LIBS=$LIBS
23016 LIBS="-lcrypto $LIBS"
23017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018 /* end confdefs.h. */
23020 /* Override any GCC internal prototype to avoid an error.
23021 Use char because int might match the return type of a GCC
23022 builtin and then its argument prototype would still apply. */
23026 char EVP_PKEY_encrypt_old ();
23030 return EVP_PKEY_encrypt_old ();
23035 if ac_fn_c_try_link "$LINENO"; then :
23036 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23038 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23040 rm -f core conftest.err conftest.$ac_objext \
23041 conftest$ac_exeext conftest.$ac_ext
23042 LIBS=$ac_check_lib_save_LIBS
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23045 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23046 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23048 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23054 LIBS="${saved_LIBS}"
23055 CFLAGS="${saved_CFLAGS}"
23058 support_crypto="no"
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23060 $as_echo "$support_tls" >&6; }
23063 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23072 $as_echo_n "checking for library containing dlopen... " >&6; }
23073 if ${ac_cv_search_dlopen+:} false; then :
23074 $as_echo_n "(cached) " >&6
23076 ac_func_search_save_LIBS=$LIBS
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23080 /* Override any GCC internal prototype to avoid an error.
23081 Use char because int might match the return type of a GCC
23082 builtin and then its argument prototype would still apply. */
23095 for ac_lib in '' dl; do
23096 if test -z "$ac_lib"; then
23097 ac_res="none required"
23100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23102 if ac_fn_c_try_link "$LINENO"; then :
23103 ac_cv_search_dlopen=$ac_res
23105 rm -f core conftest.err conftest.$ac_objext \
23107 if ${ac_cv_search_dlopen+:} false; then :
23111 if ${ac_cv_search_dlopen+:} false; then :
23114 ac_cv_search_dlopen=no
23116 rm conftest.$ac_ext
23117 LIBS=$ac_func_search_save_LIBS
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23120 $as_echo "$ac_cv_search_dlopen" >&6; }
23121 ac_res=$ac_cv_search_dlopen
23122 if test "$ac_res" != no; then :
23123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23128 working_dir=`eval echo ${prefix}/var/bacula/working`
23130 # Check whether --with-working-dir was given.
23131 if test "${with_working_dir+set}" = set; then :
23132 withval=$with_working_dir;
23133 if test "x$withval" != "xno" ; then
23134 working_dir=$withval
23145 # Check whether --with-archivedir was given.
23146 if test "${with_archivedir+set}" = set; then :
23147 withval=$with_archivedir;
23148 if test "x$withval" != "xno" ; then
23149 archivedir=$withval
23158 basename=`hostname`
23160 # Check whether --with-basename was given.
23161 if test "${with_basename+set}" = set; then :
23162 withval=$with_basename;
23163 if test "x$withval" != "xno" ; then
23173 hostname=`uname -n | cut -d '.' -f 1`
23174 if test x${hostname} = x ; then
23175 hostname="localhost"
23178 # Check whether --with-hostname was given.
23179 if test "${with_hostname+set}" = set; then :
23180 withval=$with_hostname;
23181 if test "x$withval" != "xno" ; then
23192 scriptdir=`eval echo ${sysconfdir}`
23194 # Check whether --with-scriptdir was given.
23195 if test "${with_scriptdir+set}" = set; then :
23196 withval=$with_scriptdir;
23197 if test "x$withval" != "xno" ; then
23210 # Check whether --with-bsrdir was given.
23211 if test "${with_bsrdir+set}" = set; then :
23212 withval=$with_bsrdir;
23213 if test "x$withval" != "xno" ; then
23225 # Check whether --with-logdir was given.
23226 if test "${with_logdir+set}" = set; then :
23227 withval=$with_logdir;
23228 if test "x$withval" != "xno" ; then
23239 # ------------------------------------------
23240 # Where to place plugindir (plugin files)
23241 # ------------------------------------------
23242 plugindir=`eval echo ${libdir}`
23244 # Check whether --with-plugindir was given.
23245 if test "${with_plugindir+set}" = set; then :
23246 withval=$with_plugindir;
23247 if test "x$withval" != "xno" ; then
23257 dump_email=root@localhost
23259 # Check whether --with-dump-email was given.
23260 if test "${with_dump_email+set}" = set; then :
23261 withval=$with_dump_email;
23262 if test "x$withval" != "xno" ; then
23263 dump_email=$withval
23272 job_email=root@localhost
23274 # Check whether --with-job-email was given.
23275 if test "${with_job_email+set}" = set; then :
23276 withval=$with_job_email;
23277 if test "x$withval" != "xno" ; then
23287 smtp_host=localhost
23289 # Check whether --with-smtp_host was given.
23290 if test "${with_smtp_host+set}" = set; then :
23291 withval=$with_smtp_host;
23292 if test "x$withval" != "xno" ; then
23304 # Check whether --with-pid-dir was given.
23305 if test "${with_pid_dir+set}" = set; then :
23306 withval=$with_pid_dir;
23307 if test "x$withval" != "xno" ; then
23315 cat >>confdefs.h <<_ACEOF
23316 #define _PATH_BACULA_PIDDIR "$piddir"
23321 subsysdir=/var/run/subsys
23322 if test -d /var/run/subsys; then
23323 subsysdir=/var/run/subsys
23324 elif test -d /var/lock/subsys; then
23325 subsysdir=/var/lock/subsys
23327 subsysdir=/var/run/subsys
23330 # Check whether --with-subsys-dir was given.
23331 if test "${with_subsys_dir+set}" = set; then :
23332 withval=$with_subsys_dir;
23333 if test "x$withval" != "xno" ; then
23345 # Check whether --with-baseport was given.
23346 if test "${with_baseport+set}" = set; then :
23347 withval=$with_baseport;
23348 if test "x$withval" != "xno" ; then
23357 dir_port=`expr $baseport`
23358 fd_port=`expr $baseport + 1`
23359 sd_port=`expr $fd_port + 1`
23367 # Check whether --with-dir-password was given.
23368 if test "${with_dir_password+set}" = set; then :
23369 withval=$with_dir_password;
23370 if test "x$withval" != "xno" ; then
23371 dir_password=$withval
23378 if test "x$dir_password" = "x" ; then
23379 if test "x$OPENSSL" = "xnone" ; then
23380 key=`autoconf/randpass 33`
23382 key=`openssl rand -base64 33`
23389 # Check whether --with-fd-password was given.
23390 if test "${with_fd_password+set}" = set; then :
23391 withval=$with_fd_password;
23392 if test "x$withval" != "xno" ; then
23393 fd_password=$withval
23400 if test "x$fd_password" = "x" ; then
23401 if test "x$OPENSSL" = "xnone" ; then
23402 key=`autoconf/randpass 37`
23404 key=`openssl rand -base64 33`
23411 # Check whether --with-sd-password was given.
23412 if test "${with_sd_password+set}" = set; then :
23413 withval=$with_sd_password;
23414 if test "x$withval" != "xno" ; then
23415 sd_password=$withval
23422 if test "x$sd_password" = "x" ; then
23423 if test "x$OPENSSL" = "xnone" ; then
23424 key=`autoconf/randpass 41`
23426 key=`openssl rand -base64 33`
23433 # Check whether --with-mon-dir-password was given.
23434 if test "${with_mon_dir_password+set}" = set; then :
23435 withval=$with_mon_dir_password;
23436 if test "x$withval" != "xno" ; then
23437 mon_dir_password=$withval
23444 if test "x$mon_dir_password" = "x" ; then
23445 if test "x$OPENSSL" = "xnone" ; then
23446 key=`autoconf/randpass 33`
23448 key=`openssl rand -base64 33`
23450 mon_dir_password=$key
23455 # Check whether --with-mon-fd-password was given.
23456 if test "${with_mon_fd_password+set}" = set; then :
23457 withval=$with_mon_fd_password;
23458 if test "x$withval" != "xno" ; then
23459 mon_fd_password=$withval
23466 if test "x$mon_fd_password" = "x" ; then
23467 if test "x$OPENSSL" = "xnone" ; then
23468 key=`autoconf/randpass 37`
23470 key=`openssl rand -base64 33`
23472 mon_fd_password=$key
23477 # Check whether --with-mon-sd-password was given.
23478 if test "${with_mon_sd_password+set}" = set; then :
23479 withval=$with_mon_sd_password;
23480 if test "x$withval" != "xno" ; then
23481 mon_sd_password=$withval
23488 if test "x$mon_sd_password" = "x" ; then
23489 if test "x$OPENSSL" = "xnone" ; then
23490 key=`autoconf/randpass 41`
23492 key=`openssl rand -base64 33`
23494 mon_sd_password=$key
23506 # Check whether --with-db_name was given.
23507 if test "${with_db_name+set}" = set; then :
23508 withval=$with_db_name;
23509 if test "x$withval" != "x" ; then
23520 # Check whether --with-db_user was given.
23521 if test "${with_db_user+set}" = set; then :
23522 withval=$with_db_user;
23523 if test "x$withval" != "x" ; then
23534 # Check whether --with-db_password was given.
23535 if test "${with_db_password+set}" = set; then :
23536 withval=$with_db_password;
23537 if test "x$withval" != "x" ; then
23538 db_password=$withval
23548 # Check whether --with-db_port was given.
23549 if test "${with_db_port+set}" = set; then :
23550 withval=$with_db_port;
23551 if test "x$withval" != "x" ; then
23561 # Handle users and groups for each daemon
23565 # Check whether --with-dir_user was given.
23566 if test "${with_dir_user+set}" = set; then :
23567 withval=$with_dir_user;
23568 if test "x$withval" != "x" ; then
23578 # Check whether --with-dir_group was given.
23579 if test "${with_dir_group+set}" = set; then :
23580 withval=$with_dir_group;
23581 if test "x$withval" != "x" ; then
23591 # Check whether --with-sd_user was given.
23592 if test "${with_sd_user+set}" = set; then :
23593 withval=$with_sd_user;
23594 if test "x$withval" != "x" ; then
23604 # Check whether --with-sd_group was given.
23605 if test "${with_sd_group+set}" = set; then :
23606 withval=$with_sd_group;
23607 if test "x$withval" != "x" ; then
23617 # Check whether --with-fd_user was given.
23618 if test "${with_fd_user+set}" = set; then :
23619 withval=$with_fd_user;
23620 if test "x$withval" != "x" ; then
23630 # Check whether --with-fd_group was given.
23631 if test "${with_fd_group+set}" = set; then :
23632 withval=$with_fd_group;
23633 if test "x$withval" != "x" ; then
23650 # Check whether --with-sbin-perm was given.
23651 if test "${with_sbin_perm+set}" = set; then :
23652 withval=$with_sbin_perm;
23653 if test "x$withval" != "x" ; then
23663 support_batch_insert=yes
23664 # Check whether --enable-batch-insert was given.
23665 if test "${enable_batch_insert+set}" = set; then :
23666 enableval=$enable_batch_insert;
23667 if test x$enableval = xno; then
23668 support_batch_insert=no
23675 if test x$support_batch_insert = xyes; then
23677 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23686 $as_echo_n "checking for PostgreSQL support... " >&6; }
23688 # Check whether --with-postgresql was given.
23689 if test "${with_postgresql+set}" = set; then :
23690 withval=$with_postgresql;
23691 if test "$withval" != "no"; then
23692 if test "$withval" = "yes"; then
23693 PG_CONFIG=`which pg_config 2>/dev/null`
23694 if test -n "$PG_CONFIG"; then
23695 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23696 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23697 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23698 elif test -f /usr/local/include/libpq-fe.h; then
23699 POSTGRESQL_INCDIR=/usr/local/include
23700 if test -d /usr/local/lib64; then
23701 POSTGRESQL_LIBDIR=/usr/local/lib64
23703 POSTGRESQL_LIBDIR=/usr/local/lib
23705 POSTGRESQL_BINDIR=/usr/local/bin
23706 elif test -f /usr/include/libpq-fe.h; then
23707 POSTGRESQL_INCDIR=/usr/include
23708 if test -d /usr/lib64; then
23709 POSTGRESQL_LIBDIR=/usr/lib64
23711 POSTGRESQL_LIBDIR=/usr/lib
23713 POSTGRESQL_BINDIR=/usr/bin
23714 elif test -f /usr/include/pgsql/libpq-fe.h; then
23715 POSTGRESQL_INCDIR=/usr/include/pgsql
23716 if test -d /usr/lib64/pgsql; then
23717 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23719 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23721 POSTGRESQL_BINDIR=/usr/bin
23722 elif test -f /usr/include/postgresql/libpq-fe.h; then
23723 POSTGRESQL_INCDIR=/usr/include/postgresql
23724 if test -d /usr/lib64/postgresql; then
23725 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23727 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23729 POSTGRESQL_BINDIR=/usr/bin
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23732 $as_echo "no" >&6; }
23733 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23735 elif test -f $withval/include/libpq-fe.h; then
23736 POSTGRESQL_INCDIR=$withval/include
23737 POSTGRESQL_LIBDIR=$withval/lib
23738 POSTGRESQL_BINDIR=$withval/bin
23739 elif test -f $withval/include/postgresql/libpq-fe.h; then
23740 POSTGRESQL_INCDIR=$withval/include/postgresql
23741 if test -d $withval/lib64; then
23742 POSTGRESQL_LIBDIR=$withval/lib64
23744 POSTGRESQL_LIBDIR=$withval/lib
23746 POSTGRESQL_BINDIR=$withval/bin
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23749 $as_echo "no" >&6; }
23750 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23753 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23756 $as_echo "yes" >&6; }
23758 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23759 if test x$use_libtool != xno; then
23760 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23762 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23764 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23765 if test "x$ac_cv_func_crypt" = xyes; then :
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23769 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23770 if ${ac_cv_lib_crypt_crypt+:} false; then :
23771 $as_echo_n "(cached) " >&6
23773 ac_check_lib_save_LIBS=$LIBS
23774 LIBS="-lcrypt $LIBS"
23775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23776 /* end confdefs.h. */
23778 /* Override any GCC internal prototype to avoid an error.
23779 Use char because int might match the return type of a GCC
23780 builtin and then its argument prototype would still apply. */
23793 if ac_fn_c_try_link "$LINENO"; then :
23794 ac_cv_lib_crypt_crypt=yes
23796 ac_cv_lib_crypt_crypt=no
23798 rm -f core conftest.err conftest.$ac_objext \
23799 conftest$ac_exeext conftest.$ac_ext
23800 LIBS=$ac_check_lib_save_LIBS
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23803 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23804 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23805 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23810 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23811 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23813 if test -z "${db_backends}"; then
23814 db_backends="PostgreSQL"
23816 db_backends="${db_backends} PostgreSQL"
23818 if test -z "${DB_BACKENDS}"; then
23819 DB_BACKENDS="postgresql"
23821 DB_BACKENDS="${DB_BACKENDS} postgresql"
23824 if test "x$support_batch_insert" = "xyes"; then
23825 saved_LDFLAGS="${LDFLAGS}"
23826 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23827 saved_LIBS="${LIBS}"
23828 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23829 LIBS="${saved_LIBS} -lcrypt"
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23833 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23834 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23835 $as_echo_n "(cached) " >&6
23837 ac_check_lib_save_LIBS=$LIBS
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23842 /* Override any GCC internal prototype to avoid an error.
23843 Use char because int might match the return type of a GCC
23844 builtin and then its argument prototype would still apply. */
23848 char PQisthreadsafe ();
23852 return PQisthreadsafe ();
23857 if ac_fn_c_try_link "$LINENO"; then :
23858 ac_cv_lib_pq_PQisthreadsafe=yes
23860 ac_cv_lib_pq_PQisthreadsafe=no
23862 rm -f core conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
23864 LIBS=$ac_check_lib_save_LIBS
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23867 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23868 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23870 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23875 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23876 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23877 $as_echo_n "(cached) " >&6
23879 ac_check_lib_save_LIBS=$LIBS
23881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23882 /* end confdefs.h. */
23884 /* Override any GCC internal prototype to avoid an error.
23885 Use char because int might match the return type of a GCC
23886 builtin and then its argument prototype would still apply. */
23890 char PQputCopyData ();
23894 return PQputCopyData ();
23899 if ac_fn_c_try_link "$LINENO"; then :
23900 ac_cv_lib_pq_PQputCopyData=yes
23902 ac_cv_lib_pq_PQputCopyData=no
23904 rm -f core conftest.err conftest.$ac_objext \
23905 conftest$ac_exeext conftest.$ac_ext
23906 LIBS=$ac_check_lib_save_LIBS
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23909 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23910 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23912 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23916 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23917 if test $support_batch_insert = yes ; then
23919 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23921 if test -z "${batch_insert_db_backends}"; then
23922 batch_insert_db_backends="PostgreSQL"
23924 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
23929 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23931 echo "WARNING: Your PostgreSQL client library is too old to detect "
23932 echo "if it was compiled with --enable-thread-safety, consider to "
23933 echo "upgrade it in order to avoid problems with Batch insert mode"
23936 LDFLAGS="${saved_LDFLAGS}"
23937 LIBS="${saved_LIBS}"
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23941 $as_echo "no" >&6; }
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23947 $as_echo "no" >&6; }
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23959 $as_echo_n "checking for MySQL support... " >&6; }
23961 # Check whether --with-mysql was given.
23962 if test "${with_mysql+set}" = set; then :
23963 withval=$with_mysql;
23964 if test "$withval" != "no"; then
23965 if test "$withval" = "yes"; then
23966 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23967 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23968 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23969 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23970 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23972 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23974 MYSQL_BINDIR=/usr/local/mysql/bin
23975 elif test -f /usr/include/mysql/mysql.h; then
23976 MYSQL_INCDIR=/usr/include/mysql
23977 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23978 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23979 MYSQL_LIBDIR=/usr/lib64/mysql
23980 elif test -f /usr/lib64/libmysqlclient_r.a \
23981 -o -f /usr/lib64/libmysqlclient_r.so; then
23982 MYSQL_LIBDIR=/usr/lib64
23983 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23984 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23985 MYSQL_LIBDIR=/usr/lib/mysql
23987 MYSQL_LIBDIR=/usr/lib
23989 MYSQL_BINDIR=/usr/bin
23990 elif test -f /usr/include/mysql.h; then
23991 MYSQL_INCDIR=/usr/include
23992 if test -f /usr/lib64/libmysqlclient_r.a \
23993 -o -f /usr/lib64/libmysqlclient_r.so; then
23994 MYSQL_LIBDIR=/usr/lib64
23996 MYSQL_LIBDIR=/usr/lib
23998 MYSQL_BINDIR=/usr/bin
23999 elif test -f /usr/local/include/mysql/mysql.h; then
24000 MYSQL_INCDIR=/usr/local/include/mysql
24001 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24002 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24003 MYSQL_LIBDIR=/usr/local/lib64/mysql
24005 MYSQL_LIBDIR=/usr/local/lib/mysql
24007 MYSQL_BINDIR=/usr/local/bin
24008 elif test -f /usr/local/include/mysql.h; then
24009 MYSQL_INCDIR=/usr/local/include
24010 if test -f /usr/local/lib64/libmysqlclient_r.a \
24011 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24012 MYSQL_LIBDIR=/usr/local/lib64
24014 MYSQL_LIBDIR=/usr/local/lib
24016 MYSQL_BINDIR=/usr/local/bin
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24020 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24023 if test -f $withval/include/mysql/mysql.h; then
24024 MYSQL_INCDIR=$withval/include/mysql
24025 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24026 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24027 MYSQL_LIBDIR=$withval/lib64/mysql
24028 elif test -f $withval/lib64/libmysqlclient_r.a \
24029 -o -f $withval/lib64/libmysqlclient_r.so; then
24030 MYSQL_LIBDIR=$withval/lib64
24031 elif test -f $withval/lib/libmysqlclient_r.a \
24032 -o -f $withval/lib/libmysqlclient_r.so; then
24033 MYSQL_LIBDIR=$withval/lib
24035 MYSQL_LIBDIR=$withval/lib/mysql
24037 MYSQL_BINDIR=$withval/bin
24038 elif test -f $withval/include/mysql.h; then
24039 MYSQL_INCDIR=$withval/include
24040 if test -f $withval/lib64/libmysqlclient_r.a \
24041 -o -f $withval/lib64/libmysqlclient_r.so; then
24042 MYSQL_LIBDIR=$withval/lib64
24044 MYSQL_LIBDIR=$withval/lib
24046 MYSQL_BINDIR=$withval/bin
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24049 $as_echo "no" >&6; }
24050 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24053 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24054 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24055 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24056 if test x$use_libtool != xno; then
24057 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24059 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24062 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
24064 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24066 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24069 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24072 $as_echo "yes" >&6; }
24074 if test -z "${db_backends}" ; then
24075 db_backends="MySQL"
24077 db_backends="${db_backends} MySQL"
24079 if test -z "${DB_BACKENDS}" ; then
24080 DB_BACKENDS="mysql"
24082 DB_BACKENDS="${DB_BACKENDS} mysql"
24085 if test "x$support_batch_insert" = "xyes"; then
24086 saved_LDFLAGS="${LDFLAGS}"
24087 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24088 saved_LIBS="${LIBS}"
24089 LIBS="${saved_LIBS} -lz"
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24092 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24093 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24094 $as_echo_n "(cached) " >&6
24096 ac_check_lib_save_LIBS=$LIBS
24097 LIBS="-lmysqlclient_r $LIBS"
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h. */
24101 /* Override any GCC internal prototype to avoid an error.
24102 Use char because int might match the return type of a GCC
24103 builtin and then its argument prototype would still apply. */
24107 char mysql_thread_safe ();
24111 return mysql_thread_safe ();
24116 if ac_fn_c_try_link "$LINENO"; then :
24117 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24119 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24121 rm -f core conftest.err conftest.$ac_objext \
24122 conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24126 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24127 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24129 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24133 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24134 if test -z "${batch_insert_db_backends}"; then
24135 batch_insert_db_backends="MySQL"
24137 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24141 LDFLAGS="${saved_LDFLAGS}"
24142 LIBS="${saved_LIBS}"
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24146 $as_echo "no" >&6; }
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24152 $as_echo "no" >&6; }
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24158 $as_echo_n "checking for MySQL embedded support... " >&6; }
24160 # Check whether --with-embedded-mysql was given.
24161 if test "${with_embedded_mysql+set}" = set; then :
24162 withval=$with_embedded_mysql;
24163 if test "$withval" != "no"; then
24164 if test "$withval" = "yes"; then
24165 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24166 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24167 if test -d /usr/local/mysql/lib64/mysql; then
24168 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24170 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24172 MYSQL_BINDIR=/usr/local/mysql/bin
24173 elif test -f /usr/include/mysql/mysql.h; then
24174 MYSQL_INCDIR=/usr/include/mysql
24175 if test -d /usr/lib64/mysql; then
24176 MYSQL_LIBDIR=/usr/lib64/mysql
24178 MYSQL_LIBDIR=/usr/lib/mysql
24180 MYSQL_BINDIR=/usr/bin
24181 elif test -f /usr/include/mysql.h; then
24182 MYSQL_INCDIR=/usr/include
24183 if test -d /usr/lib64; then
24184 MYSQL_LIBDIR=/usr/lib64
24186 MYSQL_LIBDIR=/usr/lib
24188 MYSQL_BINDIR=/usr/bin
24189 elif test -f /usr/local/include/mysql/mysql.h; then
24190 MYSQL_INCDIR=/usr/local/include/mysql
24191 if test -d /usr/local/lib64/mysql; then
24192 MYSQL_LIBDIR=/usr/local/lib64/mysql
24194 MYSQL_LIBDIR=/usr/local/lib/mysql
24196 MYSQL_BINDIR=/usr/local/bin
24197 elif test -f /usr/local/include/mysql.h; then
24198 MYSQL_INCDIR=/usr/local/include
24199 if test -d /usr/local/lib64; then
24200 MYSQL_LIBDIR=/usr/local/lib64
24202 MYSQL_LIBDIR=/usr/local/lib
24204 MYSQL_BINDIR=/usr/local/bin
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24207 $as_echo "no" >&6; }
24208 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24211 if test -f $withval/include/mysql/mysql.h; then
24212 MYSQL_INCDIR=$withval/include/mysql
24213 if test -d $withval/lib64/mysql; then
24214 MYSQL_LIBDIR=$withval/lib64/mysql
24216 MYSQL_LIBDIR=$withval/lib/mysql
24218 MYSQL_BINDIR=$withval/bin
24219 elif test -f $withval/include/mysql.h; then
24220 MYSQL_INCDIR=$withval/include
24221 if test -d $withval/lib64; then
24222 MYSQL_LIBDIR=$withval/lib64
24224 MYSQL_LIBDIR=$withval/lib
24226 MYSQL_BINDIR=$withval/bin
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24229 $as_echo "no" >&6; }
24230 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24233 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24234 if test x$use_libtool != xno; then
24235 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24237 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24239 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24240 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24243 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24246 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24249 $as_echo "yes" >&6; }
24251 if test -z "${db_backends}"; then
24252 db_backends="MySQL"
24254 db_backends="${db_backends} MySQL"
24256 if test -z "${DB_BACKENDS}"; then
24257 DB_BACKENDS="mysql"
24259 DB_BACKENDS="${DB_BACKENDS} mysql"
24262 if test "x$support_batch_insert" = "xyes"; then
24263 saved_LDFLAGS="${LDFLAGS}"
24264 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24265 saved_LIBS="${LIBS}"
24266 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24269 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24270 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24271 $as_echo_n "(cached) " >&6
24273 ac_check_lib_save_LIBS=$LIBS
24274 LIBS="-lmysqlclient_r $LIBS"
24275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24276 /* end confdefs.h. */
24278 /* Override any GCC internal prototype to avoid an error.
24279 Use char because int might match the return type of a GCC
24280 builtin and then its argument prototype would still apply. */
24284 char mysql_thread_safe ();
24288 return mysql_thread_safe ();
24293 if ac_fn_c_try_link "$LINENO"; then :
24294 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24296 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24298 rm -f core conftest.err conftest.$ac_objext \
24299 conftest$ac_exeext conftest.$ac_ext
24300 LIBS=$ac_check_lib_save_LIBS
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24303 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24304 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24306 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24310 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24311 if test -z "${batch_insert_db_backends}"; then
24312 batch_insert_db_backends="MySQL"
24314 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24318 LDFLAGS="${saved_LDFLAGS}"
24319 LIBS="${saved_LIBS}"
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323 $as_echo "no" >&6; }
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24329 $as_echo "no" >&6; }
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24342 $as_echo_n "checking for SQLite3 support... " >&6; }
24344 # Check whether --with-sqlite3 was given.
24345 if test "${with_sqlite3+set}" = set; then :
24346 withval=$with_sqlite3;
24347 if test "$withval" != "no"; then
24348 if test "$withval" = "yes"; then
24349 if test -f /usr/local/include/sqlite3.h; then
24350 SQLITE_INCDIR=/usr/local/include
24351 if test -d /usr/local/lib64; then
24352 SQLITE_LIBDIR=/usr/local/lib64
24354 SQLITE_LIBDIR=/usr/local/lib
24356 SQLITE_BINDIR=/usr/local/bin
24357 elif test -f /usr/include/sqlite3.h; then
24358 SQLITE_INCDIR=/usr/include
24359 if test -d /usr/lib64; then
24360 SQLITE_LIBDIR=/usr/lib64
24362 SQLITE_LIBDIR=/usr/lib
24364 SQLITE_BINDIR=/usr/bin
24365 elif test -f $prefix/include/sqlite3.h; then
24366 SQLITE_INCDIR=$prefix/include
24367 if test -d $prefix/lib64; then
24368 SQLITE_LIBDIR=$prefix/lib64
24370 SQLITE_LIBDIR=$prefix/lib
24372 SQLITE_BINDIR=$prefix/bin
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 $as_echo "no" >&6; }
24376 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24379 if test -f $withval/sqlite3.h; then
24380 SQLITE_INCDIR=$withval
24381 SQLITE_LIBDIR=$withval
24382 SQLITE_BINDIR=$withval
24383 elif test -f $withval/include/sqlite3.h; then
24384 SQLITE_INCDIR=$withval/include
24385 if test -d $withval/lib64; then
24386 SQLITE_LIBDIR=$withval/lib64
24388 SQLITE_LIBDIR=$withval/lib
24390 SQLITE_BINDIR=$withval/bin
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24393 $as_echo "no" >&6; }
24394 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24397 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24398 if test x$use_libtool != xno; then
24399 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24401 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24403 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24404 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24407 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24410 $as_echo "yes" >&6; }
24412 if test -z "${db_backends}"; then
24413 db_backends="SQLite3"
24415 db_backends="${db_backends} SQLite3"
24417 if test -z "${DB_BACKENDS}"; then
24418 DB_BACKENDS="sqlite3"
24420 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24423 if test "x$support_batch_insert" = "xyes"; then
24424 saved_LDFLAGS="${LDFLAGS}"
24425 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24428 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24429 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24430 $as_echo_n "(cached) " >&6
24432 ac_check_lib_save_LIBS=$LIBS
24433 LIBS="-lsqlite3 $LIBS"
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h. */
24437 /* Override any GCC internal prototype to avoid an error.
24438 Use char because int might match the return type of a GCC
24439 builtin and then its argument prototype would still apply. */
24443 char sqlite3_threadsafe ();
24447 return sqlite3_threadsafe ();
24452 if ac_fn_c_try_link "$LINENO"; then :
24453 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24455 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24457 rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24459 LIBS=$ac_check_lib_save_LIBS
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24462 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24463 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24465 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24469 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24470 if test -z "${batch_insert_db_backends}"; then
24471 batch_insert_db_backends="SQLite3"
24473 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24477 LDFLAGS="${saved_LDFLAGS}"
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24481 $as_echo "no" >&6; }
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24487 $as_echo "no" >&6; }
24497 #BA_CHECK_INGRES_DB
24501 #BA_CHECK_DBI_DRIVER
24503 if test -z "${batch_insert_db_backends}"; then
24504 batch_insert_db_backends="None"
24507 if test "x${db_backends}" = "x" ; then
24510 echo "You have not specified either --enable-client-only or one of the"
24511 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24512 echo "This is not permitted. Please reconfigure."
24514 echo "Aborting the configuration ..."
24520 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24522 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24523 if test x$use_libtool = xno; then
24524 SHARED_CATALOG_TARGETS=""
24526 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24530 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24532 if test x$use_libtool = xno; then
24535 echo "You have specified two or more of the"
24536 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24537 echo "This is not permitted when not using libtool Please reconfigure."
24539 echo "Aborting the configuration ..."
24545 SHARED_CATALOG_TARGETS=""
24546 for db_type in ${DB_BACKENDS}
24548 if test -z "${SHARED_CATALOG_TARGETS}"; then
24549 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24551 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24557 if test x$use_libtool = xyes; then
24567 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24570 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24571 if test -z "$CCOPTS"; then
24572 CCOPTS='-g -O2 -Wall'
24579 largefile_support="no"
24581 # Check whether --enable-largefile was given.
24582 if test "${enable_largefile+set}" = set; then :
24583 enableval=$enable_largefile;
24586 if test "$enable_largefile" != no; then
24587 if test -n "$ac_tool_prefix"; then
24588 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24589 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24591 $as_echo_n "checking for $ac_word... " >&6; }
24592 if ${ac_cv_prog_GETCONF+:} false; then :
24593 $as_echo_n "(cached) " >&6
24595 if test -n "$GETCONF"; then
24596 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24599 for as_dir in $PATH
24602 test -z "$as_dir" && as_dir=.
24603 for ac_exec_ext in '' $ac_executable_extensions; do
24604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24605 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24615 GETCONF=$ac_cv_prog_GETCONF
24616 if test -n "$GETCONF"; then
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24618 $as_echo "$GETCONF" >&6; }
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24621 $as_echo "no" >&6; }
24626 if test -z "$ac_cv_prog_GETCONF"; then
24627 ac_ct_GETCONF=$GETCONF
24628 # Extract the first word of "getconf", so it can be a program name with args.
24629 set dummy getconf; ac_word=$2
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24631 $as_echo_n "checking for $ac_word... " >&6; }
24632 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24633 $as_echo_n "(cached) " >&6
24635 if test -n "$ac_ct_GETCONF"; then
24636 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24639 for as_dir in $PATH
24642 test -z "$as_dir" && as_dir=.
24643 for ac_exec_ext in '' $ac_executable_extensions; do
24644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24645 ac_cv_prog_ac_ct_GETCONF="getconf"
24646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24655 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24656 if test -n "$ac_ct_GETCONF"; then
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24658 $as_echo "$ac_ct_GETCONF" >&6; }
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24661 $as_echo "no" >&6; }
24664 if test "x$ac_ct_GETCONF" = x; then
24667 case $cross_compiling:$ac_tool_warned in
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24671 ac_tool_warned=yes ;;
24673 GETCONF=$ac_ct_GETCONF
24676 GETCONF="$ac_cv_prog_GETCONF"
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24680 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24681 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24682 $as_echo_n "(cached) " >&6
24684 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24685 ac_cv_sys_largefile_CFLAGS=no
24687 # IRIX 6.2 and later require cc -n32.
24688 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24689 if test "$GCC" != yes; then
24690 ac_cv_sys_largefile_CFLAGS=-n32
24693 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695 /* end confdefs.h. */
24705 if ac_fn_c_try_link "$LINENO"; then :
24708 ac_cv_sys_largefile_CFLAGS=no
24710 rm -f core conftest.err conftest.$ac_objext \
24711 conftest$ac_exeext conftest.$ac_ext
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24717 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24719 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24720 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24721 $as_echo_n "(cached) " >&6
24723 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24724 ac_cv_sys_largefile_LDFLAGS=no
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24729 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24731 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24732 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24733 $as_echo_n "(cached) " >&6
24735 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24736 ac_cv_sys_largefile_LIBS=no
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24741 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24743 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24746 -D_FILE_OFFSET_BITS=*) ;;
24747 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24748 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24753 case "$CPPFLAGS" in
24754 '') CPPFLAGS="$ac_flag" ;;
24755 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24763 '') CFLAGS="$ac_flag" ;;
24764 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24769 case "$ac_cv_sys_largefile_LDFLAGS" in
24773 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24774 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24777 case "$ac_cv_sys_largefile_LIBS" in
24781 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24782 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24786 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24787 if ${ac_cv_sys_file_offset_bits+:} false; then :
24788 $as_echo_n "(cached) " >&6
24790 ac_cv_sys_file_offset_bits=no
24791 ac_cv_sys_file_offset_bits=64
24792 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24794 -D_FILE_OFFSET_BITS)
24795 ac_cv_sys_file_offset_bits=1 ;;
24796 -D_FILE_OFFSET_BITS=*)
24797 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24803 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24804 if test "$ac_cv_sys_file_offset_bits" != no; then
24806 cat >>confdefs.h <<_ACEOF
24807 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24812 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24813 if ${ac_cv_sys_largefile_source+:} false; then :
24814 $as_echo_n "(cached) " >&6
24816 ac_cv_sys_largefile_source=no
24817 ac_cv_sys_largefile_source=1
24818 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24820 -D_LARGEFILE_SOURCE)
24821 ac_cv_sys_largefile_source=1 ;;
24822 -D_LARGEFILE_SOURCE=*)
24823 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24829 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24830 if test "$ac_cv_sys_largefile_source" != no; then
24832 cat >>confdefs.h <<_ACEOF
24833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24838 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24839 if ${ac_cv_sys_large_files+:} false; then :
24840 $as_echo_n "(cached) " >&6
24842 ac_cv_sys_large_files=no
24843 ac_cv_sys_large_files=1
24844 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24847 ac_cv_sys_large_files=1 ;;
24849 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24855 $as_echo "$ac_cv_sys_large_files" >&6; }
24856 if test "$ac_cv_sys_large_files" != no; then
24858 cat >>confdefs.h <<_ACEOF
24859 #define _LARGE_FILES $ac_cv_sys_large_files
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24867 $as_echo_n "checking for X... " >&6; }
24870 # Check whether --with-x was given.
24871 if test "${with_x+set}" = set; then :
24875 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24876 if test "x$with_x" = xno; then
24877 # The user explicitly disabled X.
24880 case $x_includes,$x_libraries in #(
24881 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24882 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24883 $as_echo_n "(cached) " >&6
24885 # One or both of the vars are not set, and there is no cached value.
24886 ac_x_includes=no ac_x_libraries=no
24887 rm -f -r conftest.dir
24888 if mkdir conftest.dir; then
24890 cat >Imakefile <<'_ACEOF'
24892 @echo incroot='${INCROOT}'
24894 @echo usrlibdir='${USRLIBDIR}'
24896 @echo libdir='${LIBDIR}'
24898 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24899 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24900 for ac_var in incroot usrlibdir libdir; do
24901 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24903 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24904 for ac_extension in a so sl dylib la dll; do
24905 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24906 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24907 ac_im_usrlibdir=$ac_im_libdir; break
24910 # Screen out bogus values from the imake configuration. They are
24911 # bogus both because they are the default anyway, and because
24912 # using them would break gcc on systems where it needs fixed includes.
24913 case $ac_im_incroot in
24914 /usr/include) ac_x_includes= ;;
24915 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24917 case $ac_im_usrlibdir in
24918 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24919 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24923 rm -f -r conftest.dir
24926 # Standard set of common directories for X headers.
24927 # Check X11 before X11Rn because it is often a symlink to the current release.
24941 /usr/local/X11/include
24942 /usr/local/X11R7/include
24943 /usr/local/X11R6/include
24944 /usr/local/X11R5/include
24945 /usr/local/X11R4/include
24947 /usr/local/include/X11
24948 /usr/local/include/X11R7
24949 /usr/local/include/X11R6
24950 /usr/local/include/X11R5
24951 /usr/local/include/X11R4
24955 /usr/XFree86/include/X11
24959 /usr/unsupported/include
24960 /usr/athena/include
24961 /usr/local/x11r5/include
24962 /usr/lpp/Xamples/include
24964 /usr/openwin/include
24965 /usr/openwin/share/include'
24967 if test "$ac_x_includes" = no; then
24968 # Guess where to find include files, by looking for Xlib.h.
24969 # First, try using that file with no special directory specified.
24970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h. */
24972 #include <X11/Xlib.h>
24974 if ac_fn_c_try_cpp "$LINENO"; then :
24975 # We can compile using X headers with no special include directory.
24978 for ac_dir in $ac_x_header_dirs; do
24979 if test -r "$ac_dir/X11/Xlib.h"; then
24980 ac_x_includes=$ac_dir
24985 rm -f conftest.err conftest.i conftest.$ac_ext
24986 fi # $ac_x_includes = no
24988 if test "$ac_x_libraries" = no; then
24989 # Check for the libraries.
24990 # See if we find them without any special options.
24991 # Don't add to $LIBS permanently.
24994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h. */
24996 #include <X11/Xlib.h>
25005 if ac_fn_c_try_link "$LINENO"; then :
25007 # We can link X programs with no special library path.
25011 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25013 # Don't even attempt the hair of trying to link an X program!
25014 for ac_extension in a so sl dylib la dll; do
25015 if test -r "$ac_dir/libX11.$ac_extension"; then
25016 ac_x_libraries=$ac_dir
25022 rm -f core conftest.err conftest.$ac_objext \
25023 conftest$ac_exeext conftest.$ac_ext
25024 fi # $ac_x_libraries = no
25026 case $ac_x_includes,$ac_x_libraries in #(
25027 no,* | *,no | *\'*)
25028 # Didn't find X, or a directory has "'" in its name.
25029 ac_cv_have_x="have_x=no";; #(
25031 # Record where we found X for the cache.
25032 ac_cv_have_x="have_x=yes\
25033 ac_x_includes='$ac_x_includes'\
25034 ac_x_libraries='$ac_x_libraries'"
25040 eval "$ac_cv_have_x"
25043 if test "$have_x" != yes; then
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25045 $as_echo "$have_x" >&6; }
25048 # If each of the values was on the command line, it overrides each guess.
25049 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25050 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25051 # Update the cache value to reflect the command line values.
25052 ac_cv_have_x="have_x=yes\
25053 ac_x_includes='$x_includes'\
25054 ac_x_libraries='$x_libraries'"
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25056 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25059 if test "$no_x" = yes; then
25060 # Not all programs may use this symbol, but it does not hurt to define it.
25062 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25064 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25066 if test -n "$x_includes"; then
25067 X_CFLAGS="$X_CFLAGS -I$x_includes"
25070 # It would also be nice to do this for all -L options, not just this one.
25071 if test -n "$x_libraries"; then
25072 X_LIBS="$X_LIBS -L$x_libraries"
25073 # For Solaris; some versions of Sun CC require a space after -R and
25074 # others require no space. Words are not sufficient . . . .
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25076 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25077 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25078 ac_xsave_c_werror_flag=$ac_c_werror_flag
25079 ac_c_werror_flag=yes
25080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25081 /* end confdefs.h. */
25091 if ac_fn_c_try_link "$LINENO"; then :
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25093 $as_echo "no" >&6; }
25094 X_LIBS="$X_LIBS -R$x_libraries"
25096 LIBS="$ac_xsave_LIBS -R $x_libraries"
25097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h. */
25108 if ac_fn_c_try_link "$LINENO"; then :
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25110 $as_echo "yes" >&6; }
25111 X_LIBS="$X_LIBS -R $x_libraries"
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25114 $as_echo "neither works" >&6; }
25116 rm -f core conftest.err conftest.$ac_objext \
25117 conftest$ac_exeext conftest.$ac_ext
25119 rm -f core conftest.err conftest.$ac_objext \
25120 conftest$ac_exeext conftest.$ac_ext
25121 ac_c_werror_flag=$ac_xsave_c_werror_flag
25122 LIBS=$ac_xsave_LIBS
25125 # Check for system-dependent libraries X programs must link with.
25126 # Do this before checking for the system-independent R6 libraries
25127 # (-lICE), since we may need -lsocket or whatever for X linking.
25129 if test "$ISC" = yes; then
25130 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25132 # Martyn Johnson says this is needed for Ultrix, if the X
25133 # libraries were built with DECnet support. And Karl Berry says
25134 # the Alpha needs dnet_stub (dnet does not exist).
25135 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25137 /* end confdefs.h. */
25139 /* Override any GCC internal prototype to avoid an error.
25140 Use char because int might match the return type of a GCC
25141 builtin and then its argument prototype would still apply. */
25145 char XOpenDisplay ();
25149 return XOpenDisplay ();
25154 if ac_fn_c_try_link "$LINENO"; then :
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25158 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25159 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25160 $as_echo_n "(cached) " >&6
25162 ac_check_lib_save_LIBS=$LIBS
25163 LIBS="-ldnet $LIBS"
25164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25165 /* end confdefs.h. */
25167 /* Override any GCC internal prototype to avoid an error.
25168 Use char because int might match the return type of a GCC
25169 builtin and then its argument prototype would still apply. */
25177 return dnet_ntoa ();
25182 if ac_fn_c_try_link "$LINENO"; then :
25183 ac_cv_lib_dnet_dnet_ntoa=yes
25185 ac_cv_lib_dnet_dnet_ntoa=no
25187 rm -f core conftest.err conftest.$ac_objext \
25188 conftest$ac_exeext conftest.$ac_ext
25189 LIBS=$ac_check_lib_save_LIBS
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25192 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25193 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25194 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25197 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25199 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25200 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25201 $as_echo_n "(cached) " >&6
25203 ac_check_lib_save_LIBS=$LIBS
25204 LIBS="-ldnet_stub $LIBS"
25205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h. */
25208 /* Override any GCC internal prototype to avoid an error.
25209 Use char because int might match the return type of a GCC
25210 builtin and then its argument prototype would still apply. */
25218 return dnet_ntoa ();
25223 if ac_fn_c_try_link "$LINENO"; then :
25224 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25226 ac_cv_lib_dnet_stub_dnet_ntoa=no
25228 rm -f core conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext conftest.$ac_ext
25230 LIBS=$ac_check_lib_save_LIBS
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25233 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25234 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25235 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25240 rm -f core conftest.err conftest.$ac_objext \
25241 conftest$ac_exeext conftest.$ac_ext
25242 LIBS="$ac_xsave_LIBS"
25244 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25245 # to get the SysV transport functions.
25246 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25248 # The nsl library prevents programs from opening the X display
25249 # on Irix 5.2, according to T.E. Dickey.
25250 # The functions gethostbyname, getservbyname, and inet_addr are
25251 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25252 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25253 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25257 if test $ac_cv_func_gethostbyname = no; then
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25259 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25260 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25261 $as_echo_n "(cached) " >&6
25263 ac_check_lib_save_LIBS=$LIBS
25265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266 /* end confdefs.h. */
25268 /* Override any GCC internal prototype to avoid an error.
25269 Use char because int might match the return type of a GCC
25270 builtin and then its argument prototype would still apply. */
25274 char gethostbyname ();
25278 return gethostbyname ();
25283 if ac_fn_c_try_link "$LINENO"; then :
25284 ac_cv_lib_nsl_gethostbyname=yes
25286 ac_cv_lib_nsl_gethostbyname=no
25288 rm -f core conftest.err conftest.$ac_objext \
25289 conftest$ac_exeext conftest.$ac_ext
25290 LIBS=$ac_check_lib_save_LIBS
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25293 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25294 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25298 if test $ac_cv_lib_nsl_gethostbyname = no; then
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25300 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25301 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25302 $as_echo_n "(cached) " >&6
25304 ac_check_lib_save_LIBS=$LIBS
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25309 /* Override any GCC internal prototype to avoid an error.
25310 Use char because int might match the return type of a GCC
25311 builtin and then its argument prototype would still apply. */
25315 char gethostbyname ();
25319 return gethostbyname ();
25324 if ac_fn_c_try_link "$LINENO"; then :
25325 ac_cv_lib_bsd_gethostbyname=yes
25327 ac_cv_lib_bsd_gethostbyname=no
25329 rm -f core conftest.err conftest.$ac_objext \
25330 conftest$ac_exeext conftest.$ac_ext
25331 LIBS=$ac_check_lib_save_LIBS
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25334 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25335 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25342 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25343 # socket/setsockopt and other routines are undefined under SCO ODT
25344 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25345 # on later versions), says Simon Leinen: it contains gethostby*
25346 # variants that don't use the name server (or something). -lsocket
25347 # must be given before -lnsl if both are needed. We assume that
25348 # if connect needs -lnsl, so does gethostbyname.
25349 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25350 if test "x$ac_cv_func_connect" = xyes; then :
25354 if test $ac_cv_func_connect = no; then
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25356 $as_echo_n "checking for connect in -lsocket... " >&6; }
25357 if ${ac_cv_lib_socket_connect+:} false; then :
25358 $as_echo_n "(cached) " >&6
25360 ac_check_lib_save_LIBS=$LIBS
25361 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25363 /* end confdefs.h. */
25365 /* Override any GCC internal prototype to avoid an error.
25366 Use char because int might match the return type of a GCC
25367 builtin and then its argument prototype would still apply. */
25380 if ac_fn_c_try_link "$LINENO"; then :
25381 ac_cv_lib_socket_connect=yes
25383 ac_cv_lib_socket_connect=no
25385 rm -f core conftest.err conftest.$ac_objext \
25386 conftest$ac_exeext conftest.$ac_ext
25387 LIBS=$ac_check_lib_save_LIBS
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25390 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25391 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25392 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25397 # Guillermo Gomez says -lposix is necessary on A/UX.
25398 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25399 if test "x$ac_cv_func_remove" = xyes; then :
25403 if test $ac_cv_func_remove = no; then
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25405 $as_echo_n "checking for remove in -lposix... " >&6; }
25406 if ${ac_cv_lib_posix_remove+:} false; then :
25407 $as_echo_n "(cached) " >&6
25409 ac_check_lib_save_LIBS=$LIBS
25410 LIBS="-lposix $LIBS"
25411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412 /* end confdefs.h. */
25414 /* Override any GCC internal prototype to avoid an error.
25415 Use char because int might match the return type of a GCC
25416 builtin and then its argument prototype would still apply. */
25429 if ac_fn_c_try_link "$LINENO"; then :
25430 ac_cv_lib_posix_remove=yes
25432 ac_cv_lib_posix_remove=no
25434 rm -f core conftest.err conftest.$ac_objext \
25435 conftest$ac_exeext conftest.$ac_ext
25436 LIBS=$ac_check_lib_save_LIBS
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25439 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25440 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25441 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25446 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25447 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25448 if test "x$ac_cv_func_shmat" = xyes; then :
25452 if test $ac_cv_func_shmat = no; then
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25454 $as_echo_n "checking for shmat in -lipc... " >&6; }
25455 if ${ac_cv_lib_ipc_shmat+:} false; then :
25456 $as_echo_n "(cached) " >&6
25458 ac_check_lib_save_LIBS=$LIBS
25460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25461 /* end confdefs.h. */
25463 /* Override any GCC internal prototype to avoid an error.
25464 Use char because int might match the return type of a GCC
25465 builtin and then its argument prototype would still apply. */
25478 if ac_fn_c_try_link "$LINENO"; then :
25479 ac_cv_lib_ipc_shmat=yes
25481 ac_cv_lib_ipc_shmat=no
25483 rm -f core conftest.err conftest.$ac_objext \
25484 conftest$ac_exeext conftest.$ac_ext
25485 LIBS=$ac_check_lib_save_LIBS
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25488 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25489 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25490 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25496 # Check for libraries that X11R6 Xt/Xaw programs need.
25497 ac_save_LDFLAGS=$LDFLAGS
25498 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25499 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25500 # check for ICE first), but we must link in the order -lSM -lICE or
25501 # we get undefined symbols. So assume we have SM if we have ICE.
25502 # These have to be linked with before -lX11, unlike the other
25503 # libraries we check for below, so use a different variable.
25504 # John Interrante, Karl Berry
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25506 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25507 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25508 $as_echo_n "(cached) " >&6
25510 ac_check_lib_save_LIBS=$LIBS
25511 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25513 /* end confdefs.h. */
25515 /* Override any GCC internal prototype to avoid an error.
25516 Use char because int might match the return type of a GCC
25517 builtin and then its argument prototype would still apply. */
25521 char IceConnectionNumber ();
25525 return IceConnectionNumber ();
25530 if ac_fn_c_try_link "$LINENO"; then :
25531 ac_cv_lib_ICE_IceConnectionNumber=yes
25533 ac_cv_lib_ICE_IceConnectionNumber=no
25535 rm -f core conftest.err conftest.$ac_objext \
25536 conftest$ac_exeext conftest.$ac_ext
25537 LIBS=$ac_check_lib_save_LIBS
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25540 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25541 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25542 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25545 LDFLAGS=$ac_save_LDFLAGS
25582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25585 cat >>confdefs.h <<_ACEOF
25586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25594 $as_echo_n "checking for ANSI C header files... " >&6; }
25595 if ${ac_cv_header_stdc+:} false; then :
25596 $as_echo_n "(cached) " >&6
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h. */
25600 #include <stdlib.h>
25601 #include <stdarg.h>
25602 #include <string.h>
25613 if ac_fn_c_try_compile "$LINENO"; then :
25614 ac_cv_header_stdc=yes
25616 ac_cv_header_stdc=no
25618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620 if test $ac_cv_header_stdc = yes; then
25621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h. */
25624 #include <string.h>
25627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25628 $EGREP "memchr" >/dev/null 2>&1; then :
25631 ac_cv_header_stdc=no
25637 if test $ac_cv_header_stdc = yes; then
25638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25640 /* end confdefs.h. */
25641 #include <stdlib.h>
25644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25645 $EGREP "free" >/dev/null 2>&1; then :
25648 ac_cv_header_stdc=no
25654 if test $ac_cv_header_stdc = yes; then
25655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25656 if test "$cross_compiling" = yes; then :
25659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660 /* end confdefs.h. */
25662 #include <stdlib.h>
25663 #if ((' ' & 0x0FF) == 0x020)
25664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25667 # define ISLOWER(c) \
25668 (('a' <= (c) && (c) <= 'i') \
25669 || ('j' <= (c) && (c) <= 'r') \
25670 || ('s' <= (c) && (c) <= 'z'))
25671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25679 for (i = 0; i < 256; i++)
25680 if (XOR (islower (i), ISLOWER (i))
25681 || toupper (i) != TOUPPER (i))
25686 if ac_fn_c_try_run "$LINENO"; then :
25689 ac_cv_header_stdc=no
25691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25692 conftest.$ac_objext conftest.beam conftest.$ac_ext
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25698 $as_echo "$ac_cv_header_stdc" >&6; }
25699 if test $ac_cv_header_stdc = yes; then
25701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25706 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25707 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25708 $as_echo_n "(cached) " >&6
25710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25711 /* end confdefs.h. */
25712 #include <sys/types.h>
25716 return makedev(0, 0);
25721 if ac_fn_c_try_link "$LINENO"; then :
25722 ac_cv_header_sys_types_h_makedev=yes
25724 ac_cv_header_sys_types_h_makedev=no
25726 rm -f core conftest.err conftest.$ac_objext \
25727 conftest$ac_exeext conftest.$ac_ext
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25731 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25733 if test $ac_cv_header_sys_types_h_makedev = no; then
25734 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25735 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25737 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25743 if test $ac_cv_header_sys_mkdev_h = no; then
25744 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25745 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25747 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25755 ac_header_dirent=no
25756 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25757 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25759 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25760 if eval \${$as_ac_Header+:} false; then :
25761 $as_echo_n "(cached) " >&6
25763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25764 /* end confdefs.h. */
25765 #include <sys/types.h>
25777 if ac_fn_c_try_compile "$LINENO"; then :
25778 eval "$as_ac_Header=yes"
25780 eval "$as_ac_Header=no"
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25784 eval ac_res=\$$as_ac_Header
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25786 $as_echo "$ac_res" >&6; }
25787 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25788 cat >>confdefs.h <<_ACEOF
25789 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25792 ac_header_dirent=$ac_hdr; break
25796 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25797 if test $ac_header_dirent = dirent.h; then
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25799 $as_echo_n "checking for library containing opendir... " >&6; }
25800 if ${ac_cv_search_opendir+:} false; then :
25801 $as_echo_n "(cached) " >&6
25803 ac_func_search_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 for ac_lib in '' dir; do
25823 if test -z "$ac_lib"; then
25824 ac_res="none required"
25827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25829 if ac_fn_c_try_link "$LINENO"; then :
25830 ac_cv_search_opendir=$ac_res
25832 rm -f core conftest.err conftest.$ac_objext \
25834 if ${ac_cv_search_opendir+:} false; then :
25838 if ${ac_cv_search_opendir+:} false; then :
25841 ac_cv_search_opendir=no
25843 rm conftest.$ac_ext
25844 LIBS=$ac_func_search_save_LIBS
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25847 $as_echo "$ac_cv_search_opendir" >&6; }
25848 ac_res=$ac_cv_search_opendir
25849 if test "$ac_res" != no; then :
25850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25856 $as_echo_n "checking for library containing opendir... " >&6; }
25857 if ${ac_cv_search_opendir+:} false; then :
25858 $as_echo_n "(cached) " >&6
25860 ac_func_search_save_LIBS=$LIBS
25861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25862 /* end confdefs.h. */
25864 /* Override any GCC internal prototype to avoid an error.
25865 Use char because int might match the return type of a GCC
25866 builtin and then its argument prototype would still apply. */
25879 for ac_lib in '' x; do
25880 if test -z "$ac_lib"; then
25881 ac_res="none required"
25884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25886 if ac_fn_c_try_link "$LINENO"; then :
25887 ac_cv_search_opendir=$ac_res
25889 rm -f core conftest.err conftest.$ac_objext \
25891 if ${ac_cv_search_opendir+:} false; then :
25895 if ${ac_cv_search_opendir+:} false; then :
25898 ac_cv_search_opendir=no
25900 rm conftest.$ac_ext
25901 LIBS=$ac_func_search_save_LIBS
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25904 $as_echo "$ac_cv_search_opendir" >&6; }
25905 ac_res=$ac_cv_search_opendir
25906 if test "$ac_res" != no; then :
25907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25914 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25915 if ${ac_cv_header_stat_broken+:} false; then :
25916 $as_echo_n "(cached) " >&6
25918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25919 /* end confdefs.h. */
25920 #include <sys/types.h>
25921 #include <sys/stat.h>
25923 #if defined S_ISBLK && defined S_IFDIR
25924 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25927 #if defined S_ISBLK && defined S_IFCHR
25928 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25931 #if defined S_ISLNK && defined S_IFREG
25932 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25935 #if defined S_ISSOCK && defined S_IFREG
25936 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25940 if ac_fn_c_try_compile "$LINENO"; then :
25941 ac_cv_header_stat_broken=no
25943 ac_cv_header_stat_broken=yes
25945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25948 $as_echo "$ac_cv_header_stat_broken" >&6; }
25949 if test $ac_cv_header_stat_broken = yes; then
25951 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25956 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25957 if ${ac_cv_header_sys_wait_h+:} false; then :
25958 $as_echo_n "(cached) " >&6
25960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25961 /* end confdefs.h. */
25962 #include <sys/types.h>
25963 #include <sys/wait.h>
25964 #ifndef WEXITSTATUS
25965 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25968 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25976 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25981 if ac_fn_c_try_compile "$LINENO"; then :
25982 ac_cv_header_sys_wait_h=yes
25984 ac_cv_header_sys_wait_h=no
25986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25989 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25990 if test $ac_cv_header_sys_wait_h = yes; then
25992 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25997 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25998 if ${ac_cv_header_time+:} false; then :
25999 $as_echo_n "(cached) " >&6
26001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26002 /* end confdefs.h. */
26003 #include <sys/types.h>
26004 #include <sys/time.h>
26010 if ((struct tm *) 0)
26016 if ac_fn_c_try_compile "$LINENO"; then :
26017 ac_cv_header_time=yes
26019 ac_cv_header_time=no
26021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26024 $as_echo "$ac_cv_header_time" >&6; }
26025 if test $ac_cv_header_time = yes; then
26027 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26031 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26032 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26034 cat >>confdefs.h <<_ACEOF
26035 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26039 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26044 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26045 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26047 cat >>confdefs.h <<_ACEOF
26048 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26052 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26055 case " $LIBOBJS " in
26056 *" fileblocks.$ac_objext "* ) ;;
26057 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26065 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26066 if ${ac_cv_struct_tm+:} false; then :
26067 $as_echo_n "(cached) " >&6
26069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070 /* end confdefs.h. */
26071 #include <sys/types.h>
26078 int *p = &tm.tm_sec;
26084 if ac_fn_c_try_compile "$LINENO"; then :
26085 ac_cv_struct_tm=time.h
26087 ac_cv_struct_tm=sys/time.h
26089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26092 $as_echo "$ac_cv_struct_tm" >&6; }
26093 if test $ac_cv_struct_tm = sys/time.h; then
26095 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26099 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26100 #include <$ac_cv_struct_tm>
26103 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26105 cat >>confdefs.h <<_ACEOF
26106 #define HAVE_STRUCT_TM_TM_ZONE 1
26112 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26114 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26117 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26119 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26125 cat >>confdefs.h <<_ACEOF
26126 #define HAVE_DECL_TZNAME $ac_have_decl
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26130 $as_echo_n "checking for tzname... " >&6; }
26131 if ${ac_cv_var_tzname+:} false; then :
26132 $as_echo_n "(cached) " >&6
26134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26135 /* end confdefs.h. */
26137 #if !HAVE_DECL_TZNAME
26138 extern char *tzname[];
26144 return tzname[0][0];
26149 if ac_fn_c_try_link "$LINENO"; then :
26150 ac_cv_var_tzname=yes
26152 ac_cv_var_tzname=no
26154 rm -f core conftest.err conftest.$ac_objext \
26155 conftest$ac_exeext conftest.$ac_ext
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26158 $as_echo "$ac_cv_var_tzname" >&6; }
26159 if test $ac_cv_var_tzname = yes; then
26161 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26168 $as_echo_n "checking for utime.h... " >&6; }
26169 if ${ba_cv_header_utime_h+:} false; then :
26170 $as_echo_n "(cached) " >&6
26173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26174 /* end confdefs.h. */
26176 #include <sys/types.h>
26189 if ac_fn_c_try_compile "$LINENO"; then :
26191 ba_cv_header_utime_h=yes
26195 ba_cv_header_utime_h=no
26199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26204 $as_echo "$ba_cv_header_utime_h" >&6; }
26205 test $ba_cv_header_utime_h = yes &&
26206 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26210 $as_echo_n "checking for socklen_t... " >&6; }
26211 if ${ba_cv_header_socklen_t+:} false; then :
26212 $as_echo_n "(cached) " >&6
26215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26216 /* end confdefs.h. */
26218 #include <sys/types.h>
26219 #include <sys/socket.h>
26231 if ac_fn_c_try_compile "$LINENO"; then :
26233 ba_cv_header_socklen_t=yes
26237 ba_cv_header_socklen_t=no
26241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26246 $as_echo "$ba_cv_header_socklen_t" >&6; }
26247 test $ba_cv_header_socklen_t = yes &&
26248 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26252 ac_cpp='$CXXCPP $CPPFLAGS'
26253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26258 $as_echo_n "checking for ioctl_req_t... " >&6; }
26259 if ${ba_cv_header_ioctl_req_t+:} false; then :
26260 $as_echo_n "(cached) " >&6
26263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h. */
26266 #include <unistd.h>
26267 #include <sys/types.h>
26268 #include <sys/ioctl.h>
26274 int (*d_ioctl)(int fd, unsigned long int request, ...);
26281 if ac_fn_cxx_try_compile "$LINENO"; then :
26283 ba_cv_header_ioctl_req_t=yes
26287 ba_cv_header_ioctl_req_t=no
26291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26296 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26297 test $ba_cv_header_ioctl_req_t = yes &&
26298 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26302 ac_cpp='$CPP $CPPFLAGS'
26303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26309 ac_cpp='$CXXCPP $CPPFLAGS'
26310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26315 $as_echo_n "checking for typeof... " >&6; }
26316 if ${ba_cv_have_typeof+:} false; then :
26317 $as_echo_n "(cached) " >&6
26320 if test "$cross_compiling" = yes; then :
26322 ba_cv_have_typeof=no
26326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327 /* end confdefs.h. */
26329 main(){char *a = 0; a = (typeof a)a;}
26332 if ac_fn_cxx_try_run "$LINENO"; then :
26334 ba_cv_have_typeof=yes
26338 ba_cv_have_typeof=no
26341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26342 conftest.$ac_objext conftest.beam conftest.$ac_ext
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26349 $as_echo "$ba_cv_have_typeof" >&6; }
26350 test $ba_cv_have_typeof = yes &&
26351 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26354 ac_cpp='$CPP $CPPFLAGS'
26355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26361 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26362 if ${ac_cv_c_const+:} false; then :
26363 $as_echo_n "(cached) " >&6
26365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26366 /* end confdefs.h. */
26371 /* FIXME: Include the comments suggested by Paul. */
26372 #ifndef __cplusplus
26373 /* Ultrix mips cc rejects this. */
26374 typedef int charset[2];
26376 /* SunOS 4.1.1 cc rejects this. */
26377 char const *const *pcpcc;
26379 /* NEC SVR4.0.2 mips cc rejects this. */
26380 struct point {int x, y;};
26381 static struct point const zero = {0,0};
26382 /* AIX XL C 1.02.0.0 rejects this.
26383 It does not let you subtract one const X* pointer from another in
26384 an arm of an if-expression whose if-part is not a constant
26386 const char *g = "string";
26387 pcpcc = &g + (g ? g-g : 0);
26388 /* HPUX 7.0 cc rejects these. */
26390 ppc = (char**) pcpcc;
26391 pcpcc = (char const *const *) ppc;
26392 { /* SCO 3.2v4 cc rejects this. */
26394 char const *s = 0 ? (char *) 0 : (char const *) 0;
26399 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26400 int x[] = {25, 17};
26401 const int *foo = &x[0];
26404 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26405 typedef const int *iptr;
26409 { /* AIX XL C 1.02.0.0 rejects this saying
26410 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26411 struct s { int j; const int *ap[3]; };
26412 struct s *b; b->j = 5;
26414 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26415 const int foo = 10;
26416 if (!foo) return 0;
26418 return !cs[0] && !zero.x;
26425 if ac_fn_c_try_compile "$LINENO"; then :
26430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26433 $as_echo "$ac_cv_c_const" >&6; }
26434 if test $ac_cv_c_const = no; then
26436 $as_echo "#define const /**/" >>confdefs.h
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26442 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26443 if ${ac_cv_c_bigendian+:} false; then :
26444 $as_echo_n "(cached) " >&6
26446 ac_cv_c_bigendian=unknown
26447 # See if we're dealing with a universal compiler.
26448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26449 /* end confdefs.h. */
26450 #ifndef __APPLE_CC__
26451 not a universal capable compiler
26456 if ac_fn_c_try_compile "$LINENO"; then :
26458 # Check for potential -arch flags. It is not universal unless
26459 # there are at least two -arch flags with different values.
26462 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26463 if test -n "$ac_prev"; then
26465 i?86 | x86_64 | ppc | ppc64)
26466 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26469 ac_cv_c_bigendian=universal
26475 elif test "x$ac_word" = "x-arch"; then
26480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 if test $ac_cv_c_bigendian = unknown; then
26482 # See if sys/param.h defines the BYTE_ORDER macro.
26483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26484 /* end confdefs.h. */
26485 #include <sys/types.h>
26486 #include <sys/param.h>
26491 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26492 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26494 bogus endian macros
26501 if ac_fn_c_try_compile "$LINENO"; then :
26502 # It does; now see whether it defined to BIG_ENDIAN or not.
26503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26504 /* end confdefs.h. */
26505 #include <sys/types.h>
26506 #include <sys/param.h>
26511 #if BYTE_ORDER != BIG_ENDIAN
26519 if ac_fn_c_try_compile "$LINENO"; then :
26520 ac_cv_c_bigendian=yes
26522 ac_cv_c_bigendian=no
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528 if test $ac_cv_c_bigendian = unknown; then
26529 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26531 /* end confdefs.h. */
26532 #include <limits.h>
26537 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26538 bogus endian macros
26545 if ac_fn_c_try_compile "$LINENO"; then :
26546 # It does; now see whether it defined to _BIG_ENDIAN or not.
26547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26548 /* end confdefs.h. */
26549 #include <limits.h>
26554 #ifndef _BIG_ENDIAN
26562 if ac_fn_c_try_compile "$LINENO"; then :
26563 ac_cv_c_bigendian=yes
26565 ac_cv_c_bigendian=no
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26571 if test $ac_cv_c_bigendian = unknown; then
26572 # Compile a test program.
26573 if test "$cross_compiling" = yes; then :
26574 # Try to guess by grepping values from an object file.
26575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26576 /* end confdefs.h. */
26577 short int ascii_mm[] =
26578 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26579 short int ascii_ii[] =
26580 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26581 int use_ascii (int i) {
26582 return ascii_mm[i] + ascii_ii[i];
26584 short int ebcdic_ii[] =
26585 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26586 short int ebcdic_mm[] =
26587 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26588 int use_ebcdic (int i) {
26589 return ebcdic_mm[i] + ebcdic_ii[i];
26596 return use_ascii (foo) == use_ebcdic (foo);
26601 if ac_fn_c_try_compile "$LINENO"; then :
26602 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26603 ac_cv_c_bigendian=yes
26605 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26606 if test "$ac_cv_c_bigendian" = unknown; then
26607 ac_cv_c_bigendian=no
26609 # finding both strings is unlikely to happen, but who knows?
26610 ac_cv_c_bigendian=unknown
26614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26617 /* end confdefs.h. */
26618 $ac_includes_default
26623 /* Are we little or big endian? From Harbison&Steele. */
26627 char c[sizeof (long int)];
26630 return u.c[sizeof (long int) - 1] == 1;
26636 if ac_fn_c_try_run "$LINENO"; then :
26637 ac_cv_c_bigendian=no
26639 ac_cv_c_bigendian=yes
26641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26642 conftest.$ac_objext conftest.beam conftest.$ac_ext
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26648 $as_echo "$ac_cv_c_bigendian" >&6; }
26649 case $ac_cv_c_bigendian in #(
26652 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26656 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26660 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26664 as_fn_error $? "unknown endianness
26665 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26670 $as_echo_n "checking how to get filesystem type... " >&6; }
26672 # The order of these tests is important.
26673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26674 /* end confdefs.h. */
26676 #include <sys/statvfs.h>
26677 #include <sys/fstyp.h>
26680 if ac_fn_c_try_cpp "$LINENO"; then :
26681 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26685 rm -f conftest.err conftest.i conftest.$ac_ext
26686 if test $fstype = no; then
26687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26688 /* end confdefs.h. */
26690 #include <sys/statfs.h>
26691 #include <sys/fstyp.h>
26694 if ac_fn_c_try_cpp "$LINENO"; then :
26695 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26699 rm -f conftest.err conftest.i conftest.$ac_ext
26701 if test $fstype = no; then
26702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26703 /* end confdefs.h. */
26705 #include <sys/statfs.h>
26706 #include <sys/vmount.h>
26709 if ac_fn_c_try_cpp "$LINENO"; then :
26710 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26714 rm -f conftest.err conftest.i conftest.$ac_ext
26716 if test $fstype = no; then
26717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h. */
26720 #include <mntent.h>
26723 if ac_fn_c_try_cpp "$LINENO"; then :
26724 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26728 rm -f conftest.err conftest.i conftest.$ac_ext
26730 if test $fstype = no; then
26731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26732 /* end confdefs.h. */
26733 #include <sys/mount.h>
26736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26737 $EGREP "f_type;" >/dev/null 2>&1; then :
26738 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26744 if test $fstype = no; then
26745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26746 /* end confdefs.h. */
26748 #include <sys/mount.h>
26749 #include <sys/fs_types.h>
26752 if ac_fn_c_try_cpp "$LINENO"; then :
26753 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26757 rm -f conftest.err conftest.i conftest.$ac_ext
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26760 $as_echo "$fstype" >&6; }
26762 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26763 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26765 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26772 ac_cpp='$CXXCPP $CPPFLAGS'
26773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26777 for ac_func in backtrace
26779 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26780 if test "x$ac_cv_func_backtrace" = xyes; then :
26781 cat >>confdefs.h <<_ACEOF
26782 #define HAVE_BACKTRACE 1
26789 ac_cpp='$CPP $CPPFLAGS'
26790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26796 $as_echo_n "checking return type of signal handlers... " >&6; }
26797 if ${ac_cv_type_signal+:} false; then :
26798 $as_echo_n "(cached) " >&6
26800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h. */
26802 #include <sys/types.h>
26803 #include <signal.h>
26808 return *(signal (0, 0)) (0) == 1;
26813 if ac_fn_c_try_compile "$LINENO"; then :
26814 ac_cv_type_signal=int
26816 ac_cv_type_signal=void
26818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26821 $as_echo "$ac_cv_type_signal" >&6; }
26823 cat >>confdefs.h <<_ACEOF
26824 #define RETSIGTYPE $ac_cv_type_signal
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26830 $as_echo_n "checking for type of signal functions... " >&6; }
26831 if ${bash_cv_signal_vintage+:} false; then :
26832 $as_echo_n "(cached) " >&6
26835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836 /* end confdefs.h. */
26837 #include <signal.h>
26843 struct sigaction sa;
26844 sigemptyset(&ss); sigsuspend(&ss);
26845 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26846 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26852 if ac_fn_c_try_link "$LINENO"; then :
26853 bash_cv_signal_vintage="posix"
26856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26857 /* end confdefs.h. */
26858 #include <signal.h>
26863 int mask = sigmask(SIGINT);
26864 sigsetmask(mask); sigblock(mask); sigpause(mask);
26870 if ac_fn_c_try_link "$LINENO"; then :
26871 bash_cv_signal_vintage="4.2bsd"
26874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26875 /* end confdefs.h. */
26877 #include <signal.h>
26878 RETSIGTYPE foo() { }
26883 int mask = sigmask(SIGINT);
26884 sigset(SIGINT, foo); sigrelse(SIGINT);
26885 sighold(SIGINT); sigpause(SIGINT);
26891 if ac_fn_c_try_link "$LINENO"; then :
26892 bash_cv_signal_vintage="svr3"
26894 bash_cv_signal_vintage="v7"
26897 rm -f core conftest.err conftest.$ac_objext \
26898 conftest$ac_exeext conftest.$ac_ext
26901 rm -f core conftest.err conftest.$ac_objext \
26902 conftest$ac_exeext conftest.$ac_ext
26905 rm -f core conftest.err conftest.$ac_objext \
26906 conftest$ac_exeext conftest.$ac_ext
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26911 $as_echo "$bash_cv_signal_vintage" >&6; }
26912 if test "$bash_cv_signal_vintage" = "posix"; then
26913 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26915 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26916 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26918 elif test "$bash_cv_signal_vintage" = "svr3"; then
26919 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26923 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26924 if test "x$ac_cv_type_mode_t" = xyes; then :
26928 cat >>confdefs.h <<_ACEOF
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26935 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26936 if ${ac_cv_type_uid_t+:} false; then :
26937 $as_echo_n "(cached) " >&6
26939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26940 /* end confdefs.h. */
26941 #include <sys/types.h>
26944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26945 $EGREP "uid_t" >/dev/null 2>&1; then :
26946 ac_cv_type_uid_t=yes
26948 ac_cv_type_uid_t=no
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26954 $as_echo "$ac_cv_type_uid_t" >&6; }
26955 if test $ac_cv_type_uid_t = no; then
26957 $as_echo "#define uid_t int" >>confdefs.h
26960 $as_echo "#define gid_t int" >>confdefs.h
26964 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26965 if test "x$ac_cv_type_size_t" = xyes; then :
26969 cat >>confdefs.h <<_ACEOF
26970 #define size_t unsigned int
26975 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26976 if test "x$ac_cv_type_pid_t" = xyes; then :
26980 cat >>confdefs.h <<_ACEOF
26986 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26987 if test "x$ac_cv_type_off_t" = xyes; then :
26991 cat >>confdefs.h <<_ACEOF
26992 #define off_t long int
26998 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26999 if test "x$ac_cv_type_intptr_t" = xyes; then :
27001 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27004 for ac_type in 'int' 'long int' 'long long int'; do
27005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27006 /* end confdefs.h. */
27007 $ac_includes_default
27011 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27018 if ac_fn_c_try_compile "$LINENO"; then :
27020 cat >>confdefs.h <<_ACEOF
27021 #define intptr_t $ac_type
27026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027 test -z "$ac_type" && break
27033 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27034 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27036 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27039 for ac_type in 'unsigned int' 'unsigned long int' \
27040 'unsigned long long int'; do
27041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27042 /* end confdefs.h. */
27043 $ac_includes_default
27047 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27054 if ac_fn_c_try_compile "$LINENO"; then :
27056 cat >>confdefs.h <<_ACEOF
27057 #define uintptr_t $ac_type
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063 test -z "$ac_type" && break
27068 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27069 if test "x$ac_cv_type_ino_t" = xyes; then :
27073 cat >>confdefs.h <<_ACEOF
27074 #define ino_t unsigned long
27079 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27080 if test "x$ac_cv_type_dev_t" = xyes; then :
27084 cat >>confdefs.h <<_ACEOF
27085 #define dev_t unsigned long
27090 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27091 if test "x$ac_cv_type_daddr_t" = xyes; then :
27095 cat >>confdefs.h <<_ACEOF
27096 #define daddr_t long
27101 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27102 if test "x$ac_cv_type_major_t" = xyes; then :
27106 cat >>confdefs.h <<_ACEOF
27107 #define major_t int
27112 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27113 if test "x$ac_cv_type_minor_t" = xyes; then :
27117 cat >>confdefs.h <<_ACEOF
27118 #define minor_t int
27123 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27124 if test "x$ac_cv_type_ssize_t" = xyes; then :
27128 cat >>confdefs.h <<_ACEOF
27129 #define ssize_t int
27134 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27135 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27137 cat >>confdefs.h <<_ACEOF
27138 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27142 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27145 case " $LIBOBJS " in
27146 *" fileblocks.$ac_objext "* ) ;;
27147 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27154 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27155 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27157 cat >>confdefs.h <<_ACEOF
27158 #define HAVE_STRUCT_STAT_ST_RDEV 1
27162 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27168 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27169 if ${ac_cv_struct_tm+:} false; then :
27170 $as_echo_n "(cached) " >&6
27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173 /* end confdefs.h. */
27174 #include <sys/types.h>
27181 int *p = &tm.tm_sec;
27187 if ac_fn_c_try_compile "$LINENO"; then :
27188 ac_cv_struct_tm=time.h
27190 ac_cv_struct_tm=sys/time.h
27192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27195 $as_echo "$ac_cv_struct_tm" >&6; }
27196 if test $ac_cv_struct_tm = sys/time.h; then
27198 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27203 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27204 if ${ac_cv_c_const+:} false; then :
27205 $as_echo_n "(cached) " >&6
27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27213 /* FIXME: Include the comments suggested by Paul. */
27214 #ifndef __cplusplus
27215 /* Ultrix mips cc rejects this. */
27216 typedef int charset[2];
27218 /* SunOS 4.1.1 cc rejects this. */
27219 char const *const *pcpcc;
27221 /* NEC SVR4.0.2 mips cc rejects this. */
27222 struct point {int x, y;};
27223 static struct point const zero = {0,0};
27224 /* AIX XL C 1.02.0.0 rejects this.
27225 It does not let you subtract one const X* pointer from another in
27226 an arm of an if-expression whose if-part is not a constant
27228 const char *g = "string";
27229 pcpcc = &g + (g ? g-g : 0);
27230 /* HPUX 7.0 cc rejects these. */
27232 ppc = (char**) pcpcc;
27233 pcpcc = (char const *const *) ppc;
27234 { /* SCO 3.2v4 cc rejects this. */
27236 char const *s = 0 ? (char *) 0 : (char const *) 0;
27241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27242 int x[] = {25, 17};
27243 const int *foo = &x[0];
27246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27247 typedef const int *iptr;
27251 { /* AIX XL C 1.02.0.0 rejects this saying
27252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27253 struct s { int j; const int *ap[3]; };
27254 struct s *b; b->j = 5;
27256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27257 const int foo = 10;
27258 if (!foo) return 0;
27260 return !cs[0] && !zero.x;
27267 if ac_fn_c_try_compile "$LINENO"; then :
27272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27275 $as_echo "$ac_cv_c_const" >&6; }
27276 if test $ac_cv_c_const = no; then
27278 $as_echo "#define const /**/" >>confdefs.h
27283 # The cast to long int works around a bug in the HP C Compiler
27284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27286 # This bug is HP SR number 8606223364.
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27288 $as_echo_n "checking size of char... " >&6; }
27289 if ${ac_cv_sizeof_char+:} false; then :
27290 $as_echo_n "(cached) " >&6
27292 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27295 if test "$ac_cv_type_char" = yes; then
27296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27298 as_fn_error 77 "cannot compute sizeof (char)
27299 See \`config.log' for more details" "$LINENO" 5; }
27301 ac_cv_sizeof_char=0
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27307 $as_echo "$ac_cv_sizeof_char" >&6; }
27311 cat >>confdefs.h <<_ACEOF
27312 #define SIZEOF_CHAR $ac_cv_sizeof_char
27316 # The cast to long int works around a bug in the HP C Compiler
27317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27319 # This bug is HP SR number 8606223364.
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27321 $as_echo_n "checking size of short int... " >&6; }
27322 if ${ac_cv_sizeof_short_int+:} false; then :
27323 $as_echo_n "(cached) " >&6
27325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27328 if test "$ac_cv_type_short_int" = yes; then
27329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27331 as_fn_error 77 "cannot compute sizeof (short int)
27332 See \`config.log' for more details" "$LINENO" 5; }
27334 ac_cv_sizeof_short_int=0
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27340 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27344 cat >>confdefs.h <<_ACEOF
27345 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27349 # The cast to long int works around a bug in the HP C Compiler
27350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27352 # This bug is HP SR number 8606223364.
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27354 $as_echo_n "checking size of int... " >&6; }
27355 if ${ac_cv_sizeof_int+:} false; then :
27356 $as_echo_n "(cached) " >&6
27358 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27361 if test "$ac_cv_type_int" = yes; then
27362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27364 as_fn_error 77 "cannot compute sizeof (int)
27365 See \`config.log' for more details" "$LINENO" 5; }
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27373 $as_echo "$ac_cv_sizeof_int" >&6; }
27377 cat >>confdefs.h <<_ACEOF
27378 #define SIZEOF_INT $ac_cv_sizeof_int
27382 # The cast to long int works around a bug in the HP C Compiler
27383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27385 # This bug is HP SR number 8606223364.
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27387 $as_echo_n "checking size of long int... " >&6; }
27388 if ${ac_cv_sizeof_long_int+:} false; then :
27389 $as_echo_n "(cached) " >&6
27391 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27394 if test "$ac_cv_type_long_int" = yes; then
27395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27397 as_fn_error 77 "cannot compute sizeof (long int)
27398 See \`config.log' for more details" "$LINENO" 5; }
27400 ac_cv_sizeof_long_int=0
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27406 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27410 cat >>confdefs.h <<_ACEOF
27411 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27415 # The cast to long int works around a bug in the HP C Compiler
27416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27418 # This bug is HP SR number 8606223364.
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27420 $as_echo_n "checking size of long long int... " >&6; }
27421 if ${ac_cv_sizeof_long_long_int+:} false; then :
27422 $as_echo_n "(cached) " >&6
27424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27427 if test "$ac_cv_type_long_long_int" = yes; then
27428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27430 as_fn_error 77 "cannot compute sizeof (long long int)
27431 See \`config.log' for more details" "$LINENO" 5; }
27433 ac_cv_sizeof_long_long_int=0
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27439 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27443 cat >>confdefs.h <<_ACEOF
27444 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27448 # The cast to long int works around a bug in the HP C Compiler
27449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27451 # This bug is HP SR number 8606223364.
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27453 $as_echo_n "checking size of int *... " >&6; }
27454 if ${ac_cv_sizeof_int_p+:} false; then :
27455 $as_echo_n "(cached) " >&6
27457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27460 if test "$ac_cv_type_int_p" = yes; then
27461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27463 as_fn_error 77 "cannot compute sizeof (int *)
27464 See \`config.log' for more details" "$LINENO" 5; }
27466 ac_cv_sizeof_int_p=0
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27472 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27476 cat >>confdefs.h <<_ACEOF
27477 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27483 $as_echo_n "checking for u_int type... " >&6; }
27484 if ${ac_cv_have_u_int+:} false; then :
27485 $as_echo_n "(cached) " >&6
27488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27489 /* end confdefs.h. */
27491 #include <sys/types.h>
27503 if ac_fn_c_try_compile "$LINENO"; then :
27505 ac_cv_have_u_int="yes"
27509 ac_cv_have_u_int="no"
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27518 $as_echo "$ac_cv_have_u_int" >&6; }
27519 if test "x$ac_cv_have_u_int" = "xyes" ; then
27520 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27526 $as_echo_n "checking for intmax_t type... " >&6; }
27527 if ${ac_cv_have_intmax_t+:} false; then :
27528 $as_echo_n "(cached) " >&6
27531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27532 /* end confdefs.h. */
27534 #include <sys/types.h>
27546 if ac_fn_c_try_compile "$LINENO"; then :
27548 ac_cv_have_intmax_t="yes"
27552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27553 /* end confdefs.h. */
27555 #include <stdint.h>
27567 if ac_fn_c_try_compile "$LINENO"; then :
27569 ac_cv_have_intmax_t="yes"
27573 ac_cv_have_intmax_t="no"
27577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27586 $as_echo "$ac_cv_have_intmax_t" >&6; }
27587 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27588 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27594 $as_echo_n "checking for u_intmax_t type... " >&6; }
27595 if ${ac_cv_have_u_intmax_t+:} false; then :
27596 $as_echo_n "(cached) " >&6
27599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600 /* end confdefs.h. */
27602 #include <sys/types.h>
27608 u_intmax_t a; a = 1;
27614 if ac_fn_c_try_compile "$LINENO"; then :
27616 ac_cv_have_u_intmax_t="yes"
27620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h. */
27623 #include <stdint.h>
27629 u_intmax_t a; a = 1;
27635 if ac_fn_c_try_compile "$LINENO"; then :
27637 ac_cv_have_u_intmax_t="yes"
27641 ac_cv_have_u_intmax_t="no"
27645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27654 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27655 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27656 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27662 $as_echo_n "checking for intXX_t types... " >&6; }
27663 if ${ac_cv_have_intxx_t+:} false; then :
27664 $as_echo_n "(cached) " >&6
27667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27668 /* end confdefs.h. */
27670 #include <sys/types.h>
27676 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27682 if ac_fn_c_try_compile "$LINENO"; then :
27684 ac_cv_have_intxx_t="yes"
27688 ac_cv_have_intxx_t="no"
27692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27697 $as_echo "$ac_cv_have_intxx_t" >&6; }
27698 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27699 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27705 $as_echo_n "checking for int64_t type... " >&6; }
27706 if ${ac_cv_have_int64_t+:} false; then :
27707 $as_echo_n "(cached) " >&6
27710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h. */
27713 #include <sys/types.h>
27725 if ac_fn_c_try_compile "$LINENO"; then :
27727 ac_cv_have_int64_t="yes"
27731 ac_cv_have_int64_t="no"
27735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27740 $as_echo "$ac_cv_have_int64_t" >&6; }
27741 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27742 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27748 $as_echo_n "checking for u_intXX_t types... " >&6; }
27749 if ${ac_cv_have_u_intxx_t+:} false; then :
27750 $as_echo_n "(cached) " >&6
27753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27754 /* end confdefs.h. */
27756 #include <sys/types.h>
27762 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27768 if ac_fn_c_try_compile "$LINENO"; then :
27770 ac_cv_have_u_intxx_t="yes"
27774 ac_cv_have_u_intxx_t="no"
27778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27783 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27784 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27785 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27791 $as_echo_n "checking for u_int64_t types... " >&6; }
27792 if ${ac_cv_have_u_int64_t+:} false; then :
27793 $as_echo_n "(cached) " >&6
27796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27797 /* end confdefs.h. */
27799 #include <sys/types.h>
27805 u_int64_t a; a = 1;
27811 if ac_fn_c_try_compile "$LINENO"; then :
27813 ac_cv_have_u_int64_t="yes"
27817 ac_cv_have_u_int64_t="no"
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27826 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27827 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27828 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27833 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27834 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27837 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27839 /* end confdefs.h. */
27841 #include <sys/bitypes.h>
27847 int8_t a; int16_t b; int32_t c;
27848 u_int8_t e; u_int16_t f; u_int32_t g;
27849 a = b = c = e = f = g = 1;
27855 if ac_fn_c_try_compile "$LINENO"; then :
27857 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27859 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27861 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27864 $as_echo "yes" >&6; }
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27869 $as_echo "no" >&6; }
27873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27876 if test -z "$have_u_intxx_t" ; then
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27878 $as_echo_n "checking for uintXX_t types... " >&6; }
27879 if ${ac_cv_have_uintxx_t+:} false; then :
27880 $as_echo_n "(cached) " >&6
27883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27884 /* end confdefs.h. */
27886 #include <sys/types.h>
27892 uint8_t a; uint16_t b;
27893 uint32_t c; a = b = c = 1;
27899 if ac_fn_c_try_compile "$LINENO"; then :
27901 ac_cv_have_uintxx_t="yes"
27905 ac_cv_have_uintxx_t="no"
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27914 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27915 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27916 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27921 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27922 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27925 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27927 /* end confdefs.h. */
27929 #include <sys/bitypes.h>
27935 int64_t a; u_int64_t b;
27942 if ac_fn_c_try_compile "$LINENO"; then :
27944 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27946 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27949 $as_echo "yes" >&6; }
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27954 $as_echo "no" >&6; }
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 if (test -z "$have_uintxx_t" && \
27962 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27965 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27967 /* end confdefs.h. */
27969 #include <sys/bitypes.h>
27975 uint8_t a; uint16_t b;
27976 uint32_t c; a = b = c = 1;
27982 if ac_fn_c_try_compile "$LINENO"; then :
27984 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27987 $as_echo "yes" >&6; }
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27992 $as_echo "no" >&6; }
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28017 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28018 cat >>confdefs.h <<_ACEOF
28019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28023 echo 'configure: cannot find needed function.'; exit 1
28029 for ac_func in getpagesize
28031 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28032 if test "x$ac_cv_func_getpagesize" = xyes; then :
28033 cat >>confdefs.h <<_ACEOF
28034 #define HAVE_GETPAGESIZE 1
28037 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28042 for ac_func in malloc_trim
28044 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28045 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28046 cat >>confdefs.h <<_ACEOF
28047 #define HAVE_MALLOC_TRIM 1
28050 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28056 for ac_func in fchdir
28058 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28059 if test "x$ac_cv_func_fchdir" = xyes; then :
28060 cat >>confdefs.h <<_ACEOF
28061 #define HAVE_FCHDIR 1
28063 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28068 for ac_func in strtoll
28070 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28071 if test "x$ac_cv_func_strtoll" = xyes; then :
28072 cat >>confdefs.h <<_ACEOF
28073 #define HAVE_STRTOLL 1
28075 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28080 for ac_func in posix_fadvise
28082 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28083 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28084 cat >>confdefs.h <<_ACEOF
28085 #define HAVE_POSIX_FADVISE 1
28091 for ac_func in fdatasync
28093 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28094 if test "x$ac_cv_func_fdatasync" = xyes; then :
28095 cat >>confdefs.h <<_ACEOF
28096 #define HAVE_FDATASYNC 1
28103 for ac_func in chflags
28105 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28106 if test "x$ac_cv_func_chflags" = xyes; then :
28107 cat >>confdefs.h <<_ACEOF
28108 #define HAVE_CHFLAGS 1
28115 for ac_func in snprintf vsnprintf gethostid fseeko
28117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28118 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28119 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28120 cat >>confdefs.h <<_ACEOF
28121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28129 $as_echo_n "checking for va_copy... " >&6; }
28130 if ${ba_cv_va_copy+:} false; then :
28131 $as_echo_n "(cached) " >&6
28134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28135 /* end confdefs.h. */
28137 #include <stdarg.h>
28138 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28139 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28145 call_use_va_copy(1,2,3)
28151 if ac_fn_c_try_link "$LINENO"; then :
28161 rm -f core conftest.err conftest.$ac_objext \
28162 conftest$ac_exeext conftest.$ac_ext
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28167 $as_echo "$ba_cv_va_copy" >&6; }
28168 test $ba_cv_va_copy = yes &&
28169 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28172 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28177 cat >>confdefs.h <<_ACEOF
28178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28185 # If resolver functions are not in libc check for -lnsl or -lresolv.
28186 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28187 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28189 $as_echo "using libc's resolver" >&6; }
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28192 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28193 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28194 $as_echo_n "(cached) " >&6
28196 ac_check_lib_save_LIBS=$LIBS
28198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28199 /* end confdefs.h. */
28201 /* Override any GCC internal prototype to avoid an error.
28202 Use char because int might match the return type of a GCC
28203 builtin and then its argument prototype would still apply. */
28207 char gethostbyname_r ();
28211 return gethostbyname_r ();
28216 if ac_fn_c_try_link "$LINENO"; then :
28217 ac_cv_lib_nsl_gethostbyname_r=yes
28219 ac_cv_lib_nsl_gethostbyname_r=no
28221 rm -f core conftest.err conftest.$ac_objext \
28222 conftest$ac_exeext conftest.$ac_ext
28223 LIBS=$ac_check_lib_save_LIBS
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28226 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28227 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28228 cat >>confdefs.h <<_ACEOF
28229 #define HAVE_LIBNSL 1
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28237 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28238 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28239 $as_echo_n "(cached) " >&6
28241 ac_check_lib_save_LIBS=$LIBS
28242 LIBS="-lresolv $LIBS"
28243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28244 /* end confdefs.h. */
28246 /* Override any GCC internal prototype to avoid an error.
28247 Use char because int might match the return type of a GCC
28248 builtin and then its argument prototype would still apply. */
28252 char gethostbyname_r ();
28256 return gethostbyname_r ();
28261 if ac_fn_c_try_link "$LINENO"; then :
28262 ac_cv_lib_resolv_gethostbyname_r=yes
28264 ac_cv_lib_resolv_gethostbyname_r=no
28266 rm -f core conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
28268 LIBS=$ac_check_lib_save_LIBS
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28271 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28272 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28273 cat >>confdefs.h <<_ACEOF
28274 #define HAVE_LIBRESOLV 1
28277 LIBS="-lresolv $LIBS"
28284 for ac_func in inet_pton
28286 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28287 if test "x$ac_cv_func_inet_pton" = xyes; then :
28288 cat >>confdefs.h <<_ACEOF
28289 #define HAVE_INET_PTON 1
28291 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28296 for ac_func in inet_ntop
28298 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28299 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28300 cat >>confdefs.h <<_ACEOF
28301 #define HAVE_INET_NTOP 1
28303 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28308 for ac_func in gethostbyname2
28310 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28311 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28312 cat >>confdefs.h <<_ACEOF
28313 #define HAVE_GETHOSTBYNAME2 1
28315 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28322 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28323 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28324 $as_echo_n "(cached) " >&6
28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h. */
28330 #include <sys/socket.h>
28336 struct sockaddr s; s.sa_len;
28342 if ac_fn_c_try_compile "$LINENO"; then :
28344 ac_cv_struct_sockaddr_sa_len=yes
28347 ac_cv_struct_sockaddr_sa_len=no
28351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28356 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28358 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28360 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28364 for ac_func in strftime
28366 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28367 if test "x$ac_cv_func_strftime" = xyes; then :
28368 cat >>confdefs.h <<_ACEOF
28369 #define HAVE_STRFTIME 1
28373 # strftime is in -lintl on SCO UNIX.
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28375 $as_echo_n "checking for strftime in -lintl... " >&6; }
28376 if ${ac_cv_lib_intl_strftime+:} false; then :
28377 $as_echo_n "(cached) " >&6
28379 ac_check_lib_save_LIBS=$LIBS
28380 LIBS="-lintl $LIBS"
28381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28382 /* end confdefs.h. */
28384 /* Override any GCC internal prototype to avoid an error.
28385 Use char because int might match the return type of a GCC
28386 builtin and then its argument prototype would still apply. */
28394 return strftime ();
28399 if ac_fn_c_try_link "$LINENO"; then :
28400 ac_cv_lib_intl_strftime=yes
28402 ac_cv_lib_intl_strftime=no
28404 rm -f core conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
28406 LIBS=$ac_check_lib_save_LIBS
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28409 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28410 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28411 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28413 LIBS="-lintl $LIBS"
28419 for ac_func in vprintf
28421 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28422 if test "x$ac_cv_func_vprintf" = xyes; then :
28423 cat >>confdefs.h <<_ACEOF
28424 #define HAVE_VPRINTF 1
28427 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28428 if test "x$ac_cv_func__doprnt" = xyes; then :
28430 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28438 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28439 # for constant arguments. Useless!
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28441 $as_echo_n "checking for working alloca.h... " >&6; }
28442 if ${ac_cv_working_alloca_h+:} false; then :
28443 $as_echo_n "(cached) " >&6
28445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28446 /* end confdefs.h. */
28447 #include <alloca.h>
28451 char *p = (char *) alloca (2 * sizeof (int));
28457 if ac_fn_c_try_link "$LINENO"; then :
28458 ac_cv_working_alloca_h=yes
28460 ac_cv_working_alloca_h=no
28462 rm -f core conftest.err conftest.$ac_objext \
28463 conftest$ac_exeext conftest.$ac_ext
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28466 $as_echo "$ac_cv_working_alloca_h" >&6; }
28467 if test $ac_cv_working_alloca_h = yes; then
28469 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28474 $as_echo_n "checking for alloca... " >&6; }
28475 if ${ac_cv_func_alloca_works+:} false; then :
28476 $as_echo_n "(cached) " >&6
28478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28479 /* end confdefs.h. */
28481 # define alloca __builtin_alloca
28484 # include <malloc.h>
28485 # define alloca _alloca
28487 # ifdef HAVE_ALLOCA_H
28488 # include <alloca.h>
28493 # ifndef alloca /* predefined by HP cc +Olibcalls */
28494 void *alloca (size_t);
28504 char *p = (char *) alloca (1);
28510 if ac_fn_c_try_link "$LINENO"; then :
28511 ac_cv_func_alloca_works=yes
28513 ac_cv_func_alloca_works=no
28515 rm -f core conftest.err conftest.$ac_objext \
28516 conftest$ac_exeext conftest.$ac_ext
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28519 $as_echo "$ac_cv_func_alloca_works" >&6; }
28521 if test $ac_cv_func_alloca_works = yes; then
28523 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28526 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28527 # that cause trouble. Some versions do not even contain alloca or
28528 # contain a buggy version. If you still want to use their alloca,
28529 # use ar to extract alloca.o from them instead of compiling alloca.c.
28531 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28533 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28537 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28538 if ${ac_cv_os_cray+:} false; then :
28539 $as_echo_n "(cached) " >&6
28541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28542 /* end confdefs.h. */
28543 #if defined CRAY && ! defined CRAY2
28550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28551 $EGREP "webecray" >/dev/null 2>&1; then :
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28560 $as_echo "$ac_cv_os_cray" >&6; }
28561 if test $ac_cv_os_cray = yes; then
28562 for ac_func in _getb67 GETB67 getb67; do
28563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28567 cat >>confdefs.h <<_ACEOF
28568 #define CRAY_STACKSEG_END $ac_func
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28578 $as_echo_n "checking stack direction for C alloca... " >&6; }
28579 if ${ac_cv_c_stack_direction+:} false; then :
28580 $as_echo_n "(cached) " >&6
28582 if test "$cross_compiling" = yes; then :
28583 ac_cv_c_stack_direction=0
28585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28586 /* end confdefs.h. */
28587 $ac_includes_default
28589 find_stack_direction ()
28591 static char *addr = 0;
28596 return find_stack_direction ();
28599 return (&dummy > addr) ? 1 : -1;
28605 return find_stack_direction () < 0;
28608 if ac_fn_c_try_run "$LINENO"; then :
28609 ac_cv_c_stack_direction=1
28611 ac_cv_c_stack_direction=-1
28613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28614 conftest.$ac_objext conftest.beam conftest.$ac_ext
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28619 $as_echo "$ac_cv_c_stack_direction" >&6; }
28620 cat >>confdefs.h <<_ACEOF
28621 #define STACK_DIRECTION $ac_cv_c_stack_direction
28627 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28628 # -lseq on Dynix/PTX, -lgen on Unixware.
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28630 $as_echo_n "checking for library containing getmntent... " >&6; }
28631 if ${ac_cv_search_getmntent+:} false; then :
28632 $as_echo_n "(cached) " >&6
28634 ac_func_search_save_LIBS=$LIBS
28635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28636 /* end confdefs.h. */
28638 /* Override any GCC internal prototype to avoid an error.
28639 Use char because int might match the return type of a GCC
28640 builtin and then its argument prototype would still apply. */
28648 return getmntent ();
28653 for ac_lib in '' sun seq gen; do
28654 if test -z "$ac_lib"; then
28655 ac_res="none required"
28658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28660 if ac_fn_c_try_link "$LINENO"; then :
28661 ac_cv_search_getmntent=$ac_res
28663 rm -f core conftest.err conftest.$ac_objext \
28665 if ${ac_cv_search_getmntent+:} false; then :
28669 if ${ac_cv_search_getmntent+:} false; then :
28672 ac_cv_search_getmntent=no
28674 rm conftest.$ac_ext
28675 LIBS=$ac_func_search_save_LIBS
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28678 $as_echo "$ac_cv_search_getmntent" >&6; }
28679 ac_res=$ac_cv_search_getmntent
28680 if test "$ac_res" != no; then :
28681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28682 ac_cv_func_getmntent=yes
28684 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28687 ac_cv_func_getmntent=no
28691 for ac_func in getmntinfo
28693 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28694 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28695 cat >>confdefs.h <<_ACEOF
28696 #define HAVE_GETMNTINFO 1
28698 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28704 $as_echo_n "checking whether closedir returns void... " >&6; }
28705 if ${ac_cv_func_closedir_void+:} false; then :
28706 $as_echo_n "(cached) " >&6
28708 if test "$cross_compiling" = yes; then :
28709 ac_cv_func_closedir_void=yes
28711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28712 /* end confdefs.h. */
28713 $ac_includes_default
28714 #include <$ac_header_dirent>
28715 #ifndef __cplusplus
28722 return closedir (opendir (".")) != 0;
28727 if ac_fn_c_try_run "$LINENO"; then :
28728 ac_cv_func_closedir_void=no
28730 ac_cv_func_closedir_void=yes
28732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28733 conftest.$ac_objext conftest.beam conftest.$ac_ext
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28738 $as_echo "$ac_cv_func_closedir_void" >&6; }
28739 if test $ac_cv_func_closedir_void = yes; then
28741 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28746 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28747 if ${ac_cv_func_setpgrp_void+:} false; then :
28748 $as_echo_n "(cached) " >&6
28750 if test "$cross_compiling" = yes; then :
28751 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28754 /* end confdefs.h. */
28755 $ac_includes_default
28759 /* If this system has a BSD-style setpgrp which takes arguments,
28760 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28761 exit successfully. */
28762 return setpgrp (1,1) != -1;
28767 if ac_fn_c_try_run "$LINENO"; then :
28768 ac_cv_func_setpgrp_void=no
28770 ac_cv_func_setpgrp_void=yes
28772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28773 conftest.$ac_objext conftest.beam conftest.$ac_ext
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28778 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28779 if test $ac_cv_func_setpgrp_void = yes; then
28781 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28784 # AC_FUNC_FNMATCH dnl use local version
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28787 $as_echo_n "checking for gettext in -lintl... " >&6; }
28788 if ${ac_cv_lib_intl_gettext+:} false; then :
28789 $as_echo_n "(cached) " >&6
28791 ac_check_lib_save_LIBS=$LIBS
28792 LIBS="-lintl $LIBS"
28793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h. */
28796 /* Override any GCC internal prototype to avoid an error.
28797 Use char because int might match the return type of a GCC
28798 builtin and then its argument prototype would still apply. */
28811 if ac_fn_c_try_link "$LINENO"; then :
28812 ac_cv_lib_intl_gettext=yes
28814 ac_cv_lib_intl_gettext=no
28816 rm -f core conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
28818 LIBS=$ac_check_lib_save_LIBS
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28821 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28822 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28823 LIBS="$LIBS -lintl"
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28828 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28829 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28830 $as_echo_n "(cached) " >&6
28832 ac_check_lib_save_LIBS=$LIBS
28834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28835 /* end confdefs.h. */
28837 /* Override any GCC internal prototype to avoid an error.
28838 Use char because int might match the return type of a GCC
28839 builtin and then its argument prototype would still apply. */
28847 return getpwnam ();
28852 if ac_fn_c_try_link "$LINENO"; then :
28853 ac_cv_lib_sun_getpwnam=yes
28855 ac_cv_lib_sun_getpwnam=no
28857 rm -f core conftest.err conftest.$ac_objext \
28858 conftest$ac_exeext conftest.$ac_ext
28859 LIBS=$ac_check_lib_save_LIBS
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28862 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28863 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28864 cat >>confdefs.h <<_ACEOF
28865 #define HAVE_LIBSUN 1
28873 for ac_header in zlib.h
28875 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28876 if test "x$ac_cv_header_zlib_h" = xyes; then :
28877 cat >>confdefs.h <<_ACEOF
28878 #define HAVE_ZLIB_H 1
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28886 $as_echo_n "checking for deflate in -lz... " >&6; }
28887 if ${ac_cv_lib_z_deflate+:} false; then :
28888 $as_echo_n "(cached) " >&6
28890 ac_check_lib_save_LIBS=$LIBS
28892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28893 /* end confdefs.h. */
28895 /* Override any GCC internal prototype to avoid an error.
28896 Use char because int might match the return type of a GCC
28897 builtin and then its argument prototype would still apply. */
28910 if ac_fn_c_try_link "$LINENO"; then :
28911 ac_cv_lib_z_deflate=yes
28913 ac_cv_lib_z_deflate=no
28915 rm -f core conftest.err conftest.$ac_objext \
28916 conftest$ac_exeext conftest.$ac_ext
28917 LIBS=$ac_check_lib_save_LIBS
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28920 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28921 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28926 if test x$ZLIBS = x-lz; then
28927 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28934 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28935 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
28937 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28938 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28941 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28942 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
28943 $as_echo_n "(cached) " >&6
28945 ac_check_lib_save_LIBS=$LIBS
28946 LIBS="-llzo2 $LIBS"
28947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28948 /* end confdefs.h. */
28950 /* Override any GCC internal prototype to avoid an error.
28951 Use char because int might match the return type of a GCC
28952 builtin and then its argument prototype would still apply. */
28956 char lzo1x_1_compress ();
28960 return lzo1x_1_compress ();
28965 if ac_fn_c_try_link "$LINENO"; then :
28966 ac_cv_lib_lzo2_lzo1x_1_compress=yes
28968 ac_cv_lib_lzo2_lzo1x_1_compress=no
28970 rm -f core conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
28972 LIBS=$ac_check_lib_save_LIBS
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28975 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28976 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
28980 $as_echo "#define HAVE_LZO 1" >>confdefs.h
28997 # Check whether --enable-acl was given.
28998 if test "${enable_acl+set}" = set; then :
28999 enableval=$enable_acl;
29000 if test x$enableval = xyes; then
29002 elif test x$enableval = xno; then
29011 have_extended_acl=no
29012 if test x$support_acl = xyes -o x$support_acl = xauto; then
29013 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29014 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29016 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29022 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29023 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29031 if test $have_acl = no; then
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29033 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29034 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29035 $as_echo_n "(cached) " >&6
29037 ac_check_lib_save_LIBS=$LIBS
29039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29040 /* end confdefs.h. */
29042 /* Override any GCC internal prototype to avoid an error.
29043 Use char because int might match the return type of a GCC
29044 builtin and then its argument prototype would still apply. */
29048 char acl_get_file ();
29052 return acl_get_file ();
29057 if ac_fn_c_try_link "$LINENO"; then :
29058 ac_cv_lib_acl_acl_get_file=yes
29060 ac_cv_lib_acl_acl_get_file=no
29062 rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
29064 LIBS=$ac_check_lib_save_LIBS
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29067 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29068 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29071 FDLIBS="-lacl $FDLIBS"
29078 if test $have_acl = no -a \
29079 x${HAVE_OSF1_OS_TRUE} = x; then
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29081 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29082 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29083 $as_echo_n "(cached) " >&6
29085 ac_check_lib_save_LIBS=$LIBS
29086 LIBS="-lpacl $LIBS"
29087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29088 /* end confdefs.h. */
29090 /* Override any GCC internal prototype to avoid an error.
29091 Use char because int might match the return type of a GCC
29092 builtin and then its argument prototype would still apply. */
29096 char acl_get_file ();
29100 return acl_get_file ();
29105 if ac_fn_c_try_link "$LINENO"; then :
29106 ac_cv_lib_pacl_acl_get_file=yes
29108 ac_cv_lib_pacl_acl_get_file=no
29110 rm -f core conftest.err conftest.$ac_objext \
29111 conftest$ac_exeext conftest.$ac_ext
29112 LIBS=$ac_check_lib_save_LIBS
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29115 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29116 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29119 FDLIBS="-lpacl $FDLIBS"
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29126 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29127 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29128 if test $? = 0; then
29130 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29133 $as_echo "yes" >&6; }
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29136 $as_echo "no" >&6; }
29140 if test $have_acl = yes -a \
29141 x${HAVE_DARWIN_OS_TRUE} = x; then
29142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29143 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29144 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29145 if test $? = 0; then
29147 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29150 $as_echo "yes" >&6; }
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29153 $as_echo "no" >&6; }
29157 if test $have_acl = yes -a \
29158 x${HAVE_FREEBSD_OS_TRUE} = x; then
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29160 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29161 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29162 if test $? = 0; then
29164 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29167 $as_echo "yes" >&6; }
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29170 $as_echo "no" >&6; }
29174 if test $have_acl = no -a \
29175 x${HAVE_SUN_OS_TRUE} = x; then
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29177 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29178 if ${ac_cv_lib_sec_acltotext+:} false; then :
29179 $as_echo_n "(cached) " >&6
29181 ac_check_lib_save_LIBS=$LIBS
29183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29184 /* end confdefs.h. */
29186 /* Override any GCC internal prototype to avoid an error.
29187 Use char because int might match the return type of a GCC
29188 builtin and then its argument prototype would still apply. */
29196 return acltotext ();
29201 if ac_fn_c_try_link "$LINENO"; then :
29202 ac_cv_lib_sec_acltotext=yes
29204 ac_cv_lib_sec_acltotext=no
29206 rm -f core conftest.err conftest.$ac_objext \
29207 conftest$ac_exeext conftest.$ac_ext
29208 LIBS=$ac_check_lib_save_LIBS
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29211 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29212 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29215 FDLIBS="-lsec $FDLIBS"
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29218 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29219 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29220 $as_echo_n "(cached) " >&6
29222 ac_check_lib_save_LIBS=$LIBS
29224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29225 /* end confdefs.h. */
29227 /* Override any GCC internal prototype to avoid an error.
29228 Use char because int might match the return type of a GCC
29229 builtin and then its argument prototype would still apply. */
29233 char acl_totext ();
29237 return acl_totext ();
29242 if ac_fn_c_try_link "$LINENO"; then :
29243 ac_cv_lib_sec_acl_totext=yes
29245 ac_cv_lib_sec_acl_totext=no
29247 rm -f core conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
29249 LIBS=$ac_check_lib_save_LIBS
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29252 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29253 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29255 have_extended_acl=yes
29266 if test $have_acl = no -a \
29267 x${HAVE_AIX_OS_TRUE} = x; then
29268 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29269 if test "x$ac_cv_func_acl_get" = xyes; then :
29273 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29274 if test "x$ac_cv_func_aclx_get" = xyes; then :
29276 have_extended_acl=yes
29287 if test x$support_acl = xyes -a $have_acl != yes; then
29288 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29289 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29291 if test $have_acl = yes; then
29293 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29297 if test $have_extended_acl = yes; then
29299 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29306 # Check whether --enable-xattr was given.
29307 if test "${enable_xattr+set}" = set; then :
29308 enableval=$enable_xattr;
29309 if test x$enableval = xyes; then
29311 elif test x$enableval = xno; then
29320 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29321 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29322 x${HAVE_NETBSD_OS_TRUE} = x -o \
29323 x${HAVE_OPENBSD_OS_TRUE} = x; then
29324 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29325 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29327 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29332 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29333 if test "x$ac_cv_header_libutil_h" = xyes; then :
29335 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29340 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29345 cat >>confdefs.h <<_ACEOF
29346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29351 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29354 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29357 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29365 if test $have_xattr = no; then
29366 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29371 cat >>confdefs.h <<_ACEOF
29372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29377 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29380 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29383 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29392 if test $have_xattr = yes; then
29393 have_extattr_string_in_libc=no
29394 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29399 cat >>confdefs.h <<_ACEOF
29400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29403 have_extattr_string_in_libc=yes
29405 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29408 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29416 if test $have_extattr_string_in_libc = no; then
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29418 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29419 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29420 $as_echo_n "(cached) " >&6
29422 ac_check_lib_save_LIBS=$LIBS
29423 LIBS="-lutil $LIBS"
29424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29425 /* end confdefs.h. */
29427 /* Override any GCC internal prototype to avoid an error.
29428 Use char because int might match the return type of a GCC
29429 builtin and then its argument prototype would still apply. */
29433 char extattr_namespace_to_string extattr_string_to_namespace ();
29437 return extattr_namespace_to_string extattr_string_to_namespace ();
29442 if ac_fn_c_try_link "$LINENO"; then :
29443 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29445 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29447 rm -f core conftest.err conftest.$ac_objext \
29448 conftest$ac_exeext conftest.$ac_ext
29449 LIBS=$ac_check_lib_save_LIBS
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29452 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29453 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29456 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29459 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29461 FDLIBS="-lutil $FDLIBS"
29470 if test $have_xattr = no -a \
29471 x${HAVE_AIX_OS_TRUE} = x; then
29472 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29473 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29475 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29480 for ac_func in llistea lgetea lsetea
29482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29485 cat >>confdefs.h <<_ACEOF
29486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29491 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29494 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29497 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29505 if test $have_xattr = no; then
29506 for ac_func in listea getea setea
29508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29510 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29511 cat >>confdefs.h <<_ACEOF
29512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29517 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29520 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29523 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29533 if test $have_xattr = no -a \
29534 x${HAVE_OSF1_OS_TRUE} = x; then
29535 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29536 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29538 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29543 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29547 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29548 cat >>confdefs.h <<_ACEOF
29549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29554 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29557 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29560 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29563 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29566 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29575 if test $have_xattr = no -a \
29576 x${HAVE_SUN_OS_TRUE} = x; then
29577 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29578 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29580 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29585 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29586 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29588 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29593 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29594 if test "x$ac_cv_header_attr_h" = xyes; then :
29596 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29602 for ac_func in openat fstatat unlinkat fchownat futimesat
29604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29606 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29607 cat >>confdefs.h <<_ACEOF
29608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29613 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29616 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29619 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29622 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29625 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29633 if test $have_xattr = yes; then
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29635 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29636 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29637 $as_echo_n "(cached) " >&6
29639 ac_check_lib_save_LIBS=$LIBS
29640 LIBS="-lnvpair $LIBS"
29641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29642 /* end confdefs.h. */
29644 /* Override any GCC internal prototype to avoid an error.
29645 Use char because int might match the return type of a GCC
29646 builtin and then its argument prototype would still apply. */
29650 char nvlist_next_nvpair ();
29654 return nvlist_next_nvpair ();
29659 if ac_fn_c_try_link "$LINENO"; then :
29660 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29662 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29664 rm -f core conftest.err conftest.$ac_objext \
29665 conftest$ac_exeext conftest.$ac_ext
29666 LIBS=$ac_check_lib_save_LIBS
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29669 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29670 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29673 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29675 FDLIBS="-lnvpair $FDLIBS"
29683 if test $have_xattr = no; then
29684 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29685 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29687 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29692 for ac_func in llistxattr lgetxattr lsetxattr
29694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29695 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29696 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29697 cat >>confdefs.h <<_ACEOF
29698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29703 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29706 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29709 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29717 if test $have_xattr = no; then
29718 for ac_func in listxattr getxattr setxattr
29720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29721 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29722 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29723 cat >>confdefs.h <<_ACEOF
29724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29729 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29732 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29735 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29745 if test x$support_xattr = xyes -a $have_xattr != yes; then
29746 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29747 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29749 if test $have_xattr = yes; then
29751 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29759 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29760 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29761 $as_echo_n "(cached) " >&6
29763 ac_check_lib_save_LIBS=$LIBS
29764 LIBS="-lpthread $LIBS"
29765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29766 /* end confdefs.h. */
29768 /* Override any GCC internal prototype to avoid an error.
29769 Use char because int might match the return type of a GCC
29770 builtin and then its argument prototype would still apply. */
29774 char pthread_create ();
29778 return pthread_create ();
29783 if ac_fn_c_try_link "$LINENO"; then :
29784 ac_cv_lib_pthread_pthread_create=yes
29786 ac_cv_lib_pthread_pthread_create=no
29788 rm -f core conftest.err conftest.$ac_objext \
29789 conftest$ac_exeext conftest.$ac_ext
29790 LIBS=$ac_check_lib_save_LIBS
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29793 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29794 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29795 PTHREAD_LIB="-lpthread"
29798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29799 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29800 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29801 $as_echo_n "(cached) " >&6
29803 ac_check_lib_save_LIBS=$LIBS
29804 LIBS="-lpthreads $LIBS"
29805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29806 /* end confdefs.h. */
29808 /* Override any GCC internal prototype to avoid an error.
29809 Use char because int might match the return type of a GCC
29810 builtin and then its argument prototype would still apply. */
29814 char pthread_create ();
29818 return pthread_create ();
29823 if ac_fn_c_try_link "$LINENO"; then :
29824 ac_cv_lib_pthreads_pthread_create=yes
29826 ac_cv_lib_pthreads_pthread_create=no
29828 rm -f core conftest.err conftest.$ac_objext \
29829 conftest$ac_exeext conftest.$ac_ext
29830 LIBS=$ac_check_lib_save_LIBS
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29833 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29834 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29835 PTHREAD_LIB="-lpthreads"
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29839 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29840 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29841 $as_echo_n "(cached) " >&6
29843 ac_check_lib_save_LIBS=$LIBS
29845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29846 /* end confdefs.h. */
29848 /* Override any GCC internal prototype to avoid an error.
29849 Use char because int might match the return type of a GCC
29850 builtin and then its argument prototype would still apply. */
29854 char pthread_create ();
29858 return pthread_create ();
29863 if ac_fn_c_try_link "$LINENO"; then :
29864 ac_cv_lib_c_r_pthread_create=yes
29866 ac_cv_lib_c_r_pthread_create=no
29868 rm -f core conftest.err conftest.$ac_objext \
29869 conftest$ac_exeext conftest.$ac_ext
29870 LIBS=$ac_check_lib_save_LIBS
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29873 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29874 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29875 PTHREAD_LIB="-lc_r"
29878 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29879 if test "x$ac_cv_func_pthread_create" = xyes; then :
29896 for ac_header in sys/prctl.h sys/capability.h
29898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29901 cat >>confdefs.h <<_ACEOF
29902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29909 for ac_func in prctl setreuid
29911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29912 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29913 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29914 cat >>confdefs.h <<_ACEOF
29915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29922 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29923 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29924 $as_echo_n "(cached) " >&6
29926 ac_check_lib_save_LIBS=$LIBS
29928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29929 /* end confdefs.h. */
29931 /* Override any GCC internal prototype to avoid an error.
29932 Use char because int might match the return type of a GCC
29933 builtin and then its argument prototype would still apply. */
29937 char cap_set_proc ();
29941 return cap_set_proc ();
29946 if ac_fn_c_try_link "$LINENO"; then :
29947 ac_cv_lib_cap_cap_set_proc=yes
29949 ac_cv_lib_cap_cap_set_proc=no
29951 rm -f core conftest.err conftest.$ac_objext \
29952 conftest$ac_exeext conftest.$ac_ext
29953 LIBS=$ac_check_lib_save_LIBS
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29956 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29957 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29963 if test x$CAP_LIBS = x-lcap; then
29965 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29971 $as_echo "#define FDLIBS 1" >>confdefs.h
29974 CFLAGS=${CFLAGS--O}
29976 if test x$have_gcc = xyes ; then
29977 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29978 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29980 LDFLAGS=${LDFLAGS--O}
29981 CPPFLAGS="$CPPFLAGS"
30007 PFILES="platforms/Makefile"
30011 COMPRESS_MANPAGES=yes
30013 hostname=`uname -n | cut -d '.' -f 1`
30014 if test x${hostname} = x ; then
30015 hostname="localhost"
30017 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30018 if test ! $? = 0; then
30019 hostname="localhost"
30022 case "$DISTNAME" in
30025 PSCMD="ps -e -o pid,comm"
30026 PFILES="${PFILES} \
30027 platforms/aix/Makefile"
30028 TAPEDRIVE="/dev/rmt0.1"
30032 PTHREAD_LIB="-lpthread -lexc"
30033 if test "${CC}" = "gcc" ; then
30040 TAPEDRIVE="/dev/nrmt0"
30043 DISTVER=`uname -a |awk '{print $3}'`
30044 TAPEDRIVE="/dev/nrmt0"
30045 PTHREAD_LIB="-pthread"
30046 CFLAGS="${CFLAGS} -pthread"
30047 PSCMD="ps -ax -o pid,command"
30050 PFILES="${PFILES} \
30051 platforms/bsdi/Makefile \
30052 platforms/bsdi/bacula-fd \
30053 platforms/bsdi/bacula-sd \
30054 platforms/bsdi/bacula-dir"
30055 largefile_support="yes"
30058 DISTVER=`uname -a |awk '{print $3}'`
30059 TAPEDRIVE="/dev/nrst0"
30061 WCFLAGS="-mwindows"
30062 WLDFLAGS="-mwindows"
30066 TAPEDRIVE="/dev/nst0"
30067 PSCMD="ps -e -o pid,command"
30069 PFILES="${PFILES} \
30070 platforms/darwin/Makefile"
30074 TAPEDRIVE="/dev/nst0"
30075 PSCMD="ps -e -o pid,command"
30077 PFILES="${PFILES} \
30078 platforms/osx/Makefile"
30081 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30084 DISTVER=`cat /etc/debian_version`
30085 if test -f /etc/lsb-release ; then
30087 if test "x$DISTRIB_ID" != "x" ; then
30088 DISTNAME=$DISTRIB_ID
30090 if test "x$DISTRIB_RELEASE" != "x" ; then
30091 DISTVER=$DISTRIB_RELEASE
30094 if test "$DISTNAME" = "Ubuntu" ; then
30097 TAPEDRIVE="/dev/nst0"
30098 PSCMD="ps -e -o pid,command"
30099 if test "$DISTNAME" = "ubuntu" ; then
30100 PFILES="${PFILES} \
30101 platforms/ubuntu/Makefile \
30102 platforms/ubuntu/bacula-fd \
30103 platforms/ubuntu/bacula-sd \
30104 platforms/ubuntu/bacula-dir"
30106 PFILES="${PFILES} \
30107 platforms/debian/Makefile \
30108 platforms/debian/bacula-fd \
30109 platforms/debian/bacula-sd \
30110 platforms/debian/bacula-dir"
30114 DISTVER=`uname -a |awk '{print $3}'`
30115 VER=`echo $DISTVER | cut -c 1`
30116 if test x$VER = x4 ; then
30117 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30118 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30122 TAPEDRIVE="/dev/nrsa0"
30123 PSCMD="ps -ax -o pid,command"
30124 PFILES="${PFILES} \
30125 platforms/freebsd/Makefile \
30126 platforms/freebsd/bacula-fd \
30127 platforms/freebsd/bacula-sd \
30128 platforms/freebsd/bacula-dir"
30129 largefile_support="yes"
30132 PSCMD="UNIX95=1; ps -e -o pid,comm"
30133 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30135 TAPEDRIVE="/dev/rmt/0hnb"
30136 PTHREAD_LIB="-lpthread"
30137 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30142 TAPEDRIVE="/dev/rmt/0cbn"
30143 PSCMD="ps -e -o pid,comm"
30144 PFILES="${PFILES} \
30145 platforms/irix/Makefile \
30146 platforms/irix/bacula-fd \
30147 platforms/irix/bacula-sd \
30148 platforms/irix/bacula-dir"
30151 DISTVER=`uname -a |awk '{print $3}'`
30154 TAPEDRIVE="/dev/nrst0"
30155 PSCMD="ps -ax -o pid,command"
30156 PTHREAD_LIB="-pthread"
30157 CFLAGS="${CFLAGS} -pthread"
30160 DISTVER=`uname -a |awk '{print $3}'`
30163 TAPEDRIVE="/dev/nrst0"
30164 PSCMD="ps -ax -o pid,command"
30165 PTHREAD_LIB="-pthread"
30166 CFLAGS="${CFLAGS} -pthread"
30167 PFILES="${PFILES} \
30168 platforms/openbsd/Makefile \
30169 platforms/openbsd/bacula-fd \
30170 platforms/openbsd/bacula-sd \
30171 platforms/openbsd/bacula-dir"
30174 if test -f /etc/whitebox-release ; then
30175 f=/etc/whitebox-release
30177 f=/etc/redhat-release
30179 if test `cat $f | grep release |\
30180 cut -f 3 -d ' '`x = "Enterprise"x ; then
30181 DISTVER="Enterprise "`cat $f | grep release |\
30184 DISTVER=`cat /etc/redhat-release | grep release |\
30187 TAPEDRIVE="/dev/nst0"
30188 PSCMD="ps -e -o pid,command"
30189 PFILES="${PFILES} \
30190 platforms/redhat/Makefile \
30191 platforms/redhat/bacula-fd \
30192 platforms/redhat/bacula-sd \
30193 platforms/redhat/bacula-dir
30197 DISTVER=`cat /etc/mandrake-release | grep release |\
30199 TAPEDRIVE="/dev/nst0"
30200 PSCMD="ps -e -o pid,command"
30201 PFILES="${PFILES} \
30202 platforms/mandrake/Makefile \
30203 platforms/mandrake/bacula-fd \
30204 platforms/mandrake/bacula-sd \
30205 platforms/mandrake/bacula-dir \
30209 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30210 TAPEDRIVE="/dev/nst0"
30211 PSCMD="ps -e -o pid,command"
30212 PFILES="${PFILES} \
30213 platforms/gentoo/Makefile \
30214 platforms/gentoo/bacula-init \
30215 platforms/gentoo/bacula-fd \
30216 platforms/gentoo/bacula-sd \
30217 platforms/gentoo/bacula-dir"
30220 DISTVER=`cat /etc/slackware-version`
30221 TAPEDRIVE="/dev/nst0"
30222 PSCMD="ps -e -o pid,command"
30223 PFILES="${PFILES} \
30224 platforms/slackware/Makefile \
30225 platforms/slackware/rc.bacula-fd \
30226 platforms/slackware/rc.bacula-sd \
30227 platforms/slackware/rc.bacula-dir\
30228 platforms/slackware/functions.bacula"
30232 TAPEDRIVE="/dev/rmt/0cbn"
30233 PSCMD="ps -e -o pid,comm"
30234 PFILES="${PFILES} \
30235 platforms/solaris/Makefile \
30236 platforms/solaris/bacula-fd \
30237 platforms/solaris/bacula-sd \
30238 platforms/solaris/bacula-dir"
30242 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30244 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30248 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30254 LIBS="$LIBS -lresolv -lrt"
30257 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30259 TAPEDRIVE="/dev/nst0"
30260 PSCMD="ps -e -o pid,command"
30261 PFILES="${PFILES} \
30262 platforms/suse/Makefile \
30263 platforms/suse/bacula-fd \
30264 platforms/suse/bacula-sd \
30265 platforms/suse/bacula-dir \
30266 platforms/suse/bacula"
30271 TAPEDRIVE="/dev/nst0"
30272 PSCMD="ps -e -o pid,command"
30273 PFILES="${PFILES} \
30274 platforms/suse/Makefile \
30275 platforms/suse/bacula-fd \
30276 platforms/suse/bacula-sd \
30277 platforms/suse/bacula-dir"
30281 TAPEDRIVE="/dev/nst0"
30284 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30289 $as_echo_n "checking for systemd support... " >&6; }
30291 # Check whether --with-systemd was given.
30292 if test "${with_systemd+set}" = set; then :
30293 withval=$with_systemd;
30294 if test "$withval" != "no"; then
30295 if test "$withval" = "yes"; then
30296 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30298 SYSTEMD_UNITDIR="${withval}"
30301 PFILES="${PFILES} \
30302 platforms/systemd/Makefile \
30303 platforms/systemd/bacula-dir.service \
30304 platforms/systemd/bacula-fd.service \
30305 platforms/systemd/bacula-sd.service"
30307 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30310 $as_echo "yes" >&6; }
30311 support_systemd="yes"
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30314 $as_echo "no" >&6; }
30315 support_systemd="no"
30320 support_systemd="no"
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30322 $as_echo "no" >&6; }
30331 LIBS="$PTHREAD_LIB $LIBS"
30333 cat >>confdefs.h <<_ACEOF
30337 cat >>confdefs.h <<_ACEOF
30349 MCOMMON=./autoconf/Make.common
30352 if test "x${subsysdir}" = "x${sbindir}" ; then
30355 echo "You have set both --sbindir and --with-subsys-dir"
30356 echo " equal to: ${subsysdir} "
30357 echo "This is not permitted. Please reconfigure."
30359 echo "Aborting configuration ..."
30365 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"
30367 ac_config_commands="$ac_config_commands default"
30369 cat >confcache <<\_ACEOF
30370 # This file is a shell script that caches the results of configure
30371 # tests run on this system so they can be shared between configure
30372 # scripts and configure runs, see configure's option --config-cache.
30373 # It is not useful on other systems. If it contains results you don't
30374 # want to keep, you may remove or edit it.
30376 # config.status only pays attention to the cache file if you give it
30377 # the --recheck option to rerun configure.
30379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30381 # following values.
30385 # The following way of writing the cache mishandles newlines in values,
30386 # but we know of no workaround that is simple, portable, and efficient.
30387 # So, we kill variables containing newlines.
30388 # Ultrix sh set writes to stderr and can't be redirected directly,
30389 # and sets the high bit in the cache file unless we assign to the vars.
30391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30392 eval ac_val=\$$ac_var
30396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30400 _ | IFS | as_nl) ;; #(
30401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30402 *) { eval $ac_var=; unset $ac_var;} ;;
30408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30409 *${as_nl}ac_space=\ *)
30410 # `set' does not quote correctly, so add quotes: double-quote
30411 # substitution turns \\\\ into \\, and sed turns \\ into \.
30414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30417 # `set' quotes correctly as required by POSIX, so do not add quotes.
30418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30432 if test -w "$cache_file"; then
30433 if test "x$cache_file" != "x/dev/null"; then
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30435 $as_echo "$as_me: updating cache $cache_file" >&6;}
30436 if test ! -f "$cache_file" || test -h "$cache_file"; then
30437 cat confcache >"$cache_file"
30439 case $cache_file in #(
30441 mv -f confcache "$cache_file"$$ &&
30442 mv -f "$cache_file"$$ "$cache_file" ;; #(
30444 mv -f confcache "$cache_file" ;;
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30450 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30456 # Let make expand exec_prefix.
30457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30459 DEFS=-DHAVE_CONFIG_H
30464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30465 # 1. Remove the extension, and $U if already installed.
30466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30467 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30469 # will be set to the directory where LIBOBJS objects are built.
30470 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30471 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30473 LIBOBJS=$ac_libobjs
30475 LTLIBOBJS=$ac_ltlibobjs
30480 : "${CONFIG_STATUS=./config.status}"
30482 ac_clean_files_save=$ac_clean_files
30483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30489 # Generated by $as_me.
30490 # Run this file to recreate the current configuration.
30491 # Compiler output produced by configure, useful for debugging
30492 # configure, is in config.log if it exists.
30495 ac_cs_recheck=false
30498 SHELL=\${CONFIG_SHELL-$SHELL}
30501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30502 ## -------------------- ##
30503 ## M4sh Initialization. ##
30504 ## -------------------- ##
30506 # Be more Bourne compatible
30507 DUALCASE=1; export DUALCASE # for MKS sh
30508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30512 # is contrary to our usage. Disable this feature.
30513 alias -g '${1+"$@"}'='"$@"'
30514 setopt NO_GLOB_SUBST
30516 case `(set -o) 2>/dev/null` in #(
30528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30532 # Prefer a ksh shell builtin over an external printf program on Solaris,
30533 # but without wasting forks for bash or zsh.
30534 if test -z "$BASH_VERSION$ZSH_VERSION" \
30535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30536 as_echo='print -r --'
30537 as_echo_n='print -rn --'
30538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30539 as_echo='printf %s\n'
30540 as_echo_n='printf %s'
30542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30544 as_echo_n='/usr/ucb/echo -n'
30546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30547 as_echo_n_body='eval
30551 expr "X$arg" : "X\\(.*\\)$as_nl";
30552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30556 export as_echo_n_body
30557 as_echo_n='sh -c $as_echo_n_body as_echo'
30559 export as_echo_body
30560 as_echo='sh -c $as_echo_body as_echo'
30563 # The user is always right.
30564 if test "${PATH_SEPARATOR+set}" != set; then
30566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30574 # We need space, tab and new line, in precisely that order. Quoting is
30575 # there to prevent editors from complaining about space-tab.
30576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30577 # splitting by setting IFS to empty value.)
30580 # Find who we are. Look in the path if we contain no directory separator.
30583 *[\\/]* ) as_myself=$0 ;;
30584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30585 for as_dir in $PATH
30588 test -z "$as_dir" && as_dir=.
30589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30595 # We did not find ourselves, most probably we were run as `sh COMMAND'
30596 # in which case we are not to be found in the path.
30597 if test "x$as_myself" = x; then
30600 if test ! -f "$as_myself"; then
30601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30605 # Unset variables that we do not need and which cause bugs (e.g. in
30606 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30607 # suppresses any "Segmentation fault" message there. '((' could
30608 # trigger a bug in pdksh 5.2.14.
30609 for as_var in BASH_ENV ENV MAIL MAILPATH
30610 do eval test x\${$as_var+set} = xset \
30611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30627 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30628 # ----------------------------------------
30629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30631 # script with STATUS, using 1 if that was 0.
30634 as_status=$1; test $as_status -eq 0 && as_status=1
30636 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30639 $as_echo "$as_me: error: $2" >&2
30640 as_fn_exit $as_status
30644 # as_fn_set_status STATUS
30645 # -----------------------
30646 # Set $? to STATUS, without forking.
30647 as_fn_set_status ()
30650 } # as_fn_set_status
30652 # as_fn_exit STATUS
30653 # -----------------
30654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30658 as_fn_set_status $1
30664 # Portably unset VAR.
30667 { eval $1=; unset $1;}
30669 as_unset=as_fn_unset
30670 # as_fn_append VAR VALUE
30671 # ----------------------
30672 # Append the text in VALUE to the end of the definition contained in VAR. Take
30673 # advantage of any shell optimizations that allow amortized linear growth over
30674 # repeated appends, instead of the typical quadratic growth present in naive
30676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30677 eval 'as_fn_append ()
30688 # as_fn_arith ARG...
30689 # ------------------
30690 # Perform arithmetic evaluation on the ARGs, and store the result in the
30691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30692 # must be portable across $(()) and expr.
30693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30694 eval 'as_fn_arith ()
30701 as_val=`expr "$@" || test $? -eq 1`
30706 if expr a : '\(a\)' >/dev/null 2>&1 &&
30707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30714 as_basename=basename
30719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30725 as_me=`$as_basename -- "$0" ||
30726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30727 X"$0" : 'X\(//\)$' \| \
30728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30730 sed '/^.*\/\([^/][^/]*\)\/*$/{
30744 # Avoid depending upon Character Ranges.
30745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30748 as_cr_digits='0123456789'
30749 as_cr_alnum=$as_cr_Letters$as_cr_digits
30751 ECHO_C= ECHO_N= ECHO_T=
30752 case `echo -n x` in #(((((
30754 case `echo 'xy\c'` in
30755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30764 rm -f conf$$ conf$$.exe conf$$.file
30765 if test -d conf$$.dir; then
30766 rm -f conf$$.dir/conf$$.file
30769 mkdir conf$$.dir 2>/dev/null
30771 if (echo >conf$$.file) 2>/dev/null; then
30772 if ln -s conf$$.file conf$$ 2>/dev/null; then
30774 # ... but there are two gotchas:
30775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30777 # In both cases, we have to default to `cp -p'.
30778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30780 elif ln conf$$.file conf$$ 2>/dev/null; then
30788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30789 rmdir conf$$.dir 2>/dev/null
30794 # Create "$as_dir" as a directory, including parents if necessary.
30799 -*) as_dir=./$as_dir;;
30801 test -d "$as_dir" || eval $as_mkdir_p || {
30805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30806 *) as_qdir=$as_dir;;
30808 as_dirs="'$as_qdir' $as_dirs"
30809 as_dir=`$as_dirname -- "$as_dir" ||
30810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30811 X"$as_dir" : 'X\(//\)[^/]' \| \
30812 X"$as_dir" : 'X\(//\)$' \| \
30813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30814 $as_echo X"$as_dir" |
30815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30819 /^X\(\/\/\)[^/].*/{
30832 test -d "$as_dir" && break
30834 test -z "$as_dirs" || eval "mkdir $as_dirs"
30835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30839 if mkdir -p . 2>/dev/null; then
30840 as_mkdir_p='mkdir -p "$as_dir"'
30842 test -d ./-p && rmdir ./-p
30846 if test -x / >/dev/null 2>&1; then
30847 as_test_x='test -x'
30849 if ls -dL / >/dev/null 2>&1; then
30856 if test -d "$1"; then
30862 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30863 ???[sx]*):;;*)false;;esac;fi
30867 as_executable_p=$as_test_x
30869 # Sed expression to map a string onto a valid CPP name.
30870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30872 # Sed expression to map a string onto a valid variable name.
30873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30877 ## ----------------------------------- ##
30878 ## Main body of $CONFIG_STATUS script. ##
30879 ## ----------------------------------- ##
30881 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30884 # Save the log message, to keep $0 and so on meaningful, and to
30885 # report actual input values of CONFIG_FILES etc. instead of their
30886 # values after options handling.
30888 This file was extended by bacula $as_me 5.2.4, which was
30889 generated by GNU Autoconf 2.68. Invocation command line was
30891 CONFIG_FILES = $CONFIG_FILES
30892 CONFIG_HEADERS = $CONFIG_HEADERS
30893 CONFIG_LINKS = $CONFIG_LINKS
30894 CONFIG_COMMANDS = $CONFIG_COMMANDS
30897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30902 case $ac_config_files in *"
30903 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30906 case $ac_config_headers in *"
30907 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30912 # Files that config.status was made for.
30913 config_files="$ac_config_files"
30914 config_headers="$ac_config_headers"
30915 config_commands="$ac_config_commands"
30919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30921 \`$as_me' instantiates files and other configuration actions
30922 from templates according to the current configuration. Unless the files
30923 and actions are specified as TAGs, all are instantiated by default.
30925 Usage: $0 [OPTION]... [TAG]...
30927 -h, --help print this help, then exit
30928 -V, --version print version number and configuration settings, then exit
30929 --config print configuration, then exit
30930 -q, --quiet, --silent
30931 do not print progress messages
30932 -d, --debug don't remove temporary files
30933 --recheck update $as_me by reconfiguring in the same conditions
30934 --file=FILE[:TEMPLATE]
30935 instantiate the configuration file FILE
30936 --header=FILE[:TEMPLATE]
30937 instantiate the configuration header FILE
30939 Configuration files:
30942 Configuration headers:
30945 Configuration commands:
30948 Report bugs to the package provider."
30951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30952 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30954 bacula config.status 5.2.4
30955 configured by $0, generated by GNU Autoconf 2.68,
30956 with options \\"\$ac_cs_config\\"
30958 Copyright (C) 2010 Free Software Foundation, Inc.
30959 This config.status script is free software; the Free Software Foundation
30960 gives unlimited permission to copy, distribute and modify it."
30966 test -n "\$AWK" || AWK=awk
30969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30970 # The default lists apply if the user does not specify any file.
30976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30993 # Handling of the options.
30994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30996 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30997 $as_echo "$ac_cs_version"; exit ;;
30998 --config | --confi | --conf | --con | --co | --c )
30999 $as_echo "$ac_cs_config"; exit ;;
31000 --debug | --debu | --deb | --de | --d | -d )
31002 --file | --fil | --fi | --f )
31005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31006 '') as_fn_error $? "missing file argument" ;;
31008 as_fn_append CONFIG_FILES " '$ac_optarg'"
31009 ac_need_defaults=false;;
31010 --header | --heade | --head | --hea )
31013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31016 ac_need_defaults=false;;
31018 # Conflict between --help and --header
31019 as_fn_error $? "ambiguous option: \`$1'
31020 Try \`$0 --help' for more information.";;
31021 --help | --hel | -h )
31022 $as_echo "$ac_cs_usage"; exit ;;
31023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31027 # This is an error.
31028 -*) as_fn_error $? "unrecognized option: \`$1'
31029 Try \`$0 --help' for more information." ;;
31031 *) as_fn_append ac_config_targets " $1"
31032 ac_need_defaults=false ;;
31038 ac_configure_extra_args=
31040 if $ac_cs_silent; then
31042 ac_configure_extra_args="$ac_configure_extra_args --silent"
31046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31047 if \$ac_cs_recheck; then
31048 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31051 CONFIG_SHELL='$SHELL'
31052 export CONFIG_SHELL
31057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31062 ## Running $as_me. ##
31068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31074 # The HP-UX ksh and POSIX shell print the target directory to stdout
31075 # if CDPATH is set.
31076 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31078 sed_quote_subst='$sed_quote_subst'
31079 double_quote_subst='$double_quote_subst'
31080 delay_variable_subst='$delay_variable_subst'
31081 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31082 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31083 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31084 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31085 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31086 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31087 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31088 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31089 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31090 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31091 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31092 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31093 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31094 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31095 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31096 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31097 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31098 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31099 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31100 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31101 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31102 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31103 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31104 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31105 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31106 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31107 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31108 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31109 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31110 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31111 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31112 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31113 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31114 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31115 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31116 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31117 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31118 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31119 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31120 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31121 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31122 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31123 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31124 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31125 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31126 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31127 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31128 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31129 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31130 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31131 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31132 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31133 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31134 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31135 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31136 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"`'
31137 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31138 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31139 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31140 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31141 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31142 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31143 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31144 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31145 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31146 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31147 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31148 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31149 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31150 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31151 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31152 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31153 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31154 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31155 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31156 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31157 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31158 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31159 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31160 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31161 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31162 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31163 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31164 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31165 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31166 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31167 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31168 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31169 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31170 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31171 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31172 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31173 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31174 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31175 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31176 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31177 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31178 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31179 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31180 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31181 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31182 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31183 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31184 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31185 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31186 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31187 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31188 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31189 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31190 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31191 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31192 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31193 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31194 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31195 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31196 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31197 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31198 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31199 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31200 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31201 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31202 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31203 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31204 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31205 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31206 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31207 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31208 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31209 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31210 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31211 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31212 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31213 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31214 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31215 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31216 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31217 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31218 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31219 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31220 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31221 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31222 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31223 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31224 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31225 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31226 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31227 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31228 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31229 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31230 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31231 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31232 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31233 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31234 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31235 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31236 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31237 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31238 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31239 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31240 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31241 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31242 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31243 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31244 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31245 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31246 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31247 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31248 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31249 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31250 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31251 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31252 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31253 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31254 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31255 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31256 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31257 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31258 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31259 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31260 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31261 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31262 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31263 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31264 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31265 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31268 LTCFLAGS='$LTCFLAGS'
31269 compiler='$compiler_DEFAULT'
31271 # A function that is used when there is no print builtin or printf.
31272 func_fallback_echo ()
31274 eval 'cat <<_LTECHO_EOF
31279 # Quote evaled strings.
31293 deplibs_check_method \
31298 sharedlib_from_linklib_cmd \
31301 archiver_list_spec \
31307 lt_cv_sys_global_symbol_pipe \
31308 lt_cv_sys_global_symbol_to_cdecl \
31309 lt_cv_sys_global_symbol_to_c_name_address \
31310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31311 nm_file_list_spec \
31312 lt_prog_compiler_no_builtin_flag \
31313 lt_prog_compiler_pic \
31314 lt_prog_compiler_wl \
31315 lt_prog_compiler_static \
31316 lt_cv_prog_compiler_c_o \
31325 export_dynamic_flag_spec \
31326 whole_archive_flag_spec \
31327 compiler_needs_object \
31329 allow_undefined_flag \
31330 no_undefined_flag \
31331 hardcode_libdir_flag_spec \
31332 hardcode_libdir_flag_spec_ld \
31333 hardcode_libdir_separator \
31337 variables_saved_for_relink \
31339 library_names_spec \
31341 install_override_mode \
31345 compiler_lib_search_dirs \
31350 compiler_lib_search_path \
31354 lt_prog_compiler_no_builtin_flag_CXX \
31355 lt_prog_compiler_pic_CXX \
31356 lt_prog_compiler_wl_CXX \
31357 lt_prog_compiler_static_CXX \
31358 lt_cv_prog_compiler_c_o_CXX \
31359 export_dynamic_flag_spec_CXX \
31360 whole_archive_flag_spec_CXX \
31361 compiler_needs_object_CXX \
31363 allow_undefined_flag_CXX \
31364 no_undefined_flag_CXX \
31365 hardcode_libdir_flag_spec_CXX \
31366 hardcode_libdir_flag_spec_ld_CXX \
31367 hardcode_libdir_separator_CXX \
31368 exclude_expsyms_CXX \
31369 include_expsyms_CXX \
31370 file_list_spec_CXX \
31371 compiler_lib_search_dirs_CXX \
31372 predep_objects_CXX \
31373 postdep_objects_CXX \
31376 compiler_lib_search_path_CXX; do
31377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31378 *[\\\\\\\`\\"\\\$]*)
31379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31387 # Double-quote double-evaled strings.
31388 for var in reload_cmds \
31389 old_postinstall_cmds \
31390 old_postuninstall_cmds \
31392 extract_expsyms_cmds \
31393 old_archive_from_new_cmds \
31394 old_archive_from_expsyms_cmds \
31396 archive_expsym_cmds \
31398 module_expsym_cmds \
31399 export_symbols_cmds \
31403 postuninstall_cmds \
31405 sys_lib_search_path_spec \
31406 sys_lib_dlsearch_path_spec \
31408 old_archive_cmds_CXX \
31409 old_archive_from_new_cmds_CXX \
31410 old_archive_from_expsyms_cmds_CXX \
31412 archive_expsym_cmds_CXX \
31414 module_expsym_cmds_CXX \
31415 export_symbols_cmds_CXX \
31417 postlink_cmds_CXX; do
31418 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31419 *[\\\\\\\`\\"\\\$]*)
31420 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31423 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31428 ac_aux_dir='$ac_aux_dir'
31429 xsi_shell='$xsi_shell'
31430 lt_shell_append='$lt_shell_append'
31432 # See if we are running on zsh, and set the options which allow our
31433 # commands through without removal of \ escapes INIT.
31434 if test -n "\${ZSH_VERSION+set}" ; then
31435 setopt NO_GLOB_SUBST
31441 TIMESTAMP='$TIMESTAMP'
31449 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31450 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31452 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31453 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31454 LINGUAS="${LINGUAS-%UNSET%}"
31459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31461 # Handling of arguments.
31462 for ac_config_target in $ac_config_targets
31464 case $ac_config_target in
31465 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31466 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31467 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31468 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31470 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31471 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31472 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31473 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31474 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31475 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31476 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31477 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31478 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31479 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31480 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31481 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31482 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31483 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31484 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31485 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31486 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31487 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31488 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31489 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31490 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31491 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31492 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31493 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31494 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31495 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31496 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31497 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31498 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31499 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31500 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31501 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31502 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31503 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31504 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31505 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31506 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31507 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31508 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31509 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31510 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31511 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31512 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31513 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31514 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31515 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31516 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31517 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31518 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31519 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31520 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31521 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31522 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31523 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31524 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31525 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31526 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31527 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31528 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31529 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31530 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31531 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31532 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31533 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31534 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31535 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31536 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31537 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31538 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31539 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31540 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31541 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31542 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31543 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31544 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31545 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31546 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31547 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31548 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31549 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31550 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31551 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31552 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31553 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31554 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31555 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31556 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31557 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31558 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31559 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31560 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31561 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31562 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31563 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31564 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31565 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31566 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31567 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31568 "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31569 "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31570 "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31571 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31572 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31573 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31574 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31575 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31576 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31577 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31579 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31584 # If the user did not use the arguments to specify the items to instantiate,
31585 # then the envvar interface is used. Set only those that are not.
31586 # We use the long form for the default assignment because of an extremely
31587 # bizarre bug on SunOS 4.1.3.
31588 if $ac_need_defaults; then
31589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31591 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31594 # Have a temporary directory for convenience. Make it in the build tree
31595 # simply because there is no reason against having it here, and in addition,
31596 # creating and moving files from /tmp can sometimes cause problems.
31597 # Hook for its removal unless debugging.
31598 # Note that there is a small window in which the directory will not be cleaned:
31599 # after its creation but before its name has been assigned to `$tmp'.
31603 trap 'exit_status=$?
31604 : "${ac_tmp:=$tmp}"
31605 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31607 trap 'as_fn_exit 1' 1 2 13 15
31609 # Create a (secure) tmp directory for tmp files.
31612 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31616 tmp=./conf$$-$RANDOM
31617 (umask 077 && mkdir "$tmp")
31618 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31621 # Set up the scripts for CONFIG_FILES section.
31622 # No need to generate them if there are no CONFIG_FILES.
31623 # This happens for instance with `./config.status config.h'.
31624 if test -n "$CONFIG_FILES"; then
31626 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31627 ac_cs_awk_getline=:
31628 ac_cs_awk_pipe_init=
31629 ac_cs_awk_read_file='
31630 while ((getline aline < (F[key])) > 0)
31633 ac_cs_awk_pipe_fini=
31635 ac_cs_awk_getline=false
31636 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31637 ac_cs_awk_read_file='
31639 print "cat " F[key] " &&"
31640 '$ac_cs_awk_pipe_init
31641 # The final `:' finishes the AND list.
31642 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31644 ac_cr=`echo X | tr X '\015'`
31645 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31646 # But we know of no other shell where ac_cr would be empty at this
31647 # point, so we can use a bashism as a fallback.
31648 if test "x$ac_cr" = x; then
31649 eval ac_cr=\$\'\\r\'
31651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31655 ac_cs_awk_cr=$ac_cr
31658 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31661 # Create commands to substitute file output variables.
31663 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31664 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31665 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31668 } >conf$$files.sh &&
31669 . ./conf$$files.sh ||
31670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31671 rm -f conf$$files.sh
31674 echo "cat >conf$$subs.awk <<_ACEOF" &&
31675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31677 } >conf$$subs.sh ||
31678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31681 for ac_last_try in false false false false false :; do
31682 . ./conf$$subs.sh ||
31683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31685 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31686 if test $ac_delim_n = $ac_delim_num; then
31688 elif $ac_last_try; then
31689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31694 rm -f conf$$subs.sh
31696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31697 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31701 s/^/S["/; s/!.*/"]=/
31711 s/\(.\{148\}\)..*/\1/
31713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31725 s/\(.\{148\}\)..*/\1/
31727 s/["\\]/\\&/g; s/^/"/; s/$/"/
31731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31736 ' <conf$$subs.awk | sed '
31741 ' >>$CONFIG_STATUS || ac_write_fail=1
31742 rm -f conf$$subs.awk
31743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31745 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31746 for (key in S) S_is_set[key] = 1
31748 \$ac_cs_awk_pipe_init
31752 nfields = split(line, field, "@")
31754 len = length(field[1])
31755 for (i = 2; i < nfields; i++) {
31757 keylen = length(key)
31758 if (S_is_set[key]) {
31760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31761 len += length(value) + length(field[++i])
31766 if (nfields == 3 && !substed) {
31768 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31769 \$ac_cs_awk_read_file
31775 \$ac_cs_awk_pipe_fini
31778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31779 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31780 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31783 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31784 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31787 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31788 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31789 # trailing colons and then remove the whole line if VPATH becomes empty
31790 # (actually we leave an empty line to preserve line numbers).
31791 if test "x$srcdir" = x.; then
31792 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31811 fi # test -n "$CONFIG_FILES"
31813 # Set up the scripts for CONFIG_HEADERS section.
31814 # No need to generate them if there are no CONFIG_HEADERS.
31815 # This happens for instance with `./config.status Makefile'.
31816 if test -n "$CONFIG_HEADERS"; then
31817 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31821 # Transform confdefs.h into an awk script `defines.awk', embedded as
31822 # here-document in config.status, that substitutes the proper values into
31823 # config.h.in to produce config.h.
31825 # Create a delimiter string that does not exist in confdefs.h, to ease
31826 # handling of long lines.
31828 for ac_last_try in false false :; do
31829 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31830 if test -z "$ac_tt"; then
31832 elif $ac_last_try; then
31833 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31839 # For the awk script, D is an array of macro values keyed by name,
31840 # likewise P contains macro parameters if any. Preserve backslash
31841 # newline sequences.
31843 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31845 s/.\{148\}/&'"$ac_delim"'/g
31848 s/^[ ]*#[ ]*define[ ][ ]*/ /
31855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31857 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31861 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31862 D["\1"]=" \3\\\\\\n"\\/p
31864 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31869 s/.\{148\}/&'"$ac_delim"'/g
31874 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31877 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31879 ' <confdefs.h | sed '
31880 s/'"$ac_delim"'/"\\\
31881 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31884 for (key in D) D_is_set[key] = 1
31887 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31889 split(line, arg, " ")
31890 if (arg[1] == "#") {
31894 defundef = substr(arg[1], 2)
31897 split(mac1, mac2, "(") #)
31899 prefix = substr(line, 1, index(line, defundef) - 1)
31900 if (D_is_set[macro]) {
31901 # Preserve the white space surrounding the "#".
31902 print prefix "define", macro P[macro] D[macro]
31905 # Replace #undef with comments. This is necessary, for example,
31906 # in the case of _POSIX_SOURCE, which is predefined and required
31907 # on some systems where configure will not decide to define it.
31908 if (defundef == "undef") {
31909 print "/*", prefix defundef, macro, "*/"
31917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31918 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31919 fi # test -n "$CONFIG_HEADERS"
31922 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31927 :[FHLC]) ac_mode=$ac_tag; continue;;
31929 case $ac_mode$ac_tag in
31931 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31932 :[FH]-) ac_tag=-:-;;
31933 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31950 -) ac_f="$ac_tmp/stdin";;
31951 *) # Look for the file first in the build tree, then in the source tree
31952 # (if the path is not absolute). The absolute path cannot be DOS-style,
31953 # because $ac_f cannot contain `:'.
31957 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31959 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31961 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31962 as_fn_append ac_file_inputs " '$ac_f'"
31965 # Let's still pretend it is `configure' which instantiates (i.e., don't
31966 # use $as_me), people would be surprised to read:
31967 # /* config.h. Generated by config.status. */
31968 configure_input='Generated from '`
31969 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31971 if test x"$ac_file" != x-; then
31972 configure_input="$ac_file. $configure_input"
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31974 $as_echo "$as_me: creating $ac_file" >&6;}
31976 # Neutralize special characters interpreted by sed in replacement strings.
31977 case $configure_input in #(
31978 *\&* | *\|* | *\\* )
31979 ac_sed_conf_input=`$as_echo "$configure_input" |
31980 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31981 *) ac_sed_conf_input=$configure_input;;
31985 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31991 ac_dir=`$as_dirname -- "$ac_file" ||
31992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31993 X"$ac_file" : 'X\(//\)[^/]' \| \
31994 X"$ac_file" : 'X\(//\)$' \| \
31995 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31996 $as_echo X"$ac_file" |
31997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32001 /^X\(\/\/\)[^/].*/{
32014 as_dir="$ac_dir"; as_fn_mkdir_p
32018 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32020 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32021 # A ".." for each directory in $ac_dir_suffix.
32022 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32023 case $ac_top_builddir_sub in
32024 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32025 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32028 ac_abs_top_builddir=$ac_pwd
32029 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32030 # for backward compatibility:
32031 ac_top_builddir=$ac_top_build_prefix
32034 .) # We are building in place.
32036 ac_top_srcdir=$ac_top_builddir_sub
32037 ac_abs_top_srcdir=$ac_pwd ;;
32038 [\\/]* | ?:[\\/]* ) # Absolute name.
32039 ac_srcdir=$srcdir$ac_dir_suffix;
32040 ac_top_srcdir=$srcdir
32041 ac_abs_top_srcdir=$srcdir ;;
32042 *) # Relative name.
32043 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32044 ac_top_srcdir=$ac_top_build_prefix$srcdir
32045 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32047 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32058 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32063 # If the template does not know about datarootdir, expand it.
32064 # FIXME: This hack should be removed a few years after 2.60.
32065 ac_datarootdir_hack=; ac_datarootdir_seen=
32076 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32077 *datarootdir*) ac_datarootdir_seen=yes;;
32078 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32080 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32083 ac_datarootdir_hack='
32084 s&@datadir@&$datadir&g
32085 s&@docdir@&$docdir&g
32086 s&@infodir@&$infodir&g
32087 s&@localedir@&$localedir&g
32088 s&@mandir@&$mandir&g
32089 s&\\\${datarootdir}&$datarootdir&g' ;;
32093 # Neutralize VPATH when `$srcdir' = `.'.
32094 # Shell code in configure.ac might set extrasub.
32095 # FIXME: do we really want to maintain this feature?
32096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32097 ac_sed_extra="$ac_vpsub
32100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32103 s|@configure_input@|$ac_sed_conf_input|;t t
32104 s&@top_builddir@&$ac_top_builddir_sub&;t t
32105 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32106 s&@srcdir@&$ac_srcdir&;t t
32107 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32108 s&@top_srcdir@&$ac_top_srcdir&;t t
32109 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32110 s&@builddir@&$ac_builddir&;t t
32111 s&@abs_builddir@&$ac_abs_builddir&;t t
32112 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32113 s&@INSTALL@&$ac_INSTALL&;t t
32114 $ac_datarootdir_hack
32116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32117 if $ac_cs_awk_getline; then
32118 $AWK -f "$ac_tmp/subs.awk"
32120 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32127 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32129 which seems to be undefined. Please make sure it is defined" >&5
32130 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32131 which seems to be undefined. Please make sure it is defined" >&2;}
32133 rm -f "$ac_tmp/stdin"
32135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32144 if test x"$ac_file" != x-; then
32146 $as_echo "/* $configure_input */" \
32147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32148 } >"$ac_tmp/config.h" \
32149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32152 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32155 mv "$ac_tmp/config.h" "$ac_file" \
32156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32159 $as_echo "/* $configure_input */" \
32160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32161 || as_fn_error $? "could not create -" "$LINENO" 5
32165 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32166 $as_echo "$as_me: executing $ac_file commands" >&6;}
32171 case $ac_file$ac_mode in
32174 # See if we are running on zsh, and set the options which allow our
32175 # commands through without removal of \ escapes.
32176 if test -n "${ZSH_VERSION+set}" ; then
32177 setopt NO_GLOB_SUBST
32180 cfgfile="${ofile}T"
32181 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32184 cat <<_LT_EOF >> "$cfgfile"
32187 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32188 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32192 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32193 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32195 # Written by Gordon Matzigkeit, 1996
32197 # This file is part of GNU Libtool.
32199 # GNU Libtool is free software; you can redistribute it and/or
32200 # modify it under the terms of the GNU General Public License as
32201 # published by the Free Software Foundation; either version 2 of
32202 # the License, or (at your option) any later version.
32204 # As a special exception to the GNU General Public License,
32205 # if you distribute this file as part of a program or library that
32206 # is built using GNU Libtool, you may include this file under the
32207 # same distribution terms that you use for the rest of that program.
32209 # GNU Libtool is distributed in the hope that it will be useful,
32210 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32212 # GNU General Public License for more details.
32214 # You should have received a copy of the GNU General Public License
32215 # along with GNU Libtool; see the file COPYING. If not, a copy
32216 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32217 # obtained by writing to the Free Software Foundation, Inc.,
32218 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32221 # The names of the tagged configurations supported by this script.
32222 available_tags="CXX "
32224 # ### BEGIN LIBTOOL CONFIG
32226 # Which release of libtool.m4 was used?
32227 macro_version=$macro_version
32228 macro_revision=$macro_revision
32230 # Whether or not to build shared libraries.
32231 build_libtool_libs=$enable_shared
32233 # Whether or not to build static libraries.
32234 build_old_libs=$enable_static
32236 # What type of objects to build.
32239 # Whether or not to optimize for fast installation.
32240 fast_install=$enable_fast_install
32242 # Shell to use when invoking shell scripts.
32245 # An echo program that protects backslashes.
32249 host_alias=$host_alias
32253 # The build system.
32254 build_alias=$build_alias
32258 # A sed program that does not truncate output.
32261 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32262 Xsed="\$SED -e 1s/^X//"
32264 # A grep program that handles long lines.
32270 # A literal string matcher.
32273 # A BSD- or MS-compatible name lister.
32276 # Whether we need soft or hard links.
32279 # What is the maximum length of a command?
32280 max_cmd_len=$max_cmd_len
32282 # Object file suffix (normally "o").
32285 # Executable file suffix (normally "").
32288 # whether the shell understands "unset".
32291 # turn spaces into newlines.
32294 # turn newlines into spaces.
32297 # convert \$build file names to \$host format.
32298 to_host_file_cmd=$lt_cv_to_host_file_cmd
32300 # convert \$build files to toolchain format.
32301 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32303 # An object symbol dumper.
32304 OBJDUMP=$lt_OBJDUMP
32306 # Method to check whether dependent libraries are shared objects.
32307 deplibs_check_method=$lt_deplibs_check_method
32309 # Command to use when deplibs_check_method = "file_magic".
32310 file_magic_cmd=$lt_file_magic_cmd
32312 # How to find potential files when deplibs_check_method = "file_magic".
32313 file_magic_glob=$lt_file_magic_glob
32315 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32316 want_nocaseglob=$lt_want_nocaseglob
32318 # DLL creation program.
32319 DLLTOOL=$lt_DLLTOOL
32321 # Command to associate shared and link libraries.
32322 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32327 # Flags to create an archive.
32328 AR_FLAGS=$lt_AR_FLAGS
32330 # How to feed a file listing to the archiver.
32331 archiver_list_spec=$lt_archiver_list_spec
32333 # A symbol stripping program.
32336 # Commands used to install an old-style archive.
32338 old_postinstall_cmds=$lt_old_postinstall_cmds
32339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32341 # Whether to use a lock for old archive extraction.
32342 lock_old_archive_extraction=$lock_old_archive_extraction
32347 # LTCC compiler flags.
32348 LTCFLAGS=$lt_CFLAGS
32350 # Take the output of nm and produce a listing of raw symbols and C names.
32351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32353 # Transform the output of nm in a proper C declaration.
32354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32356 # Transform the output of nm in a C name address pair.
32357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32359 # Transform the output of nm in a C name address pair when lib prefix is needed.
32360 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32362 # Specify filename containing input files for \$NM.
32363 nm_file_list_spec=$lt_nm_file_list_spec
32365 # The root where to search for dependent libraries,and in which our libraries should be installed.
32366 lt_sysroot=$lt_sysroot
32368 # The name of the directory that contains temporary libtool files.
32371 # Used to examine libraries when file_magic_cmd begins with "file".
32372 MAGIC_CMD=$MAGIC_CMD
32374 # Must we lock files when doing compilation?
32375 need_locks=$lt_need_locks
32378 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32380 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32381 DSYMUTIL=$lt_DSYMUTIL
32383 # Tool to change global to local symbols on Mac OS X.
32386 # Tool to manipulate fat objects and archives on Mac OS X.
32389 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32392 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32393 OTOOL64=$lt_OTOOL64
32395 # Old archive suffix (normally "a").
32398 # Shared library suffix (normally ".so").
32399 shrext_cmds=$lt_shrext_cmds
32401 # The commands to extract the exported symbol list from a shared archive.
32402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32404 # Variables whose values should be saved in libtool wrapper scripts and
32405 # restored at link time.
32406 variables_saved_for_relink=$lt_variables_saved_for_relink
32408 # Do we need the "lib" prefix for modules?
32409 need_lib_prefix=$need_lib_prefix
32411 # Do we need a version for libraries?
32412 need_version=$need_version
32414 # Library versioning type.
32415 version_type=$version_type
32417 # Shared library runtime path variable.
32418 runpath_var=$runpath_var
32420 # Shared library path variable.
32421 shlibpath_var=$shlibpath_var
32423 # Is shlibpath searched before the hard-coded library search path?
32424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32426 # Format of library name prefix.
32427 libname_spec=$lt_libname_spec
32429 # List of archive names. First name is the real one, the rest are links.
32430 # The last name is the one that the linker finds with -lNAME
32431 library_names_spec=$lt_library_names_spec
32433 # The coded name of the library, if different from the real name.
32434 soname_spec=$lt_soname_spec
32436 # Permission mode override for installation of shared libraries.
32437 install_override_mode=$lt_install_override_mode
32439 # Command to use after installation of a shared archive.
32440 postinstall_cmds=$lt_postinstall_cmds
32442 # Command to use after uninstallation of a shared archive.
32443 postuninstall_cmds=$lt_postuninstall_cmds
32445 # Commands used to finish a libtool library installation in a directory.
32446 finish_cmds=$lt_finish_cmds
32448 # As "finish_cmds", except a single script fragment to be evaled but
32450 finish_eval=$lt_finish_eval
32452 # Whether we should hardcode library paths into libraries.
32453 hardcode_into_libs=$hardcode_into_libs
32455 # Compile-time system search path for libraries.
32456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32458 # Run-time system search path for libraries.
32459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32461 # Whether dlopen is supported.
32462 dlopen_support=$enable_dlopen
32464 # Whether dlopen of programs is supported.
32465 dlopen_self=$enable_dlopen_self
32467 # Whether dlopen of statically linked programs is supported.
32468 dlopen_self_static=$enable_dlopen_self_static
32470 # Commands to strip libraries.
32471 old_striplib=$lt_old_striplib
32472 striplib=$lt_striplib
32475 # The linker used to build libraries.
32478 # How to create reloadable object files.
32479 reload_flag=$lt_reload_flag
32480 reload_cmds=$lt_reload_cmds
32482 # Commands used to build an old-style archive.
32483 old_archive_cmds=$lt_old_archive_cmds
32485 # A language specific compiler.
32488 # Is the compiler the GNU compiler?
32491 # Compiler flag to turn off builtin functions.
32492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32494 # Additional compiler flags for building library objects.
32495 pic_flag=$lt_lt_prog_compiler_pic
32497 # How to pass a linker flag through the compiler.
32498 wl=$lt_lt_prog_compiler_wl
32500 # Compiler flag to prevent dynamic linking.
32501 link_static_flag=$lt_lt_prog_compiler_static
32503 # Does compiler simultaneously support -c and -o options?
32504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32506 # Whether or not to add -lc for building shared libraries.
32507 build_libtool_need_lc=$archive_cmds_need_lc
32509 # Whether or not to disallow shared libs when runtime libs are static.
32510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32512 # Compiler flag to allow reflexive dlopens.
32513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32515 # Compiler flag to generate shared objects directly from archives.
32516 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32518 # Whether the compiler copes with passing no objects directly.
32519 compiler_needs_object=$lt_compiler_needs_object
32521 # Create an old-style archive from a shared archive.
32522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32524 # Create a temporary old-style archive to link instead of a shared archive.
32525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32527 # Commands used to build a shared archive.
32528 archive_cmds=$lt_archive_cmds
32529 archive_expsym_cmds=$lt_archive_expsym_cmds
32531 # Commands used to build a loadable module if different from building
32532 # a shared archive.
32533 module_cmds=$lt_module_cmds
32534 module_expsym_cmds=$lt_module_expsym_cmds
32536 # Whether we are building with GNU ld or not.
32537 with_gnu_ld=$lt_with_gnu_ld
32539 # Flag that allows shared libraries with undefined symbols to be built.
32540 allow_undefined_flag=$lt_allow_undefined_flag
32542 # Flag that enforces no undefined symbols.
32543 no_undefined_flag=$lt_no_undefined_flag
32545 # Flag to hardcode \$libdir into a binary during linking.
32546 # This must work even if \$libdir does not exist
32547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32549 # If ld is used when linking, flag to hardcode \$libdir into a binary
32550 # during linking. This must work even if \$libdir does not exist.
32551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32553 # Whether we need a single "-rpath" flag with a separated argument.
32554 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32557 # DIR into the resulting binary.
32558 hardcode_direct=$hardcode_direct
32560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32561 # DIR into the resulting binary and the resulting library dependency is
32562 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32563 # library is relocated.
32564 hardcode_direct_absolute=$hardcode_direct_absolute
32566 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32567 # into the resulting binary.
32568 hardcode_minus_L=$hardcode_minus_L
32570 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32571 # into the resulting binary.
32572 hardcode_shlibpath_var=$hardcode_shlibpath_var
32574 # Set to "yes" if building a shared library automatically hardcodes DIR
32575 # into the library and all subsequent libraries and executables linked
32577 hardcode_automatic=$hardcode_automatic
32579 # Set to yes if linker adds runtime paths of dependent libraries
32580 # to runtime path list.
32581 inherit_rpath=$inherit_rpath
32583 # Whether libtool must link a program against all its dependency libraries.
32584 link_all_deplibs=$link_all_deplibs
32586 # Set to "yes" if exported symbols are required.
32587 always_export_symbols=$always_export_symbols
32589 # The commands to list exported symbols.
32590 export_symbols_cmds=$lt_export_symbols_cmds
32592 # Symbols that should not be listed in the preloaded symbols.
32593 exclude_expsyms=$lt_exclude_expsyms
32595 # Symbols that must always be exported.
32596 include_expsyms=$lt_include_expsyms
32598 # Commands necessary for linking programs (against libraries) with templates.
32599 prelink_cmds=$lt_prelink_cmds
32601 # Commands necessary for finishing linking programs.
32602 postlink_cmds=$lt_postlink_cmds
32604 # Specify filename containing input files.
32605 file_list_spec=$lt_file_list_spec
32607 # How to hardcode a shared library path into an executable.
32608 hardcode_action=$hardcode_action
32610 # The directories searched by this compiler when creating a shared library.
32611 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32613 # Dependencies to place before and after the objects being linked to
32614 # create a shared library.
32615 predep_objects=$lt_predep_objects
32616 postdep_objects=$lt_postdep_objects
32617 predeps=$lt_predeps
32618 postdeps=$lt_postdeps
32620 # The library search path used internally by the compiler when linking
32621 # a shared library.
32622 compiler_lib_search_path=$lt_compiler_lib_search_path
32624 # ### END LIBTOOL CONFIG
32630 cat <<\_LT_EOF >> "$cfgfile"
32631 # AIX sometimes has problems with the GCC collect2 program. For some
32632 # reason, if we set the COLLECT_NAMES environment variable, the problems
32633 # vanish in a puff of smoke.
32634 if test "X${COLLECT_NAMES+set}" != Xset; then
32636 export COLLECT_NAMES
32643 ltmain="$ac_aux_dir/ltmain.sh"
32646 # We use sed instead of cat because bash on DJGPP gets confused if
32647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32648 # text mode, it properly converts lines to CR/LF. This bash problem
32649 # is reportedly fixed, but why not run on old versions too?
32650 sed '$q' "$ltmain" >> "$cfgfile" \
32651 || (rm -f "$cfgfile"; exit 1)
32653 if test x"$xsi_shell" = xyes; then
32654 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32658 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32659 \ * ) func_dirname_result="${3}" ;;\
32661 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32662 && mv -f "$cfgfile.tmp" "$cfgfile" \
32663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32664 test 0 -eq $? || _lt_function_replace_fail=:
32667 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32670 \ func_basename_result="${1##*/}"\
32671 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32672 && mv -f "$cfgfile.tmp" "$cfgfile" \
32673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32674 test 0 -eq $? || _lt_function_replace_fail=:
32677 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32678 func_dirname_and_basename ()\
32681 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32682 \ * ) func_dirname_result="${3}" ;;\
32684 \ func_basename_result="${1##*/}"\
32685 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32686 && mv -f "$cfgfile.tmp" "$cfgfile" \
32687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32688 test 0 -eq $? || _lt_function_replace_fail=:
32691 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32694 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32695 \ # positional parameters, so assign one to ordinary parameter first.\
32696 \ func_stripname_result=${3}\
32697 \ func_stripname_result=${func_stripname_result#"${1}"}\
32698 \ func_stripname_result=${func_stripname_result%"${2}"}\
32699 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32700 && mv -f "$cfgfile.tmp" "$cfgfile" \
32701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32702 test 0 -eq $? || _lt_function_replace_fail=:
32705 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32706 func_split_long_opt ()\
32708 \ func_split_long_opt_name=${1%%=*}\
32709 \ func_split_long_opt_arg=${1#*=}\
32710 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32711 && mv -f "$cfgfile.tmp" "$cfgfile" \
32712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32713 test 0 -eq $? || _lt_function_replace_fail=:
32716 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32717 func_split_short_opt ()\
32719 \ func_split_short_opt_arg=${1#??}\
32720 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32721 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32722 && mv -f "$cfgfile.tmp" "$cfgfile" \
32723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32724 test 0 -eq $? || _lt_function_replace_fail=:
32727 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32731 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32732 \ *) func_lo2o_result=${1} ;;\
32734 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32735 && mv -f "$cfgfile.tmp" "$cfgfile" \
32736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32737 test 0 -eq $? || _lt_function_replace_fail=:
32740 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32743 func_xform_result=${1%.*}.lo\
32744 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32745 && mv -f "$cfgfile.tmp" "$cfgfile" \
32746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32747 test 0 -eq $? || _lt_function_replace_fail=:
32750 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32753 func_arith_result=$(( $* ))\
32754 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32755 && mv -f "$cfgfile.tmp" "$cfgfile" \
32756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32757 test 0 -eq $? || _lt_function_replace_fail=:
32760 sed -e '/^func_len ()$/,/^} # func_len /c\
32763 func_len_result=${#1}\
32764 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32765 && mv -f "$cfgfile.tmp" "$cfgfile" \
32766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32767 test 0 -eq $? || _lt_function_replace_fail=:
32771 if test x"$lt_shell_append" = xyes; then
32772 sed -e '/^func_append ()$/,/^} # func_append /c\
32775 eval "${1}+=\\${2}"\
32776 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32777 && mv -f "$cfgfile.tmp" "$cfgfile" \
32778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32779 test 0 -eq $? || _lt_function_replace_fail=:
32782 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32783 func_append_quoted ()\
32785 \ func_quote_for_eval "${2}"\
32786 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32787 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32788 && mv -f "$cfgfile.tmp" "$cfgfile" \
32789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32790 test 0 -eq $? || _lt_function_replace_fail=:
32793 # Save a `func_append' function call where possible by direct use of '+='
32794 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32795 && mv -f "$cfgfile.tmp" "$cfgfile" \
32796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32797 test 0 -eq $? || _lt_function_replace_fail=:
32799 # Save a `func_append' function call even when '+=' is not available
32800 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32801 && mv -f "$cfgfile.tmp" "$cfgfile" \
32802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32803 test 0 -eq $? || _lt_function_replace_fail=:
32806 if test x"$_lt_function_replace_fail" = x":"; then
32807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32808 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32812 mv -f "$cfgfile" "$ofile" ||
32813 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32817 cat <<_LT_EOF >> "$ofile"
32819 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32821 # The linker used to build libraries.
32824 # How to create reloadable object files.
32825 reload_flag=$lt_reload_flag_CXX
32826 reload_cmds=$lt_reload_cmds_CXX
32828 # Commands used to build an old-style archive.
32829 old_archive_cmds=$lt_old_archive_cmds_CXX
32831 # A language specific compiler.
32832 CC=$lt_compiler_CXX
32834 # Is the compiler the GNU compiler?
32837 # Compiler flag to turn off builtin functions.
32838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32840 # Additional compiler flags for building library objects.
32841 pic_flag=$lt_lt_prog_compiler_pic_CXX
32843 # How to pass a linker flag through the compiler.
32844 wl=$lt_lt_prog_compiler_wl_CXX
32846 # Compiler flag to prevent dynamic linking.
32847 link_static_flag=$lt_lt_prog_compiler_static_CXX
32849 # Does compiler simultaneously support -c and -o options?
32850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32852 # Whether or not to add -lc for building shared libraries.
32853 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32855 # Whether or not to disallow shared libs when runtime libs are static.
32856 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32858 # Compiler flag to allow reflexive dlopens.
32859 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32861 # Compiler flag to generate shared objects directly from archives.
32862 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32864 # Whether the compiler copes with passing no objects directly.
32865 compiler_needs_object=$lt_compiler_needs_object_CXX
32867 # Create an old-style archive from a shared archive.
32868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32870 # Create a temporary old-style archive to link instead of a shared archive.
32871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32873 # Commands used to build a shared archive.
32874 archive_cmds=$lt_archive_cmds_CXX
32875 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32877 # Commands used to build a loadable module if different from building
32878 # a shared archive.
32879 module_cmds=$lt_module_cmds_CXX
32880 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32882 # Whether we are building with GNU ld or not.
32883 with_gnu_ld=$lt_with_gnu_ld_CXX
32885 # Flag that allows shared libraries with undefined symbols to be built.
32886 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32888 # Flag that enforces no undefined symbols.
32889 no_undefined_flag=$lt_no_undefined_flag_CXX
32891 # Flag to hardcode \$libdir into a binary during linking.
32892 # This must work even if \$libdir does not exist
32893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32895 # If ld is used when linking, flag to hardcode \$libdir into a binary
32896 # during linking. This must work even if \$libdir does not exist.
32897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32899 # Whether we need a single "-rpath" flag with a separated argument.
32900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32902 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32903 # DIR into the resulting binary.
32904 hardcode_direct=$hardcode_direct_CXX
32906 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32907 # DIR into the resulting binary and the resulting library dependency is
32908 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32909 # library is relocated.
32910 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32912 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32913 # into the resulting binary.
32914 hardcode_minus_L=$hardcode_minus_L_CXX
32916 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32917 # into the resulting binary.
32918 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32920 # Set to "yes" if building a shared library automatically hardcodes DIR
32921 # into the library and all subsequent libraries and executables linked
32923 hardcode_automatic=$hardcode_automatic_CXX
32925 # Set to yes if linker adds runtime paths of dependent libraries
32926 # to runtime path list.
32927 inherit_rpath=$inherit_rpath_CXX
32929 # Whether libtool must link a program against all its dependency libraries.
32930 link_all_deplibs=$link_all_deplibs_CXX
32932 # Set to "yes" if exported symbols are required.
32933 always_export_symbols=$always_export_symbols_CXX
32935 # The commands to list exported symbols.
32936 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32938 # Symbols that should not be listed in the preloaded symbols.
32939 exclude_expsyms=$lt_exclude_expsyms_CXX
32941 # Symbols that must always be exported.
32942 include_expsyms=$lt_include_expsyms_CXX
32944 # Commands necessary for linking programs (against libraries) with templates.
32945 prelink_cmds=$lt_prelink_cmds_CXX
32947 # Commands necessary for finishing linking programs.
32948 postlink_cmds=$lt_postlink_cmds_CXX
32950 # Specify filename containing input files.
32951 file_list_spec=$lt_file_list_spec_CXX
32953 # How to hardcode a shared library path into an executable.
32954 hardcode_action=$hardcode_action_CXX
32956 # The directories searched by this compiler when creating a shared library.
32957 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32959 # Dependencies to place before and after the objects being linked to
32960 # create a shared library.
32961 predep_objects=$lt_predep_objects_CXX
32962 postdep_objects=$lt_postdep_objects_CXX
32963 predeps=$lt_predeps_CXX
32964 postdeps=$lt_postdeps_CXX
32966 # The library search path used internally by the compiler when linking
32967 # a shared library.
32968 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32970 # ### END LIBTOOL TAG CONFIG: CXX
32975 for ac_file in $CONFIG_FILES; do
32976 # Support "outfile[:infile[:infile...]]"
32978 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32980 # PO directories have a Makefile.in generated from Makefile.in.in.
32981 case "$ac_file" in */Makefile.in)
32982 # Adjust a relative srcdir.
32983 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32984 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32985 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32986 # In autoconf-2.13 it is called $ac_given_srcdir.
32987 # In autoconf-2.50 it is called $srcdir.
32988 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32989 case "$ac_given_srcdir" in
32990 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32991 /*) top_srcdir="$ac_given_srcdir" ;;
32992 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32994 # Treat a directory as a PO directory if and only if it has a
32995 # POTFILES.in file. This allows packages to have multiple PO
32996 # directories under different names or in different locations.
32997 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32998 rm -f "$ac_dir/POTFILES"
32999 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33000 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33001 POMAKEFILEDEPS="POTFILES.in"
33002 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33003 # on $ac_dir but don't depend on user-specified configuration
33005 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33006 # The LINGUAS file contains the set of available languages.
33007 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33008 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33010 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33011 # Hide the ALL_LINGUAS assigment from automake.
33012 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33013 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33015 # The set of available languages was given in configure.in.
33016 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33019 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33020 # Compute UPDATEPOFILES
33021 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33022 # Compute DUMMYPOFILES
33023 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33025 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33026 case "$ac_given_srcdir" in
33028 *) srcdirpre='$(srcdir)/' ;;
33034 for lang in $ALL_LINGUAS; do
33035 POFILES="$POFILES $srcdirpre$lang.po"
33036 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33037 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33038 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33040 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33041 # environment variable.
33043 if test -n "$ALL_LINGUAS"; then
33044 for presentlang in $ALL_LINGUAS; do
33046 if test "%UNSET%" != "$LINGUAS"; then
33047 desiredlanguages="$LINGUAS"
33049 desiredlanguages="$ALL_LINGUAS"
33051 for desiredlang in $desiredlanguages; do
33052 # Use the presentlang catalog if desiredlang is
33053 # a. equal to presentlang, or
33054 # b. a variant of presentlang (because in this case,
33055 # presentlang can be used as a fallback for messages
33056 # which are not translated in the desiredlang catalog).
33057 case "$desiredlang" in
33058 "$presentlang"*) useit=yes;;
33061 if test $useit = yes; then
33062 INST_LINGUAS="$INST_LINGUAS $presentlang"
33067 if test -n "$INST_LINGUAS"; then
33068 for lang in $INST_LINGUAS; do
33069 CATALOGS="$CATALOGS $lang.gmo"
33072 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33073 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"
33074 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33075 if test -f "$f"; then
33077 *.orig | *.bak | *~) ;;
33078 *) cat "$f" >> "$ac_dir/Makefile" ;;
33095 ac_clean_files=$ac_clean_files_save
33097 test $ac_write_fail = 0 ||
33098 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33101 # configure is writing to config.log, and then calls config.status.
33102 # config.status does its own redirection, appending to config.log.
33103 # Unfortunately, on DOS this fails, as config.log is still kept open
33104 # by configure, so config.status won't be able to write to it; its
33105 # output is simply discarded. So we exec the FD to /dev/null,
33106 # effectively closing config.log, so it can be properly (re)opened and
33107 # appended to by config.status. When coming back to configure, we
33108 # need to make the FD available again.
33109 if test "$no_create" != yes; then
33111 ac_config_status_args=
33112 test "$silent" = yes &&
33113 ac_config_status_args="$ac_config_status_args --quiet"
33115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33118 # would make configure fail if this is the last instruction.
33119 $ac_cs_success || as_fn_exit 1
33121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33127 if test "${support_bat}" = "yes" ; then
33128 if test "x$QMAKE" = "xnone"; then
33129 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33133 echo "Creating bat Makefile"
33138 ${MAKE:-make} clean
33142 if test X"$GCC" = "Xyes" ; then
33143 echo "Doing make of dependencies"
33144 ${MAKE:-make} depend
33148 chmod 755 install_conf_file build-depkgs-qt-console
33152 chmod 755 bacula btraceback mtx-changer
33153 chmod 755 dvd-handler dvd-simulator
33154 chmod 755 bconsole mtx-changer devel_bacula logrotate
33158 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33159 chmod 755 $c/update_postgresql_tables_10_to_11
33160 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33161 chmod 755 $c/update_postgresql_tables_11_to_12
33166 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33167 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33169 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33170 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33172 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33173 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33175 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33176 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33178 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33179 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33182 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33183 chmod 755 $c/sqlite
33186 chmod 755 $c/install-default-backend
33188 chmod 755 src/win32/build-depkgs-mingw32
33190 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33191 largefile_support="yes"
33194 if test X"$GCC" = "Xyes" ; then
33195 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33196 if test "x${CCVERSION}" = "x" ; then
33197 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33199 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33200 if test x"${CXXVERSION}" = x ; then
33201 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33205 # clean up any old junk
33209 ${MAKE:-make} clean
33212 Configuration on `date`:
33214 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33215 Bacula version: ${BACULA} ${VERSION} (${DATE})
33216 Source code location: ${srcdir}
33217 Install binaries: ${sbindir}
33218 Install libraries: ${libdir}
33219 Install config files: ${sysconfdir}
33220 Scripts directory: ${scriptdir}
33221 Archive directory: ${archivedir}
33222 Working directory: ${working_dir}
33223 PID directory: ${piddir}
33224 Subsys directory: ${subsysdir}
33225 Man directory: ${mandir}
33226 Data directory: ${datarootdir}
33227 Plugin directory: ${plugindir}
33228 C Compiler: ${CC} ${CCVERSION}
33229 C++ Compiler: ${CXX} ${CXXVERSION}
33230 Compiler flags: ${WCFLAGS} ${CFLAGS}
33231 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33233 Statically Linked Tools: ${support_static_tools}
33234 Statically Linked FD: ${support_static_fd}
33235 Statically Linked SD: ${support_static_sd}
33236 Statically Linked DIR: ${support_static_dir}
33237 Statically Linked CONS: ${support_static_cons}
33238 Database backends: ${db_backends}
33239 Database port: ${db_port}
33240 Database name: ${db_name}
33241 Database user: ${db_user}
33243 Job Output Email: ${job_email}
33244 Traceback Email: ${dump_email}
33245 SMTP Host Address: ${smtp_host}
33247 Director Port: ${dir_port}
33248 File daemon Port: ${fd_port}
33249 Storage daemon Port: ${sd_port}
33251 Director User: ${dir_user}
33252 Director Group: ${dir_group}
33253 Storage Daemon User: ${sd_user}
33254 Storage DaemonGroup: ${sd_group}
33255 File Daemon User: ${fd_user}
33256 File Daemon Group: ${fd_group}
33258 Large file support: $largefile_support
33259 Bacula conio support: ${got_conio} ${CONS_LIBS}
33260 readline support: ${got_readline} ${PRTREADLINE_SRC}
33261 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33262 TLS support: ${support_tls}
33263 Encryption support: ${support_crypto}
33264 ZLIB support: ${have_zlib}
33265 LZO support: ${have_lzo}
33266 enable-smartalloc: ${support_smartalloc}
33267 enable-lockmgr: ${support_lockmgr}
33268 bat support: ${support_bat}
33269 enable-gnome: ${support_gnome} ${gnome_version}
33270 enable-bwx-console: ${support_wx_console} ${wx_version}
33271 enable-tray-monitor: ${support_tray_monitor}
33272 client-only: ${build_client_only}
33273 build-dird: ${build_dird}
33274 build-stored: ${build_stored}
33275 Plugin support: ${have_plugins}
33276 ACL support: ${have_acl}
33277 XATTR support: ${have_xattr}
33278 Python support: ${support_python} ${PYTHON_LIBS}
33279 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33280 Batch insert enabled: ${batch_insert_db_backends}
33284 # create a small shell script useful for support with
33285 # configure options and config.out info
33286 cat > scripts/bacula_config << EOF
33289 $ $0 $ac_configure_args
33291 cat config.out >> scripts/bacula_config
33292 echo __EOC__ >> scripts/bacula_config
33293 chmod 755 scripts/bacula_config