2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 7.0.1.
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='7.0.1'
571 PACKAGE_STRING='bacula 7.0.1'
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
642 SHARED_CATALOG_TARGETS
712 INTL_LIBTOOL_SUFFIX_PREFIX
719 BUILD_INCLUDED_LIBINTL
750 HAVE_OPENBSD_OS_FALSE
754 HAVE_FREEBSD_OS_FALSE
768 INCLUDE_UNINSTALL_TARGET
769 INCLUDE_INSTALL_TARGET
773 LIBTOOL_UNINSTALL_TARGET
774 LIBTOOL_INSTALL_TARGET
775 DEFAULT_SHARED_OBJECT_TYPE
855 LIBBACFIND_LT_RELEASE
856 LIBBACCATS_LT_RELEASE
901 program_transform_name
912 ac_subst_files='MCOMMON'
914 enable_option_checking
928 with_included_gettext
963 with_mon_dir_password
992 ac_precious_vars='build_alias
1008 # Initialize some variables set by options.
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1022 program_transform_name=s,x,x,
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 includedir='${prefix}/include'
1045 oldincludedir='/usr/include'
1046 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047 infodir='${datarootdir}/info'
1052 libdir='${exec_prefix}/lib'
1053 localedir='${datarootdir}/locale'
1054 mandir='${datarootdir}/man'
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\$ac_option
1068 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1073 # Accept the important Cygnus configure options, so we can diagnose typos.
1075 case $ac_dashdash$ac_option in
1079 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082 bindir=$ac_optarg ;;
1084 -build | --build | --buil | --bui | --bu)
1085 ac_prev=build_alias ;;
1086 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087 build_alias=$ac_optarg ;;
1089 -cache-file | --cache-file | --cache-fil | --cache-fi \
1090 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091 ac_prev=cache_file ;;
1092 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094 cache_file=$ac_optarg ;;
1096 --config-cache | -C)
1097 cache_file=config.cache ;;
1099 -datadir | --datadir | --datadi | --datad)
1101 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102 datadir=$ac_optarg ;;
1104 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105 | --dataroo | --dataro | --datar)
1106 ac_prev=datarootdir ;;
1107 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109 datarootdir=$ac_optarg ;;
1111 -disable-* | --disable-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid feature name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_$ac_useropt"
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval enable_$ac_useropt=no ;;
1127 -docdir | --docdir | --docdi | --doc | --do)
1129 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130 docdir=$ac_optarg ;;
1132 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135 dvidir=$ac_optarg ;;
1137 -enable-* | --enable-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid feature name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1146 "enable_$ac_useropt"
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval enable_$ac_useropt=\$ac_optarg ;;
1153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155 | --exec | --exe | --ex)
1156 ac_prev=exec_prefix ;;
1157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159 | --exec=* | --exe=* | --ex=*)
1160 exec_prefix=$ac_optarg ;;
1162 -gas | --gas | --ga | --g)
1163 # Obsolete; use --with-gas.
1166 -help | --help | --hel | --he | -h)
1167 ac_init_help=long ;;
1168 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169 ac_init_help=recursive ;;
1170 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171 ac_init_help=short ;;
1173 -host | --host | --hos | --ho)
1174 ac_prev=host_alias ;;
1175 -host=* | --host=* | --hos=* | --ho=*)
1176 host_alias=$ac_optarg ;;
1178 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182 htmldir=$ac_optarg ;;
1184 -includedir | --includedir | --includedi | --included | --include \
1185 | --includ | --inclu | --incl | --inc)
1186 ac_prev=includedir ;;
1187 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188 | --includ=* | --inclu=* | --incl=* | --inc=*)
1189 includedir=$ac_optarg ;;
1191 -infodir | --infodir | --infodi | --infod | --info | --inf)
1193 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194 infodir=$ac_optarg ;;
1196 -libdir | --libdir | --libdi | --libd)
1198 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1199 libdir=$ac_optarg ;;
1201 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202 | --libexe | --libex | --libe)
1203 ac_prev=libexecdir ;;
1204 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205 | --libexe=* | --libex=* | --libe=*)
1206 libexecdir=$ac_optarg ;;
1208 -localedir | --localedir | --localedi | --localed | --locale)
1209 ac_prev=localedir ;;
1210 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211 localedir=$ac_optarg ;;
1213 -localstatedir | --localstatedir | --localstatedi | --localstated \
1214 | --localstate | --localstat | --localsta | --localst | --locals)
1215 ac_prev=localstatedir ;;
1216 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218 localstatedir=$ac_optarg ;;
1220 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223 mandir=$ac_optarg ;;
1225 -nfp | --nfp | --nf)
1226 # Obsolete; use --without-fp.
1229 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230 | --no-cr | --no-c | -n)
1233 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239 | --oldin | --oldi | --old | --ol | --o)
1240 ac_prev=oldincludedir ;;
1241 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244 oldincludedir=$ac_optarg ;;
1246 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249 prefix=$ac_optarg ;;
1251 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1252 | --program-pre | --program-pr | --program-p)
1253 ac_prev=program_prefix ;;
1254 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1255 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256 program_prefix=$ac_optarg ;;
1258 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1259 | --program-suf | --program-su | --program-s)
1260 ac_prev=program_suffix ;;
1261 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1262 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263 program_suffix=$ac_optarg ;;
1265 -program-transform-name | --program-transform-name \
1266 | --program-transform-nam | --program-transform-na \
1267 | --program-transform-n | --program-transform- \
1268 | --program-transform | --program-transfor \
1269 | --program-transfo | --program-transf \
1270 | --program-trans | --program-tran \
1271 | --progr-tra | --program-tr | --program-t)
1272 ac_prev=program_transform_name ;;
1273 -program-transform-name=* | --program-transform-name=* \
1274 | --program-transform-nam=* | --program-transform-na=* \
1275 | --program-transform-n=* | --program-transform-=* \
1276 | --program-transform=* | --program-transfor=* \
1277 | --program-transfo=* | --program-transf=* \
1278 | --program-trans=* | --program-tran=* \
1279 | --progr-tra=* | --program-tr=* | --program-t=*)
1280 program_transform_name=$ac_optarg ;;
1282 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285 pdfdir=$ac_optarg ;;
1287 -psdir | --psdir | --psdi | --psd | --ps)
1289 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293 | -silent | --silent | --silen | --sile | --sil)
1296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300 sbindir=$ac_optarg ;;
1302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1304 | --sharedst | --shareds | --shared | --share | --shar \
1306 ac_prev=sharedstatedir ;;
1307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311 sharedstatedir=$ac_optarg ;;
1313 -site | --site | --sit)
1315 -site=* | --site=* | --sit=*)
1318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1321 srcdir=$ac_optarg ;;
1323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1324 | --syscon | --sysco | --sysc | --sys | --sy)
1325 ac_prev=sysconfdir ;;
1326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1328 sysconfdir=$ac_optarg ;;
1330 -target | --target | --targe | --targ | --tar | --ta | --t)
1331 ac_prev=target_alias ;;
1332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1333 target_alias=$ac_optarg ;;
1335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338 -version | --version | --versio | --versi | --vers | -V)
1339 ac_init_version=: ;;
1342 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345 as_fn_error $? "invalid package name: $ac_useropt"
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1355 eval with_$ac_useropt=\$ac_optarg ;;
1357 -without-* | --without-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1371 eval with_$ac_useropt=no ;;
1374 # Obsolete; use --with-x.
1377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378 | --x-incl | --x-inc | --x-in | --x-i)
1379 ac_prev=x_includes ;;
1380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382 x_includes=$ac_optarg ;;
1384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386 ac_prev=x_libraries ;;
1387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389 x_libraries=$ac_optarg ;;
1391 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1392 Try \`$0 --help' for more information"
1396 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1397 # Reject names that are not valid shell variable names.
1398 case $ac_envvar in #(
1399 '' | [0-9]* | *[!_$as_cr_alnum]* )
1400 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1402 eval $ac_envvar=\$ac_optarg
1403 export $ac_envvar ;;
1406 # FIXME: should be removed in autoconf 3.0.
1407 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1416 if test -n "$ac_prev"; then
1417 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418 as_fn_error $? "missing argument to $ac_option"
1421 if test -n "$ac_unrecognized_opts"; then
1422 case $enable_option_checking in
1424 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1425 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429 # Check all directory arguments for consistency.
1430 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431 datadir sysconfdir sharedstatedir localstatedir includedir \
1432 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433 libdir localedir mandir
1435 eval ac_val=\$$ac_var
1436 # Remove trailing slashes.
1439 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440 eval $ac_var=\$ac_val;;
1442 # Be sure to have absolute directory names.
1444 [\\/$]* | ?:[\\/]* ) continue;;
1445 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1447 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1450 # There might be people who depend on the old broken behavior: `$host'
1451 # used to hold the argument of --host etc.
1452 # FIXME: To remove some day.
1455 target=$target_alias
1457 # FIXME: To remove some day.
1458 if test "x$host_alias" != x; then
1459 if test "x$build_alias" = x; then
1460 cross_compiling=maybe
1461 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1462 If a cross compiler is detected then cross compile mode will be used" >&2
1463 elif test "x$build_alias" != "x$host_alias"; then
1469 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471 test "$silent" = yes && exec 6>/dev/null
1474 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1475 ac_ls_di=`ls -di .` &&
1476 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1477 as_fn_error $? "working directory cannot be determined"
1478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479 as_fn_error $? "pwd does not report name of working directory"
1482 # Find the source files, if location was not specified.
1483 if test -z "$srcdir"; then
1484 ac_srcdir_defaulted=yes
1485 # Try the directory containing this script, then the parent directory.
1486 ac_confdir=`$as_dirname -- "$as_myself" ||
1487 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488 X"$as_myself" : 'X\(//\)[^/]' \| \
1489 X"$as_myself" : 'X\(//\)$' \| \
1490 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491 $as_echo X"$as_myself" |
1492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1514 ac_srcdir_defaulted=no
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1517 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1524 # When building in place, set srcdir=.
1525 if test "$ac_abs_confdir" = "$ac_pwd"; then
1528 # Remove unnecessary trailing slashes from srcdir.
1529 # Double slashes in file names in object file debugging info
1530 # mess up M-x gdb in Emacs.
1532 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 for ac_var in $ac_precious_vars; do
1535 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536 eval ac_env_${ac_var}_value=\$${ac_var}
1537 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 # Report the --help message.
1544 if test "$ac_init_help" = "long"; then
1545 # Omit some internal or obsolete options to make the list less imposing.
1546 # This message is too long to be a string in the A/UX 3.1 sh.
1548 \`configure' configures bacula 7.0.1 to adapt to many kinds of systems.
1550 Usage: $0 [OPTION]... [VAR=VALUE]...
1552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553 VAR=VALUE. See below for descriptions of some of the useful variables.
1555 Defaults for the options are specified in brackets.
1558 -h, --help display this help and exit
1559 --help=short display options specific to this package
1560 --help=recursive display the short help of all the included packages
1561 -V, --version display version information and exit
1562 -q, --quiet, --silent do not print \`checking ...' messages
1563 --cache-file=FILE cache test results in FILE [disabled]
1564 -C, --config-cache alias for \`--cache-file=config.cache'
1565 -n, --no-create do not create output files
1566 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1568 Installation directories:
1569 --prefix=PREFIX install architecture-independent files in PREFIX
1570 [$ac_default_prefix]
1571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1574 By default, \`make install' will install all the files in
1575 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1576 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577 for instance \`--prefix=\$HOME'.
1579 For better control, use the options below.
1581 Fine tuning of the installation directories:
1582 --bindir=DIR user executables [EPREFIX/bin]
1583 --sbindir=DIR system admin executables [EPREFIX/sbin]
1584 --libexecdir=DIR program executables [EPREFIX/libexec]
1585 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1586 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1587 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1588 --libdir=DIR object code libraries [EPREFIX/lib]
1589 --includedir=DIR C header files [PREFIX/include]
1590 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1591 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1592 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1593 --infodir=DIR info documentation [DATAROOTDIR/info]
1594 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1595 --mandir=DIR man documentation [DATAROOTDIR/man]
1596 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1597 --htmldir=DIR html documentation [DOCDIR]
1598 --dvidir=DIR dvi documentation [DOCDIR]
1599 --pdfdir=DIR pdf documentation [DOCDIR]
1600 --psdir=DIR ps documentation [DOCDIR]
1606 --x-includes=DIR X include files are in DIR
1607 --x-libraries=DIR X library files are in DIR
1610 --build=BUILD configure for building on BUILD [guessed]
1611 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1615 if test -n "$ac_init_help"; then
1616 case $ac_init_help in
1617 short | recursive ) echo "Configuration of bacula 7.0.1:";;
1622 --disable-option-checking ignore unrecognized --enable/--with options
1623 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1624 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1625 --enable-libtool enable building using GNU libtool [default=yes]
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=no]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-includes enable installing of include files [default=no]
1632 --disable-nls do not use Native Language Support
1633 --disable-rpath do not hardcode runtime library paths
1634 --enable-bat enable build of bat Qt4 GUI [default=no]
1635 --enable-smartalloc enable smartalloc debugging support [default=no]
1636 --enable-lockmgr enable lock manager support [default=no]
1637 --enable-static-tools enable static tape tools [default=no]
1638 --enable-static-fd enable static File daemon [default=no]
1639 --enable-static-sd enable static Storage daemon [default=no]
1640 --enable-static-dir enable static Director [default=no]
1641 --enable-static-cons enable static Console [default=no]
1642 --enable-client-only build client (File daemon) only [default=no]
1643 --enable-build-dird enable building of dird (Director) [default=yes]
1644 --enable-build-stored enable building of stored (Storage daemon)
1646 --disable-conio disable conio support [default=no]
1647 --enable-ipv6 enable ipv6 support [default=yes]
1648 --disable-readline disable readline support [default=yes]
1649 --enable-batch-insert enable the DB batch insert code [default=yes]
1650 --disable-largefile omit support for large files
1651 --disable-afs disable afs support [default=auto]
1652 --disable-lzo disable lzo support [default=yes]
1653 --disable-acl disable acl support [default=auto]
1654 --disable-xattr disable xattr support [default=auto]
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-pic try to use only PIC/non-PIC objects [default=use
1661 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1662 --with-sysroot=DIR Search for dependent libraries within DIR
1663 (or the compiler's sysroot if not specified).
1664 --with-gnu-ld assume the C compiler uses GNU ld default=no
1665 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1666 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1667 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1668 --without-libintl-prefix don't search for libintl in includedir and libdir
1669 --with-included-gettext use the GNU gettext library included here
1670 --with-readline[=DIR] specify readline library directory
1671 --with-tcp-wrappers[=DIR]
1672 enable tcpwrappers support
1673 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1674 --with-working-dir=PATH specify path of Bacula working directory
1675 --with-archivedir=PATH specify path of SD archive directory
1676 --with-basename=RESNAME specify base resource name for daemons
1677 --with-hostname=RESNAME specify host name for daemons
1678 --with-scriptdir=PATH specify path of Bacula scripts directory
1679 --with-bsrdir=PATH specify path of Bacula bsrs directory
1680 --with-logdir=PATH specify path of Bacula logs directory
1681 --with-plugindir=PATH specify path of Bacula plugins directory
1682 --with-dump-email=EMAIL dump email address
1683 --with-job-email=EMAIL job output email address
1684 --with-smtp-host=HOST SMTP mail host address
1685 --with-pid-dir=PATH specify location of Bacula pid files
1686 --with-subsys-dir=PATH specify location of Bacula subsys file
1687 --with-baseport=PORT specify base port address for daemons
1688 --with-dir-password=PASSWORD
1689 specify Director's password
1690 --with-fd-password=PASSWORD
1691 specify Client's password
1692 --with-sd-password=PASSWORD
1693 specify Storage daemon's password
1694 --with-mon-dir-password=PASSWORD
1695 specify Director's password used by the monitor
1696 --with-mon-fd-password=PASSWORD
1697 specify Client's password used by the monitor
1698 --with-mon-sd-password=PASSWORD
1699 specify Storage daemon's password used by the
1701 --with-db-name=DBNAME specify database name [default=bacula]
1702 --with-db-user=UNAME specify database user [default=bacula]
1703 --with-db-password=PWD specify database password [default=*none*]
1704 --with-db-port=DBPORT specify a database port [default=null]
1705 --with-dir-user=USER specify user for Director daemon
1706 --with-dir-group=GROUP specify group for Director daemon
1707 --with-sd-user=USER specify user for Storage daemon
1708 --with-sd-group=GROUP specify group for Storage daemon
1709 --with-fd-user=USER specify user for File daemon
1710 --with-fd-group=GROUP specify group for File daemon
1711 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1712 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1713 base install directory, [default=/usr/local/pgsql]
1714 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1715 directory, default is to search through a number of
1716 common places for the MySQL files.
1717 --with-embedded-mysql[=DIR]
1718 Include MySQL support. DIR is the MySQL base install
1719 directory, default is to search through a number of
1720 common places for the MySQL files.
1721 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1722 install directory, default is to search through a
1723 number of common places for the SQLite3 files.
1724 --with-x use the X Window System
1725 --with-afsdir[=DIR] Directory holding AFS includes/libs
1726 --with-lzo[=DIR] specify lzo library directory
1727 --with-systemd[=UNITDIR]
1728 Include systemd support. UNITDIR is where systemd
1729 system .service files are located, default is to ask
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1743 CXXCPP C++ preprocessor
1744 XMKMF Path to xmkmf, Makefile generator for X Window System
1746 Use these variables to override the choices made by `configure' or to help
1747 it to find libraries and programs with nonstandard names/locations.
1749 Report bugs to the package provider.
1754 if test "$ac_init_help" = "recursive"; then
1755 # If there are subdirs, report their specific --help.
1756 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1757 test -d "$ac_dir" ||
1758 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1766 # A ".." for each directory in $ac_dir_suffix.
1767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1768 case $ac_top_builddir_sub in
1769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1773 ac_abs_top_builddir=$ac_pwd
1774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1775 # for backward compatibility:
1776 ac_top_builddir=$ac_top_build_prefix
1779 .) # We are building in place.
1781 ac_top_srcdir=$ac_top_builddir_sub
1782 ac_abs_top_srcdir=$ac_pwd ;;
1783 [\\/]* | ?:[\\/]* ) # Absolute name.
1784 ac_srcdir=$srcdir$ac_dir_suffix;
1785 ac_top_srcdir=$srcdir
1786 ac_abs_top_srcdir=$srcdir ;;
1788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1789 ac_top_srcdir=$ac_top_build_prefix$srcdir
1790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1794 cd "$ac_dir" || { ac_status=$?; continue; }
1795 # Check for guested configure.
1796 if test -f "$ac_srcdir/configure.gnu"; then
1798 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1799 elif test -f "$ac_srcdir/configure"; then
1801 $SHELL "$ac_srcdir/configure" --help=recursive
1803 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1805 cd "$ac_pwd" || { ac_status=$?; break; }
1809 test -n "$ac_init_help" && exit $ac_status
1810 if $ac_init_version; then
1812 bacula configure 7.0.1
1813 generated by GNU Autoconf 2.68
1815 Copyright (C) 2010 Free Software Foundation, Inc.
1816 This configure script is free software; the Free Software Foundation
1817 gives unlimited permission to copy, distribute and modify it.
1822 ## ------------------------ ##
1823 ## Autoconf initialization. ##
1824 ## ------------------------ ##
1826 # ac_fn_c_try_compile LINENO
1827 # --------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext; then :
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_c_try_compile
1864 # ac_fn_cxx_try_compile LINENO
1865 # ----------------------------
1866 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_cxx_try_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext
1871 if { { ac_try="$ac_compile"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_compile") 2>conftest.err
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_cxx_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest.$ac_objext; then :
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1900 } # ac_fn_cxx_try_compile
1902 # ac_fn_c_try_cpp LINENO
1903 # ----------------------
1904 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_cpp conftest.$ac_ext"
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } > conftest.i && {
1924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1925 test ! -s conftest.err
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1939 # ac_fn_c_try_link LINENO
1940 # -----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 rm -f conftest.$ac_objext conftest$ac_exeext
1946 if { { ac_try="$ac_link"
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>conftest.err
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && {
1962 test -z "$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest$ac_exeext && {
1965 test "$cross_compiling" = yes ||
1966 $as_test_x conftest$ac_exeext
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977 # interfere with the next link command; also delete a directory that is
1978 # left behind by Apple's compiler. We do this before executing the actions.
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 as_fn_set_status $ac_retval
1983 } # ac_fn_c_try_link
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2002 if ac_fn_c_try_compile "$LINENO"; then :
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_header_compile
2016 # ac_fn_c_try_run LINENO
2017 # ----------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2019 # that executables *can* be run.
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 if { { ac_try="$ac_link"
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>&5
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2034 { { case "(($ac_try" in
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_try") 2>&5
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; }; }; then :
2046 $as_echo "$as_me: program exited with status $ac_status" >&5
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2050 ac_retval=$ac_status
2052 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 as_fn_set_status $ac_retval
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2081 # include <limits.h>
2083 # include <assert.h>
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2110 if ac_fn_c_try_link "$LINENO"; then :
2115 rm -f core conftest.err conftest.$ac_objext \
2116 conftest$ac_exeext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_func
2125 # ac_fn_cxx_try_cpp LINENO
2126 # ------------------------
2127 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_cxx_try_cpp ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { { ac_try="$ac_cpp conftest.$ac_ext"
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } > conftest.i && {
2147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2148 test ! -s conftest.err
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2160 } # ac_fn_cxx_try_cpp
2162 # ac_fn_cxx_try_link LINENO
2163 # -------------------------
2164 # Try to link conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_cxx_try_link ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext conftest$ac_exeext
2169 if { { ac_try="$ac_link"
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_link") 2>conftest.err
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest$ac_exeext && {
2188 test "$cross_compiling" = yes ||
2189 $as_test_x conftest$ac_exeext
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2198 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2199 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2200 # interfere with the next link command; also delete a directory that is
2201 # left behind by Apple's compiler. We do this before executing the actions.
2202 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2206 } # ac_fn_cxx_try_link
2208 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2209 # ---------------------------------------------
2210 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2212 ac_fn_c_check_decl ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 as_decl_name=`echo $2|sed 's/ *(.*//'`
2216 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2218 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2228 #ifndef $as_decl_name
2230 (void) $as_decl_use;
2232 (void) $as_decl_name;
2240 if ac_fn_c_try_compile "$LINENO"; then :
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 } # ac_fn_c_check_decl
2254 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2255 # -------------------------------------------
2256 # Tests whether TYPE exists after having included INCLUDES, setting cache
2257 # variable VAR accordingly.
2258 ac_fn_c_check_type ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262 $as_echo_n "checking for $2... " >&6; }
2263 if eval \${$3+:} false; then :
2264 $as_echo_n "(cached) " >&6
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2292 if ac_fn_c_try_compile "$LINENO"; then :
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 } # ac_fn_c_check_type
2308 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2309 # -------------------------------------------------------
2310 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2311 # the include files in INCLUDES and setting the cache variable VAR
2313 ac_fn_c_check_header_mongrel ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 if eval \${$3+:} false; then :
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 $as_echo_n "checking for $2... " >&6; }
2319 if eval \${$3+:} false; then :
2320 $as_echo_n "(cached) " >&6
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2326 # Is the header compilable?
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2328 $as_echo_n "checking $2 usability... " >&6; }
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 ac_header_compiler=yes
2337 ac_header_compiler=no
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2341 $as_echo "$ac_header_compiler" >&6; }
2343 # Is the header present?
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2345 $as_echo_n "checking $2 presence... " >&6; }
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2350 if ac_fn_c_try_cpp "$LINENO"; then :
2351 ac_header_preproc=yes
2353 ac_header_preproc=no
2355 rm -f conftest.err conftest.i conftest.$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2357 $as_echo "$ac_header_preproc" >&6; }
2359 # So? What about this header?
2360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2363 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2365 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2369 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2371 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2373 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2375 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2377 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381 $as_echo_n "checking for $2... " >&6; }
2382 if eval \${$3+:} false; then :
2383 $as_echo_n "(cached) " >&6
2385 eval "$3=\$ac_header_compiler"
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2393 } # ac_fn_c_check_header_mongrel
2395 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2396 # --------------------------------------------
2397 # Tries to find the compile-time value of EXPR in a program that includes
2398 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2400 ac_fn_c_compute_int ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 if test "$cross_compiling" = yes; then
2404 # Depending upon the size, compute the lo and hi bounds.
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2411 static int test_array [1 - 2 * !(($2) >= 0)];
2418 if ac_fn_c_try_compile "$LINENO"; then :
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2427 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_hi=$ac_mid; break
2437 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2438 if test $ac_lo -le $ac_mid; then
2442 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2453 static int test_array [1 - 2 * !(($2) < 0)];
2460 if ac_fn_c_try_compile "$LINENO"; then :
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2469 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477 ac_lo=$ac_mid; break
2479 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2480 if test $ac_mid -le $ac_hi; then
2484 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 # Binary search between lo and hi bounds.
2495 while test "x$ac_lo" != "x$ac_hi"; do
2496 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2503 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2510 if ac_fn_c_try_compile "$LINENO"; then :
2513 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2525 static long int longval () { return $2; }
2526 static unsigned long int ulongval () { return $2; }
2533 FILE *f = fopen ("conftest.val", "w");
2538 long int i = longval ();
2541 fprintf (f, "%ld", i);
2545 unsigned long int i = ulongval ();
2548 fprintf (f, "%lu", i);
2550 /* Do not output a trailing newline, as this causes \r\n confusion
2551 on some platforms. */
2552 return ferror (f) || fclose (f) != 0;
2558 if ac_fn_c_try_run "$LINENO"; then :
2559 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2564 conftest.$ac_objext conftest.beam conftest.$ac_ext
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2571 } # ac_fn_c_compute_int
2573 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2574 # ----------------------------------------------------
2575 # Tries to find if the field MEMBER exists in type AGGR, after including
2576 # INCLUDES, setting cache variable VAR accordingly.
2577 ac_fn_c_check_member ()
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2581 $as_echo_n "checking for $2.$3... " >&6; }
2582 if eval \${$4+:} false; then :
2583 $as_echo_n "(cached) " >&6
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2598 if ac_fn_c_try_compile "$LINENO"; then :
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2608 if (sizeof ac_aggr.$3)
2614 if ac_fn_c_try_compile "$LINENO"; then :
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2625 $as_echo "$ac_res" >&6; }
2626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2628 } # ac_fn_c_check_member
2630 # ac_fn_cxx_try_run LINENO
2631 # ------------------------
2632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2633 # that executables *can* be run.
2634 ac_fn_cxx_try_run ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 if { { ac_try="$ac_link"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643 $as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_link") 2>&5
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2648 { { case "(($ac_try" in
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_try") 2>&5
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; }; }; then :
2660 $as_echo "$as_me: program exited with status $ac_status" >&5
2661 $as_echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 ac_retval=$ac_status
2666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2668 as_fn_set_status $ac_retval
2670 } # ac_fn_cxx_try_run
2672 # ac_fn_cxx_check_func LINENO FUNC VAR
2673 # ------------------------------------
2674 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2675 ac_fn_cxx_check_func ()
2677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2679 $as_echo_n "checking for $2... " >&6; }
2680 if eval \${$3+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2685 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2687 #define $2 innocuous_$2
2689 /* System header to define __stub macros and hopefully few prototypes,
2690 which can conflict with char $2 (); below.
2691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2692 <limits.h> exists even on freestanding compilers. */
2695 # include <limits.h>
2697 # include <assert.h>
2702 /* Override any GCC internal prototype to avoid an error.
2703 Use char because int might match the return type of a GCC
2704 builtin and then its argument prototype would still apply. */
2709 /* The GNU C library defines this for functions which it implements
2710 to always fail with ENOSYS. Some functions are actually named
2711 something starting with __ and the normal name is an alias. */
2712 #if defined __stub_$2 || defined __stub___$2
2724 if ac_fn_cxx_try_link "$LINENO"; then :
2729 rm -f core conftest.err conftest.$ac_objext \
2730 conftest$ac_exeext conftest.$ac_ext
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734 $as_echo "$ac_res" >&6; }
2735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2737 } # ac_fn_cxx_check_func
2738 cat >config.log <<_ACEOF
2739 This file contains any messages produced by compilers while
2740 running configure, to aid debugging if configure makes a mistake.
2742 It was created by bacula $as_me 7.0.1, which was
2743 generated by GNU Autoconf 2.68. Invocation command line was
2755 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2756 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2757 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2758 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2759 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2761 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2762 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2764 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2765 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2766 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2767 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2768 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2769 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2770 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 $as_echo "PATH: $as_dir"
2795 # Keep a trace of the command line.
2796 # Strip out --no-create and --no-recursion so they do not pile up.
2797 # Strip out --silent because we don't want to record it for future runs.
2798 # Also quote any args containing shell meta-characters.
2799 # Make two passes to allow for proper duplicate-argument suppression.
2803 ac_must_keep_next=false
2809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2811 | -silent | --silent | --silen | --sile | --sil)
2814 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2817 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2819 as_fn_append ac_configure_args1 " '$ac_arg'"
2820 if test $ac_must_keep_next = true; then
2821 ac_must_keep_next=false # Got value, back to normal.
2824 *=* | --config-cache | -C | -disable-* | --disable-* \
2825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2827 | -with-* | --with-* | -without-* | --without-* | --x)
2828 case "$ac_configure_args0 " in
2829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2832 -* ) ac_must_keep_next=true ;;
2835 as_fn_append ac_configure_args " '$ac_arg'"
2840 { ac_configure_args0=; unset ac_configure_args0;}
2841 { ac_configure_args1=; unset ac_configure_args1;}
2843 # When interrupted or exit'd, cleanup temporary files, and complete
2844 # config.log. We remove comments because anyway the quotes in there
2845 # would cause problems or look ugly.
2846 # WARNING: Use '\'' to represent an apostrophe within the trap.
2847 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2848 trap 'exit_status=$?
2849 # Save into config.log some information that might help in debugging.
2853 $as_echo "## ---------------- ##
2854 ## Cache variables. ##
2855 ## ---------------- ##"
2857 # The following way of writing the cache mishandles newlines in values,
2859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2860 eval ac_val=\$$ac_var
2864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2868 _ | IFS | as_nl) ;; #(
2869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2870 *) { eval $ac_var=; unset $ac_var;} ;;
2875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2876 *${as_nl}ac_space=\ *)
2878 "s/'\''/'\''\\\\'\'''\''/g;
2879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2889 $as_echo "## ----------------- ##
2890 ## Output variables. ##
2891 ## ----------------- ##"
2893 for ac_var in $ac_subst_vars
2895 eval ac_val=\$$ac_var
2897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2899 $as_echo "$ac_var='\''$ac_val'\''"
2903 if test -n "$ac_subst_files"; then
2904 $as_echo "## ------------------- ##
2905 ## File substitutions. ##
2906 ## ------------------- ##"
2908 for ac_var in $ac_subst_files
2910 eval ac_val=\$$ac_var
2912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2914 $as_echo "$ac_var='\''$ac_val'\''"
2919 if test -s confdefs.h; then
2920 $as_echo "## ----------- ##
2927 test "$ac_signal" != 0 &&
2928 $as_echo "$as_me: caught signal $ac_signal"
2929 $as_echo "$as_me: exit $exit_status"
2931 rm -f core *.core core.conftest.* &&
2932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2935 for ac_signal in 1 2 13 15; do
2936 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2941 rm -f -r conftest* confdefs.h
2943 $as_echo "/* confdefs.h */" > confdefs.h
2945 # Predefined preprocessor variables.
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_NAME "$PACKAGE_NAME"
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_STRING "$PACKAGE_STRING"
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_URL "$PACKAGE_URL"
2972 # Let the site file select an alternate cache file if it wants to.
2973 # Prefer an explicitly selected file to automatically selected ones.
2976 if test -n "$CONFIG_SITE"; then
2977 # We do not want a PATH search for config.site.
2978 case $CONFIG_SITE in #((
2979 -*) ac_site_file1=./$CONFIG_SITE;;
2980 */*) ac_site_file1=$CONFIG_SITE;;
2981 *) ac_site_file1=./$CONFIG_SITE;;
2983 elif test "x$prefix" != xNONE; then
2984 ac_site_file1=$prefix/share/config.site
2985 ac_site_file2=$prefix/etc/config.site
2987 ac_site_file1=$ac_default_prefix/share/config.site
2988 ac_site_file2=$ac_default_prefix/etc/config.site
2990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2992 test "x$ac_site_file" = xNONE && continue
2993 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2996 sed 's/^/| /' "$ac_site_file" >&5
2998 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3000 as_fn_error $? "failed to load site script $ac_site_file
3001 See \`config.log' for more details" "$LINENO" 5; }
3005 if test -r "$cache_file"; then
3006 # Some versions of bash will fail to source /dev/null (special files
3007 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3008 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3010 $as_echo "$as_me: loading cache $cache_file" >&6;}
3012 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3013 *) . "./$cache_file";;
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3018 $as_echo "$as_me: creating cache $cache_file" >&6;}
3022 as_fn_append ac_header_list " stdlib.h"
3023 as_fn_append ac_header_list " unistd.h"
3024 as_fn_append ac_header_list " sys/param.h"
3025 # Check that the precious variables saved in the cache have kept the same
3027 ac_cache_corrupted=false
3028 for ac_var in $ac_precious_vars; do
3029 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3030 eval ac_new_set=\$ac_env_${ac_var}_set
3031 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3032 eval ac_new_val=\$ac_env_${ac_var}_value
3033 case $ac_old_set,$ac_new_set in
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3036 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3037 ac_cache_corrupted=: ;;
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3040 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3041 ac_cache_corrupted=: ;;
3044 if test "x$ac_old_val" != "x$ac_new_val"; then
3045 # differences in whitespace do not lead to failure.
3046 ac_old_val_w=`echo x $ac_old_val`
3047 ac_new_val_w=`echo x $ac_new_val`
3048 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3050 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3051 ac_cache_corrupted=:
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3054 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3055 eval $ac_var=\$ac_old_val
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3058 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3060 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3063 # Pass precious variables to config.status.
3064 if test "$ac_new_set" = set; then
3066 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3067 *) ac_arg=$ac_var=$ac_new_val ;;
3069 case " $ac_configure_args " in
3070 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3071 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3075 if $ac_cache_corrupted; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3079 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3080 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3082 ## -------------------- ##
3083 ## Main body of script. ##
3084 ## -------------------- ##
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3103 if test -f "$ac_dir/install-sh"; then
3105 ac_install_sh="$ac_aux_dir/install-sh -c"
3107 elif test -f "$ac_dir/install.sh"; then
3109 ac_install_sh="$ac_aux_dir/install.sh -c"
3111 elif test -f "$ac_dir/shtool"; then
3113 ac_install_sh="$ac_aux_dir/shtool install -c"
3117 if test -z "$ac_aux_dir"; then
3118 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3121 # These three variables are undocumented and unsupported,
3122 # and are intended to be withdrawn in a future Autoconf release.
3123 # They can cause serious problems if a builder's source tree is in a directory
3124 # whose full name contains unusual characters.
3125 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3126 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3127 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3130 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_path_TRUEPRG+:} false; then :
3140 $as_echo_n "(cached) " >&6
3144 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 TRUEPRG=$ac_cv_path_TRUEPRG
3166 if test -n "$TRUEPRG"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3168 $as_echo "$TRUEPRG" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$TRUEPRG" && break
3177 test -n "$TRUEPRG" || TRUEPRG=":"
3179 for ac_prog in false
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_path_FALSEPRG+:} false; then :
3186 $as_echo_n "(cached) " >&6
3190 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 FALSEPRG=$ac_cv_path_FALSEPRG
3212 if test -n "$FALSEPRG"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3214 $as_echo "$FALSEPRG" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3221 test -n "$FALSEPRG" && break
3223 test -n "$FALSEPRG" || FALSEPRG=":"
3228 if test "x$BACULA" != x; then
3229 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3231 BACULA=${BACULA:-Bacula}
3232 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3233 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3234 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3236 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3237 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3238 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3239 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3243 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3245 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3246 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3247 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3250 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3251 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3253 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3254 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3257 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3259 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3262 echo "configuring for ${BACULA} $VERSION ($DATE)"
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false; then :
3277 $as_echo_n "(cached) " >&6
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 if test -n "$CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302 $as_echo "$CC" >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3310 if test -z "$ac_cv_prog_CC"; then
3312 # Extract the first word of "gcc", so it can be a program name with args.
3313 set dummy gcc; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_prog_ac_ct_CC="gcc"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342 $as_echo "$ac_ct_CC" >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3348 if test "x$ac_ct_CC" = x; then
3351 case $cross_compiling:$ac_tool_warned in
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3355 ac_tool_warned=yes ;;
3363 if test -z "$CC"; then
3364 if test -n "$ac_tool_prefix"; then
3365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3366 set dummy ${ac_tool_prefix}cc; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_CC+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 if test -n "$CC"; then
3373 ac_cv_prog_CC="$CC" # Let the user override the test.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_CC="${ac_tool_prefix}cc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 if test -n "$CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395 $as_echo "$CC" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3404 if test -z "$CC"; then
3405 # Extract the first word of "cc", so it can be a program name with args.
3406 set dummy cc; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3424 ac_prog_rejected=yes
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 if test $ac_prog_rejected = yes; then
3436 # We found a bogon in the path, so make sure we never use it.
3437 set dummy $ac_cv_prog_CC
3439 if test $# != 0; then
3440 # We chose a different compiler from the bogus one.
3441 # However, it has the same basename, so the bogon will be chosen
3442 # first if we set CC to just the basename; use the full file name.
3444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3460 if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 for ac_prog in cl.exe
3464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if ${ac_cv_prog_CC+:} false; then :
3469 $as_echo_n "(cached) " >&6
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 if test -n "$CC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494 $as_echo "$CC" >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3501 test -n "$CC" && break
3504 if test -z "$CC"; then
3506 for ac_prog in cl.exe
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy $ac_prog; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_ac_ct_CC="$ac_prog"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536 if test -n "$ac_ct_CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538 $as_echo "$ac_ct_CC" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3545 test -n "$ac_ct_CC" && break
3548 if test "x$ac_ct_CC" = x; then
3551 case $cross_compiling:$ac_tool_warned in
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555 ac_tool_warned=yes ;;
3564 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "no acceptable C compiler found in \$PATH
3567 See \`config.log' for more details" "$LINENO" 5; }
3569 # Provide some information about the compiler.
3570 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3573 for ac_option in --version -v -V -qversion; do
3574 { { ac_try="$ac_compiler $ac_option >&5"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3583 if test -s conftest.err; then
3585 ... rest of stderr output deleted ...
3586 10q' conftest.err >conftest.er1
3587 cat conftest.er1 >&5
3589 rm -f conftest.er1 conftest.err
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3605 ac_clean_files_save=$ac_clean_files
3606 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3607 # Try to create an executable without -o first, disregard a.out.
3608 # It will help us diagnose broken compilers, and finding out an intuition
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3611 $as_echo_n "checking whether the C compiler works... " >&6; }
3612 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3614 # The possible output files:
3615 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3618 for ac_file in $ac_files
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3627 if { { ac_try="$ac_link_default"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_link_default") 2>&5
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }; then :
3638 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3639 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3640 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3641 # so that the user can short-circuit this test for compilers unknown to
3643 for ac_file in $ac_files ''
3645 test -f "$ac_file" || continue
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3650 # We found the default executable, but exeext='' is most
3654 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3656 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658 # We set ac_cv_exeext here because the later test for it is not
3659 # safe: cross compilers may not add the suffix if given an `-o'
3660 # argument, so we may need to know it at that point already.
3661 # Even if this section looks crufty: it has the advantage of
3668 test "$ac_cv_exeext" = no && ac_cv_exeext=
3673 if test -z "$ac_file"; then :
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error 77 "C compiler cannot create executables
3682 See \`config.log' for more details" "$LINENO" 5; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685 $as_echo "yes" >&6; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3688 $as_echo_n "checking for C compiler default output file name... " >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3690 $as_echo "$ac_file" >&6; }
3691 ac_exeext=$ac_cv_exeext
3693 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3694 ac_clean_files=$ac_clean_files_save
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3696 $as_echo_n "checking for suffix of executables... " >&6; }
3697 if { { ac_try="$ac_link"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_link") 2>&5
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }; then :
3708 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3709 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3710 # work properly (i.e., refer to `conftest.exe'), while it won't with
3712 for ac_file in conftest.exe conftest conftest.*; do
3713 test -f "$ac_file" || continue
3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3716 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3725 See \`config.log' for more details" "$LINENO" 5; }
3727 rm -f conftest conftest$ac_cv_exeext
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3729 $as_echo "$ac_cv_exeext" >&6; }
3731 rm -f conftest.$ac_ext
3732 EXEEXT=$ac_cv_exeext
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3740 FILE *f = fopen ("conftest.out", "w");
3741 return ferror (f) || fclose (f) != 0;
3747 ac_clean_files="$ac_clean_files conftest.out"
3748 # Check that the compiler produces executables we can run. If not, either
3749 # the compiler is broken, or we cross compile.
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3751 $as_echo_n "checking whether we are cross compiling... " >&6; }
3752 if test "$cross_compiling" != yes; then
3753 { { ac_try="$ac_link"
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_link") 2>&5
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }
3764 if { ac_try='./conftest$ac_cv_exeext'
3765 { { case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_try") 2>&5
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }; }; then
3777 if test "$cross_compiling" = maybe; then
3780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "cannot run C compiled programs.
3783 If you meant to cross compile, use \`--host'.
3784 See \`config.log' for more details" "$LINENO" 5; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3789 $as_echo "$cross_compiling" >&6; }
3791 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3792 ac_clean_files=$ac_clean_files_save
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3794 $as_echo_n "checking for suffix of object files... " >&6; }
3795 if ${ac_cv_objext+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3809 rm -f conftest.o conftest.obj
3810 if { { ac_try="$ac_compile"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compile") 2>&5
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then :
3821 for ac_file in conftest.o conftest.obj conftest.*; do
3822 test -f "$ac_file" || continue;
3824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3825 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3830 $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "cannot compute suffix of object files: cannot compile
3836 See \`config.log' for more details" "$LINENO" 5; }
3838 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3841 $as_echo "$ac_cv_objext" >&6; }
3842 OBJEXT=$ac_cv_objext
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3845 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3846 if ${ac_cv_c_compiler_gnu+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3863 if ac_fn_c_try_compile "$LINENO"; then :
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3873 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3874 if test $ac_compiler_gnu = yes; then
3879 ac_test_CFLAGS=${CFLAGS+set}
3880 ac_save_CFLAGS=$CFLAGS
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3882 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3883 if ${ac_cv_prog_cc_g+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 ac_save_c_werror_flag=$ac_c_werror_flag
3887 ac_c_werror_flag=yes
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3901 if ac_fn_c_try_compile "$LINENO"; then :
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3916 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_c_werror_flag=$ac_save_c_werror_flag
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3932 if ac_fn_c_try_compile "$LINENO"; then :
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 ac_c_werror_flag=$ac_save_c_werror_flag
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3943 $as_echo "$ac_cv_prog_cc_g" >&6; }
3944 if test "$ac_test_CFLAGS" = set; then
3945 CFLAGS=$ac_save_CFLAGS
3946 elif test $ac_cv_prog_cc_g = yes; then
3947 if test "$GCC" = yes; then
3953 if test "$GCC" = yes; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3960 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3961 if ${ac_cv_prog_cc_c89+:} false; then :
3962 $as_echo_n "(cached) " >&6
3964 ac_cv_prog_cc_c89=no
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3986 s = g (p, va_arg (v,int));
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3992 function prototypes and stuff, but not '\xHH' hex character constants.
3993 These don't provoke an error unfortunately, instead are silently treated
3994 as 'x'. The following induces an error, until -std is added to get
3995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3996 array size at least. It's necessary to write '\x00'==0 to get something
3997 that's true only with -std. */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001 inside strings and character constants. */
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 CC="$ac_save_CC $ac_arg"
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024 ac_cv_prog_cc_c89=$ac_arg
4026 rm -f core conftest.err conftest.$ac_objext
4027 test "x$ac_cv_prog_cc_c89" != "xno" && break
4029 rm -f conftest.$ac_ext
4034 case "x$ac_cv_prog_cc_c89" in
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4037 $as_echo "none needed" >&6; } ;;
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4040 $as_echo "unsupported" >&6; } ;;
4042 CC="$CC $ac_cv_prog_cc_c89"
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4046 if test "x$ac_cv_prog_cc_c89" != xno; then :
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 ac_cpp='$CXXCPP $CPPFLAGS'
4058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4061 if test -z "$CXX"; then
4062 if test -n "$CCC"; then
4065 if test -n "$ac_tool_prefix"; then
4066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if ${ac_cv_prog_CXX+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 if test -n "$CXX"; then
4076 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 if test -n "$CXX"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4098 $as_echo "$CXX" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4105 test -n "$CXX" && break
4108 if test -z "$CXX"; then
4110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4112 # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy $ac_prog; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$ac_ct_CXX"; then
4120 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_prog_ac_ct_CXX="$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4140 if test -n "$ac_ct_CXX"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4142 $as_echo "$ac_ct_CXX" >&6; }
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4149 test -n "$ac_ct_CXX" && break
4152 if test "x$ac_ct_CXX" = x; then
4155 case $cross_compiling:$ac_tool_warned in
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4159 ac_tool_warned=yes ;;
4167 # Provide some information about the compiler.
4168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4171 for ac_option in --version -v -V -qversion; do
4172 { { ac_try="$ac_compiler $ac_option >&5"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4181 if test -s conftest.err; then
4183 ... rest of stderr output deleted ...
4184 10q' conftest.err >conftest.er1
4185 cat conftest.er1 >&5
4187 rm -f conftest.er1 conftest.err
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4193 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4194 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4211 if ac_fn_cxx_try_compile "$LINENO"; then :
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4227 ac_test_CXXFLAGS=${CXXFLAGS+set}
4228 ac_save_CXXFLAGS=$CXXFLAGS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4231 if ${ac_cv_prog_cxx_g+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4235 ac_cxx_werror_flag=yes
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 if ac_fn_cxx_try_compile "$LINENO"; then :
4250 ac_cv_prog_cxx_g=yes
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4264 if ac_fn_cxx_try_compile "$LINENO"; then :
4267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 if ac_fn_cxx_try_compile "$LINENO"; then :
4281 ac_cv_prog_cxx_g=yes
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4291 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4292 if test "$ac_test_CXXFLAGS" = set; then
4293 CXXFLAGS=$ac_save_CXXFLAGS
4294 elif test $ac_cv_prog_cxx_g = yes; then
4295 if test "$GXX" = yes; then
4301 if test "$GXX" = yes; then
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 if test "x$CC" != xcc; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4315 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4318 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4320 set dummy $CC; ac_cc=`$as_echo "$2" |
4321 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4322 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4336 # Make sure it works both with $CC and with simple cc.
4337 # We do the test twice because some compilers refuse to overwrite an
4338 # existing .o file with -o, though they will create one.
4339 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4341 if { { case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 $as_echo "$ac_try_echo"; } >&5
4347 (eval "$ac_try") 2>&5
4349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; } &&
4351 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357 (eval "$ac_try") 2>&5
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; };
4362 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4363 if test "x$CC" != xcc; then
4364 # Test first that cc exists at all.
4365 if { ac_try='cc -c conftest.$ac_ext >&5'
4366 { { case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_try") 2>&5
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; }; then
4376 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4378 if { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; } &&
4388 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_try") 2>&5
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; };
4402 # cc exists but doesn't like -o.
4403 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4408 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4410 rm -f core conftest*
4413 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4420 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4431 # On Suns, sometimes $CPP names a directory.
4432 if test -n "$CPP" && test -d "$CPP"; then
4435 if test -z "$CPP"; then
4436 if ${ac_cv_prog_CPP+:} false; then :
4437 $as_echo_n "(cached) " >&6
4439 # Double quotes because CPP needs to be expanded
4440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4443 for ac_c_preproc_warn_flag in '' yes
4445 # Use a header file that comes with gcc, so configuring glibc
4446 # with a fresh cross-compiler works.
4447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4448 # <limits.h> exists even on freestanding compilers.
4449 # On the NeXT, cc -E runs the code through the compiler's parser,
4450 # not just through cpp. "Syntax error" is here to catch this case.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4454 # include <limits.h>
4456 # include <assert.h>
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4463 # Broken: fails on valid input.
4466 rm -f conftest.err conftest.i conftest.$ac_ext
4468 # OK, works on sane cases. Now check whether nonexistent headers
4469 # can be detected and how.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 #include <ac_nonexistent.h>
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4475 # Broken: success on invalid input.
4478 # Passes both tests.
4482 rm -f conftest.err conftest.i conftest.$ac_ext
4485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4486 rm -f conftest.i conftest.err conftest.$ac_ext
4487 if $ac_preproc_ok; then :
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4500 $as_echo "$CPP" >&6; }
4502 for ac_c_preproc_warn_flag in '' yes
4504 # Use a header file that comes with gcc, so configuring glibc
4505 # with a fresh cross-compiler works.
4506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507 # <limits.h> exists even on freestanding compilers.
4508 # On the NeXT, cc -E runs the code through the compiler's parser,
4509 # not just through cpp. "Syntax error" is here to catch this case.
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4513 # include <limits.h>
4515 # include <assert.h>
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4522 # Broken: fails on valid input.
4525 rm -f conftest.err conftest.i conftest.$ac_ext
4527 # OK, works on sane cases. Now check whether nonexistent headers
4528 # can be detected and how.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534 # Broken: success on invalid input.
4537 # Passes both tests.
4541 rm -f conftest.err conftest.i conftest.$ac_ext
4544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4545 rm -f conftest.i conftest.err conftest.$ac_ext
4546 if $ac_preproc_ok; then :
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4552 See \`config.log' for more details" "$LINENO" 5; }
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4563 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4564 if ${ac_cv_path_GREP+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -z "$GREP"; then
4568 ac_path_GREP_found=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 test -z "$as_dir" && as_dir=.
4575 for ac_prog in grep ggrep; do
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4578 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4579 # Check for GNU ac_path_GREP and select it if it is found.
4580 # Check for GNU $ac_path_GREP
4581 case `"$ac_path_GREP" --version 2>&1` in
4583 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4586 $as_echo_n 0123456789 >"conftest.in"
4589 cat "conftest.in" "conftest.in" >"conftest.tmp"
4590 mv "conftest.tmp" "conftest.in"
4591 cp "conftest.in" "conftest.nl"
4592 $as_echo 'GREP' >> "conftest.nl"
4593 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595 as_fn_arith $ac_count + 1 && ac_count=$as_val
4596 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4597 # Best one so far, save it but keep looking for a better one
4598 ac_cv_path_GREP="$ac_path_GREP"
4599 ac_path_GREP_max=$ac_count
4601 # 10*(2^10) chars as input seems more than enough
4602 test $ac_count -gt 10 && break
4604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 $ac_path_GREP_found && break 3
4612 if test -z "$ac_cv_path_GREP"; then
4613 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 ac_cv_path_GREP=$GREP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4621 $as_echo "$ac_cv_path_GREP" >&6; }
4622 GREP="$ac_cv_path_GREP"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4626 $as_echo_n "checking for egrep... " >&6; }
4627 if ${ac_cv_path_EGREP+:} false; then :
4628 $as_echo_n "(cached) " >&6
4630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4631 then ac_cv_path_EGREP="$GREP -E"
4633 if test -z "$EGREP"; then
4634 ac_path_EGREP_found=false
4635 # Loop through the user's path and test for each of PROGNAME-LIST
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640 test -z "$as_dir" && as_dir=.
4641 for ac_prog in egrep; do
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4644 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4645 # Check for GNU ac_path_EGREP and select it if it is found.
4646 # Check for GNU $ac_path_EGREP
4647 case `"$ac_path_EGREP" --version 2>&1` in
4649 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4652 $as_echo_n 0123456789 >"conftest.in"
4655 cat "conftest.in" "conftest.in" >"conftest.tmp"
4656 mv "conftest.tmp" "conftest.in"
4657 cp "conftest.in" "conftest.nl"
4658 $as_echo 'EGREP' >> "conftest.nl"
4659 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661 as_fn_arith $ac_count + 1 && ac_count=$as_val
4662 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4663 # Best one so far, save it but keep looking for a better one
4664 ac_cv_path_EGREP="$ac_path_EGREP"
4665 ac_path_EGREP_max=$ac_count
4667 # 10*(2^10) chars as input seems more than enough
4668 test $ac_count -gt 10 && break
4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4673 $ac_path_EGREP_found && break 3
4678 if test -z "$ac_cv_path_EGREP"; then
4679 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4682 ac_cv_path_EGREP=$EGREP
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4688 $as_echo "$ac_cv_path_EGREP" >&6; }
4689 EGREP="$ac_cv_path_EGREP"
4692 if test $ac_cv_c_compiler_gnu = yes; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4694 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4695 if ${ac_cv_prog_gcc_traditional+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 ac_pattern="Autoconf.*'x'"
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4706 ac_cv_prog_gcc_traditional=yes
4708 ac_cv_prog_gcc_traditional=no
4713 if test $ac_cv_prog_gcc_traditional = no; then
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4721 ac_cv_prog_gcc_traditional=yes
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4728 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4729 if test $ac_cv_prog_gcc_traditional = yes; then
4730 CC="$CC -traditional"
4734 BASECC=`basename $CC`
4736 if test "x$BASECC" = xgcc; then
4737 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4741 # Extract the first word of "$CXX", so it can be a program name with args.
4742 set dummy $CXX; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_path_CXX+:} false; then :
4746 $as_echo_n "(cached) " >&6
4750 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4773 if test -n "$CXX"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4775 $as_echo "$CXX" >&6; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4782 if test ! -e $CXX; then
4783 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4786 # Find a good install program. We prefer a C program (faster),
4787 # so one script is as good as another. But avoid the broken or
4788 # incompatible versions:
4789 # SysV /etc/install, /usr/sbin/install
4790 # SunOS /usr/etc/install
4791 # IRIX /sbin/install
4793 # AmigaOS /C/install, which installs bootblocks on floppy discs
4794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4797 # OS/2's system install, which has a completely different semantic
4798 # ./install, which can be erroneously created by make from ./install.sh.
4799 # Reject install programs that cannot install multiple files.
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4802 if test -z "$INSTALL"; then
4803 if ${ac_cv_path_install+:} false; then :
4804 $as_echo_n "(cached) " >&6
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 # Account for people who put trailing slashes in PATH elements.
4812 case $as_dir/ in #((
4813 ./ | .// | /[cC]/* | \
4814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4818 # OSF1 and SCO ODT 3.0 have their own names for install.
4819 # Don't use installbsd from OSF since it installs stuff as root
4821 for ac_prog in ginstall scoinst install; do
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4824 if test $ac_prog = install &&
4825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4826 # AIX install. It has an incompatible calling convention.
4828 elif test $ac_prog = install &&
4829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4830 # program-specific install script used by HP pwplus--don't use.
4833 rm -rf conftest.one conftest.two conftest.dir
4834 echo one > conftest.one
4835 echo two > conftest.two
4837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4838 test -s conftest.one && test -s conftest.two &&
4839 test -s conftest.dir/conftest.one &&
4840 test -s conftest.dir/conftest.two
4842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4855 rm -rf conftest.one conftest.two conftest.dir
4858 if test "${ac_cv_path_install+set}" = set; then
4859 INSTALL=$ac_cv_path_install
4861 # As a last resort, use the slow shell script. Don't cache a
4862 # value for INSTALL within a source directory, because that will
4863 # break other packages using the cache if that directory is
4864 # removed, or if the value is a relative name.
4865 INSTALL=$ac_install_sh
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4869 $as_echo "$INSTALL" >&6; }
4871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4872 # It thinks the first close brace ends the variable substitution.
4873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4879 # Extract the first word of "mv", so it can be a program name with args.
4880 set dummy mv; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_path_MV+:} false; then :
4884 $as_echo_n "(cached) " >&6
4888 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4911 if test -n "$MV"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4913 $as_echo "$MV" >&6; }
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4920 # Extract the first word of "rm", so it can be a program name with args.
4921 set dummy rm; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_path_REMOVE+:} false; then :
4925 $as_echo_n "(cached) " >&6
4929 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4951 REMOVE=$ac_cv_path_REMOVE
4952 if test -n "$REMOVE"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4954 $as_echo "$REMOVE" >&6; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 # Extract the first word of "cp", so it can be a program name with args.
4962 set dummy cp; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_path_CP+:} false; then :
4966 $as_echo_n "(cached) " >&6
4970 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4993 if test -n "$CP"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4995 $as_echo "$CP" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 # Extract the first word of "sed", so it can be a program name with args.
5003 set dummy sed; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_path_SED+:} false; then :
5007 $as_echo_n "(cached) " >&6
5011 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5034 if test -n "$SED"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5036 $as_echo "$SED" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5043 # Extract the first word of "echo", so it can be a program name with args.
5044 set dummy echo; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_path_ECHO+:} false; then :
5048 $as_echo_n "(cached) " >&6
5052 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5074 ECHO=$ac_cv_path_ECHO
5075 if test -n "$ECHO"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5077 $as_echo "$ECHO" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5084 # Extract the first word of "cmp", so it can be a program name with args.
5085 set dummy cmp; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_CMP+:} false; then :
5089 $as_echo_n "(cached) " >&6
5093 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5116 if test -n "$CMP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5118 $as_echo "$CMP" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5125 # Extract the first word of "tbl", so it can be a program name with args.
5126 set dummy tbl; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_path_TBL+:} false; then :
5130 $as_echo_n "(cached) " >&6
5134 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5157 if test -n "$TBL"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5159 $as_echo "$TBL" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5166 # Extract the first word of "ar", so it can be a program name with args.
5167 set dummy ar; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_AR+:} false; then :
5171 $as_echo_n "(cached) " >&6
5175 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5198 if test -n "$AR"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5200 $as_echo "$AR" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5207 # Extract the first word of "openssl", so it can be a program name with args.
5208 set dummy openssl; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_path_OPENSSL+:} false; then :
5212 $as_echo_n "(cached) " >&6
5216 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5238 OPENSSL=$ac_cv_path_OPENSSL
5239 if test -n "$OPENSSL"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5241 $as_echo "$OPENSSL" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 # Extract the first word of "mtx", so it can be a program name with args.
5249 set dummy mtx; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_path_MTX+:} false; then :
5253 $as_echo_n "(cached) " >&6
5257 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5280 if test -n "$MTX"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5282 $as_echo "$MTX" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 # Extract the first word of "dd", so it can be a program name with args.
5290 set dummy dd; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_path_DD+:} false; then :
5294 $as_echo_n "(cached) " >&6
5298 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5321 if test -n "$DD"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5323 $as_echo "$DD" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5330 # Extract the first word of "mkisofs", so it can be a program name with args.
5331 set dummy mkisofs; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_path_MKISOFS+:} false; then :
5335 $as_echo_n "(cached) " >&6
5339 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5361 MKISOFS=$ac_cv_path_MKISOFS
5362 if test -n "$MKISOFS"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5364 $as_echo "$MKISOFS" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5371 # Extract the first word of "python", so it can be a program name with args.
5372 set dummy python; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_path_PYTHON+:} false; then :
5376 $as_echo_n "(cached) " >&6
5380 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5402 PYTHON=$ac_cv_path_PYTHON
5403 if test -n "$PYTHON"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5405 $as_echo "$PYTHON" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 # Extract the first word of "growisofs", so it can be a program name with args.
5413 set dummy growisofs; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_path_GROWISOFS+:} false; then :
5417 $as_echo_n "(cached) " >&6
5421 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5443 GROWISOFS=$ac_cv_path_GROWISOFS
5444 if test -n "$GROWISOFS"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5446 $as_echo "$GROWISOFS" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5453 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5454 set dummy dvd+rw-mediainfo; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5458 $as_echo_n "(cached) " >&6
5460 case $DVDRWMEDIAINFO in
5462 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5484 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5485 if test -n "$DVDRWMEDIAINFO"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5487 $as_echo "$DVDRWMEDIAINFO" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5494 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5495 set dummy dvd+rw-format; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5499 $as_echo_n "(cached) " >&6
5501 case $DVDRWFORMAT in
5503 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5525 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5526 if test -n "$DVDRWFORMAT"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5528 $as_echo "$DVDRWFORMAT" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5535 # Extract the first word of "pkg-config", so it can be a program name with args.
5536 set dummy pkg-config; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_path_PKGCONFIG+:} false; then :
5540 $as_echo_n "(cached) " >&6
5544 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5566 PKGCONFIG=$ac_cv_path_PKGCONFIG
5567 if test -n "$PKGCONFIG"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5569 $as_echo "$PKGCONFIG" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5576 # Extract the first word of "qmake", so it can be a program name with args.
5577 set dummy qmake; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_path_QMAKE+:} false; then :
5581 $as_echo_n "(cached) " >&6
5585 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5607 QMAKE=$ac_cv_path_QMAKE
5608 if test -n "$QMAKE"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5610 $as_echo "$QMAKE" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5617 # Extract the first word of "gmake", so it can be a program name with args.
5618 set dummy gmake; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_path_GMAKE+:} false; then :
5622 $as_echo_n "(cached) " >&6
5626 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5648 GMAKE=$ac_cv_path_GMAKE
5649 if test -n "$GMAKE"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5651 $as_echo "$GMAKE" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5658 # Extract the first word of "cdrecord", so it can be a program name with args.
5659 set dummy cdrecord; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_path_CDRECORD+:} false; then :
5663 $as_echo_n "(cached) " >&6
5667 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5689 CDRECORD=$ac_cv_path_CDRECORD
5690 if test -n "$CDRECORD"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5692 $as_echo "$CDRECORD" >&6; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5699 # Extract the first word of "pidof", so it can be a program name with args.
5700 set dummy pidof; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_path_PIDOF+:} false; then :
5704 $as_echo_n "(cached) " >&6
5708 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5730 PIDOF=$ac_cv_path_PIDOF
5731 if test -n "$PIDOF"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5733 $as_echo "$PIDOF" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5740 for ac_prog in gawk mawk nawk awk
5742 # Extract the first word of "$ac_prog", so it can be a program name with args.
5743 set dummy $ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_AWK+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 if test -n "$AWK"; then
5750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_prog_AWK="$ac_prog"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 if test -n "$AWK"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5772 $as_echo "$AWK" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5779 test -n "$AWK" && break
5782 # Some AWK programs fail, so test it and warn the user
5783 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5784 { if ((prog == $2) || (("(" prog ")") == $2) ||
5785 (("" prog "") == $2) ||
5786 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5788 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5789 The regex engine of $AWK is too broken to be used you
5790 might want to install GNU AWK.
5791 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5794 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5795 set dummy $THE_AWK; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_path_AWK+:} false; then :
5799 $as_echo_n "(cached) " >&6
5803 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5826 if test -n "$AWK"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5828 $as_echo "$AWK" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5837 test -n "$ARFLAG" || ARFLAGS="cr"
5849 # Check whether --enable-libtool was given.
5850 if test "${enable_libtool+set}" = set; then :
5851 enableval=$enable_libtool;
5852 if test x$enableval = xno; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5862 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5868 macro_revision='1.3293'
5882 ltmain="$ac_aux_dir/ltmain.sh"
5884 # Make sure we can run config.sub.
5885 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5886 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5889 $as_echo_n "checking build system type... " >&6; }
5890 if ${ac_cv_build+:} false; then :
5891 $as_echo_n "(cached) " >&6
5893 ac_build_alias=$build_alias
5894 test "x$ac_build_alias" = x &&
5895 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5896 test "x$ac_build_alias" = x &&
5897 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5898 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5899 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5903 $as_echo "$ac_cv_build" >&6; }
5904 case $ac_cv_build in
5906 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5909 ac_save_IFS=$IFS; IFS='-'
5915 # Remember, the first character of IFS is used to create $*,
5916 # except with old shells:
5919 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5923 $as_echo_n "checking host system type... " >&6; }
5924 if ${ac_cv_host+:} false; then :
5925 $as_echo_n "(cached) " >&6
5927 if test "x$host_alias" = x; then
5928 ac_cv_host=$ac_cv_build
5930 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5931 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5936 $as_echo "$ac_cv_host" >&6; }
5939 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5942 ac_save_IFS=$IFS; IFS='-'
5948 # Remember, the first character of IFS is used to create $*,
5949 # except with old shells:
5952 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5955 # Backslashify metacharacters that are still active within
5956 # double-quoted strings.
5957 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5959 # Same as above, but do not quote variable references.
5960 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5962 # Sed substitution to delay expansion of an escaped shell variable in a
5963 # double_quote_subst'ed string.
5964 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5966 # Sed substitution to delay expansion of an escaped single quote.
5967 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5969 # Sed substitution to avoid accidental globbing in evaled expressions
5970 no_glob_subst='s/\*/\\\*/g'
5972 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5973 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5974 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5977 $as_echo_n "checking how to print strings... " >&6; }
5978 # Test print first, because it will be a builtin if present.
5979 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5980 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5982 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5985 # Use this function as a fallback that always works.
5986 func_fallback_echo ()
5988 eval 'cat <<_LTECHO_EOF
5992 ECHO='func_fallback_echo'
5995 # func_echo_all arg...
5996 # Invoke $ECHO with all args, space-separated.
6003 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6004 $as_echo "printf" >&6; } ;;
6005 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6006 $as_echo "print -r" >&6; } ;;
6007 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6008 $as_echo "cat" >&6; } ;;
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6025 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6026 if ${ac_cv_path_SED+:} false; then :
6027 $as_echo_n "(cached) " >&6
6029 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6030 for ac_i in 1 2 3 4 5 6 7; do
6031 ac_script="$ac_script$as_nl$ac_script"
6033 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6034 { ac_script=; unset ac_script;}
6035 if test -z "$SED"; then
6036 ac_path_SED_found=false
6037 # Loop through the user's path and test for each of PROGNAME-LIST
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_prog in sed gsed; do
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6046 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6047 # Check for GNU ac_path_SED and select it if it is found.
6048 # Check for GNU $ac_path_SED
6049 case `"$ac_path_SED" --version 2>&1` in
6051 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6054 $as_echo_n 0123456789 >"conftest.in"
6057 cat "conftest.in" "conftest.in" >"conftest.tmp"
6058 mv "conftest.tmp" "conftest.in"
6059 cp "conftest.in" "conftest.nl"
6060 $as_echo '' >> "conftest.nl"
6061 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6063 as_fn_arith $ac_count + 1 && ac_count=$as_val
6064 if test $ac_count -gt ${ac_path_SED_max-0}; then
6065 # Best one so far, save it but keep looking for a better one
6066 ac_cv_path_SED="$ac_path_SED"
6067 ac_path_SED_max=$ac_count
6069 # 10*(2^10) chars as input seems more than enough
6070 test $ac_count -gt 10 && break
6072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6075 $ac_path_SED_found && break 3
6080 if test -z "$ac_cv_path_SED"; then
6081 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6089 $as_echo "$ac_cv_path_SED" >&6; }
6090 SED="$ac_cv_path_SED"
6093 test -z "$SED" && SED=sed
6094 Xsed="$SED -e 1s/^X//"
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6107 $as_echo_n "checking for fgrep... " >&6; }
6108 if ${ac_cv_path_FGREP+:} false; then :
6109 $as_echo_n "(cached) " >&6
6111 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6112 then ac_cv_path_FGREP="$GREP -F"
6114 if test -z "$FGREP"; then
6115 ac_path_FGREP_found=false
6116 # Loop through the user's path and test for each of PROGNAME-LIST
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6121 test -z "$as_dir" && as_dir=.
6122 for ac_prog in fgrep; do
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6125 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6126 # Check for GNU ac_path_FGREP and select it if it is found.
6127 # Check for GNU $ac_path_FGREP
6128 case `"$ac_path_FGREP" --version 2>&1` in
6130 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6133 $as_echo_n 0123456789 >"conftest.in"
6136 cat "conftest.in" "conftest.in" >"conftest.tmp"
6137 mv "conftest.tmp" "conftest.in"
6138 cp "conftest.in" "conftest.nl"
6139 $as_echo 'FGREP' >> "conftest.nl"
6140 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6142 as_fn_arith $ac_count + 1 && ac_count=$as_val
6143 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6144 # Best one so far, save it but keep looking for a better one
6145 ac_cv_path_FGREP="$ac_path_FGREP"
6146 ac_path_FGREP_max=$ac_count
6148 # 10*(2^10) chars as input seems more than enough
6149 test $ac_count -gt 10 && break
6151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6154 $ac_path_FGREP_found && break 3
6159 if test -z "$ac_cv_path_FGREP"; then
6160 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6163 ac_cv_path_FGREP=$FGREP
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6169 $as_echo "$ac_cv_path_FGREP" >&6; }
6170 FGREP="$ac_cv_path_FGREP"
6173 test -z "$GREP" && GREP=grep
6193 # Check whether --with-gnu-ld was given.
6194 if test "${with_gnu_ld+set}" = set; then :
6195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6201 if test "$GCC" = yes; then
6202 # Check if gcc -print-prog-name=ld gives a path.
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6204 $as_echo_n "checking for ld used by $CC... " >&6; }
6207 # gcc leaves a trailing carriage return which upsets mingw
6208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6213 # Accept absolute paths.
6215 re_direlt='/[^/][^/]*/\.\./'
6216 # Canonicalize the pathname of ld
6217 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6218 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6219 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6221 test -z "$LD" && LD="$ac_prog"
6224 # If it fails, then pretend we aren't using GCC.
6228 # If it is relative, then search for the first ld in PATH.
6232 elif test "$with_gnu_ld" = yes; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6234 $as_echo_n "checking for GNU ld... " >&6; }
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6237 $as_echo_n "checking for non-GNU ld... " >&6; }
6239 if ${lt_cv_path_LD+:} false; then :
6240 $as_echo_n "(cached) " >&6
6242 if test -z "$LD"; then
6243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6244 for ac_dir in $PATH; do
6246 test -z "$ac_dir" && ac_dir=.
6247 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6248 lt_cv_path_LD="$ac_dir/$ac_prog"
6249 # Check to see if the program is GNU ld. I'd rather use --version,
6250 # but apparently some variants of GNU ld only accept -v.
6251 # Break only if it was the GNU/non-GNU ld that we prefer.
6252 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6253 *GNU* | *'with BFD'*)
6254 test "$with_gnu_ld" != no && break
6257 test "$with_gnu_ld" != yes && break
6264 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6269 if test -n "$LD"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6271 $as_echo "$LD" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6276 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6278 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6279 if ${lt_cv_prog_gnu_ld+:} false; then :
6280 $as_echo_n "(cached) " >&6
6282 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6283 case `$LD -v 2>&1 </dev/null` in
6284 *GNU* | *'with BFD'*)
6285 lt_cv_prog_gnu_ld=yes
6288 lt_cv_prog_gnu_ld=no
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6293 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6294 with_gnu_ld=$lt_cv_prog_gnu_ld
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6305 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6306 if ${lt_cv_path_NM+:} false; then :
6307 $as_echo_n "(cached) " >&6
6309 if test -n "$NM"; then
6310 # Let the user override the test.
6313 lt_nm_to_check="${ac_tool_prefix}nm"
6314 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6315 lt_nm_to_check="$lt_nm_to_check nm"
6317 for lt_tmp_nm in $lt_nm_to_check; do
6318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6319 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6321 test -z "$ac_dir" && ac_dir=.
6322 tmp_nm="$ac_dir/$lt_tmp_nm"
6323 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6324 # Check to see if the nm accepts a BSD-compat flag.
6325 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6326 # nm: unknown option "B" ignored
6327 # Tru64's nm complains that /dev/null is an invalid object file
6328 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6329 */dev/null* | *'Invalid file or object type'*)
6330 lt_cv_path_NM="$tmp_nm -B"
6334 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6336 lt_cv_path_NM="$tmp_nm -p"
6340 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6341 continue # so that we can try to find one that supports BSD flags
6350 : ${lt_cv_path_NM=no}
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6354 $as_echo "$lt_cv_path_NM" >&6; }
6355 if test "$lt_cv_path_NM" != "no"; then
6358 # Didn't find any BSD compatible name lister, look for dumpbin.
6359 if test -n "$DUMPBIN"; then :
6360 # Let the user override the test.
6362 if test -n "$ac_tool_prefix"; then
6363 for ac_prog in dumpbin "link -dump"
6365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_DUMPBIN+:} false; then :
6370 $as_echo_n "(cached) " >&6
6372 if test -n "$DUMPBIN"; then
6373 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 DUMPBIN=$ac_cv_prog_DUMPBIN
6393 if test -n "$DUMPBIN"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6395 $as_echo "$DUMPBIN" >&6; }
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6402 test -n "$DUMPBIN" && break
6405 if test -z "$DUMPBIN"; then
6406 ac_ct_DUMPBIN=$DUMPBIN
6407 for ac_prog in dumpbin "link -dump"
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6414 $as_echo_n "(cached) " >&6
6416 if test -n "$ac_ct_DUMPBIN"; then
6417 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6437 if test -n "$ac_ct_DUMPBIN"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6439 $as_echo "$ac_ct_DUMPBIN" >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6446 test -n "$ac_ct_DUMPBIN" && break
6449 if test "x$ac_ct_DUMPBIN" = x; then
6452 case $cross_compiling:$ac_tool_warned in
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6458 DUMPBIN=$ac_ct_DUMPBIN
6462 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6464 DUMPBIN="$DUMPBIN -symbols"
6472 if test "$DUMPBIN" != ":"; then
6476 test -z "$NM" && NM=nm
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6484 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6485 if ${lt_cv_nm_interface+:} false; then :
6486 $as_echo_n "(cached) " >&6
6488 lt_cv_nm_interface="BSD nm"
6489 echo "int some_variable = 0;" > conftest.$ac_ext
6490 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6491 (eval "$ac_compile" 2>conftest.err)
6492 cat conftest.err >&5
6493 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6494 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6495 cat conftest.err >&5
6496 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6497 cat conftest.out >&5
6498 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6499 lt_cv_nm_interface="MS dumpbin"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6504 $as_echo "$lt_cv_nm_interface" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6507 $as_echo_n "checking whether ln -s works... " >&6; }
6509 if test "$LN_S" = "ln -s"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6511 $as_echo "yes" >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6514 $as_echo "no, using $LN_S" >&6; }
6517 # find the maximum length of command line arguments
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6519 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6520 if ${lt_cv_sys_max_cmd_len+:} false; then :
6521 $as_echo_n "(cached) " >&6
6528 # On DJGPP, this test can blow up pretty badly due to problems in libc
6529 # (any single argument exceeding 2000 bytes causes a buffer overrun
6530 # during glob expansion). Even if it were fixed, the result of this
6531 # check would be larger than it should be.
6532 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6536 # Under GNU Hurd, this test is not required because there is
6537 # no limit to the length of command line arguments.
6538 # Libtool will interpret -1 as no limit whatsoever
6539 lt_cv_sys_max_cmd_len=-1;
6542 cygwin* | mingw* | cegcc*)
6543 # On Win9x/ME, this test blows up -- it succeeds, but takes
6544 # about 5 minutes as the teststring grows exponentially.
6545 # Worse, since 9x/ME are not pre-emptively multitasking,
6546 # you end up with a "frozen" computer, even though with patience
6547 # the test eventually succeeds (with a max line length of 256k).
6548 # Instead, let's just punt: use the minimum linelength reported by
6549 # all of the supported platforms: 8192 (on NT/2K/XP).
6550 lt_cv_sys_max_cmd_len=8192;
6554 # On MiNT this can take a long time and run out of memory.
6555 lt_cv_sys_max_cmd_len=8192;
6559 # On AmigaOS with pdksh, this test takes hours, literally.
6560 # So we just punt and use a minimum line length of 8192.
6561 lt_cv_sys_max_cmd_len=8192;
6564 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6565 # This has been around since 386BSD, at least. Likely further.
6566 if test -x /sbin/sysctl; then
6567 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6568 elif test -x /usr/sbin/sysctl; then
6569 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6571 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6573 # And add a safety zone
6574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6579 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6580 lt_cv_sys_max_cmd_len=196608
6584 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6585 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6586 # nice to cause kernel panics so lets avoid the loop below.
6587 # First set a reasonable default.
6588 lt_cv_sys_max_cmd_len=16384
6590 if test -x /sbin/sysconfig; then
6591 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6592 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6597 lt_cv_sys_max_cmd_len=102400
6599 sysv5* | sco5v6* | sysv4.2uw2*)
6600 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6601 if test -n "$kargmax"; then
6602 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6604 lt_cv_sys_max_cmd_len=32768
6608 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6609 if test -n "$lt_cv_sys_max_cmd_len"; then
6610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6613 # Make teststring a little bigger before we do anything with it.
6614 # a 1K string should be a reasonable start.
6615 for i in 1 2 3 4 5 6 7 8 ; do
6616 teststring=$teststring$teststring
6618 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6619 # If test is not a shell built-in, we'll probably end up computing a
6620 # maximum length that is only half of the actual maximum length, but
6622 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6623 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6624 test $i != 17 # 1/2 MB should be enough
6627 teststring=$teststring$teststring
6629 # Only check the string length outside the loop.
6630 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6632 # Add a significant safety factor because C++ compilers can tack on
6633 # massive amounts of additional arguments before passing them to the
6634 # linker. It appears as though 1/2 is a usable value.
6635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6642 if test -n $lt_cv_sys_max_cmd_len ; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6644 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6647 $as_echo "none" >&6; }
6649 max_cmd_len=$lt_cv_sys_max_cmd_len
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6661 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6662 # Try some XSI features
6665 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6667 && eval 'test $(( 1 + 1 )) -eq 2 \
6668 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6671 $as_echo "$xsi_shell" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6675 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6677 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6679 && lt_shell_append=yes
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6681 $as_echo "$lt_shell_append" >&6; }
6684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6694 # test EBCDIC or ASCII
6695 case `echo X|tr X '\101'` in
6696 A) # ASCII based system
6697 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6698 lt_SP2NL='tr \040 \012'
6699 lt_NL2SP='tr \015\012 \040\040'
6701 *) # EBCDIC based system
6702 lt_SP2NL='tr \100 \n'
6703 lt_NL2SP='tr \r\n \100\100'
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6716 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6717 if ${lt_cv_to_host_file_cmd+:} false; then :
6718 $as_echo_n "(cached) " >&6
6723 *-*-mingw* ) # actually msys
6724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6727 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6729 * ) # otherwise, assume *nix
6730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6736 *-*-mingw* ) # actually msys
6737 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6740 lt_cv_to_host_file_cmd=func_convert_file_noop
6742 * ) # otherwise, assume *nix
6743 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6747 * ) # unhandled hosts (and "normal" native builds)
6748 lt_cv_to_host_file_cmd=func_convert_file_noop
6754 to_host_file_cmd=$lt_cv_to_host_file_cmd
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6756 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6763 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6764 if ${lt_cv_to_tool_file_cmd+:} false; then :
6765 $as_echo_n "(cached) " >&6
6767 #assume ordinary cross tools, or native build.
6768 lt_cv_to_tool_file_cmd=func_convert_file_noop
6772 *-*-mingw* ) # actually msys
6773 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6781 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6783 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6790 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6791 if ${lt_cv_ld_reload_flag+:} false; then :
6792 $as_echo_n "(cached) " >&6
6794 lt_cv_ld_reload_flag='-r'
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6797 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6798 reload_flag=$lt_cv_ld_reload_flag
6799 case $reload_flag in
6801 *) reload_flag=" $reload_flag" ;;
6803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6805 cygwin* | mingw* | pw32* | cegcc*)
6806 if test "$GCC" != yes; then
6811 if test "$GCC" = yes; then
6812 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6827 if test -n "$ac_tool_prefix"; then
6828 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6829 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_OBJDUMP+:} false; then :
6833 $as_echo_n "(cached) " >&6
6835 if test -n "$OBJDUMP"; then
6836 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 OBJDUMP=$ac_cv_prog_OBJDUMP
6856 if test -n "$OBJDUMP"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6858 $as_echo "$OBJDUMP" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6866 if test -z "$ac_cv_prog_OBJDUMP"; then
6867 ac_ct_OBJDUMP=$OBJDUMP
6868 # Extract the first word of "objdump", so it can be a program name with args.
6869 set dummy objdump; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6873 $as_echo_n "(cached) " >&6
6875 if test -n "$ac_ct_OBJDUMP"; then
6876 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6896 if test -n "$ac_ct_OBJDUMP"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6898 $as_echo "$ac_ct_OBJDUMP" >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6904 if test "x$ac_ct_OBJDUMP" = x; then
6907 case $cross_compiling:$ac_tool_warned in
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911 ac_tool_warned=yes ;;
6913 OBJDUMP=$ac_ct_OBJDUMP
6916 OBJDUMP="$ac_cv_prog_OBJDUMP"
6919 test -z "$OBJDUMP" && OBJDUMP=objdump
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6930 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6931 if ${lt_cv_deplibs_check_method+:} false; then :
6932 $as_echo_n "(cached) " >&6
6934 lt_cv_file_magic_cmd='$MAGIC_CMD'
6935 lt_cv_file_magic_test_file=
6936 lt_cv_deplibs_check_method='unknown'
6937 # Need to set the preceding variable on all platforms that support
6938 # interlibrary dependencies.
6939 # 'none' -- dependencies not supported.
6940 # `unknown' -- same as none, but documents that we really don't know.
6941 # 'pass_all' -- all dependencies passed with no checks.
6942 # 'test_compile' -- check by making test program.
6943 # 'file_magic [[regex]]' -- check by looking for files in library path
6944 # which responds to the $file_magic_cmd with a given extended regex.
6945 # If you have `file' or equivalent on your system and you're not sure
6946 # whether `pass_all' will *always* work, you probably want this one.
6950 lt_cv_deplibs_check_method=pass_all
6954 lt_cv_deplibs_check_method=pass_all
6958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6959 lt_cv_file_magic_cmd='/usr/bin/file -L'
6960 lt_cv_file_magic_test_file=/shlib/libc.so
6964 # func_win32_libid is a shell function defined in ltmain.sh
6965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6966 lt_cv_file_magic_cmd='func_win32_libid'
6970 # Base MSYS/MinGW do not provide the 'file' command needed by
6971 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6972 # unless we find 'file', for example because we are cross-compiling.
6973 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6974 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6976 lt_cv_file_magic_cmd='func_win32_libid'
6978 # Keep this pattern in sync with the one in func_win32_libid.
6979 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6980 lt_cv_file_magic_cmd='$OBJDUMP -f'
6985 # use the weaker test based on 'objdump'. See mingw*.
6986 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6987 lt_cv_file_magic_cmd='$OBJDUMP -f'
6990 darwin* | rhapsody*)
6991 lt_cv_deplibs_check_method=pass_all
6994 freebsd* | dragonfly*)
6995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6998 # Not sure whether the presence of OpenBSD here was a mistake.
6999 # Let's accept both of them until this is cleared up.
7000 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7001 lt_cv_file_magic_cmd=/usr/bin/file
7002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7006 lt_cv_deplibs_check_method=pass_all
7011 lt_cv_deplibs_check_method=pass_all
7015 lt_cv_deplibs_check_method=pass_all
7018 hpux10.20* | hpux11*)
7019 lt_cv_file_magic_cmd=/usr/bin/file
7022 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7023 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7026 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]'
7027 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7031 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7037 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7041 irix5* | irix6* | nonstopux*)
7043 *-32|*"-32 ") libmagic=32-bit;;
7044 *-n32|*"-n32 ") libmagic=N32;;
7045 *-64|*"-64 ") libmagic=64-bit;;
7046 *) libmagic=never-match;;
7048 lt_cv_deplibs_check_method=pass_all
7051 # This must be Linux ELF.
7052 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7053 lt_cv_deplibs_check_method=pass_all
7057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7066 lt_cv_file_magic_cmd=/usr/bin/file
7067 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7071 lt_cv_deplibs_check_method=pass_all
7075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7082 osf3* | osf4* | osf5*)
7083 lt_cv_deplibs_check_method=pass_all
7087 lt_cv_deplibs_check_method=pass_all
7091 lt_cv_deplibs_check_method=pass_all
7094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7095 lt_cv_deplibs_check_method=pass_all
7099 case $host_vendor in
7101 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]'
7102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7105 lt_cv_deplibs_check_method=pass_all
7108 lt_cv_file_magic_cmd='/bin/file'
7109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7112 lt_cv_file_magic_cmd='/bin/file'
7113 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7114 lt_cv_file_magic_test_file=/lib/libc.so
7117 lt_cv_deplibs_check_method=pass_all
7120 lt_cv_deplibs_check_method=pass_all
7126 lt_cv_deplibs_check_method=pass_all
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7132 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7136 if test "$build" = "$host"; then
7139 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7142 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7148 file_magic_cmd=$lt_cv_file_magic_cmd
7149 deplibs_check_method=$lt_cv_deplibs_check_method
7150 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_DLLTOOL+:} false; then :
7179 $as_echo_n "(cached) " >&6
7181 if test -n "$DLLTOOL"; then
7182 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 DLLTOOL=$ac_cv_prog_DLLTOOL
7202 if test -n "$DLLTOOL"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7204 $as_echo "$DLLTOOL" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7212 if test -z "$ac_cv_prog_DLLTOOL"; then
7213 ac_ct_DLLTOOL=$DLLTOOL
7214 # Extract the first word of "dlltool", so it can be a program name with args.
7215 set dummy dlltool; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7219 $as_echo_n "(cached) " >&6
7221 if test -n "$ac_ct_DLLTOOL"; then
7222 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7242 if test -n "$ac_ct_DLLTOOL"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7244 $as_echo "$ac_ct_DLLTOOL" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7250 if test "x$ac_ct_DLLTOOL" = x; then
7253 case $cross_compiling:$ac_tool_warned in
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned=yes ;;
7259 DLLTOOL=$ac_ct_DLLTOOL
7262 DLLTOOL="$ac_cv_prog_DLLTOOL"
7265 test -z "$DLLTOOL" && DLLTOOL=dlltool
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7277 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7278 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 lt_cv_sharedlib_from_linklib_cmd='unknown'
7284 cygwin* | mingw* | pw32* | cegcc*)
7285 # two different shell functions defined in ltmain.sh
7286 # decide which to use based on capabilities of $DLLTOOL
7287 case `$DLLTOOL --help 2>&1` in
7288 *--identify-strict*)
7289 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7292 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7297 # fallback: assume linklib IS sharedlib
7298 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7304 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7305 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7306 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7314 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_AR+:} false; then :
7322 $as_echo_n "(cached) " >&6
7324 if test -n "$AR"; then
7325 ac_cv_prog_AR="$AR" # Let the user override the test.
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 if test -n "$AR"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7347 $as_echo "$AR" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7354 test -n "$AR" && break
7357 if test -z "$AR"; then
7361 # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7366 $as_echo_n "(cached) " >&6
7368 if test -n "$ac_ct_AR"; then
7369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_ac_ct_AR="$ac_prog"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7389 if test -n "$ac_ct_AR"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7391 $as_echo "$ac_ct_AR" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7398 test -n "$ac_ct_AR" && break
7401 if test "x$ac_ct_AR" = x; then
7404 case $cross_compiling:$ac_tool_warned in
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7428 $as_echo_n "checking for archiver @FILE support... " >&6; }
7429 if ${lt_cv_ar_at_file+:} false; then :
7430 $as_echo_n "(cached) " >&6
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7444 if ac_fn_c_try_compile "$LINENO"; then :
7445 echo conftest.$ac_objext > conftest.lst
7446 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7448 (eval $lt_ar_try) 2>&5
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; }
7452 if test "$ac_status" -eq 0; then
7453 # Ensure the archiver fails upon bogus file names.
7454 rm -f conftest.$ac_objext libconftest.a
7455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7456 (eval $lt_ar_try) 2>&5
7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459 test $ac_status = 0; }
7460 if test "$ac_status" -ne 0; then
7464 rm -f conftest.* libconftest.a
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7471 $as_echo "$lt_cv_ar_at_file" >&6; }
7473 if test "x$lt_cv_ar_at_file" = xno; then
7476 archiver_list_spec=$lt_cv_ar_at_file
7485 if test -n "$ac_tool_prefix"; then
7486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7487 set dummy ${ac_tool_prefix}strip; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_prog_STRIP+:} false; then :
7491 $as_echo_n "(cached) " >&6
7493 if test -n "$STRIP"; then
7494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 STRIP=$ac_cv_prog_STRIP
7514 if test -n "$STRIP"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7516 $as_echo "$STRIP" >&6; }
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7524 if test -z "$ac_cv_prog_STRIP"; then
7526 # Extract the first word of "strip", so it can be a program name with args.
7527 set dummy strip; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7531 $as_echo_n "(cached) " >&6
7533 if test -n "$ac_ct_STRIP"; then
7534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543 ac_cv_prog_ac_ct_STRIP="strip"
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7554 if test -n "$ac_ct_STRIP"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7556 $as_echo "$ac_ct_STRIP" >&6; }
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7562 if test "x$ac_ct_STRIP" = x; then
7565 case $cross_compiling:$ac_tool_warned in
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569 ac_tool_warned=yes ;;
7574 STRIP="$ac_cv_prog_STRIP"
7577 test -z "$STRIP" && STRIP=:
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$RANLIB"; then
7593 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 RANLIB=$ac_cv_prog_RANLIB
7613 if test -n "$RANLIB"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7615 $as_echo "$RANLIB" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7623 if test -z "$ac_cv_prog_RANLIB"; then
7624 ac_ct_RANLIB=$RANLIB
7625 # Extract the first word of "ranlib", so it can be a program name with args.
7626 set dummy ranlib; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7630 $as_echo_n "(cached) " >&6
7632 if test -n "$ac_ct_RANLIB"; then
7633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_prog_ac_ct_RANLIB="ranlib"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7653 if test -n "$ac_ct_RANLIB"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7655 $as_echo "$ac_ct_RANLIB" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7661 if test "x$ac_ct_RANLIB" = x; then
7664 case $cross_compiling:$ac_tool_warned in
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7670 RANLIB=$ac_ct_RANLIB
7673 RANLIB="$ac_cv_prog_RANLIB"
7676 test -z "$RANLIB" && RANLIB=:
7683 # Determine commands to create old-style static archives.
7684 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7685 old_postinstall_cmds='chmod 644 $oldlib'
7686 old_postuninstall_cmds=
7688 if test -n "$RANLIB"; then
7691 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7694 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7697 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7702 lock_old_archive_extraction=yes ;;
7704 lock_old_archive_extraction=no ;;
7745 # If no C compiler was specified, use CC.
7748 # If no C compiler flags were specified, use CFLAGS.
7749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7751 # Allow CC to be a program name with arguments.
7755 # Check for command to grab the raw symbol name followed by C symbol from nm.
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7757 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7758 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7759 $as_echo_n "(cached) " >&6
7762 # These are sane defaults that work on at least a few old systems.
7763 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7765 # Character class describing NM global symbol codes.
7766 symcode='[BCDEGRST]'
7768 # Regexp to match symbols that can be accessed directly from C.
7769 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7771 # Define system-specific variables.
7776 cygwin* | mingw* | pw32* | cegcc*)
7777 symcode='[ABCDGISTW]'
7780 if test "$host_cpu" = ia64; then
7781 symcode='[ABCDEGRST]'
7785 symcode='[BCDEGRST]'
7788 symcode='[BCDEGQRST]'
7799 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7807 # If we're using GNU nm, then use its standard symbol codes.
7808 case `$NM -V 2>&1` in
7809 *GNU* | *'with BFD'*)
7810 symcode='[ABCDGIRSTW]' ;;
7813 # Transform an extracted symbol line into a proper C declaration.
7814 # Some systems (esp. on ia64) link data and code symbols differently,
7815 # so use this general approach.
7816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7818 # Transform an extracted symbol line into symbol name and symbol address
7819 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7820 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'"
7822 # Handle CRLF in mingw tool chain
7826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7830 # Try without a prefix underscore, then with it.
7831 for ac_symprfx in "" "_"; do
7833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7834 symxfrm="\\1 $ac_symprfx\\2 \\2"
7836 # Write the raw and C identifiers.
7837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7838 # Fake it for dumpbin and say T for any non-static function
7839 # and D for any global variable.
7840 # Also find C++ and __fastcall symbols from MSVC++,
7841 # which start with @ or ?.
7842 lt_cv_sys_global_symbol_pipe="$AWK '"\
7843 " {last_section=section; section=\$ 3};"\
7844 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7845 " \$ 0!~/External *\|/{next};"\
7846 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7847 " {if(hide[section]) next};"\
7848 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7849 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7850 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7851 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7852 " ' prfx=^$ac_symprfx"
7854 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7856 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7858 # Check to see that the pipe works correctly.
7862 cat > conftest.$ac_ext <<_LT_EOF
7867 void nm_test_func(void);
7868 void nm_test_func(void){}
7872 int main(){nm_test_var='a';nm_test_func();return(0);}
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 # Now try to grab the symbols.
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7883 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; } && test -s "$nlist"; then
7887 # Try sorting and uniquifying the output.
7888 if sort "$nlist" | uniq > "$nlist"T; then
7889 mv -f "$nlist"T "$nlist"
7894 # Make sure that we snagged all the symbols we need.
7895 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7896 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7897 cat <<_LT_EOF > conftest.$ac_ext
7898 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7899 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7900 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7901 relocations are performed -- see ld's documentation on pseudo-relocs. */
7902 # define LT_DLSYM_CONST
7903 #elif defined(__osf__)
7904 /* This system does not cope well with relocations in const data. */
7905 # define LT_DLSYM_CONST
7907 # define LT_DLSYM_CONST const
7915 # Now generate the symbol file.
7916 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7918 cat <<_LT_EOF >> conftest.$ac_ext
7920 /* The mapping between symbol names and symbols. */
7921 LT_DLSYM_CONST struct {
7925 lt__PROGRAM__LTX_preloaded_symbols[] =
7927 { "@PROGRAM@", (void *) 0 },
7929 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7930 cat <<\_LT_EOF >> conftest.$ac_ext
7934 /* This works around a problem in FreeBSD linker */
7935 #ifdef FREEBSD_WORKAROUND
7936 static const void *lt_preloaded_setup() {
7937 return lt__PROGRAM__LTX_preloaded_symbols;
7945 # Now try linking the two files.
7946 mv conftest.$ac_objext conftstm.$ac_objext
7947 lt_globsym_save_LIBS=$LIBS
7948 lt_globsym_save_CFLAGS=$CFLAGS
7949 LIBS="conftstm.$ac_objext"
7950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7952 (eval $ac_link) 2>&5
7954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7958 LIBS=$lt_globsym_save_LIBS
7959 CFLAGS=$lt_globsym_save_CFLAGS
7961 echo "cannot find nm_test_func in $nlist" >&5
7964 echo "cannot find nm_test_var in $nlist" >&5
7967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7970 echo "$progname: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 rm -rf conftest* conftst*
7975 # Do not use the global_symbol_pipe unless it works.
7976 if test "$pipe_works" = yes; then
7979 lt_cv_sys_global_symbol_pipe=
7985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7986 lt_cv_sys_global_symbol_to_cdecl=
7988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7990 $as_echo "failed" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7993 $as_echo "ok" >&6; }
7996 # Response file support.
7997 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7998 nm_file_list_spec='@'
7999 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8000 nm_file_list_spec='@'
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8030 $as_echo_n "checking for sysroot... " >&6; }
8032 # Check whether --with-sysroot was given.
8033 if test "${with_sysroot+set}" = set; then :
8034 withval=$with_sysroot;
8041 case ${with_sysroot} in #(
8043 if test "$GCC" = yes; then
8044 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8048 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8054 $as_echo "${with_sysroot}" >&6; }
8055 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8060 $as_echo "${lt_sysroot:-no}" >&6; }
8066 # Check whether --enable-libtool-lock was given.
8067 if test "${enable_libtool_lock+set}" = set; then :
8068 enableval=$enable_libtool_lock;
8071 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8073 # Some flags need to be propagated to the compiler or linker for good
8077 # Find out which ABI we are using.
8078 echo 'int i;' > conftest.$ac_ext
8079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8080 (eval $ac_compile) 2>&5
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 case `/usr/bin/file conftest.$ac_objext` in
8096 # Find out which ABI we are using.
8097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8099 (eval $ac_compile) 2>&5
8101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8102 test $ac_status = 0; }; then
8103 if test "$lt_cv_prog_gnu_ld" = yes; then
8104 case `/usr/bin/file conftest.$ac_objext` in
8106 LD="${LD-ld} -melf32bsmip"
8109 LD="${LD-ld} -melf32bmipn32"
8112 LD="${LD-ld} -melf64bmip"
8116 case `/usr/bin/file conftest.$ac_objext` in
8132 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8133 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8134 # Find out which ABI we are using.
8135 echo 'int i;' > conftest.$ac_ext
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137 (eval $ac_compile) 2>&5
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 case `/usr/bin/file conftest.o` in
8144 x86_64-*kfreebsd*-gnu)
8145 LD="${LD-ld} -m elf_i386_fbsd"
8148 LD="${LD-ld} -m elf_i386"
8150 ppc64-*linux*|powerpc64-*linux*)
8151 LD="${LD-ld} -m elf32ppclinux"
8154 LD="${LD-ld} -m elf_s390"
8157 LD="${LD-ld} -m elf32_sparc"
8163 x86_64-*kfreebsd*-gnu)
8164 LD="${LD-ld} -m elf_x86_64_fbsd"
8167 LD="${LD-ld} -m elf_x86_64"
8169 ppc*-*linux*|powerpc*-*linux*)
8170 LD="${LD-ld} -m elf64ppc"
8172 s390*-*linux*|s390*-*tpf*)
8173 LD="${LD-ld} -m elf64_s390"
8176 LD="${LD-ld} -m elf64_sparc"
8186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8187 SAVE_CFLAGS="$CFLAGS"
8188 CFLAGS="$CFLAGS -belf"
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8191 if ${lt_cv_cc_needs_belf+:} false; then :
8192 $as_echo_n "(cached) " >&6
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8211 if ac_fn_c_try_link "$LINENO"; then :
8212 lt_cv_cc_needs_belf=yes
8214 lt_cv_cc_needs_belf=no
8216 rm -f core conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8229 CFLAGS="$SAVE_CFLAGS"
8233 # Find out which ABI we are using.
8234 echo 'int i;' > conftest.$ac_ext
8235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236 (eval $ac_compile) 2>&5
8238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239 test $ac_status = 0; }; then
8240 case `/usr/bin/file conftest.o` in
8242 case $lt_cv_prog_gnu_ld in
8243 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8245 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8257 need_locks="$enable_libtool_lock"
8259 if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}mt; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8265 $as_echo_n "(cached) " >&6
8267 if test -n "$MANIFEST_TOOL"; then
8268 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8288 if test -n "$MANIFEST_TOOL"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8290 $as_echo "$MANIFEST_TOOL" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8298 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8299 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8300 # Extract the first word of "mt", so it can be a program name with args.
8301 set dummy mt; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8305 $as_echo_n "(cached) " >&6
8307 if test -n "$ac_ct_MANIFEST_TOOL"; then
8308 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8328 if test -n "$ac_ct_MANIFEST_TOOL"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8330 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8336 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8339 case $cross_compiling:$ac_tool_warned in
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343 ac_tool_warned=yes ;;
8345 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8348 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8351 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8353 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8354 if ${lt_cv_path_mainfest_tool+:} false; then :
8355 $as_echo_n "(cached) " >&6
8357 lt_cv_path_mainfest_tool=no
8358 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8359 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8360 cat conftest.err >&5
8361 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8362 lt_cv_path_mainfest_tool=yes
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8367 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8368 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8378 rhapsody* | darwin*)
8379 if test -n "$ac_tool_prefix"; then
8380 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8381 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8385 $as_echo_n "(cached) " >&6
8387 if test -n "$DSYMUTIL"; then
8388 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8408 if test -n "$DSYMUTIL"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8410 $as_echo "$DSYMUTIL" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8418 if test -z "$ac_cv_prog_DSYMUTIL"; then
8419 ac_ct_DSYMUTIL=$DSYMUTIL
8420 # Extract the first word of "dsymutil", so it can be a program name with args.
8421 set dummy dsymutil; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8425 $as_echo_n "(cached) " >&6
8427 if test -n "$ac_ct_DSYMUTIL"; then
8428 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8448 if test -n "$ac_ct_DSYMUTIL"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8450 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8456 if test "x$ac_ct_DSYMUTIL" = x; then
8459 case $cross_compiling:$ac_tool_warned in
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8463 ac_tool_warned=yes ;;
8465 DSYMUTIL=$ac_ct_DSYMUTIL
8468 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8471 if test -n "$ac_tool_prefix"; then
8472 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8473 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_prog_NMEDIT+:} false; then :
8477 $as_echo_n "(cached) " >&6
8479 if test -n "$NMEDIT"; then
8480 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 test -z "$as_dir" && as_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 NMEDIT=$ac_cv_prog_NMEDIT
8500 if test -n "$NMEDIT"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8502 $as_echo "$NMEDIT" >&6; }
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8510 if test -z "$ac_cv_prog_NMEDIT"; then
8511 ac_ct_NMEDIT=$NMEDIT
8512 # Extract the first word of "nmedit", so it can be a program name with args.
8513 set dummy nmedit; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8517 $as_echo_n "(cached) " >&6
8519 if test -n "$ac_ct_NMEDIT"; then
8520 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8540 if test -n "$ac_ct_NMEDIT"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8542 $as_echo "$ac_ct_NMEDIT" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8548 if test "x$ac_ct_NMEDIT" = x; then
8551 case $cross_compiling:$ac_tool_warned in
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8555 ac_tool_warned=yes ;;
8557 NMEDIT=$ac_ct_NMEDIT
8560 NMEDIT="$ac_cv_prog_NMEDIT"
8563 if test -n "$ac_tool_prefix"; then
8564 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8565 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if ${ac_cv_prog_LIPO+:} false; then :
8569 $as_echo_n "(cached) " >&6
8571 if test -n "$LIPO"; then
8572 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 LIPO=$ac_cv_prog_LIPO
8592 if test -n "$LIPO"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8594 $as_echo "$LIPO" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8602 if test -z "$ac_cv_prog_LIPO"; then
8604 # Extract the first word of "lipo", so it can be a program name with args.
8605 set dummy lipo; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8609 $as_echo_n "(cached) " >&6
8611 if test -n "$ac_ct_LIPO"; then
8612 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8621 ac_cv_prog_ac_ct_LIPO="lipo"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8632 if test -n "$ac_ct_LIPO"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8634 $as_echo "$ac_ct_LIPO" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8640 if test "x$ac_ct_LIPO" = x; then
8643 case $cross_compiling:$ac_tool_warned in
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8647 ac_tool_warned=yes ;;
8652 LIPO="$ac_cv_prog_LIPO"
8655 if test -n "$ac_tool_prefix"; then
8656 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8657 set dummy ${ac_tool_prefix}otool; ac_word=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if ${ac_cv_prog_OTOOL+:} false; then :
8661 $as_echo_n "(cached) " >&6
8663 if test -n "$OTOOL"; then
8664 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 test -z "$as_dir" && as_dir=.
8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8673 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 OTOOL=$ac_cv_prog_OTOOL
8684 if test -n "$OTOOL"; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8686 $as_echo "$OTOOL" >&6; }
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8694 if test -z "$ac_cv_prog_OTOOL"; then
8696 # Extract the first word of "otool", so it can be a program name with args.
8697 set dummy otool; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8701 $as_echo_n "(cached) " >&6
8703 if test -n "$ac_ct_OTOOL"; then
8704 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8713 ac_cv_prog_ac_ct_OTOOL="otool"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8724 if test -n "$ac_ct_OTOOL"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8726 $as_echo "$ac_ct_OTOOL" >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8732 if test "x$ac_ct_OTOOL" = x; then
8735 case $cross_compiling:$ac_tool_warned in
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8739 ac_tool_warned=yes ;;
8744 OTOOL="$ac_cv_prog_OTOOL"
8747 if test -n "$ac_tool_prefix"; then
8748 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8749 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_OTOOL64+:} false; then :
8753 $as_echo_n "(cached) " >&6
8755 if test -n "$OTOOL64"; then
8756 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 OTOOL64=$ac_cv_prog_OTOOL64
8776 if test -n "$OTOOL64"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8778 $as_echo "$OTOOL64" >&6; }
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8786 if test -z "$ac_cv_prog_OTOOL64"; then
8787 ac_ct_OTOOL64=$OTOOL64
8788 # Extract the first word of "otool64", so it can be a program name with args.
8789 set dummy otool64; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 if test -n "$ac_ct_OTOOL64"; then
8796 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805 ac_cv_prog_ac_ct_OTOOL64="otool64"
8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8816 if test -n "$ac_ct_OTOOL64"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8818 $as_echo "$ac_ct_OTOOL64" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8824 if test "x$ac_ct_OTOOL64" = x; then
8827 case $cross_compiling:$ac_tool_warned in
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8831 ac_tool_warned=yes ;;
8833 OTOOL64=$ac_ct_OTOOL64
8836 OTOOL64="$ac_cv_prog_OTOOL64"
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8866 $as_echo_n "checking for -single_module linker flag... " >&6; }
8867 if ${lt_cv_apple_cc_single_mod+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 lt_cv_apple_cc_single_mod=no
8871 if test -z "${LT_MULTI_MODULE}"; then
8872 # By default we will add the -single_module flag. You can override
8873 # by either setting the environment variable LT_MULTI_MODULE
8874 # non-empty at configure time, or by adding -multi_module to the
8876 rm -rf libconftest.dylib*
8877 echo "int foo(void){return 1;}" > conftest.c
8878 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8879 -dynamiclib -Wl,-single_module conftest.c" >&5
8880 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8881 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8883 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8884 lt_cv_apple_cc_single_mod=yes
8886 cat conftest.err >&5
8888 rm -rf libconftest.dylib*
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8893 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8895 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8896 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8897 $as_echo_n "(cached) " >&6
8899 lt_cv_ld_exported_symbols_list=no
8900 save_LDFLAGS=$LDFLAGS
8901 echo "_main" > conftest.sym
8902 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8914 if ac_fn_c_try_link "$LINENO"; then :
8915 lt_cv_ld_exported_symbols_list=yes
8917 lt_cv_ld_exported_symbols_list=no
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 LDFLAGS="$save_LDFLAGS"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8925 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8927 $as_echo_n "checking for -force_load linker flag... " >&6; }
8928 if ${lt_cv_ld_force_load+:} false; then :
8929 $as_echo_n "(cached) " >&6
8931 lt_cv_ld_force_load=no
8932 cat > conftest.c << _LT_EOF
8933 int forced_loaded() { return 2;}
8935 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8936 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8937 echo "$AR cru libconftest.a conftest.o" >&5
8938 $AR cru libconftest.a conftest.o 2>&5
8939 echo "$RANLIB libconftest.a" >&5
8940 $RANLIB libconftest.a 2>&5
8941 cat > conftest.c << _LT_EOF
8942 int main() { return 0;}
8944 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8945 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8947 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8948 lt_cv_ld_force_load=yes
8950 cat conftest.err >&5
8952 rm -f conftest.err libconftest.a conftest conftest.c
8953 rm -rf conftest.dSYM
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8957 $as_echo "$lt_cv_ld_force_load" >&6; }
8959 rhapsody* | darwin1.[012])
8960 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8963 darwin*) # darwin 5.x on
8964 # if running on 10.5 or later, the deployment target defaults
8965 # to the OS version, if on x86, and 10.4, the deployment
8966 # target defaults to 10.4. Don't you love it?
8967 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8968 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8969 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8973 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8977 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8978 _lt_dar_single_mod='$single_module'
8980 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8981 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8983 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8985 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8986 _lt_dsymutil='~$DSYMUTIL $lib || :'
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8994 $as_echo_n "checking for ANSI C header files... " >&6; }
8995 if ${ac_cv_header_stdc+:} false; then :
8996 $as_echo_n "(cached) " >&6
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 ac_cv_header_stdc=yes
9016 ac_cv_header_stdc=no
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 if test $ac_cv_header_stdc = yes; then
9021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9028 $EGREP "memchr" >/dev/null 2>&1; then :
9031 ac_cv_header_stdc=no
9037 if test $ac_cv_header_stdc = yes; then
9038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9045 $EGREP "free" >/dev/null 2>&1; then :
9048 ac_cv_header_stdc=no
9054 if test $ac_cv_header_stdc = yes; then
9055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9056 if test "$cross_compiling" = yes; then :
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9063 #if ((' ' & 0x0FF) == 0x020)
9064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9067 # define ISLOWER(c) \
9068 (('a' <= (c) && (c) <= 'i') \
9069 || ('j' <= (c) && (c) <= 'r') \
9070 || ('s' <= (c) && (c) <= 'z'))
9071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9079 for (i = 0; i < 256; i++)
9080 if (XOR (islower (i), ISLOWER (i))
9081 || toupper (i) != TOUPPER (i))
9086 if ac_fn_c_try_run "$LINENO"; then :
9089 ac_cv_header_stdc=no
9091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9092 conftest.$ac_objext conftest.beam conftest.$ac_ext
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9098 $as_echo "$ac_cv_header_stdc" >&6; }
9099 if test $ac_cv_header_stdc = yes; then
9101 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9105 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9107 inttypes.h stdint.h unistd.h
9109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9113 cat >>confdefs.h <<_ACEOF
9114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9122 for ac_header in dlfcn.h
9124 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9126 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9127 cat >>confdefs.h <<_ACEOF
9128 #define HAVE_DLFCN_H 1
9138 func_stripname_cnf ()
9141 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9142 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9144 } # func_stripname_cnf
9151 # Check whether --enable-shared was given.
9152 if test "${enable_shared+set}" = set; then :
9153 enableval=$enable_shared; p=${PACKAGE-default}
9155 yes) enable_shared=yes ;;
9156 no) enable_shared=no ;;
9159 # Look at the argument we got. We use all the common list separators.
9160 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9161 for pkg in $enableval; do
9163 if test "X$pkg" = "X$p"; then
9180 # Check whether --enable-static was given.
9181 if test "${enable_static+set}" = set; then :
9182 enableval=$enable_static; p=${PACKAGE-default}
9184 yes) enable_static=yes ;;
9185 no) enable_static=no ;;
9188 # Look at the argument we got. We use all the common list separators.
9189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9190 for pkg in $enableval; do
9192 if test "X$pkg" = "X$p"; then
9221 # Check whether --with-pic was given.
9222 if test "${with_pic+set}" = set; then :
9223 withval=$with_pic; pic_mode="$withval"
9229 test -z "$pic_mode" && pic_mode=default
9237 # Check whether --enable-fast-install was given.
9238 if test "${enable_fast_install+set}" = set; then :
9239 enableval=$enable_fast_install; p=${PACKAGE-default}
9241 yes) enable_fast_install=yes ;;
9242 no) enable_fast_install=no ;;
9244 enable_fast_install=no
9245 # Look at the argument we got. We use all the common list separators.
9246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9247 for pkg in $enableval; do
9249 if test "X$pkg" = "X$p"; then
9250 enable_fast_install=yes
9257 enable_fast_install=yes
9270 # This can be used to rebuild libtool when needed
9271 LIBTOOL_DEPS="$ltmain"
9273 # Always use our own libtool.
9274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9301 test -z "$LN_S" && LN_S="ln -s"
9316 if test -n "${ZSH_VERSION+set}" ; then
9317 setopt NO_GLOB_SUBST
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9321 $as_echo_n "checking for objdir... " >&6; }
9322 if ${lt_cv_objdir+:} false; then :
9323 $as_echo_n "(cached) " >&6
9325 rm -f .libs 2>/dev/null
9326 mkdir .libs 2>/dev/null
9327 if test -d .libs; then
9330 # MS-DOS does not allow filenames that begin with a dot.
9333 rmdir .libs 2>/dev/null
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9336 $as_echo "$lt_cv_objdir" >&6; }
9337 objdir=$lt_cv_objdir
9343 cat >>confdefs.h <<_ACEOF
9344 #define LT_OBJDIR "$lt_cv_objdir/"
9352 # AIX sometimes has problems with the GCC collect2 program. For some
9353 # reason, if we set the COLLECT_NAMES environment variable, the problems
9354 # vanish in a puff of smoke.
9355 if test "X${COLLECT_NAMES+set}" != Xset; then
9357 export COLLECT_NAMES
9364 can_build_shared=yes
9366 # All known linkers require a `.a' archive for static linking (except MSVC,
9367 # which needs '.lib').
9370 with_gnu_ld="$lt_cv_prog_gnu_ld"
9373 old_CFLAGS="$CFLAGS"
9375 # Set sane defaults for various variables
9376 test -z "$CC" && CC=cc
9377 test -z "$LTCC" && LTCC=$CC
9378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9379 test -z "$LD" && LD=ld
9380 test -z "$ac_objext" && ac_objext=o
9382 for cc_temp in $compiler""; do
9384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9393 # Only perform the check for file, if the check method requires it
9394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9395 case $deplibs_check_method in
9397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9400 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9401 $as_echo_n "(cached) " >&6
9405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9408 lt_save_MAGIC_CMD="$MAGIC_CMD"
9409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9411 for ac_dir in $ac_dummy; do
9413 test -z "$ac_dir" && ac_dir=.
9414 if test -f $ac_dir/${ac_tool_prefix}file; then
9415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9416 if test -n "$file_magic_test_file"; then
9417 case $deplibs_check_method in
9419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9422 $EGREP "$file_magic_regex" > /dev/null; then
9427 *** Warning: the command libtool uses to detect shared libraries,
9428 *** $file_magic_cmd, produces output that libtool cannot recognize.
9429 *** The result is that libtool may fail to recognize shared libraries
9430 *** as such. This will affect the creation of libtool libraries that
9431 *** depend on shared libraries, but programs linked with such libtool
9432 *** libraries will work regardless of this problem. Nevertheless, you
9433 *** may want to report the problem to your system manager and/or to
9434 *** bug-libtool@gnu.org
9444 MAGIC_CMD="$lt_save_MAGIC_CMD"
9449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9450 if test -n "$MAGIC_CMD"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9452 $as_echo "$MAGIC_CMD" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9462 if test -z "$lt_cv_path_MAGIC_CMD"; then
9463 if test -n "$ac_tool_prefix"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9465 $as_echo_n "checking for file... " >&6; }
9466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9467 $as_echo_n "(cached) " >&6
9471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9474 lt_save_MAGIC_CMD="$MAGIC_CMD"
9475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9477 for ac_dir in $ac_dummy; do
9479 test -z "$ac_dir" && ac_dir=.
9480 if test -f $ac_dir/file; then
9481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9482 if test -n "$file_magic_test_file"; then
9483 case $deplibs_check_method in
9485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9488 $EGREP "$file_magic_regex" > /dev/null; then
9493 *** Warning: the command libtool uses to detect shared libraries,
9494 *** $file_magic_cmd, produces output that libtool cannot recognize.
9495 *** The result is that libtool may fail to recognize shared libraries
9496 *** as such. This will affect the creation of libtool libraries that
9497 *** depend on shared libraries, but programs linked with such libtool
9498 *** libraries will work regardless of this problem. Nevertheless, you
9499 *** may want to report the problem to your system manager and/or to
9500 *** bug-libtool@gnu.org
9510 MAGIC_CMD="$lt_save_MAGIC_CMD"
9515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9516 if test -n "$MAGIC_CMD"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9518 $as_echo "$MAGIC_CMD" >&6; }
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9534 # Use C for the default configuration in the libtool script
9538 ac_cpp='$CPP $CPPFLAGS'
9539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9544 # Source file extension for C test sources.
9547 # Object file extension for compiled C test sources.
9551 # Code to be used in simple compile tests
9552 lt_simple_compile_test_code="int some_variable = 0;"
9554 # Code to be used in simple link tests
9555 lt_simple_link_test_code='int main(){return(0);}'
9563 # If no C compiler was specified, use CC.
9566 # If no C compiler flags were specified, use CFLAGS.
9567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9569 # Allow CC to be a program name with arguments.
9572 # Save the default compiler, since it gets overwritten when the other
9573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9574 compiler_DEFAULT=$CC
9576 # save warnings/boilerplate of simple test code
9577 ac_outfile=conftest.$ac_objext
9578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9580 _lt_compiler_boilerplate=`cat conftest.err`
9583 ac_outfile=conftest.$ac_objext
9584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9586 _lt_linker_boilerplate=`cat conftest.err`
9591 ## There is no encapsulation within the following macros, do not change
9592 ## the running order or otherwise move them around unless you know exactly
9593 ## what you are doing...
9594 if test -n "$compiler"; then
9596 lt_prog_compiler_no_builtin_flag=
9598 if test "$GCC" = yes; then
9599 case $cc_basename in
9601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9608 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9609 $as_echo_n "(cached) " >&6
9611 lt_cv_prog_compiler_rtti_exceptions=no
9612 ac_outfile=conftest.$ac_objext
9613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9614 lt_compiler_flag="-fno-rtti -fno-exceptions"
9615 # Insert the option either (1) after the last *FLAGS variable, or
9616 # (2) before a word containing "conftest.", or (3) at the end.
9617 # Note that $ac_compile itself does not contain backslashes and begins
9618 # with a dollar sign (not a hyphen), so the echo should work correctly.
9619 # The option is referenced via a variable to avoid confusing sed.
9620 lt_compile=`echo "$ac_compile" | $SED \
9621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9623 -e 's:$: $lt_compiler_flag:'`
9624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9625 (eval "$lt_compile" 2>conftest.err)
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 if (exit $ac_status) && test -s "$ac_outfile"; then
9630 # The compiler can only warn and ignore the option if not recognized
9631 # So say no if there are warnings other than the usual output.
9632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9635 lt_cv_prog_compiler_rtti_exceptions=yes
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9657 lt_prog_compiler_wl=
9658 lt_prog_compiler_pic=
9659 lt_prog_compiler_static=
9662 if test "$GCC" = yes; then
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_static='-static'
9668 # All AIX code is PIC.
9669 if test "$host_cpu" = ia64; then
9670 # AIX 5 now supports IA64 processor
9671 lt_prog_compiler_static='-Bstatic'
9678 # see comment about AmigaOS4 .so support
9679 lt_prog_compiler_pic='-fPIC'
9682 # FIXME: we need at least 68020 code to build shared libraries, but
9683 # adding the `-m68020' flag to GCC prevents building anything better,
9685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9691 # PIC is the default for these OSes.
9694 mingw* | cygwin* | pw32* | os2* | cegcc*)
9695 # This hack is so that the source file can tell whether it is being
9696 # built for inclusion in a dll (and should export symbols for example).
9697 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9698 # (--disable-auto-import) libraries
9699 lt_prog_compiler_pic='-DDLL_EXPORT'
9702 darwin* | rhapsody*)
9703 # PIC is the default on this platform
9704 # Common symbols not allowed in MH_DYLIB files
9705 lt_prog_compiler_pic='-fno-common'
9709 # PIC is the default for Haiku.
9710 # The "-static" flag exists, but is broken.
9711 lt_prog_compiler_static=
9715 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9716 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9717 # sets the default TLS model and affects inlining.
9723 lt_prog_compiler_pic='-fPIC'
9729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9730 # Instead, we relocate shared libraries at runtime.
9734 # Just because we use GCC doesn't mean we suddenly get shared libraries
9735 # on systems that don't support them.
9736 lt_prog_compiler_can_build_shared=no
9741 # QNX uses GNU C++, but need to define -shared option too, otherwise
9743 lt_prog_compiler_pic='-fPIC -shared'
9747 if test -d /usr/nec; then
9748 lt_prog_compiler_pic=-Kconform_pic
9753 lt_prog_compiler_pic='-fPIC'
9757 case $cc_basename in
9758 nvcc*) # Cuda Compiler Driver 2.2
9759 lt_prog_compiler_wl='-Xlinker '
9760 lt_prog_compiler_pic='-Xcompiler -fPIC'
9764 # PORTME Check for flag to pass linker flags through the system compiler.
9767 lt_prog_compiler_wl='-Wl,'
9768 if test "$host_cpu" = ia64; then
9769 # AIX 5 now supports IA64 processor
9770 lt_prog_compiler_static='-Bstatic'
9772 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9776 mingw* | cygwin* | pw32* | os2* | cegcc*)
9777 # This hack is so that the source file can tell whether it is being
9778 # built for inclusion in a dll (and should export symbols for example).
9779 lt_prog_compiler_pic='-DDLL_EXPORT'
9782 hpux9* | hpux10* | hpux11*)
9783 lt_prog_compiler_wl='-Wl,'
9784 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9791 lt_prog_compiler_pic='+Z'
9794 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9795 lt_prog_compiler_static='${wl}-a ${wl}archive'
9798 irix5* | irix6* | nonstopux*)
9799 lt_prog_compiler_wl='-Wl,'
9800 # PIC (with -KPIC) is the default.
9801 lt_prog_compiler_static='-non_shared'
9804 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9805 case $cc_basename in
9806 # old Intel for x86_64 which still supported -KPIC.
9808 lt_prog_compiler_wl='-Wl,'
9809 lt_prog_compiler_pic='-KPIC'
9810 lt_prog_compiler_static='-static'
9812 # icc used to be incompatible with GCC.
9813 # ICC 10 doesn't accept -KPIC any more.
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_pic='-fPIC'
9817 lt_prog_compiler_static='-static'
9819 # Lahey Fortran 8.1.
9821 lt_prog_compiler_wl='-Wl,'
9822 lt_prog_compiler_pic='--shared'
9823 lt_prog_compiler_static='--static'
9826 # NAG Fortran compiler
9827 lt_prog_compiler_wl='-Wl,-Wl,,'
9828 lt_prog_compiler_pic='-PIC'
9829 lt_prog_compiler_static='-Bstatic'
9831 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9832 # Portland Group compilers (*not* the Pentium gcc compiler,
9833 # which looks to be a dead project)
9834 lt_prog_compiler_wl='-Wl,'
9835 lt_prog_compiler_pic='-fpic'
9836 lt_prog_compiler_static='-Bstatic'
9839 lt_prog_compiler_wl='-Wl,'
9840 # All Alpha code is PIC.
9841 lt_prog_compiler_static='-non_shared'
9843 xl* | bgxl* | bgf* | mpixl*)
9844 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9845 lt_prog_compiler_wl='-Wl,'
9846 lt_prog_compiler_pic='-qpic'
9847 lt_prog_compiler_static='-qstaticlink'
9850 case `$CC -V 2>&1 | sed 5q` in
9851 *Sun\ F* | *Sun*Fortran*)
9852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-Bstatic'
9855 lt_prog_compiler_wl=''
9859 lt_prog_compiler_pic='-KPIC'
9860 lt_prog_compiler_static='-Bstatic'
9861 lt_prog_compiler_wl='-Wl,'
9869 lt_prog_compiler_pic='-KPIC'
9870 lt_prog_compiler_static='-Bstatic'
9874 # QNX uses GNU C++, but need to define -shared option too, otherwise
9876 lt_prog_compiler_pic='-fPIC -shared'
9879 osf3* | osf4* | osf5*)
9880 lt_prog_compiler_wl='-Wl,'
9881 # All OSF/1 code is PIC.
9882 lt_prog_compiler_static='-non_shared'
9886 lt_prog_compiler_static='-non_shared'
9890 lt_prog_compiler_pic='-KPIC'
9891 lt_prog_compiler_static='-Bstatic'
9892 case $cc_basename in
9893 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9894 lt_prog_compiler_wl='-Qoption ld ';;
9896 lt_prog_compiler_wl='-Wl,';;
9901 lt_prog_compiler_wl='-Qoption ld '
9902 lt_prog_compiler_pic='-PIC'
9903 lt_prog_compiler_static='-Bstatic'
9906 sysv4 | sysv4.2uw2* | sysv4.3*)
9907 lt_prog_compiler_wl='-Wl,'
9908 lt_prog_compiler_pic='-KPIC'
9909 lt_prog_compiler_static='-Bstatic'
9913 if test -d /usr/nec ;then
9914 lt_prog_compiler_pic='-Kconform_pic'
9915 lt_prog_compiler_static='-Bstatic'
9919 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9920 lt_prog_compiler_wl='-Wl,'
9921 lt_prog_compiler_pic='-KPIC'
9922 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_can_build_shared=no
9931 lt_prog_compiler_pic='-pic'
9932 lt_prog_compiler_static='-Bstatic'
9936 lt_prog_compiler_can_build_shared=no
9942 # For platforms which do not support PIC, -DPIC is meaningless:
9944 lt_prog_compiler_pic=
9947 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9952 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9953 if ${lt_cv_prog_compiler_pic+:} false; then :
9954 $as_echo_n "(cached) " >&6
9956 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9959 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9960 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9963 # Check to make sure the PIC flag actually works.
9965 if test -n "$lt_prog_compiler_pic"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9967 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9968 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9969 $as_echo_n "(cached) " >&6
9971 lt_cv_prog_compiler_pic_works=no
9972 ac_outfile=conftest.$ac_objext
9973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9974 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9975 # Insert the option either (1) after the last *FLAGS variable, or
9976 # (2) before a word containing "conftest.", or (3) at the end.
9977 # Note that $ac_compile itself does not contain backslashes and begins
9978 # with a dollar sign (not a hyphen), so the echo should work correctly.
9979 # The option is referenced via a variable to avoid confusing sed.
9980 lt_compile=`echo "$ac_compile" | $SED \
9981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9983 -e 's:$: $lt_compiler_flag:'`
9984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9985 (eval "$lt_compile" 2>conftest.err)
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 if (exit $ac_status) && test -s "$ac_outfile"; then
9990 # The compiler can only warn and ignore the option if not recognized
9991 # So say no if there are warnings other than the usual output.
9992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9995 lt_cv_prog_compiler_pic_works=yes
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10002 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10004 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10005 case $lt_prog_compiler_pic in
10007 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10010 lt_prog_compiler_pic=
10011 lt_prog_compiler_can_build_shared=no
10027 # Check to make sure the static flag actually works.
10029 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10031 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10032 if ${lt_cv_prog_compiler_static_works+:} false; then :
10033 $as_echo_n "(cached) " >&6
10035 lt_cv_prog_compiler_static_works=no
10036 save_LDFLAGS="$LDFLAGS"
10037 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10038 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10040 # The linker can only warn and ignore the option if not recognized
10041 # So say no if there are warnings
10042 if test -s conftest.err; then
10043 # Append any errors to the config.log.
10044 cat conftest.err 1>&5
10045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047 if diff conftest.exp conftest.er2 >/dev/null; then
10048 lt_cv_prog_compiler_static_works=yes
10051 lt_cv_prog_compiler_static_works=yes
10055 LDFLAGS="$save_LDFLAGS"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10059 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10061 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10064 lt_prog_compiler_static=
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10074 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10075 if ${lt_cv_prog_compiler_c_o+:} false; then :
10076 $as_echo_n "(cached) " >&6
10078 lt_cv_prog_compiler_c_o=no
10079 $RM -r conftest 2>/dev/null
10083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10085 lt_compiler_flag="-o out/conftest2.$ac_objext"
10086 # Insert the option either (1) after the last *FLAGS variable, or
10087 # (2) before a word containing "conftest.", or (3) at the end.
10088 # Note that $ac_compile itself does not contain backslashes and begins
10089 # with a dollar sign (not a hyphen), so the echo should work correctly.
10090 lt_compile=`echo "$ac_compile" | $SED \
10091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10093 -e 's:$: $lt_compiler_flag:'`
10094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10095 (eval "$lt_compile" 2>out/conftest.err)
10097 cat out/conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10101 # The compiler can only warn and ignore the option if not recognized
10102 # So say no if there are warnings
10103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10106 lt_cv_prog_compiler_c_o=yes
10111 # SGI C++ compiler will create directory out/ii_files/ for
10112 # template instantiation
10113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10114 $RM out/* && rmdir out
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10121 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10129 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10130 if ${lt_cv_prog_compiler_c_o+:} false; then :
10131 $as_echo_n "(cached) " >&6
10133 lt_cv_prog_compiler_c_o=no
10134 $RM -r conftest 2>/dev/null
10138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10140 lt_compiler_flag="-o out/conftest2.$ac_objext"
10141 # Insert the option either (1) after the last *FLAGS variable, or
10142 # (2) before a word containing "conftest.", or (3) at the end.
10143 # Note that $ac_compile itself does not contain backslashes and begins
10144 # with a dollar sign (not a hyphen), so the echo should work correctly.
10145 lt_compile=`echo "$ac_compile" | $SED \
10146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10148 -e 's:$: $lt_compiler_flag:'`
10149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10150 (eval "$lt_compile" 2>out/conftest.err)
10152 cat out/conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10156 # The compiler can only warn and ignore the option if not recognized
10157 # So say no if there are warnings
10158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10159 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10160 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10161 lt_cv_prog_compiler_c_o=yes
10166 # SGI C++ compiler will create directory out/ii_files/ for
10167 # template instantiation
10168 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10169 $RM out/* && rmdir out
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10176 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10181 hard_links="nottested"
10182 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10183 # do not overwrite the value of need_locks provided by the user
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10185 $as_echo_n "checking if we can lock with hard links... " >&6; }
10188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10190 ln conftest.a conftest.b 2>&5 || hard_links=no
10191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10193 $as_echo "$hard_links" >&6; }
10194 if test "$hard_links" = no; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10196 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10209 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10212 allow_undefined_flag=
10213 always_export_symbols=no
10215 archive_expsym_cmds=
10216 compiler_needs_object=no
10217 enable_shared_with_static_runtimes=no
10218 export_dynamic_flag_spec=
10219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10220 hardcode_automatic=no
10222 hardcode_direct_absolute=no
10223 hardcode_libdir_flag_spec=
10224 hardcode_libdir_flag_spec_ld=
10225 hardcode_libdir_separator=
10226 hardcode_minus_L=no
10227 hardcode_shlibpath_var=unsupported
10229 link_all_deplibs=unknown
10231 module_expsym_cmds=
10232 old_archive_from_new_cmds=
10233 old_archive_from_expsyms_cmds=
10234 thread_safe_flag_spec=
10235 whole_archive_flag_spec=
10236 # include_expsyms should be a list of space-separated symbols to be *always*
10237 # included in the symbol list
10239 # exclude_expsyms can be an extended regexp of symbols to exclude
10240 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10241 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10242 # as well as any symbol that contains `d'.
10243 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10244 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10245 # platforms (ab)use it in PIC code, but their linkers get confused if
10246 # the symbol is explicitly referenced. Since portable code cannot
10247 # rely on this symbol name, it's probably fine to never include it in
10248 # preloaded symbol tables.
10249 # Exclude shared library initialization/finalization symbols.
10250 extract_expsyms_cmds=
10253 cygwin* | mingw* | pw32* | cegcc*)
10254 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10255 # When not using gcc, we currently assume that we are using
10256 # Microsoft Visual C++.
10257 if test "$GCC" != yes; then
10262 # we just hope/assume this is gcc and not c89 (= MSVC++)
10272 # On some targets, GNU ld is compatible enough with the native linker
10273 # that we're better off using the native interface for both.
10274 lt_use_gnu_ld_interface=no
10275 if test "$with_gnu_ld" = yes; then
10278 # The AIX port of GNU ld has always aspired to compatibility
10279 # with the native linker. However, as the warning in the GNU ld
10280 # block says, versions before 2.19.5* couldn't really create working
10281 # shared libraries, regardless of the interface used.
10282 case `$LD -v 2>&1` in
10283 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10284 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10285 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10287 lt_use_gnu_ld_interface=yes
10292 lt_use_gnu_ld_interface=yes
10297 if test "$lt_use_gnu_ld_interface" = yes; then
10298 # If archive_cmds runs LD, not CC, wlarc should be empty
10301 # Set some defaults for GNU ld with shared library support. These
10302 # are reset later if shared libraries are not supported. Putting them
10303 # here allows them to be overridden if necessary.
10304 runpath_var=LD_RUN_PATH
10305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10306 export_dynamic_flag_spec='${wl}--export-dynamic'
10307 # ancient GNU ld didn't support --whole-archive et. al.
10308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10311 whole_archive_flag_spec=
10313 supports_anon_versioning=no
10314 case `$LD -v 2>&1` in
10315 *GNU\ gold*) supports_anon_versioning=yes ;;
10316 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10317 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10318 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10319 *\ 2.11.*) ;; # other 2.11 versions
10320 *) supports_anon_versioning=yes ;;
10323 # See if GNU ld supports shared libraries.
10326 # On AIX/PPC, the GNU linker is very broken
10327 if test "$host_cpu" != ia64; then
10331 *** Warning: the GNU linker, at least up to release 2.19, is reported
10332 *** to be unable to reliably create shared libraries on AIX.
10333 *** Therefore, libtool is disabling shared libraries support. If you
10334 *** really care for shared libraries, you may want to install binutils
10335 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10336 *** You will then need to restart the configuration process.
10345 # see comment about AmigaOS4 .so support
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347 archive_expsym_cmds=''
10350 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)'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_minus_L=yes
10358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10359 allow_undefined_flag=unsupported
10360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10361 # support --undefined. This deserves some investigation. FIXME
10362 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368 cygwin* | mingw* | pw32* | cegcc*)
10369 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10370 # as there is no search path for DLLs.
10371 hardcode_libdir_flag_spec='-L$libdir'
10372 export_dynamic_flag_spec='${wl}--export-all-symbols'
10373 allow_undefined_flag=unsupported
10374 always_export_symbols=no
10375 enable_shared_with_static_runtimes=yes
10376 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'
10377 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10379 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10381 # If the export-symbols file already is a .def file (1st line
10382 # is EXPORTS), use it as is; otherwise, prepend...
10383 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10384 cp $export_symbols $output_objdir/$soname.def;
10386 echo EXPORTS > $output_objdir/$soname.def;
10387 cat $export_symbols >> $output_objdir/$soname.def;
10389 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10397 link_all_deplibs=yes
10402 hardcode_shlibpath_var=no
10403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10404 export_dynamic_flag_spec='${wl}-E'
10405 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10406 # Instead, shared libraries are loaded at an image base (0x10000000 by
10407 # default) and relocated if they conflict, which is a slow very memory
10408 # consuming and fragmenting process. To avoid this, we pick a random,
10409 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10410 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10411 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10412 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'
10415 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10417 if test "$host_os" = linux-dietlibc; then
10418 case $cc_basename in
10419 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10422 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10423 && test "$tmp_diet" = no
10425 tmp_addflag=' $pic_flag'
10426 tmp_sharedflag='-shared'
10427 case $cc_basename,$host_cpu in
10428 pgcc*) # Portland Group C compiler
10429 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'
10430 tmp_addflag=' $pic_flag'
10432 pgf77* | pgf90* | pgf95* | pgfortran*)
10433 # Portland Group f77 and f90 compilers
10434 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'
10435 tmp_addflag=' $pic_flag -Mnomain' ;;
10436 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10437 tmp_addflag=' -i_dynamic' ;;
10438 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10439 tmp_addflag=' -i_dynamic -nofor_main' ;;
10440 ifc* | ifort*) # Intel Fortran compiler
10441 tmp_addflag=' -nofor_main' ;;
10442 lf95*) # Lahey Fortran 8.1
10443 whole_archive_flag_spec=
10444 tmp_sharedflag='--shared' ;;
10445 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10446 tmp_sharedflag='-qmkshrobj'
10448 nvcc*) # Cuda Compiler Driver 2.2
10449 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'
10450 compiler_needs_object=yes
10453 case `$CC -V 2>&1 | sed 5q` in
10454 *Sun\ C*) # Sun C 5.9
10455 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'
10456 compiler_needs_object=yes
10457 tmp_sharedflag='-G' ;;
10458 *Sun\ F*) # Sun Fortran 8.3
10459 tmp_sharedflag='-G' ;;
10461 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10463 if test "x$supports_anon_versioning" = xyes; then
10464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10466 echo "local: *; };" >> $output_objdir/$libname.ver~
10467 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10470 case $cc_basename in
10471 xlf* | bgf* | bgxlf* | mpixlf*)
10472 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10473 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10474 hardcode_libdir_flag_spec=
10475 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10476 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10477 if test "x$supports_anon_versioning" = xyes; then
10478 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10479 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10480 echo "local: *; };" >> $output_objdir/$libname.ver~
10481 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10492 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10501 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10505 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10506 *** create shared libraries on Solaris systems. Therefore, libtool
10507 *** is disabling shared libraries support. We urge you to upgrade GNU
10508 *** binutils to release 2.9.1 or newer. Another option is to modify
10509 *** your PATH or compiler configuration so that the native linker is
10510 *** used, and then restart.
10513 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10522 case `$LD -v 2>&1` in
10523 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10527 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10528 *** reliably create shared libraries on SCO systems. Therefore, libtool
10529 *** is disabling shared libraries support. We urge you to upgrade GNU
10530 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10531 *** your PATH or compiler configuration so that the native linker is
10532 *** used, and then restart.
10537 # For security reasons, it is highly recommended that you always
10538 # use absolute paths for naming shared libraries, and exclude the
10539 # DT_RUNPATH tag from executables and libraries. But doing so
10540 # requires that you compile everything twice, which is a pain.
10541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10553 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_direct=yes
10556 hardcode_shlibpath_var=no
10560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10562 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10569 if test "$ld_shlibs" = no; then
10571 hardcode_libdir_flag_spec=
10572 export_dynamic_flag_spec=
10573 whole_archive_flag_spec=
10576 # PORTME fill in a description of your system's linker (not GNU ld)
10579 allow_undefined_flag=unsupported
10580 always_export_symbols=yes
10581 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'
10582 # Note: this linker hardcodes the directories in LIBPATH if there
10583 # are no directories specified by -L.
10584 hardcode_minus_L=yes
10585 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10586 # Neither direct hardcoding nor static linking is supported with a
10588 hardcode_direct=unsupported
10593 if test "$host_cpu" = ia64; then
10594 # On IA64, the linker does run time linking by default, so we don't
10595 # have to do anything special.
10596 aix_use_runtimelinking=no
10597 exp_sym_flag='-Bexport'
10600 # If we're using GNU nm, then we don't want the "-C" option.
10601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10602 # Also, AIX nm treats weak defined symbols like other global
10603 # defined symbols, whereas GNU nm marks them as "W".
10604 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10605 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'
10607 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'
10609 aix_use_runtimelinking=no
10611 # Test if we are trying to use run time linking or normal
10612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10613 # need to do runtime linking.
10614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10615 for ld_flag in $LDFLAGS; do
10616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10617 aix_use_runtimelinking=yes
10624 exp_sym_flag='-bexport'
10625 no_entry_flag='-bnoentry'
10628 # When large executables or shared objects are built, AIX ld can
10629 # have problems creating the table of contents. If linking a library
10630 # or program results in "error TOC overflow" add -mminimal-toc to
10631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10635 hardcode_direct=yes
10636 hardcode_direct_absolute=yes
10637 hardcode_libdir_separator=':'
10638 link_all_deplibs=yes
10639 file_list_spec='${wl}-f,'
10641 if test "$GCC" = yes; then
10642 case $host_os in aix4.[012]|aix4.[012].*)
10643 # We only want to do this on AIX 4.2 and lower, the check
10644 # below for broken collect2 doesn't work under 4.3+
10645 collect2name=`${CC} -print-prog-name=collect2`
10646 if test -f "$collect2name" &&
10647 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10649 # We have reworked collect2
10652 # We have old collect2
10653 hardcode_direct=unsupported
10654 # It fails to find uninstalled libraries when the uninstalled
10655 # path is not listed in the libpath. Setting hardcode_minus_L
10656 # to unsupported forces relinking
10657 hardcode_minus_L=yes
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_libdir_separator=
10663 shared_flag='-shared'
10664 if test "$aix_use_runtimelinking" = yes; then
10665 shared_flag="$shared_flag "'${wl}-G'
10669 if test "$host_cpu" = ia64; then
10670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10671 # chokes on -Wl,-G. The following line is correct:
10674 if test "$aix_use_runtimelinking" = yes; then
10675 shared_flag='${wl}-G'
10677 shared_flag='${wl}-bM:SRE'
10682 export_dynamic_flag_spec='${wl}-bexpall'
10683 # It seems that -bexpall does not export symbols beginning with
10684 # underscore (_), so it is better to generate a list of symbols to export.
10685 always_export_symbols=yes
10686 if test "$aix_use_runtimelinking" = yes; then
10687 # Warning - without using the other runtime loading flags (-brtl),
10688 # -berok will link without error, but may produce a broken library.
10689 allow_undefined_flag='-berok'
10690 # Determine the default libpath from the value encoded in an
10691 # empty executable.
10692 if test "${lt_cv_aix_libpath+set}" = set; then
10693 aix_libpath=$lt_cv_aix_libpath
10695 if ${lt_cv_aix_libpath_+:} false; then :
10696 $as_echo_n "(cached) " >&6
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10709 if ac_fn_c_try_link "$LINENO"; then :
10711 lt_aix_libpath_sed='
10712 /Import File Strings/,/^$/ {
10714 s/^0 *\([^ ]*\) *$/\1/
10718 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10719 # Check for a 64-bit object if we didn't find anything.
10720 if test -z "$lt_cv_aix_libpath_"; then
10721 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 if test -z "$lt_cv_aix_libpath_"; then
10727 lt_cv_aix_libpath_="/usr/lib:/lib"
10732 aix_libpath=$lt_cv_aix_libpath_
10735 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10736 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"
10738 if test "$host_cpu" = ia64; then
10739 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10740 allow_undefined_flag="-z nodefs"
10741 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"
10743 # Determine the default libpath from the value encoded in an
10744 # empty executable.
10745 if test "${lt_cv_aix_libpath+set}" = set; then
10746 aix_libpath=$lt_cv_aix_libpath
10748 if ${lt_cv_aix_libpath_+:} false; then :
10749 $as_echo_n "(cached) " >&6
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10762 if ac_fn_c_try_link "$LINENO"; then :
10764 lt_aix_libpath_sed='
10765 /Import File Strings/,/^$/ {
10767 s/^0 *\([^ ]*\) *$/\1/
10771 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10772 # Check for a 64-bit object if we didn't find anything.
10773 if test -z "$lt_cv_aix_libpath_"; then
10774 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 if test -z "$lt_cv_aix_libpath_"; then
10780 lt_cv_aix_libpath_="/usr/lib:/lib"
10785 aix_libpath=$lt_cv_aix_libpath_
10788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10789 # Warning - without using the other run time loading flags,
10790 # -berok will link without error, but may produce a broken library.
10791 no_undefined_flag=' ${wl}-bernotok'
10792 allow_undefined_flag=' ${wl}-berok'
10793 if test "$with_gnu_ld" = yes; then
10794 # We only use this code for GNU lds that support --whole-archive.
10795 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10797 # Exported symbols can be pulled into shared objects from archives
10798 whole_archive_flag_spec='$convenience'
10800 archive_cmds_need_lc=yes
10801 # This is similar to how AIX traditionally builds its shared libraries.
10802 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'
10810 # see comment about AmigaOS4 .so support
10811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10812 archive_expsym_cmds=''
10815 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)'
10816 hardcode_libdir_flag_spec='-L$libdir'
10817 hardcode_minus_L=yes
10823 export_dynamic_flag_spec=-rdynamic
10826 cygwin* | mingw* | pw32* | cegcc*)
10827 # When not using gcc, we currently assume that we are using
10828 # Microsoft Visual C++.
10829 # hardcode_libdir_flag_spec is actually meaningless, as there is
10830 # no search path for DLLs.
10831 case $cc_basename in
10834 hardcode_libdir_flag_spec=' '
10835 allow_undefined_flag=unsupported
10836 always_export_symbols=yes
10838 # Tell ltmain to make .lib files, not .a files.
10840 # Tell ltmain to make .dll files, not .so files.
10842 # FIXME: Setting linknames here is a bad hack.
10843 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10844 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10845 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10847 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10849 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10851 # The linker will not automatically build a static lib if we build a DLL.
10852 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10853 enable_shared_with_static_runtimes=yes
10854 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10856 old_postinstall_cmds='chmod 644 $oldlib'
10857 postlink_cmds='lt_outputfile="@OUTPUT@"~
10858 lt_tool_outputfile="@TOOL_OUTPUT@"~
10859 case $lt_outputfile in
10862 lt_outputfile="$lt_outputfile.exe"
10863 lt_tool_outputfile="$lt_tool_outputfile.exe"
10866 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10867 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10868 $RM "$lt_outputfile.manifest";
10872 # Assume MSVC wrapper
10873 hardcode_libdir_flag_spec=' '
10874 allow_undefined_flag=unsupported
10875 # Tell ltmain to make .lib files, not .a files.
10877 # Tell ltmain to make .dll files, not .so files.
10879 # FIXME: Setting linknames here is a bad hack.
10880 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10881 # The linker will automatically build a .lib file if we build a DLL.
10882 old_archive_from_new_cmds='true'
10883 # FIXME: Should let the user specify the lib program.
10884 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10885 enable_shared_with_static_runtimes=yes
10890 darwin* | rhapsody*)
10893 archive_cmds_need_lc=no
10895 hardcode_automatic=yes
10896 hardcode_shlibpath_var=unsupported
10897 if test "$lt_cv_ld_force_load" = "yes"; then
10898 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\"`'
10900 whole_archive_flag_spec=''
10902 link_all_deplibs=yes
10903 allow_undefined_flag="$_lt_dar_allow_undefined"
10904 case $cc_basename in
10905 ifort*) _lt_dar_can_shared=yes ;;
10906 *) _lt_dar_can_shared=$GCC ;;
10908 if test "$_lt_dar_can_shared" = "yes"; then
10909 output_verbose_link_cmd=func_echo_all
10910 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10911 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10912 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}"
10913 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}"
10922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923 hardcode_libdir_flag_spec='-L$libdir'
10924 hardcode_shlibpath_var=no
10931 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10932 # support. Future versions do this automatically, but an explicit c++rt0.o
10933 # does not break anything, and helps significantly (at the cost of a little
10936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10937 hardcode_libdir_flag_spec='-R$libdir'
10938 hardcode_direct=yes
10939 hardcode_shlibpath_var=no
10942 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10945 hardcode_direct=yes
10946 hardcode_minus_L=yes
10947 hardcode_shlibpath_var=no
10950 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10951 freebsd* | dragonfly*)
10952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10953 hardcode_libdir_flag_spec='-R$libdir'
10954 hardcode_direct=yes
10955 hardcode_shlibpath_var=no
10959 if test "$GCC" = yes; then
10960 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'
10962 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'
10964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10965 hardcode_libdir_separator=:
10966 hardcode_direct=yes
10968 # hardcode_minus_L: Not really in the search PATH,
10969 # but as the default location of the library.
10970 hardcode_minus_L=yes
10971 export_dynamic_flag_spec='${wl}-E'
10975 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10976 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10980 if test "$with_gnu_ld" = no; then
10981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10982 hardcode_libdir_flag_spec_ld='+b $libdir'
10983 hardcode_libdir_separator=:
10984 hardcode_direct=yes
10985 hardcode_direct_absolute=yes
10986 export_dynamic_flag_spec='${wl}-E'
10987 # hardcode_minus_L: Not really in the search PATH,
10988 # but as the default location of the library.
10989 hardcode_minus_L=yes
10994 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10997 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11016 # Older versions of the 11.00 compiler do not understand -b yet
11017 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11019 $as_echo_n "checking if $CC understands -b... " >&6; }
11020 if ${lt_cv_prog_compiler__b+:} false; then :
11021 $as_echo_n "(cached) " >&6
11023 lt_cv_prog_compiler__b=no
11024 save_LDFLAGS="$LDFLAGS"
11025 LDFLAGS="$LDFLAGS -b"
11026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11028 # The linker can only warn and ignore the option if not recognized
11029 # So say no if there are warnings
11030 if test -s conftest.err; then
11031 # Append any errors to the config.log.
11032 cat conftest.err 1>&5
11033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11035 if diff conftest.exp conftest.er2 >/dev/null; then
11036 lt_cv_prog_compiler__b=yes
11039 lt_cv_prog_compiler__b=yes
11043 LDFLAGS="$save_LDFLAGS"
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11047 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11049 if test x"$lt_cv_prog_compiler__b" = xyes; then
11050 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11052 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11058 if test "$with_gnu_ld" = no; then
11059 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11060 hardcode_libdir_separator=:
11065 hardcode_shlibpath_var=no
11068 hardcode_direct=yes
11069 hardcode_direct_absolute=yes
11070 export_dynamic_flag_spec='${wl}-E'
11072 # hardcode_minus_L: Not really in the search PATH,
11073 # but as the default location of the library.
11074 hardcode_minus_L=yes
11080 irix5* | irix6* | nonstopux*)
11081 if test "$GCC" = yes; then
11082 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'
11083 # Try to use the -exported_symbol ld option, if it does not
11084 # work, assume that -exports_file does not work either and
11085 # implicitly export all symbols.
11086 # This should be the same for all languages, so no per-tag cache variable.
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11088 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11089 if ${lt_cv_irix_exported_symbol+:} false; then :
11090 $as_echo_n "(cached) " >&6
11092 save_LDFLAGS="$LDFLAGS"
11093 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11096 int foo (void) { return 0; }
11098 if ac_fn_c_try_link "$LINENO"; then :
11099 lt_cv_irix_exported_symbol=yes
11101 lt_cv_irix_exported_symbol=no
11103 rm -f core conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11105 LDFLAGS="$save_LDFLAGS"
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11108 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11109 if test "$lt_cv_irix_exported_symbol" = yes; then
11110 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'
11113 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'
11114 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'
11116 archive_cmds_need_lc='no'
11117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11118 hardcode_libdir_separator=:
11120 link_all_deplibs=yes
11124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11127 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11129 hardcode_libdir_flag_spec='-R$libdir'
11130 hardcode_direct=yes
11131 hardcode_shlibpath_var=no
11135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136 hardcode_direct=yes
11137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11138 hardcode_libdir_separator=:
11139 hardcode_shlibpath_var=no
11146 if test -f /usr/libexec/ld.so; then
11147 hardcode_direct=yes
11148 hardcode_shlibpath_var=no
11149 hardcode_direct_absolute=yes
11150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11153 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11154 export_dynamic_flag_spec='${wl}-E'
11157 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11159 hardcode_libdir_flag_spec='-R$libdir'
11162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11173 hardcode_libdir_flag_spec='-L$libdir'
11174 hardcode_minus_L=yes
11175 allow_undefined_flag=unsupported
11176 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'
11177 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11181 if test "$GCC" = yes; then
11182 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11183 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'
11185 allow_undefined_flag=' -expect_unresolved \*'
11186 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'
11188 archive_cmds_need_lc='no'
11189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11190 hardcode_libdir_separator=:
11193 osf4* | osf5*) # as osf3* with the addition of -msym flag
11194 if test "$GCC" = yes; then
11195 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11196 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'
11197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11199 allow_undefined_flag=' -expect_unresolved \*'
11200 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'
11201 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~
11202 $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'
11204 # Both c and cxx compiler support -rpath directly
11205 hardcode_libdir_flag_spec='-rpath $libdir'
11207 archive_cmds_need_lc='no'
11208 hardcode_libdir_separator=:
11212 no_undefined_flag=' -z defs'
11213 if test "$GCC" = yes; then
11215 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11217 $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'
11219 case `$CC -V 2>&1` in
11222 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11224 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11228 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11230 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11234 hardcode_libdir_flag_spec='-R$libdir'
11235 hardcode_shlibpath_var=no
11237 solaris2.[0-5] | solaris2.[0-5].*) ;;
11239 # The compiler driver will combine and reorder linker options,
11240 # but understands `-z linker_flag'. GCC discards it without `$wl',
11241 # but is careful enough not to reorder.
11242 # Supported since Solaris 2.6 (maybe 2.5.1?)
11243 if test "$GCC" = yes; then
11244 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11246 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11250 link_all_deplibs=yes
11254 if test "x$host_vendor" = xsequent; then
11255 # Use $CC to link under sequent, because it throws in some extra .o
11256 # files that make .init and .fini sections work.
11257 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11259 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11261 hardcode_libdir_flag_spec='-L$libdir'
11262 hardcode_direct=yes
11263 hardcode_minus_L=yes
11264 hardcode_shlibpath_var=no
11268 case $host_vendor in
11270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271 hardcode_direct=yes # is this really true???
11274 ## LD is ld it makes a PLAMLIB
11275 ## CC just makes a GrossModule.
11276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11277 reload_cmds='$CC -r -o $output$reload_objs'
11281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11285 runpath_var='LD_RUN_PATH'
11286 hardcode_shlibpath_var=no
11290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11291 hardcode_shlibpath_var=no
11292 export_dynamic_flag_spec='-Bexport'
11296 if test -d /usr/nec; then
11297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298 hardcode_shlibpath_var=no
11299 runpath_var=LD_RUN_PATH
11300 hardcode_runpath_var=yes
11305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11306 no_undefined_flag='${wl}-z,text'
11307 archive_cmds_need_lc=no
11308 hardcode_shlibpath_var=no
11309 runpath_var='LD_RUN_PATH'
11311 if test "$GCC" = yes; then
11312 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 sysv5* | sco3.2v5* | sco5v6*)
11321 # Note: We can NOT use -z defs as we might desire, because we do not
11322 # link with -lc, and that would cause any symbols used from libc to
11323 # always be unresolved, which means just about no library would
11324 # ever link correctly. If we're not using GNU ld we use -z text
11325 # though, which does catch some bad symbols but isn't as heavy-handed
11327 no_undefined_flag='${wl}-z,text'
11328 allow_undefined_flag='${wl}-z,nodefs'
11329 archive_cmds_need_lc=no
11330 hardcode_shlibpath_var=no
11331 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11332 hardcode_libdir_separator=':'
11333 link_all_deplibs=yes
11334 export_dynamic_flag_spec='${wl}-Bexport'
11335 runpath_var='LD_RUN_PATH'
11337 if test "$GCC" = yes; then
11338 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11341 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11342 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11348 hardcode_libdir_flag_spec='-L$libdir'
11349 hardcode_shlibpath_var=no
11357 if test x$host_vendor = xsni; then
11359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11360 export_dynamic_flag_spec='${wl}-Blargedynsym'
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11367 $as_echo "$ld_shlibs" >&6; }
11368 test "$ld_shlibs" = no && can_build_shared=no
11370 with_gnu_ld=$with_gnu_ld
11387 # Do we need to explicitly link libc?
11389 case "x$archive_cmds_need_lc" in
11391 # Assume -lc should be added
11392 archive_cmds_need_lc=yes
11394 if test "$enable_shared" = yes && test "$GCC" = yes; then
11395 case $archive_cmds in
11397 # FIXME: we may have to deal with multi-command sequences.
11400 # Test whether the compiler implicitly links with -lc since on some
11401 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11402 # to ld, don't add -lc before -lgcc.
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11404 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11405 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11406 $as_echo_n "(cached) " >&6
11409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11412 (eval $ac_compile) 2>&5
11414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415 test $ac_status = 0; } 2>conftest.err; then
11418 libobjs=conftest.$ac_objext
11420 wl=$lt_prog_compiler_wl
11421 pic_flag=$lt_prog_compiler_pic
11427 lt_save_allow_undefined_flag=$allow_undefined_flag
11428 allow_undefined_flag=
11429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11430 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11433 test $ac_status = 0; }
11435 lt_cv_archive_cmds_need_lc=no
11437 lt_cv_archive_cmds_need_lc=yes
11439 allow_undefined_flag=$lt_save_allow_undefined_flag
11441 cat conftest.err 1>&5
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11447 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11448 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11612 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11614 if test "$GCC" = yes; then
11616 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11617 *) lt_awk_arg="/^libraries:/" ;;
11620 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11621 *) lt_sed_strip_eq="s,=/,/,g" ;;
11623 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11624 case $lt_search_path_spec in
11626 # if the path contains ";" then we assume it to be the separator
11627 # otherwise default to the standard path separator (i.e. ":") - it is
11628 # assumed that no part of a normal pathname contains ";" but that should
11629 # okay in the real world where ";" in dirpaths is itself problematic.
11630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11633 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11636 # Ok, now we have the path, separated by spaces, we can step through it
11637 # and add multilib dir if necessary.
11638 lt_tmp_lt_search_path_spec=
11639 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11640 for lt_sys_path in $lt_search_path_spec; do
11641 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11644 test -d "$lt_sys_path" && \
11645 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11648 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11649 BEGIN {RS=" "; FS="/|\n";} {
11652 for (lt_i = NF; lt_i > 0; lt_i--) {
11653 if ($lt_i != "" && $lt_i != ".") {
11654 if ($lt_i == "..") {
11657 if (lt_count == 0) {
11658 lt_foo="/" $lt_i lt_foo;
11665 if (lt_foo != "") { lt_freq[lt_foo]++; }
11666 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11668 # AWK program above erroneously prepends '/' to C:/dos/paths
11671 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11672 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11674 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11678 library_names_spec=
11679 libname_spec='lib$name'
11683 postuninstall_cmds=
11687 shlibpath_overrides_runpath=unknown
11689 dynamic_linker="$host_os ld.so"
11690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11691 need_lib_prefix=unknown
11692 hardcode_into_libs=no
11694 # when you set need_version to no, make sure it does not cause -set_version
11695 # flags to be left without arguments
11696 need_version=unknown
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11702 shlibpath_var=LIBPATH
11704 # AIX 3 has no versioning support, so we append a major version to the name.
11705 soname_spec='${libname}${release}${shared_ext}$major'
11712 hardcode_into_libs=yes
11713 if test "$host_cpu" = ia64; then
11714 # AIX 5 supports IA64
11715 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11716 shlibpath_var=LD_LIBRARY_PATH
11718 # With GCC up to 2.95.x, collect2 would create an import file
11719 # for dependence libraries. The import file would start with
11720 # the line `#! .'. This would cause the generated library to
11721 # depend on `.', always an invalid library. This was fixed in
11722 # development snapshots of GCC prior to 3.0.
11724 aix4 | aix4.[01] | aix4.[01].*)
11725 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11727 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11730 can_build_shared=no
11734 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11735 # soname into executable. Probably we can add versioning support to
11736 # collect2, so additional links can be useful in future.
11737 if test "$aix_use_runtimelinking" = yes; then
11738 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11739 # instead of lib<name>.a to let people know that these are not
11740 # typical AIX shared libraries.
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 # We preserve .a as extension for shared libraries through AIX4.2
11744 # and later when we are not doing run time linking.
11745 library_names_spec='${libname}${release}.a $libname.a'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11748 shlibpath_var=LIBPATH
11755 # Since July 2007 AmigaOS4 officially supports .so libraries.
11756 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 library_names_spec='$libname.ixlibrary $libname.a'
11761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11762 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'
11768 library_names_spec='${libname}${shared_ext}'
11769 dynamic_linker="$host_os ld.so"
11770 shlibpath_var=LIBRARY_PATH
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11782 # the default ld.so.conf also contains /usr/contrib/lib and
11783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11784 # libtool to hard-code these into programs
11787 cygwin* | mingw* | pw32* | cegcc*)
11788 version_type=windows
11793 case $GCC,$cc_basename in
11796 library_names_spec='$libname.dll.a'
11797 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11798 postinstall_cmds='base_file=`basename \${file}`~
11799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11800 dldir=$destdir/`dirname \$dlpath`~
11801 test -d \$dldir || mkdir -p \$dldir~
11802 $install_prog $dir/$dlname \$dldir/$dlname~
11803 chmod a+x \$dldir/$dlname~
11804 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11805 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11808 dlpath=$dir/\$dldll~
11810 shlibpath_overrides_runpath=yes
11814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11817 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11820 # MinGW DLLs use traditional 'lib' prefix
11821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11824 # pw32 DLLs use 'pw' prefix rather than 'lib'
11825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11828 dynamic_linker='Win32 ld.exe'
11833 libname_spec='$name'
11834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11835 library_names_spec='${libname}.dll.lib'
11839 sys_lib_search_path_spec=
11842 for lt_path in $LIB
11845 # Let DOS variable expansion print the short 8.3 style file name.
11846 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11847 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11850 # Convert to MSYS style.
11851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11854 # Convert to unix form, then to dos form, then back to unix form
11855 # but this time dos style (no spaces!) so that the unix form looks
11856 # like /cygdrive/c/PROGRA~1:/cygdr...
11857 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11858 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11859 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11862 sys_lib_search_path_spec="$LIB"
11863 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11864 # It is most probably a Windows format PATH.
11865 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11867 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11869 # FIXME: find the short name or the path components, as spaces are
11870 # common. (e.g. "Program Files" -> "PROGRA~1")
11874 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11875 postinstall_cmds='base_file=`basename \${file}`~
11876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11877 dldir=$destdir/`dirname \$dlpath`~
11878 test -d \$dldir || mkdir -p \$dldir~
11879 $install_prog $dir/$dlname \$dldir/$dlname'
11880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11881 dlpath=$dir/\$dldll~
11883 shlibpath_overrides_runpath=yes
11884 dynamic_linker='Win32 link.exe'
11888 # Assume MSVC wrapper
11889 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11890 dynamic_linker='Win32 ld.exe'
11893 # FIXME: first we should search . and the directory the executable is in
11897 darwin* | rhapsody*)
11898 dynamic_linker="$host_os dyld"
11899 version_type=darwin
11902 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11903 soname_spec='${libname}${release}${major}$shared_ext'
11904 shlibpath_overrides_runpath=yes
11905 shlibpath_var=DYLD_LIBRARY_PATH
11906 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11908 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11917 soname_spec='${libname}${release}${shared_ext}$major'
11918 shlibpath_var=LD_LIBRARY_PATH
11925 freebsd* | dragonfly*)
11926 # DragonFly does not have aout. When/if they implement a new
11927 # versioning mechanism, adjust this.
11928 if test -x /usr/bin/objformat; then
11929 objformat=`/usr/bin/objformat`
11932 freebsd[123]*) objformat=aout ;;
11933 *) objformat=elf ;;
11936 version_type=freebsd-$objformat
11937 case $version_type in
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11948 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=yes
11953 freebsd3.[01]* | freebsdelf3.[01]*)
11954 shlibpath_overrides_runpath=yes
11955 hardcode_into_libs=yes
11957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11959 shlibpath_overrides_runpath=no
11960 hardcode_into_libs=yes
11962 *) # from 4.6 on, and DragonFly
11963 shlibpath_overrides_runpath=yes
11964 hardcode_into_libs=yes
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 hardcode_into_libs=yes
11983 dynamic_linker="$host_os runtime_loader"
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 shlibpath_var=LIBRARY_PATH
11987 shlibpath_overrides_runpath=yes
11988 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11989 hardcode_into_libs=yes
11992 hpux9* | hpux10* | hpux11*)
11993 # Give a soname corresponding to the major version so that dld.sl refuses to
11994 # link against other versions.
12001 hardcode_into_libs=yes
12002 dynamic_linker="$host_os dld.so"
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 if test "X$HPUX_IA64_MODE" = X32; then
12008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12016 hardcode_into_libs=yes
12017 dynamic_linker="$host_os dld.sl"
12018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12021 soname_spec='${libname}${release}${shared_ext}$major'
12022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12027 dynamic_linker="$host_os dld.sl"
12028 shlibpath_var=SHLIB_PATH
12029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031 soname_spec='${libname}${release}${shared_ext}$major'
12034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12035 postinstall_cmds='chmod 555 $lib'
12036 # or fails outright, so override atomically:
12037 install_override_mode=555
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=no
12049 hardcode_into_libs=yes
12052 irix5* | irix6* | nonstopux*)
12054 nonstopux*) version_type=nonstopux ;;
12056 if test "$lt_cv_prog_gnu_ld" = yes; then
12064 soname_spec='${libname}${release}${shared_ext}$major'
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12067 irix5* | nonstopux*)
12068 libsuff= shlibsuff=
12071 case $LD in # libtool.m4 will add one of these switches to LD
12072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12073 libsuff= shlibsuff= libmagic=32-bit;;
12074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12075 libsuff=32 shlibsuff=N32 libmagic=N32;;
12076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12078 *) libsuff= shlibsuff= libmagic=never-match;;
12082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12083 shlibpath_overrides_runpath=no
12084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12086 hardcode_into_libs=yes
12089 # No shared lib support for Linux oldld, aout, or coff.
12090 linux*oldld* | linux*aout* | linux*coff*)
12094 # This must be Linux ELF.
12095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100 soname_spec='${libname}${release}${shared_ext}$major'
12101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12102 shlibpath_var=LD_LIBRARY_PATH
12103 shlibpath_overrides_runpath=no
12105 # Some binutils ld are patched to set DT_RUNPATH
12106 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12107 $as_echo_n "(cached) " >&6
12109 lt_cv_shlibpath_overrides_runpath=no
12110 save_LDFLAGS=$LDFLAGS
12111 save_libdir=$libdir
12112 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12113 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12125 if ac_fn_c_try_link "$LINENO"; then :
12126 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12127 lt_cv_shlibpath_overrides_runpath=yes
12130 rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LDFLAGS=$save_LDFLAGS
12133 libdir=$save_libdir
12137 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12139 # This implies no fast_install, which is unacceptable.
12140 # Some rework will be needed to allow for fast_install
12141 # before this can be enabled.
12142 hardcode_into_libs=yes
12144 # Append ld.so.conf contents to the search path
12145 if test -f /etc/ld.so.conf; then
12146 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' ' '`
12147 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12150 # We used to test for /lib/ld.so.1 and disable shared libraries on
12151 # powerpc, because MkLinux only supported shared libraries with the
12152 # GNU dynamic linker. Since this was broken with cross compilers,
12153 # most powerpc-linux boxes support dynamic linking these days and
12154 # people can always --disable-shared, the test was removed, and we
12155 # assume the GNU/Linux dynamic linker is in use.
12156 dynamic_linker='GNU/Linux ld.so'
12163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12166 dynamic_linker='NetBSD (a.out) ld.so'
12168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12169 soname_spec='${libname}${release}${shared_ext}$major'
12170 dynamic_linker='NetBSD ld.elf_so'
12172 shlibpath_var=LD_LIBRARY_PATH
12173 shlibpath_overrides_runpath=yes
12174 hardcode_into_libs=yes
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=yes
12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12189 soname_spec='${libname}${release}${shared_ext}$major'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 shlibpath_overrides_runpath=no
12192 hardcode_into_libs=yes
12193 dynamic_linker='ldqnx.so'
12198 sys_lib_dlsearch_path_spec="/usr/lib"
12200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12202 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12203 *) need_version=no ;;
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12210 openbsd2.[89] | openbsd2.[89].*)
12211 shlibpath_overrides_runpath=no
12214 shlibpath_overrides_runpath=yes
12218 shlibpath_overrides_runpath=yes
12223 libname_spec='$name'
12226 library_names_spec='$libname${shared_ext} $libname.a'
12227 dynamic_linker='OS/2 ld.exe'
12228 shlibpath_var=LIBPATH
12231 osf3* | osf4* | osf5*)
12235 soname_spec='${libname}${release}${shared_ext}$major'
12236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes
12254 hardcode_into_libs=yes
12255 # ldd complains unless libraries are executable
12256 postinstall_cmds='chmod +x $lib'
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=yes
12265 if test "$with_gnu_ld" = yes; then
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274 soname_spec='${libname}${release}${shared_ext}$major'
12275 shlibpath_var=LD_LIBRARY_PATH
12276 case $host_vendor in
12278 shlibpath_overrides_runpath=no
12280 runpath_var=LD_RUN_PATH
12288 shlibpath_overrides_runpath=no
12289 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12295 if test -d /usr/nec ;then
12297 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12298 soname_spec='$libname${shared_ext}.$major'
12299 shlibpath_var=LD_LIBRARY_PATH
12303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12304 version_type=freebsd-elf
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12308 soname_spec='${libname}${release}${shared_ext}$major'
12309 shlibpath_var=LD_LIBRARY_PATH
12310 shlibpath_overrides_runpath=yes
12311 hardcode_into_libs=yes
12312 if test "$with_gnu_ld" = yes; then
12313 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12315 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12322 sys_lib_dlsearch_path_spec='/usr/lib'
12326 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=no
12333 hardcode_into_libs=yes
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12348 $as_echo "$dynamic_linker" >&6; }
12349 test "$dynamic_linker" = no && can_build_shared=no
12351 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12352 if test "$GCC" = yes; then
12353 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12356 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12357 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12359 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12360 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12455 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12457 if test -n "$hardcode_libdir_flag_spec" ||
12458 test -n "$runpath_var" ||
12459 test "X$hardcode_automatic" = "Xyes" ; then
12461 # We can hardcode non-existent directories.
12462 if test "$hardcode_direct" != no &&
12463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12464 # have to relink, otherwise we might link with an installed library
12465 # when we should be linking with a yet-to-be-installed one
12466 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12467 test "$hardcode_minus_L" != no; then
12468 # Linking always hardcodes the temporary library directory.
12469 hardcode_action=relink
12471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12472 hardcode_action=immediate
12475 # We cannot hardcode anything, or else we can only hardcode existing
12477 hardcode_action=unsupported
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12480 $as_echo "$hardcode_action" >&6; }
12482 if test "$hardcode_action" = relink ||
12483 test "$inherit_rpath" = yes; then
12484 # Fast installation is not supported
12485 enable_fast_install=no
12486 elif test "$shlibpath_overrides_runpath" = yes ||
12487 test "$enable_shared" = no; then
12488 # Fast installation is not necessary
12489 enable_fast_install=needless
12497 if test "x$enable_dlopen" != xyes; then
12498 enable_dlopen=unknown
12499 enable_dlopen_self=unknown
12500 enable_dlopen_self_static=unknown
12507 lt_cv_dlopen="load_add_on"
12509 lt_cv_dlopen_self=yes
12512 mingw* | pw32* | cegcc*)
12513 lt_cv_dlopen="LoadLibrary"
12518 lt_cv_dlopen="dlopen"
12523 # if libdl is installed we need to link against it
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12526 if ${ac_cv_lib_dl_dlopen+:} false; then :
12527 $as_echo_n "(cached) " >&6
12529 ac_check_lib_save_LIBS=$LIBS
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12549 if ac_fn_c_try_link "$LINENO"; then :
12550 ac_cv_lib_dl_dlopen=yes
12552 ac_cv_lib_dl_dlopen=no
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12559 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12560 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12564 lt_cv_dlopen="dyld"
12566 lt_cv_dlopen_self=yes
12573 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12574 if test "x$ac_cv_func_shl_load" = xyes; then :
12575 lt_cv_dlopen="shl_load"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12578 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12579 if ${ac_cv_lib_dld_shl_load+:} false; then :
12580 $as_echo_n "(cached) " >&6
12582 ac_check_lib_save_LIBS=$LIBS
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12597 return shl_load ();
12602 if ac_fn_c_try_link "$LINENO"; then :
12603 ac_cv_lib_dld_shl_load=yes
12605 ac_cv_lib_dld_shl_load=no
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12612 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12613 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12614 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12616 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12617 if test "x$ac_cv_func_dlopen" = xyes; then :
12618 lt_cv_dlopen="dlopen"
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12622 if ${ac_cv_lib_dl_dlopen+:} false; then :
12623 $as_echo_n "(cached) " >&6
12625 ac_check_lib_save_LIBS=$LIBS
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12645 if ac_fn_c_try_link "$LINENO"; then :
12646 ac_cv_lib_dl_dlopen=yes
12648 ac_cv_lib_dl_dlopen=no
12650 rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12655 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12656 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12660 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12661 if ${ac_cv_lib_svld_dlopen+:} false; then :
12662 $as_echo_n "(cached) " >&6
12664 ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-lsvld $LIBS"
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12684 if ac_fn_c_try_link "$LINENO"; then :
12685 ac_cv_lib_svld_dlopen=yes
12687 ac_cv_lib_svld_dlopen=no
12689 rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12694 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12695 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12699 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12700 if ${ac_cv_lib_dld_dld_link+:} false; then :
12701 $as_echo_n "(cached) " >&6
12703 ac_check_lib_save_LIBS=$LIBS
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12718 return dld_link ();
12723 if ac_fn_c_try_link "$LINENO"; then :
12724 ac_cv_lib_dld_dld_link=yes
12726 ac_cv_lib_dld_dld_link=no
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12733 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12734 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12735 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12756 if test "x$lt_cv_dlopen" != xno; then
12762 case $lt_cv_dlopen in
12764 save_CPPFLAGS="$CPPFLAGS"
12765 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12767 save_LDFLAGS="$LDFLAGS"
12768 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12771 LIBS="$lt_cv_dlopen_libs $LIBS"
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12774 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12775 if ${lt_cv_dlopen_self+:} false; then :
12776 $as_echo_n "(cached) " >&6
12778 if test "$cross_compiling" = yes; then :
12779 lt_cv_dlopen_self=cross
12781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782 lt_status=$lt_dlunknown
12783 cat > conftest.$ac_ext <<_LT_EOF
12784 #line $LINENO "configure"
12785 #include "confdefs.h"
12794 # define LT_DLGLOBAL RTLD_GLOBAL
12797 # define LT_DLGLOBAL DL_GLOBAL
12799 # define LT_DLGLOBAL 0
12803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804 find out it does not work in some platform. */
12805 #ifndef LT_DLLAZY_OR_NOW
12807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12810 # define LT_DLLAZY_OR_NOW DL_LAZY
12813 # define LT_DLLAZY_OR_NOW RTLD_NOW
12816 # define LT_DLLAZY_OR_NOW DL_NOW
12818 # define LT_DLLAZY_OR_NOW 0
12825 /* When -fvisbility=hidden is used, assume the code has been annotated
12826 correspondingly for the symbols needed. */
12827 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12828 int fnord () __attribute__((visibility("default")));
12831 int fnord () { return 42; }
12834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12835 int status = $lt_dlunknown;
12839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12842 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12843 else puts (dlerror ());
12845 /* dlclose (self); */
12853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12854 (eval $ac_link) 2>&5
12856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12857 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12858 (./conftest; exit; ) >&5 2>/dev/null
12860 case x$lt_status in
12861 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12862 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12863 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12866 # compilation failed
12867 lt_cv_dlopen_self=no
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12875 $as_echo "$lt_cv_dlopen_self" >&6; }
12877 if test "x$lt_cv_dlopen_self" = xyes; then
12878 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12880 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12881 if ${lt_cv_dlopen_self_static+:} false; then :
12882 $as_echo_n "(cached) " >&6
12884 if test "$cross_compiling" = yes; then :
12885 lt_cv_dlopen_self_static=cross
12887 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12888 lt_status=$lt_dlunknown
12889 cat > conftest.$ac_ext <<_LT_EOF
12890 #line $LINENO "configure"
12891 #include "confdefs.h"
12900 # define LT_DLGLOBAL RTLD_GLOBAL
12903 # define LT_DLGLOBAL DL_GLOBAL
12905 # define LT_DLGLOBAL 0
12909 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12910 find out it does not work in some platform. */
12911 #ifndef LT_DLLAZY_OR_NOW
12913 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12916 # define LT_DLLAZY_OR_NOW DL_LAZY
12919 # define LT_DLLAZY_OR_NOW RTLD_NOW
12922 # define LT_DLLAZY_OR_NOW DL_NOW
12924 # define LT_DLLAZY_OR_NOW 0
12931 /* When -fvisbility=hidden is used, assume the code has been annotated
12932 correspondingly for the symbols needed. */
12933 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12934 int fnord () __attribute__((visibility("default")));
12937 int fnord () { return 42; }
12940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12941 int status = $lt_dlunknown;
12945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12948 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12949 else puts (dlerror ());
12951 /* dlclose (self); */
12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12960 (eval $ac_link) 2>&5
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12964 (./conftest; exit; ) >&5 2>/dev/null
12966 case x$lt_status in
12967 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12968 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12969 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12972 # compilation failed
12973 lt_cv_dlopen_self_static=no
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12981 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12984 CPPFLAGS="$save_CPPFLAGS"
12985 LDFLAGS="$save_LDFLAGS"
12990 case $lt_cv_dlopen_self in
12991 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12992 *) enable_dlopen_self=unknown ;;
12995 case $lt_cv_dlopen_self_static in
12996 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12997 *) enable_dlopen_self_static=unknown ;;
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13020 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13021 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13022 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13023 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025 $as_echo "yes" >&6; }
13027 # FIXME - insert some real tests, host_os isn't really good enough
13030 if test -n "$STRIP" ; then
13031 striplib="$STRIP -x"
13032 old_striplib="$STRIP -S"
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13034 $as_echo "yes" >&6; }
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13058 # Report which library types will actually be built
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13060 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13062 $as_echo "$can_build_shared" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13065 $as_echo_n "checking whether to build shared libraries... " >&6; }
13066 test "$can_build_shared" = "no" && enable_shared=no
13068 # On AIX, shared libraries and static libraries use the same namespace, and
13069 # are all built from PIC.
13072 test "$enable_shared" = yes && enable_static=no
13073 if test -n "$RANLIB"; then
13074 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13075 postinstall_cmds='$RANLIB $lib'
13080 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13081 test "$enable_shared" = yes && enable_static=no
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13086 $as_echo "$enable_shared" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13089 $as_echo_n "checking whether to build static libraries... " >&6; }
13090 # Make sure either enable_shared or enable_static is yes.
13091 test "$enable_shared" = yes || enable_static=yes
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13093 $as_echo "$enable_static" >&6; }
13100 ac_cpp='$CPP $CPPFLAGS'
13101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13107 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13108 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13109 (test "X$CXX" != "Xg++"))) ; then
13111 ac_cpp='$CXXCPP $CPPFLAGS'
13112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13116 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13117 if test -z "$CXXCPP"; then
13118 if ${ac_cv_prog_CXXCPP+:} false; then :
13119 $as_echo_n "(cached) " >&6
13121 # Double quotes because CXXCPP needs to be expanded
13122 for CXXCPP in "$CXX -E" "/lib/cpp"
13124 ac_preproc_ok=false
13125 for ac_cxx_preproc_warn_flag in '' yes
13127 # Use a header file that comes with gcc, so configuring glibc
13128 # with a fresh cross-compiler works.
13129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13130 # <limits.h> exists even on freestanding compilers.
13131 # On the NeXT, cc -E runs the code through the compiler's parser,
13132 # not just through cpp. "Syntax error" is here to catch this case.
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 # include <limits.h>
13138 # include <assert.h>
13142 if ac_fn_cxx_try_cpp "$LINENO"; then :
13145 # Broken: fails on valid input.
13148 rm -f conftest.err conftest.i conftest.$ac_ext
13150 # OK, works on sane cases. Now check whether nonexistent headers
13151 # can be detected and how.
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 #include <ac_nonexistent.h>
13156 if ac_fn_cxx_try_cpp "$LINENO"; then :
13157 # Broken: success on invalid input.
13160 # Passes both tests.
13164 rm -f conftest.err conftest.i conftest.$ac_ext
13167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13168 rm -f conftest.i conftest.err conftest.$ac_ext
13169 if $ac_preproc_ok; then :
13174 ac_cv_prog_CXXCPP=$CXXCPP
13177 CXXCPP=$ac_cv_prog_CXXCPP
13179 ac_cv_prog_CXXCPP=$CXXCPP
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13182 $as_echo "$CXXCPP" >&6; }
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 :
13231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13233 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13234 See \`config.log' for more details" "$LINENO" 5; }
13238 ac_cpp='$CPP $CPPFLAGS'
13239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13244 _lt_caught_CXX_error=yes
13248 ac_cpp='$CXXCPP $CPPFLAGS'
13249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13253 archive_cmds_need_lc_CXX=no
13254 allow_undefined_flag_CXX=
13255 always_export_symbols_CXX=no
13256 archive_expsym_cmds_CXX=
13257 compiler_needs_object_CXX=no
13258 export_dynamic_flag_spec_CXX=
13259 hardcode_direct_CXX=no
13260 hardcode_direct_absolute_CXX=no
13261 hardcode_libdir_flag_spec_CXX=
13262 hardcode_libdir_flag_spec_ld_CXX=
13263 hardcode_libdir_separator_CXX=
13264 hardcode_minus_L_CXX=no
13265 hardcode_shlibpath_var_CXX=unsupported
13266 hardcode_automatic_CXX=no
13267 inherit_rpath_CXX=no
13269 module_expsym_cmds_CXX=
13270 link_all_deplibs_CXX=unknown
13271 old_archive_cmds_CXX=$old_archive_cmds
13272 reload_flag_CXX=$reload_flag
13273 reload_cmds_CXX=$reload_cmds
13274 no_undefined_flag_CXX=
13275 whole_archive_flag_spec_CXX=
13276 enable_shared_with_static_runtimes_CXX=no
13278 # Source file extension for C++ test sources.
13281 # Object file extension for compiled C++ test sources.
13285 # No sense in running all these tests if we already determined that
13286 # the CXX compiler isn't working. Some variables (like enable_shared)
13287 # are currently assumed to apply to all compilers on this platform,
13288 # and will be corrupted by setting them based on a non-working compiler.
13289 if test "$_lt_caught_CXX_error" != yes; then
13290 # Code to be used in simple compile tests
13291 lt_simple_compile_test_code="int some_variable = 0;"
13293 # Code to be used in simple link tests
13294 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13296 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13303 # If no C compiler was specified, use CC.
13306 # If no C compiler flags were specified, use CFLAGS.
13307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13309 # Allow CC to be a program name with arguments.
13313 # save warnings/boilerplate of simple test code
13314 ac_outfile=conftest.$ac_objext
13315 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13317 _lt_compiler_boilerplate=`cat conftest.err`
13320 ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13323 _lt_linker_boilerplate=`cat conftest.err`
13327 # Allow CC to be a program name with arguments.
13329 lt_save_CFLAGS=$CFLAGS
13333 lt_save_with_gnu_ld=$with_gnu_ld
13334 lt_save_path_LD=$lt_cv_path_LD
13335 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13336 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13338 $as_unset lt_cv_prog_gnu_ld
13340 if test -n "${lt_cv_path_LDCXX+set}"; then
13341 lt_cv_path_LD=$lt_cv_path_LDCXX
13343 $as_unset lt_cv_path_LD
13345 test -z "${LDCXX+set}" || LD=$LDCXX
13350 for cc_temp in $compiler""; do
13352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13358 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13361 if test -n "$compiler"; then
13362 # We don't want -fno-exception when compiling C++ code, so set the
13363 # no_builtin_flag separately
13364 if test "$GXX" = yes; then
13365 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13367 lt_prog_compiler_no_builtin_flag_CXX=
13370 if test "$GXX" = yes; then
13371 # Set up default GNU C++ configuration
13375 # Check whether --with-gnu-ld was given.
13376 if test "${with_gnu_ld+set}" = set; then :
13377 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13383 if test "$GCC" = yes; then
13384 # Check if gcc -print-prog-name=ld gives a path.
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13386 $as_echo_n "checking for ld used by $CC... " >&6; }
13389 # gcc leaves a trailing carriage return which upsets mingw
13390 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13392 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13395 # Accept absolute paths.
13397 re_direlt='/[^/][^/]*/\.\./'
13398 # Canonicalize the pathname of ld
13399 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13400 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13401 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13403 test -z "$LD" && LD="$ac_prog"
13406 # If it fails, then pretend we aren't using GCC.
13410 # If it is relative, then search for the first ld in PATH.
13411 with_gnu_ld=unknown
13414 elif test "$with_gnu_ld" = yes; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13416 $as_echo_n "checking for GNU ld... " >&6; }
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13419 $as_echo_n "checking for non-GNU ld... " >&6; }
13421 if ${lt_cv_path_LD+:} false; then :
13422 $as_echo_n "(cached) " >&6
13424 if test -z "$LD"; then
13425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13426 for ac_dir in $PATH; do
13428 test -z "$ac_dir" && ac_dir=.
13429 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13430 lt_cv_path_LD="$ac_dir/$ac_prog"
13431 # Check to see if the program is GNU ld. I'd rather use --version,
13432 # but apparently some variants of GNU ld only accept -v.
13433 # Break only if it was the GNU/non-GNU ld that we prefer.
13434 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13435 *GNU* | *'with BFD'*)
13436 test "$with_gnu_ld" != no && break
13439 test "$with_gnu_ld" != yes && break
13446 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13450 LD="$lt_cv_path_LD"
13451 if test -n "$LD"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13453 $as_echo "$LD" >&6; }
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13458 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13460 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13461 if ${lt_cv_prog_gnu_ld+:} false; then :
13462 $as_echo_n "(cached) " >&6
13464 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13465 case `$LD -v 2>&1 </dev/null` in
13466 *GNU* | *'with BFD'*)
13467 lt_cv_prog_gnu_ld=yes
13470 lt_cv_prog_gnu_ld=no
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13475 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13476 with_gnu_ld=$lt_cv_prog_gnu_ld
13484 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13485 # archiving commands below assume that GNU ld is being used.
13486 if test "$with_gnu_ld" = yes; then
13487 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13488 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'
13490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13493 # If archive_cmds runs LD, not CC, wlarc should be empty
13494 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13495 # investigate it a little bit more. (MM)
13498 # ancient GNU ld didn't support --whole-archive et. al.
13499 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13500 $GREP 'no-whole-archive' > /dev/null; then
13501 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13503 whole_archive_flag_spec_CXX=
13509 # A generic and very simple default shared library creation
13510 # command for GNU C++ for the case where it uses the native
13511 # linker, instead of GNU ld. If possible, this setting should
13512 # overridden to take advantage of the native linker features on
13513 # the platform it is being used on.
13514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13517 # Commands to make compiler produce verbose output that lists
13518 # what "hidden" libraries, object files and flags are used when
13519 # linking a shared library.
13520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13528 # PORTME: fill in a description of your system's C++ link characteristics
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13530 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13534 # FIXME: insert proper C++ library support
13538 if test "$host_cpu" = ia64; then
13539 # On IA64, the linker does run time linking by default, so we don't
13540 # have to do anything special.
13541 aix_use_runtimelinking=no
13542 exp_sym_flag='-Bexport'
13545 aix_use_runtimelinking=no
13547 # Test if we are trying to use run time linking or normal
13548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13549 # need to do runtime linking.
13550 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13551 for ld_flag in $LDFLAGS; do
13554 aix_use_runtimelinking=yes
13562 exp_sym_flag='-bexport'
13563 no_entry_flag='-bnoentry'
13566 # When large executables or shared objects are built, AIX ld can
13567 # have problems creating the table of contents. If linking a library
13568 # or program results in "error TOC overflow" add -mminimal-toc to
13569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13572 archive_cmds_CXX=''
13573 hardcode_direct_CXX=yes
13574 hardcode_direct_absolute_CXX=yes
13575 hardcode_libdir_separator_CXX=':'
13576 link_all_deplibs_CXX=yes
13577 file_list_spec_CXX='${wl}-f,'
13579 if test "$GXX" = yes; then
13580 case $host_os in aix4.[012]|aix4.[012].*)
13581 # We only want to do this on AIX 4.2 and lower, the check
13582 # below for broken collect2 doesn't work under 4.3+
13583 collect2name=`${CC} -print-prog-name=collect2`
13584 if test -f "$collect2name" &&
13585 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13587 # We have reworked collect2
13590 # We have old collect2
13591 hardcode_direct_CXX=unsupported
13592 # It fails to find uninstalled libraries when the uninstalled
13593 # path is not listed in the libpath. Setting hardcode_minus_L
13594 # to unsupported forces relinking
13595 hardcode_minus_L_CXX=yes
13596 hardcode_libdir_flag_spec_CXX='-L$libdir'
13597 hardcode_libdir_separator_CXX=
13600 shared_flag='-shared'
13601 if test "$aix_use_runtimelinking" = yes; then
13602 shared_flag="$shared_flag "'${wl}-G'
13606 if test "$host_cpu" = ia64; then
13607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13608 # chokes on -Wl,-G. The following line is correct:
13611 if test "$aix_use_runtimelinking" = yes; then
13612 shared_flag='${wl}-G'
13614 shared_flag='${wl}-bM:SRE'
13619 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13620 # It seems that -bexpall does not export symbols beginning with
13621 # underscore (_), so it is better to generate a list of symbols to
13623 always_export_symbols_CXX=yes
13624 if test "$aix_use_runtimelinking" = yes; then
13625 # Warning - without using the other runtime loading flags (-brtl),
13626 # -berok will link without error, but may produce a broken library.
13627 allow_undefined_flag_CXX='-berok'
13628 # Determine the default libpath from the value encoded in an empty
13630 if test "${lt_cv_aix_libpath+set}" = set; then
13631 aix_libpath=$lt_cv_aix_libpath
13633 if ${lt_cv_aix_libpath__CXX+:} false; then :
13634 $as_echo_n "(cached) " >&6
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13647 if ac_fn_cxx_try_link "$LINENO"; then :
13649 lt_aix_libpath_sed='
13650 /Import File Strings/,/^$/ {
13652 s/^0 *\([^ ]*\) *$/\1/
13656 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13657 # Check for a 64-bit object if we didn't find anything.
13658 if test -z "$lt_cv_aix_libpath__CXX"; then
13659 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 if test -z "$lt_cv_aix_libpath__CXX"; then
13665 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13670 aix_libpath=$lt_cv_aix_libpath__CXX
13673 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13675 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"
13677 if test "$host_cpu" = ia64; then
13678 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13679 allow_undefined_flag_CXX="-z nodefs"
13680 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"
13682 # Determine the default libpath from the value encoded in an
13683 # empty executable.
13684 if test "${lt_cv_aix_libpath+set}" = set; then
13685 aix_libpath=$lt_cv_aix_libpath
13687 if ${lt_cv_aix_libpath__CXX+:} false; then :
13688 $as_echo_n "(cached) " >&6
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13701 if ac_fn_cxx_try_link "$LINENO"; then :
13703 lt_aix_libpath_sed='
13704 /Import File Strings/,/^$/ {
13706 s/^0 *\([^ ]*\) *$/\1/
13710 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711 # Check for a 64-bit object if we didn't find anything.
13712 if test -z "$lt_cv_aix_libpath__CXX"; then
13713 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13718 if test -z "$lt_cv_aix_libpath__CXX"; then
13719 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13724 aix_libpath=$lt_cv_aix_libpath__CXX
13727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13728 # Warning - without using the other run time loading flags,
13729 # -berok will link without error, but may produce a broken library.
13730 no_undefined_flag_CXX=' ${wl}-bernotok'
13731 allow_undefined_flag_CXX=' ${wl}-berok'
13732 if test "$with_gnu_ld" = yes; then
13733 # We only use this code for GNU lds that support --whole-archive.
13734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13736 # Exported symbols can be pulled into shared objects from archives
13737 whole_archive_flag_spec_CXX='$convenience'
13739 archive_cmds_need_lc_CXX=yes
13740 # This is similar to how AIX traditionally builds its shared
13742 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'
13748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13749 allow_undefined_flag_CXX=unsupported
13750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13751 # support --undefined. This deserves some investigation. FIXME
13752 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 case $cc_basename in
13761 # FIXME: insert proper C++ library support
13767 cygwin* | mingw* | pw32* | cegcc*)
13768 case $GXX,$cc_basename in
13771 # hardcode_libdir_flag_spec is actually meaningless, as there is
13772 # no search path for DLLs.
13773 hardcode_libdir_flag_spec_CXX=' '
13774 allow_undefined_flag_CXX=unsupported
13775 always_export_symbols_CXX=yes
13776 file_list_spec_CXX='@'
13777 # Tell ltmain to make .lib files, not .a files.
13779 # Tell ltmain to make .dll files, not .so files.
13781 # FIXME: Setting linknames here is a bad hack.
13782 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13783 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13784 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13786 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13788 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13790 # The linker will not automatically build a static lib if we build a DLL.
13791 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13792 enable_shared_with_static_runtimes_CXX=yes
13794 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13795 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13796 lt_tool_outputfile="@TOOL_OUTPUT@"~
13797 case $lt_outputfile in
13800 lt_outputfile="$lt_outputfile.exe"
13801 lt_tool_outputfile="$lt_tool_outputfile.exe"
13804 func_to_tool_file "$lt_outputfile"~
13805 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13806 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13807 $RM "$lt_outputfile.manifest";
13812 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13813 # as there is no search path for DLLs.
13814 hardcode_libdir_flag_spec_CXX='-L$libdir'
13815 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13816 allow_undefined_flag_CXX=unsupported
13817 always_export_symbols_CXX=no
13818 enable_shared_with_static_runtimes_CXX=yes
13820 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13821 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'
13822 # If the export-symbols file already is a .def file (1st line
13823 # is EXPORTS), use it as is; otherwise, prepend...
13824 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13825 cp $export_symbols $output_objdir/$soname.def;
13827 echo EXPORTS > $output_objdir/$soname.def;
13828 cat $export_symbols >> $output_objdir/$soname.def;
13830 $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'
13837 darwin* | rhapsody*)
13840 archive_cmds_need_lc_CXX=no
13841 hardcode_direct_CXX=no
13842 hardcode_automatic_CXX=yes
13843 hardcode_shlibpath_var_CXX=unsupported
13844 if test "$lt_cv_ld_force_load" = "yes"; then
13845 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\"`'
13847 whole_archive_flag_spec_CXX=''
13849 link_all_deplibs_CXX=yes
13850 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13851 case $cc_basename in
13852 ifort*) _lt_dar_can_shared=yes ;;
13853 *) _lt_dar_can_shared=$GCC ;;
13855 if test "$_lt_dar_can_shared" = "yes"; then
13856 output_verbose_link_cmd=func_echo_all
13857 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}"
13858 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13859 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}"
13860 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}"
13861 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13862 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}"
13863 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}"
13873 case $cc_basename in
13875 # FIXME: insert proper C++ library support
13879 # Green Hills C++ Compiler
13880 # FIXME: insert proper C++ library support
13884 # FIXME: insert proper C++ library support
13891 # C++ shared libraries reported to be fairly broken before
13897 archive_cmds_need_lc_CXX=no
13900 freebsd* | dragonfly*)
13901 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13910 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911 link_all_deplibs_CXX=yes
13915 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13916 hardcode_libdir_separator_CXX=:
13917 export_dynamic_flag_spec_CXX='${wl}-E'
13918 hardcode_direct_CXX=yes
13919 hardcode_minus_L_CXX=yes # Not in the search PATH,
13920 # but as the default
13921 # location of the library.
13923 case $cc_basename in
13925 # FIXME: insert proper C++ library support
13929 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'
13930 # Commands to make compiler produce verbose output that lists
13931 # what "hidden" libraries, object files and flags are used when
13932 # linking a shared library.
13934 # There doesn't appear to be a way to prevent this compiler from
13935 # explicitly linking system object files so we need to strip them
13936 # from the output so that they don't get included in the library
13938 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"'
13941 if test "$GXX" = yes; then
13942 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'
13944 # FIXME: insert proper C++ library support
13952 if test $with_gnu_ld = no; then
13953 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13954 hardcode_libdir_separator_CXX=:
13960 export_dynamic_flag_spec_CXX='${wl}-E'
13966 hardcode_direct_CXX=no
13967 hardcode_shlibpath_var_CXX=no
13970 hardcode_direct_CXX=yes
13971 hardcode_direct_absolute_CXX=yes
13972 hardcode_minus_L_CXX=yes # Not in the search PATH,
13973 # but as the default
13974 # location of the library.
13978 case $cc_basename in
13980 # FIXME: insert proper C++ library support
13986 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13989 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13992 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13995 # Commands to make compiler produce verbose output that lists
13996 # what "hidden" libraries, object files and flags are used when
13997 # linking a shared library.
13999 # There doesn't appear to be a way to prevent this compiler from
14000 # explicitly linking system object files so we need to strip them
14001 # from the output so that they don't get included in the library
14003 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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"'
14006 if test "$GXX" = yes; then
14007 if test $with_gnu_ld = no; then
14010 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14013 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14016 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'
14021 # FIXME: insert proper C++ library support
14029 hardcode_direct_CXX=no
14030 hardcode_shlibpath_var_CXX=no
14031 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14032 export_dynamic_flag_spec_CXX='${wl}-E'
14033 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14034 # Instead, shared libraries are loaded at an image base (0x10000000 by
14035 # default) and relocated if they conflict, which is a slow very memory
14036 # consuming and fragmenting process. To avoid this, we pick a random,
14037 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14038 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14039 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'
14040 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'
14043 case $cc_basename in
14046 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'
14048 # Archives containing C++ object files must be created using
14049 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14050 # necessary to make sure instantiated templates are included
14052 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14055 if test "$GXX" = yes; then
14056 if test "$with_gnu_ld" = no; then
14057 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'
14059 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'
14062 link_all_deplibs_CXX=yes
14065 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14066 hardcode_libdir_separator_CXX=:
14067 inherit_rpath_CXX=yes
14070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14071 case $cc_basename in
14073 # Kuck and Associates, Inc. (KAI) C++ Compiler
14075 # KCC will only create a shared library if the output file
14076 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14077 # to its proper name (with version) after linking.
14078 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'
14079 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'
14080 # Commands to make compiler produce verbose output that lists
14081 # what "hidden" libraries, object files and flags are used when
14082 # linking a shared library.
14084 # There doesn't appear to be a way to prevent this compiler from
14085 # explicitly linking system object files so we need to strip them
14086 # from the output so that they don't get included in the library
14088 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"'
14090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14093 # Archives containing C++ object files must be created using
14094 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14095 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14100 # version 8.0 and above of icpc choke on multiply defined symbols
14101 # if we add $predep_objects and $postdep_objects, however 7.1 and
14102 # earlier do not add the objects themselves.
14103 case `$CC -V 2>&1` in
14105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106 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'
14108 *) # Version 8.0 or newer
14111 ia64*) tmp_idyn=' -i_dynamic';;
14113 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14114 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'
14117 archive_cmds_need_lc_CXX=no
14118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14120 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14123 # Portland Group C++ compiler
14125 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14126 prelink_cmds_CXX='tpldir=Template.dir~
14128 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14129 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14130 old_archive_cmds_CXX='tpldir=Template.dir~
14132 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14133 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14135 archive_cmds_CXX='tpldir=Template.dir~
14137 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14138 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14139 archive_expsym_cmds_CXX='tpldir=Template.dir~
14141 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14142 $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'
14144 *) # Version 6 and above use weak symbols
14145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14146 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'
14150 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14152 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'
14156 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157 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'
14159 runpath_var=LD_RUN_PATH
14160 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14161 hardcode_libdir_separator_CXX=:
14163 # Commands to make compiler produce verbose output that lists
14164 # what "hidden" libraries, object files and flags are used when
14165 # linking a shared library.
14167 # There doesn't appear to be a way to prevent this compiler from
14168 # explicitly linking system object files so we need to strip them
14169 # from the output so that they don't get included in the library
14171 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'
14173 xl* | mpixl* | bgxl*)
14174 # IBM XL 8.0 on PPC, with GNU ld
14175 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14176 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14177 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14178 if test "x$supports_anon_versioning" = xyes; then
14179 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14181 echo "local: *; };" >> $output_objdir/$libname.ver~
14182 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14186 case `$CC -V 2>&1 | sed 5q` in
14189 no_undefined_flag_CXX=' -zdefs'
14190 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14191 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'
14192 hardcode_libdir_flag_spec_CXX='-R$libdir'
14193 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'
14194 compiler_needs_object_CXX=yes
14196 # Not sure whether something based on
14197 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14199 output_verbose_link_cmd='func_echo_all'
14201 # Archives containing C++ object files must be created using
14202 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14203 # necessary to make sure instantiated templates are included
14205 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14213 # FIXME: insert proper C++ library support
14218 # FIXME: insert proper C++ library support
14223 case $cc_basename in
14225 # FIXME: insert proper C++ library support
14229 # FIXME: insert proper C++ library support
14236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14237 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14239 hardcode_libdir_flag_spec_CXX='-R$libdir'
14240 hardcode_direct_CXX=yes
14241 hardcode_shlibpath_var_CXX=no
14243 # Workaround some broken pre-1.5 toolchains
14244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14252 # C++ shared libraries are fairly broken
14257 if test -f /usr/libexec/ld.so; then
14258 hardcode_direct_CXX=yes
14259 hardcode_shlibpath_var_CXX=no
14260 hardcode_direct_absolute_CXX=yes
14261 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14262 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14264 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14265 export_dynamic_flag_spec_CXX='${wl}-E'
14266 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14268 output_verbose_link_cmd=func_echo_all
14274 osf3* | osf4* | osf5*)
14275 case $cc_basename in
14277 # Kuck and Associates, Inc. (KAI) C++ Compiler
14279 # KCC will only create a shared library if the output file
14280 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14281 # to its proper name (with version) after linking.
14282 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'
14284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14285 hardcode_libdir_separator_CXX=:
14287 # Archives containing C++ object files must be created using
14288 # the KAI C++ compiler.
14290 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14291 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14295 # Rational C++ 2.4.1
14296 # FIXME: insert proper C++ library support
14302 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14303 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'
14304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14307 allow_undefined_flag_CXX=' -expect_unresolved \*'
14308 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'
14309 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14310 echo "-hidden">> $lib.exp~
14311 $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~
14313 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14317 hardcode_libdir_separator_CXX=:
14319 # Commands to make compiler produce verbose output that lists
14320 # what "hidden" libraries, object files and flags are used when
14321 # linking a shared library.
14323 # There doesn't appear to be a way to prevent this compiler from
14324 # explicitly linking system object files so we need to strip them
14325 # from the output so that they don't get included in the library
14327 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"'
14330 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14331 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14334 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'
14337 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'
14341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14342 hardcode_libdir_separator_CXX=:
14344 # Commands to make compiler produce verbose output that lists
14345 # what "hidden" libraries, object files and flags are used when
14346 # linking a shared library.
14347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14350 # FIXME: insert proper C++ library support
14358 # FIXME: insert proper C++ library support
14363 case $cc_basename in
14366 # FIXME: insert proper C++ library support
14371 # FIXME: insert proper C++ library support
14375 # FIXME: insert proper C++ library support
14382 case $cc_basename in
14384 # Sun C++ 4.2, 5.x and Centerline C++
14385 archive_cmds_need_lc_CXX=yes
14386 no_undefined_flag_CXX=' -zdefs'
14387 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14388 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14389 $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'
14391 hardcode_libdir_flag_spec_CXX='-R$libdir'
14392 hardcode_shlibpath_var_CXX=no
14394 solaris2.[0-5] | solaris2.[0-5].*) ;;
14396 # The compiler driver will combine and reorder linker options,
14397 # but understands `-z linker_flag'.
14398 # Supported since Solaris 2.6 (maybe 2.5.1?)
14399 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14402 link_all_deplibs_CXX=yes
14404 output_verbose_link_cmd='func_echo_all'
14406 # Archives containing C++ object files must be created using
14407 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14408 # necessary to make sure instantiated templates are included
14410 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14413 # Green Hills C++ Compiler
14414 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14416 # The C++ compiler must be used to create the archive.
14417 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14420 # GNU C++ compiler with Solaris linker
14421 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14422 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14423 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14424 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14425 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14426 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14428 # Commands to make compiler produce verbose output that lists
14429 # what "hidden" libraries, object files and flags are used when
14430 # linking a shared library.
14431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14433 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14435 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14436 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14437 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14439 # Commands to make compiler produce verbose output that lists
14440 # what "hidden" libraries, object files and flags are used when
14441 # linking a shared library.
14442 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14445 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14447 solaris2.[0-5] | solaris2.[0-5].*) ;;
14449 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14457 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14458 no_undefined_flag_CXX='${wl}-z,text'
14459 archive_cmds_need_lc_CXX=no
14460 hardcode_shlibpath_var_CXX=no
14461 runpath_var='LD_RUN_PATH'
14463 case $cc_basename in
14465 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14469 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14470 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14475 sysv5* | sco3.2v5* | sco5v6*)
14476 # Note: We can NOT use -z defs as we might desire, because we do not
14477 # link with -lc, and that would cause any symbols used from libc to
14478 # always be unresolved, which means just about no library would
14479 # ever link correctly. If we're not using GNU ld we use -z text
14480 # though, which does catch some bad symbols but isn't as heavy-handed
14482 no_undefined_flag_CXX='${wl}-z,text'
14483 allow_undefined_flag_CXX='${wl}-z,nodefs'
14484 archive_cmds_need_lc_CXX=no
14485 hardcode_shlibpath_var_CXX=no
14486 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14487 hardcode_libdir_separator_CXX=':'
14488 link_all_deplibs_CXX=yes
14489 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14490 runpath_var='LD_RUN_PATH'
14492 case $cc_basename in
14494 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14495 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14496 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14497 '"$old_archive_cmds_CXX"
14498 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14499 '"$reload_cmds_CXX"
14502 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509 case $cc_basename in
14511 # NonStop-UX NCC 3.20
14512 # FIXME: insert proper C++ library support
14516 # FIXME: insert proper C++ library support
14523 # FIXME: insert proper C++ library support
14528 # FIXME: insert proper C++ library support
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14534 $as_echo "$ld_shlibs_CXX" >&6; }
14535 test "$ld_shlibs_CXX" = no && can_build_shared=no
14541 ## There is no encapsulation within the following macros, do not change
14542 ## the running order or otherwise move them around unless you know exactly
14543 ## what you are doing...
14544 # Dependencies to place before and after the object being linked:
14545 predep_objects_CXX=
14546 postdep_objects_CXX=
14549 compiler_lib_search_path_CXX=
14551 cat > conftest.$ac_ext <<_LT_EOF
14555 Foo (void) { a = 0; }
14562 _lt_libdeps_save_CFLAGS=$CFLAGS
14563 case "$CC $CFLAGS " in #(
14564 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14565 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14569 (eval $ac_compile) 2>&5
14571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14572 test $ac_status = 0; }; then
14573 # Parse the compiler output and extract the necessary
14574 # objects, libraries and library flags.
14576 # Sentinel used to keep track of whether or not we are before
14577 # the conftest object file.
14578 pre_test_object_deps_done=no
14580 for p in `eval "$output_verbose_link_cmd"`; do
14581 case ${prev}${p} in
14584 # Some compilers place space between "-{L,R}" and the path.
14585 # Remove the space.
14586 if test $p = "-L" ||
14587 test $p = "-R"; then
14592 # Expand the sysroot to ease extracting the directories later.
14593 if test -z "$prev"; then
14595 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14596 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14597 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14601 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14603 if test "$pre_test_object_deps_done" = no; then
14606 # Internal compiler library paths should come after those
14607 # provided the user. The postdeps already come after the
14608 # user supplied libs so there is no need to process them.
14609 if test -z "$compiler_lib_search_path_CXX"; then
14610 compiler_lib_search_path_CXX="${prev}${p}"
14612 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14615 # The "-l" case would never come before the object being
14616 # linked, so don't bother handling this case.
14619 if test -z "$postdeps_CXX"; then
14620 postdeps_CXX="${prev}${p}"
14622 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14628 *.lto.$objext) ;; # Ignore GCC LTO objects
14630 # This assumes that the test object file only shows up
14631 # once in the compiler output.
14632 if test "$p" = "conftest.$objext"; then
14633 pre_test_object_deps_done=yes
14637 if test "$pre_test_object_deps_done" = no; then
14638 if test -z "$predep_objects_CXX"; then
14639 predep_objects_CXX="$p"
14641 predep_objects_CXX="$predep_objects_CXX $p"
14644 if test -z "$postdep_objects_CXX"; then
14645 postdep_objects_CXX="$p"
14647 postdep_objects_CXX="$postdep_objects_CXX $p"
14652 *) ;; # Ignore the rest.
14660 echo "libtool.m4: error: problem compiling CXX test program"
14663 $RM -f confest.$objext
14664 CFLAGS=$_lt_libdeps_save_CFLAGS
14666 # PORTME: override above test on systems where it is broken
14669 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14670 # hack all around it, let's just trust "g++" to DTRT.
14671 predep_objects_CXX=
14672 postdep_objects_CXX=
14677 case `$CC -V 2>&1 | sed 5q` in
14681 # The more standards-conforming stlport4 library is
14682 # incompatible with the Cstd library. Avoid specifying
14683 # it if it's in CXXFLAGS. Ignore libCrun as
14684 # -library=stlport4 depends on it.
14685 case " $CXX $CXXFLAGS " in
14686 *" -library=stlport4 "*)
14687 solaris_use_stlport4=yes
14691 if test "$solaris_use_stlport4" != yes; then
14692 postdeps_CXX='-library=Cstd -library=Crun'
14699 case $cc_basename in
14701 # The more standards-conforming stlport4 library is
14702 # incompatible with the Cstd library. Avoid specifying
14703 # it if it's in CXXFLAGS. Ignore libCrun as
14704 # -library=stlport4 depends on it.
14705 case " $CXX $CXXFLAGS " in
14706 *" -library=stlport4 "*)
14707 solaris_use_stlport4=yes
14711 # Adding this requires a known-good setup of shared libraries for
14712 # Sun compiler versions before 5.6, else PIC objects from an old
14713 # archive will be linked into the output, leading to subtle bugs.
14714 if test "$solaris_use_stlport4" != yes; then
14715 postdeps_CXX='-library=Cstd -library=Crun'
14723 case " $postdeps_CXX " in
14724 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14726 compiler_lib_search_dirs_CXX=
14727 if test -n "${compiler_lib_search_path_CXX}"; then
14728 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14761 lt_prog_compiler_wl_CXX=
14762 lt_prog_compiler_pic_CXX=
14763 lt_prog_compiler_static_CXX=
14766 # C++ specific cases for pic, static, wl, etc.
14767 if test "$GXX" = yes; then
14768 lt_prog_compiler_wl_CXX='-Wl,'
14769 lt_prog_compiler_static_CXX='-static'
14773 # All AIX code is PIC.
14774 if test "$host_cpu" = ia64; then
14775 # AIX 5 now supports IA64 processor
14776 lt_prog_compiler_static_CXX='-Bstatic'
14783 # see comment about AmigaOS4 .so support
14784 lt_prog_compiler_pic_CXX='-fPIC'
14787 # FIXME: we need at least 68020 code to build shared libraries, but
14788 # adding the `-m68020' flag to GCC prevents building anything better,
14790 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14795 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14796 # PIC is the default for these OSes.
14798 mingw* | cygwin* | os2* | pw32* | cegcc*)
14799 # This hack is so that the source file can tell whether it is being
14800 # built for inclusion in a dll (and should export symbols for example).
14801 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14802 # (--disable-auto-import) libraries
14803 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14805 darwin* | rhapsody*)
14806 # PIC is the default on this platform
14807 # Common symbols not allowed in MH_DYLIB files
14808 lt_prog_compiler_pic_CXX='-fno-common'
14811 # DJGPP does not support shared libraries at all
14812 lt_prog_compiler_pic_CXX=
14815 # PIC is the default for Haiku.
14816 # The "-static" flag exists, but is broken.
14817 lt_prog_compiler_static_CXX=
14820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14821 # Instead, we relocate shared libraries at runtime.
14824 if test -d /usr/nec; then
14825 lt_prog_compiler_pic_CXX=-Kconform_pic
14829 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14830 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14831 # sets the default TLS model and affects inlining.
14836 lt_prog_compiler_pic_CXX='-fPIC'
14841 # QNX uses GNU C++, but need to define -shared option too, otherwise
14842 # it will coredump.
14843 lt_prog_compiler_pic_CXX='-fPIC -shared'
14846 lt_prog_compiler_pic_CXX='-fPIC'
14852 # All AIX code is PIC.
14853 if test "$host_cpu" = ia64; then
14854 # AIX 5 now supports IA64 processor
14855 lt_prog_compiler_static_CXX='-Bstatic'
14857 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14861 case $cc_basename in
14863 # Green Hills C++ Compiler
14864 # _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"
14868 mingw* | cygwin* | os2* | pw32* | cegcc*)
14869 # This hack is so that the source file can tell whether it is being
14870 # built for inclusion in a dll (and should export symbols for example).
14871 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14874 case $cc_basename in
14876 lt_prog_compiler_pic_CXX='-KPIC'
14879 # Green Hills C++ Compiler
14880 lt_prog_compiler_pic_CXX='-pic'
14886 freebsd* | dragonfly*)
14887 # FreeBSD uses GNU C++
14889 hpux9* | hpux10* | hpux11*)
14890 case $cc_basename in
14892 lt_prog_compiler_wl_CXX='-Wl,'
14893 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14894 if test "$host_cpu" != ia64; then
14895 lt_prog_compiler_pic_CXX='+Z'
14899 lt_prog_compiler_wl_CXX='-Wl,'
14900 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14906 lt_prog_compiler_pic_CXX='+Z'
14915 # This is c89, which is MS Visual C++ (no shared libs)
14916 # Anyone wants to do a port?
14918 irix5* | irix6* | nonstopux*)
14919 case $cc_basename in
14921 lt_prog_compiler_wl_CXX='-Wl,'
14922 lt_prog_compiler_static_CXX='-non_shared'
14923 # CC pic flag -KPIC is the default.
14929 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14930 case $cc_basename in
14933 lt_prog_compiler_wl_CXX='--backend -Wl,'
14934 lt_prog_compiler_pic_CXX='-fPIC'
14937 # old Intel C++ for x86_64 which still supported -KPIC.
14938 lt_prog_compiler_wl_CXX='-Wl,'
14939 lt_prog_compiler_pic_CXX='-KPIC'
14940 lt_prog_compiler_static_CXX='-static'
14943 # Intel C++, used to be incompatible with GCC.
14944 # ICC 10 doesn't accept -KPIC any more.
14945 lt_prog_compiler_wl_CXX='-Wl,'
14946 lt_prog_compiler_pic_CXX='-fPIC'
14947 lt_prog_compiler_static_CXX='-static'
14950 # Portland Group C++ compiler
14951 lt_prog_compiler_wl_CXX='-Wl,'
14952 lt_prog_compiler_pic_CXX='-fpic'
14953 lt_prog_compiler_static_CXX='-Bstatic'
14957 # Make sure the PIC flag is empty. It appears that all Alpha
14958 # Linux and Compaq Tru64 Unix objects are PIC.
14959 lt_prog_compiler_pic_CXX=
14960 lt_prog_compiler_static_CXX='-non_shared'
14962 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14963 # IBM XL 8.0, 9.0 on PPC and BlueGene
14964 lt_prog_compiler_wl_CXX='-Wl,'
14965 lt_prog_compiler_pic_CXX='-qpic'
14966 lt_prog_compiler_static_CXX='-qstaticlink'
14969 case `$CC -V 2>&1 | sed 5q` in
14972 lt_prog_compiler_pic_CXX='-KPIC'
14973 lt_prog_compiler_static_CXX='-Bstatic'
14974 lt_prog_compiler_wl_CXX='-Qoption ld '
14985 case $cc_basename in
14987 lt_prog_compiler_pic_CXX='-W c,exportall'
14996 # QNX uses GNU C++, but need to define -shared option too, otherwise
14997 # it will coredump.
14998 lt_prog_compiler_pic_CXX='-fPIC -shared'
15000 osf3* | osf4* | osf5*)
15001 case $cc_basename in
15003 lt_prog_compiler_wl_CXX='--backend -Wl,'
15006 # Rational C++ 2.4.1
15007 lt_prog_compiler_pic_CXX='-pic'
15010 # Digital/Compaq C++
15011 lt_prog_compiler_wl_CXX='-Wl,'
15012 # Make sure the PIC flag is empty. It appears that all Alpha
15013 # Linux and Compaq Tru64 Unix objects are PIC.
15014 lt_prog_compiler_pic_CXX=
15015 lt_prog_compiler_static_CXX='-non_shared'
15024 case $cc_basename in
15026 # Sun C++ 4.2, 5.x and Centerline C++
15027 lt_prog_compiler_pic_CXX='-KPIC'
15028 lt_prog_compiler_static_CXX='-Bstatic'
15029 lt_prog_compiler_wl_CXX='-Qoption ld '
15032 # Green Hills C++ Compiler
15033 lt_prog_compiler_pic_CXX='-PIC'
15040 case $cc_basename in
15043 lt_prog_compiler_pic_CXX='-pic'
15044 lt_prog_compiler_static_CXX='-Bstatic'
15048 lt_prog_compiler_pic_CXX='-pic'
15054 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15055 case $cc_basename in
15057 lt_prog_compiler_wl_CXX='-Wl,'
15058 lt_prog_compiler_pic_CXX='-KPIC'
15059 lt_prog_compiler_static_CXX='-Bstatic'
15064 case $cc_basename in
15066 # NonStop-UX NCC 3.20
15067 lt_prog_compiler_pic_CXX='-KPIC'
15076 lt_prog_compiler_can_build_shared_CXX=no
15082 # For platforms which do not support PIC, -DPIC is meaningless:
15084 lt_prog_compiler_pic_CXX=
15087 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15092 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15093 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15094 $as_echo_n "(cached) " >&6
15096 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15099 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15100 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15103 # Check to make sure the PIC flag actually works.
15105 if test -n "$lt_prog_compiler_pic_CXX"; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15108 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15109 $as_echo_n "(cached) " >&6
15111 lt_cv_prog_compiler_pic_works_CXX=no
15112 ac_outfile=conftest.$ac_objext
15113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15114 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15115 # Insert the option either (1) after the last *FLAGS variable, or
15116 # (2) before a word containing "conftest.", or (3) at the end.
15117 # Note that $ac_compile itself does not contain backslashes and begins
15118 # with a dollar sign (not a hyphen), so the echo should work correctly.
15119 # The option is referenced via a variable to avoid confusing sed.
15120 lt_compile=`echo "$ac_compile" | $SED \
15121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15123 -e 's:$: $lt_compiler_flag:'`
15124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15125 (eval "$lt_compile" 2>conftest.err)
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 if (exit $ac_status) && test -s "$ac_outfile"; then
15130 # The compiler can only warn and ignore the option if not recognized
15131 # So say no if there are warnings other than the usual output.
15132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15135 lt_cv_prog_compiler_pic_works_CXX=yes
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15142 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15144 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15145 case $lt_prog_compiler_pic_CXX in
15147 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15150 lt_prog_compiler_pic_CXX=
15151 lt_prog_compiler_can_build_shared_CXX=no
15161 # Check to make sure the static flag actually works.
15163 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15166 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15167 $as_echo_n "(cached) " >&6
15169 lt_cv_prog_compiler_static_works_CXX=no
15170 save_LDFLAGS="$LDFLAGS"
15171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15172 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15174 # The linker can only warn and ignore the option if not recognized
15175 # So say no if there are warnings
15176 if test -s conftest.err; then
15177 # Append any errors to the config.log.
15178 cat conftest.err 1>&5
15179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15181 if diff conftest.exp conftest.er2 >/dev/null; then
15182 lt_cv_prog_compiler_static_works_CXX=yes
15185 lt_cv_prog_compiler_static_works_CXX=yes
15189 LDFLAGS="$save_LDFLAGS"
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15193 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15195 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15198 lt_prog_compiler_static_CXX=
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15205 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15206 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15207 $as_echo_n "(cached) " >&6
15209 lt_cv_prog_compiler_c_o_CXX=no
15210 $RM -r conftest 2>/dev/null
15214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15216 lt_compiler_flag="-o out/conftest2.$ac_objext"
15217 # Insert the option either (1) after the last *FLAGS variable, or
15218 # (2) before a word containing "conftest.", or (3) at the end.
15219 # Note that $ac_compile itself does not contain backslashes and begins
15220 # with a dollar sign (not a hyphen), so the echo should work correctly.
15221 lt_compile=`echo "$ac_compile" | $SED \
15222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15224 -e 's:$: $lt_compiler_flag:'`
15225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15226 (eval "$lt_compile" 2>out/conftest.err)
15228 cat out/conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15232 # The compiler can only warn and ignore the option if not recognized
15233 # So say no if there are warnings
15234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15237 lt_cv_prog_compiler_c_o_CXX=yes
15242 # SGI C++ compiler will create directory out/ii_files/ for
15243 # template instantiation
15244 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15245 $RM out/* && rmdir out
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15252 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15258 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15259 $as_echo_n "(cached) " >&6
15261 lt_cv_prog_compiler_c_o_CXX=no
15262 $RM -r conftest 2>/dev/null
15266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15268 lt_compiler_flag="-o out/conftest2.$ac_objext"
15269 # Insert the option either (1) after the last *FLAGS variable, or
15270 # (2) before a word containing "conftest.", or (3) at the end.
15271 # Note that $ac_compile itself does not contain backslashes and begins
15272 # with a dollar sign (not a hyphen), so the echo should work correctly.
15273 lt_compile=`echo "$ac_compile" | $SED \
15274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15276 -e 's:$: $lt_compiler_flag:'`
15277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15278 (eval "$lt_compile" 2>out/conftest.err)
15280 cat out/conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15284 # The compiler can only warn and ignore the option if not recognized
15285 # So say no if there are warnings
15286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15289 lt_cv_prog_compiler_c_o_CXX=yes
15294 # SGI C++ compiler will create directory out/ii_files/ for
15295 # template instantiation
15296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15297 $RM out/* && rmdir out
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15309 hard_links="nottested"
15310 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15311 # do not overwrite the value of need_locks provided by the user
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15313 $as_echo_n "checking if we can lock with hard links... " >&6; }
15316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15318 ln conftest.a conftest.b 2>&5 || hard_links=no
15319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15321 $as_echo "$hard_links" >&6; }
15322 if test "$hard_links" = no; then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15324 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15334 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15336 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15337 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15340 # If we're using GNU nm, then we don't want the "-C" option.
15341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15342 # Also, AIX nm treats weak defined symbols like other global defined
15343 # symbols, whereas GNU nm marks them as "W".
15344 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15345 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'
15347 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'
15351 export_symbols_cmds_CXX="$ltdll_cmds"
15353 cygwin* | mingw* | cegcc*)
15354 case $cc_basename in
15357 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'
15358 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15363 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15368 $as_echo "$ld_shlibs_CXX" >&6; }
15369 test "$ld_shlibs_CXX" = no && can_build_shared=no
15371 with_gnu_ld_CXX=$with_gnu_ld
15379 # Do we need to explicitly link libc?
15381 case "x$archive_cmds_need_lc_CXX" in
15383 # Assume -lc should be added
15384 archive_cmds_need_lc_CXX=yes
15386 if test "$enable_shared" = yes && test "$GCC" = yes; then
15387 case $archive_cmds_CXX in
15389 # FIXME: we may have to deal with multi-command sequences.
15392 # Test whether the compiler implicitly links with -lc since on some
15393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15394 # to ld, don't add -lc before -lgcc.
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15396 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15397 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15398 $as_echo_n "(cached) " >&6
15401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15404 (eval $ac_compile) 2>&5
15406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15407 test $ac_status = 0; } 2>conftest.err; then
15410 libobjs=conftest.$ac_objext
15412 wl=$lt_prog_compiler_wl_CXX
15413 pic_flag=$lt_prog_compiler_pic_CXX
15419 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15420 allow_undefined_flag_CXX=
15421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15422 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15425 test $ac_status = 0; }
15427 lt_cv_archive_cmds_need_lc_CXX=no
15429 lt_cv_archive_cmds_need_lc_CXX=yes
15431 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15433 cat conftest.err 1>&5
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15439 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15440 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15511 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15513 library_names_spec=
15514 libname_spec='lib$name'
15518 postuninstall_cmds=
15522 shlibpath_overrides_runpath=unknown
15524 dynamic_linker="$host_os ld.so"
15525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15526 need_lib_prefix=unknown
15527 hardcode_into_libs=no
15529 # when you set need_version to no, make sure it does not cause -set_version
15530 # flags to be left without arguments
15531 need_version=unknown
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15537 shlibpath_var=LIBPATH
15539 # AIX 3 has no versioning support, so we append a major version to the name.
15540 soname_spec='${libname}${release}${shared_ext}$major'
15547 hardcode_into_libs=yes
15548 if test "$host_cpu" = ia64; then
15549 # AIX 5 supports IA64
15550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15551 shlibpath_var=LD_LIBRARY_PATH
15553 # With GCC up to 2.95.x, collect2 would create an import file
15554 # for dependence libraries. The import file would start with
15555 # the line `#! .'. This would cause the generated library to
15556 # depend on `.', always an invalid library. This was fixed in
15557 # development snapshots of GCC prior to 3.0.
15559 aix4 | aix4.[01] | aix4.[01].*)
15560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15562 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15565 can_build_shared=no
15569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15570 # soname into executable. Probably we can add versioning support to
15571 # collect2, so additional links can be useful in future.
15572 if test "$aix_use_runtimelinking" = yes; then
15573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15574 # instead of lib<name>.a to let people know that these are not
15575 # typical AIX shared libraries.
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 # We preserve .a as extension for shared libraries through AIX4.2
15579 # and later when we are not doing run time linking.
15580 library_names_spec='${libname}${release}.a $libname.a'
15581 soname_spec='${libname}${release}${shared_ext}$major'
15583 shlibpath_var=LIBPATH
15590 # Since July 2007 AmigaOS4 officially supports .so libraries.
15591 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 library_names_spec='$libname.ixlibrary $libname.a'
15596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15597 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'
15603 library_names_spec='${libname}${shared_ext}'
15604 dynamic_linker="$host_os ld.so"
15605 shlibpath_var=LIBRARY_PATH
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15616 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15617 # the default ld.so.conf also contains /usr/contrib/lib and
15618 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15619 # libtool to hard-code these into programs
15622 cygwin* | mingw* | pw32* | cegcc*)
15623 version_type=windows
15628 case $GCC,$cc_basename in
15631 library_names_spec='$libname.dll.a'
15632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15633 postinstall_cmds='base_file=`basename \${file}`~
15634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15635 dldir=$destdir/`dirname \$dlpath`~
15636 test -d \$dldir || mkdir -p \$dldir~
15637 $install_prog $dir/$dlname \$dldir/$dlname~
15638 chmod a+x \$dldir/$dlname~
15639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15643 dlpath=$dir/\$dldll~
15645 shlibpath_overrides_runpath=yes
15649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15654 # MinGW DLLs use traditional 'lib' prefix
15655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15658 # pw32 DLLs use 'pw' prefix rather than 'lib'
15659 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15662 dynamic_linker='Win32 ld.exe'
15667 libname_spec='$name'
15668 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15669 library_names_spec='${libname}.dll.lib'
15673 sys_lib_search_path_spec=
15676 for lt_path in $LIB
15679 # Let DOS variable expansion print the short 8.3 style file name.
15680 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15681 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15684 # Convert to MSYS style.
15685 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15688 # Convert to unix form, then to dos form, then back to unix form
15689 # but this time dos style (no spaces!) so that the unix form looks
15690 # like /cygdrive/c/PROGRA~1:/cygdr...
15691 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15692 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15693 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15696 sys_lib_search_path_spec="$LIB"
15697 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15698 # It is most probably a Windows format PATH.
15699 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15701 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15703 # FIXME: find the short name or the path components, as spaces are
15704 # common. (e.g. "Program Files" -> "PROGRA~1")
15708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15709 postinstall_cmds='base_file=`basename \${file}`~
15710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15711 dldir=$destdir/`dirname \$dlpath`~
15712 test -d \$dldir || mkdir -p \$dldir~
15713 $install_prog $dir/$dlname \$dldir/$dlname'
15714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15715 dlpath=$dir/\$dldll~
15717 shlibpath_overrides_runpath=yes
15718 dynamic_linker='Win32 link.exe'
15722 # Assume MSVC wrapper
15723 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15724 dynamic_linker='Win32 ld.exe'
15727 # FIXME: first we should search . and the directory the executable is in
15731 darwin* | rhapsody*)
15732 dynamic_linker="$host_os dyld"
15733 version_type=darwin
15736 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15737 soname_spec='${libname}${release}${major}$shared_ext'
15738 shlibpath_overrides_runpath=yes
15739 shlibpath_var=DYLD_LIBRARY_PATH
15740 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15758 freebsd* | dragonfly*)
15759 # DragonFly does not have aout. When/if they implement a new
15760 # versioning mechanism, adjust this.
15761 if test -x /usr/bin/objformat; then
15762 objformat=`/usr/bin/objformat`
15765 freebsd[123]*) objformat=aout ;;
15766 *) objformat=elf ;;
15769 version_type=freebsd-$objformat
15770 case $version_type in
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15781 shlibpath_var=LD_LIBRARY_PATH
15784 shlibpath_overrides_runpath=yes
15786 freebsd3.[01]* | freebsdelf3.[01]*)
15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15790 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15791 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15792 shlibpath_overrides_runpath=no
15793 hardcode_into_libs=yes
15795 *) # from 4.6 on, and DragonFly
15796 shlibpath_overrides_runpath=yes
15797 hardcode_into_libs=yes
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 hardcode_into_libs=yes
15816 dynamic_linker="$host_os runtime_loader"
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 shlibpath_var=LIBRARY_PATH
15820 shlibpath_overrides_runpath=yes
15821 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15822 hardcode_into_libs=yes
15825 hpux9* | hpux10* | hpux11*)
15826 # Give a soname corresponding to the major version so that dld.sl refuses to
15827 # link against other versions.
15834 hardcode_into_libs=yes
15835 dynamic_linker="$host_os dld.so"
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 if test "X$HPUX_IA64_MODE" = X32; then
15841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15849 hardcode_into_libs=yes
15850 dynamic_linker="$host_os dld.sl"
15851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15860 dynamic_linker="$host_os dld.sl"
15861 shlibpath_var=SHLIB_PATH
15862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15867 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15868 postinstall_cmds='chmod 555 $lib'
15869 # or fails outright, so override atomically:
15870 install_override_mode=555
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 shlibpath_overrides_runpath=no
15882 hardcode_into_libs=yes
15885 irix5* | irix6* | nonstopux*)
15887 nonstopux*) version_type=nonstopux ;;
15889 if test "$lt_cv_prog_gnu_ld" = yes; then
15897 soname_spec='${libname}${release}${shared_ext}$major'
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15900 irix5* | nonstopux*)
15901 libsuff= shlibsuff=
15904 case $LD in # libtool.m4 will add one of these switches to LD
15905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15906 libsuff= shlibsuff= libmagic=32-bit;;
15907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15908 libsuff=32 shlibsuff=N32 libmagic=N32;;
15909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15911 *) libsuff= shlibsuff= libmagic=never-match;;
15915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15916 shlibpath_overrides_runpath=no
15917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15919 hardcode_into_libs=yes
15922 # No shared lib support for Linux oldld, aout, or coff.
15923 linux*oldld* | linux*aout* | linux*coff*)
15927 # This must be Linux ELF.
15928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15935 shlibpath_var=LD_LIBRARY_PATH
15936 shlibpath_overrides_runpath=no
15938 # Some binutils ld are patched to set DT_RUNPATH
15939 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15940 $as_echo_n "(cached) " >&6
15942 lt_cv_shlibpath_overrides_runpath=no
15943 save_LDFLAGS=$LDFLAGS
15944 save_libdir=$libdir
15945 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15946 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15958 if ac_fn_cxx_try_link "$LINENO"; then :
15959 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15960 lt_cv_shlibpath_overrides_runpath=yes
15963 rm -f core conftest.err conftest.$ac_objext \
15964 conftest$ac_exeext conftest.$ac_ext
15965 LDFLAGS=$save_LDFLAGS
15966 libdir=$save_libdir
15970 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15972 # This implies no fast_install, which is unacceptable.
15973 # Some rework will be needed to allow for fast_install
15974 # before this can be enabled.
15975 hardcode_into_libs=yes
15977 # Append ld.so.conf contents to the search path
15978 if test -f /etc/ld.so.conf; then
15979 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' ' '`
15980 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15983 # We used to test for /lib/ld.so.1 and disable shared libraries on
15984 # powerpc, because MkLinux only supported shared libraries with the
15985 # GNU dynamic linker. Since this was broken with cross compilers,
15986 # most powerpc-linux boxes support dynamic linking these days and
15987 # people can always --disable-shared, the test was removed, and we
15988 # assume the GNU/Linux dynamic linker is in use.
15989 dynamic_linker='GNU/Linux ld.so'
15996 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15999 dynamic_linker='NetBSD (a.out) ld.so'
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16002 soname_spec='${libname}${release}${shared_ext}$major'
16003 dynamic_linker='NetBSD ld.elf_so'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=yes
16007 hardcode_into_libs=yes
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 shlibpath_overrides_runpath=yes
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 soname_spec='${libname}${release}${shared_ext}$major'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 shlibpath_overrides_runpath=no
16025 hardcode_into_libs=yes
16026 dynamic_linker='ldqnx.so'
16031 sys_lib_dlsearch_path_spec="/usr/lib"
16033 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16035 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16036 *) need_version=no ;;
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16040 shlibpath_var=LD_LIBRARY_PATH
16041 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16043 openbsd2.[89] | openbsd2.[89].*)
16044 shlibpath_overrides_runpath=no
16047 shlibpath_overrides_runpath=yes
16051 shlibpath_overrides_runpath=yes
16056 libname_spec='$name'
16059 library_names_spec='$libname${shared_ext} $libname.a'
16060 dynamic_linker='OS/2 ld.exe'
16061 shlibpath_var=LIBPATH
16064 osf3* | osf4* | osf5*)
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 shlibpath_var=LD_LIBRARY_PATH
16086 shlibpath_overrides_runpath=yes
16087 hardcode_into_libs=yes
16088 # ldd complains unless libraries are executable
16089 postinstall_cmds='chmod +x $lib'
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=yes
16098 if test "$with_gnu_ld" = yes; then
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 shlibpath_var=LD_LIBRARY_PATH
16109 case $host_vendor in
16111 shlibpath_overrides_runpath=no
16113 runpath_var=LD_RUN_PATH
16121 shlibpath_overrides_runpath=no
16122 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16128 if test -d /usr/nec ;then
16130 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16131 soname_spec='$libname${shared_ext}.$major'
16132 shlibpath_var=LD_LIBRARY_PATH
16136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16137 version_type=freebsd-elf
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 if test "$with_gnu_ld" = yes; then
16146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16148 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16151 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16155 sys_lib_dlsearch_path_spec='/usr/lib'
16159 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 shlibpath_overrides_runpath=no
16166 hardcode_into_libs=yes
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16181 $as_echo "$dynamic_linker" >&6; }
16182 test "$dynamic_linker" = no && can_build_shared=no
16184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16185 if test "$GCC" = yes; then
16186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16189 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16190 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16192 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16193 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16234 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16235 hardcode_action_CXX=
16236 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16237 test -n "$runpath_var_CXX" ||
16238 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16240 # We can hardcode non-existent directories.
16241 if test "$hardcode_direct_CXX" != no &&
16242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16243 # have to relink, otherwise we might link with an installed library
16244 # when we should be linking with a yet-to-be-installed one
16245 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16246 test "$hardcode_minus_L_CXX" != no; then
16247 # Linking always hardcodes the temporary library directory.
16248 hardcode_action_CXX=relink
16250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16251 hardcode_action_CXX=immediate
16254 # We cannot hardcode anything, or else we can only hardcode existing
16256 hardcode_action_CXX=unsupported
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16259 $as_echo "$hardcode_action_CXX" >&6; }
16261 if test "$hardcode_action_CXX" = relink ||
16262 test "$inherit_rpath_CXX" = yes; then
16263 # Fast installation is not supported
16264 enable_fast_install=no
16265 elif test "$shlibpath_overrides_runpath" = yes ||
16266 test "$enable_shared" = no; then
16267 # Fast installation is not necessary
16268 enable_fast_install=needless
16277 fi # test -n "$compiler"
16280 CFLAGS=$lt_save_CFLAGS
16284 with_gnu_ld=$lt_save_with_gnu_ld
16285 lt_cv_path_LDCXX=$lt_cv_path_LD
16286 lt_cv_path_LD=$lt_save_path_LD
16287 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16288 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16289 fi # test "$_lt_caught_CXX_error" != yes
16292 ac_cpp='$CPP $CPPFLAGS'
16293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16309 ac_config_commands="$ac_config_commands libtool"
16314 # Only expand once:
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16330 $as_echo_n "checking for library containing dlopen... " >&6; }
16331 if ${ac_cv_search_dlopen+:} false; then :
16332 $as_echo_n "(cached) " >&6
16334 ac_func_search_save_LIBS=$LIBS
16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336 /* end confdefs.h. */
16338 /* Override any GCC internal prototype to avoid an error.
16339 Use char because int might match the return type of a GCC
16340 builtin and then its argument prototype would still apply. */
16353 for ac_lib in '' dl; do
16354 if test -z "$ac_lib"; then
16355 ac_res="none required"
16358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16360 if ac_fn_c_try_link "$LINENO"; then :
16361 ac_cv_search_dlopen=$ac_res
16363 rm -f core conftest.err conftest.$ac_objext \
16365 if ${ac_cv_search_dlopen+:} false; then :
16369 if ${ac_cv_search_dlopen+:} false; then :
16372 ac_cv_search_dlopen=no
16374 rm conftest.$ac_ext
16375 LIBS=$ac_func_search_save_LIBS
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16378 $as_echo "$ac_cv_search_dlopen" >&6; }
16379 ac_res=$ac_cv_search_dlopen
16380 if test "$ac_res" != no; then :
16381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16383 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16385 if test "$ac_cv_search_dlopen" != "none required" ; then
16386 LIBADD_DLOPEN="-ldl"
16388 libltdl_cv_lib_dl_dlopen="yes"
16389 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16394 # include <dlfcn.h>
16405 if ac_fn_c_try_link "$LINENO"; then :
16407 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16409 libltdl_cv_func_dlopen="yes"
16410 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16413 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16414 if ${ac_cv_lib_svld_dlopen+:} false; then :
16415 $as_echo_n "(cached) " >&6
16417 ac_check_lib_save_LIBS=$LIBS
16418 LIBS="-lsvld $LIBS"
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16422 /* Override any GCC internal prototype to avoid an error.
16423 Use char because int might match the return type of a GCC
16424 builtin and then its argument prototype would still apply. */
16437 if ac_fn_c_try_link "$LINENO"; then :
16438 ac_cv_lib_svld_dlopen=yes
16440 ac_cv_lib_svld_dlopen=no
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 LIBS=$ac_check_lib_save_LIBS
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16447 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16448 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16450 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16452 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16453 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16461 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16463 lt_save_LIBS="$LIBS"
16464 LIBS="$LIBS $LIBADD_DLOPEN"
16465 for ac_func in dlerror
16467 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16468 if test "x$ac_cv_func_dlerror" = xyes; then :
16469 cat >>confdefs.h <<_ACEOF
16470 #define HAVE_DLERROR 1
16476 LIBS="$lt_save_LIBS"
16481 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16482 if test "x$ac_cv_func_shl_load" = xyes; then :
16484 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16486 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16489 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16490 if ${ac_cv_lib_dld_shl_load+:} false; then :
16491 $as_echo_n "(cached) " >&6
16493 ac_check_lib_save_LIBS=$LIBS
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16498 /* Override any GCC internal prototype to avoid an error.
16499 Use char because int might match the return type of a GCC
16500 builtin and then its argument prototype would still apply. */
16508 return shl_load ();
16513 if ac_fn_c_try_link "$LINENO"; then :
16514 ac_cv_lib_dld_shl_load=yes
16516 ac_cv_lib_dld_shl_load=no
16518 rm -f core conftest.err conftest.$ac_objext \
16519 conftest$ac_exeext conftest.$ac_ext
16520 LIBS=$ac_check_lib_save_LIBS
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16523 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16524 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16526 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16528 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16529 LIBADD_SHL_LOAD="-ldld"
16538 # We only want this for pre-Mac OS X 10.4.
16539 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16540 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16542 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16544 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16549 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16551 cygwin* | mingw* | os2* | pw32*)
16552 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16554 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16564 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16570 if ${ac_cv_lib_dld_dld_link+:} false; then :
16571 $as_echo_n "(cached) " >&6
16573 ac_check_lib_save_LIBS=$LIBS
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16578 /* Override any GCC internal prototype to avoid an error.
16579 Use char because int might match the return type of a GCC
16580 builtin and then its argument prototype would still apply. */
16588 return dld_link ();
16593 if ac_fn_c_try_link "$LINENO"; then :
16594 ac_cv_lib_dld_dld_link=yes
16596 ac_cv_lib_dld_dld_link=no
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16604 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16606 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16608 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16615 if test -n "$LT_DLLOADERS"
16617 for lt_loader in $LT_DLLOADERS; do
16618 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16621 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16626 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16630 ac_cpp='$CPP $CPPFLAGS'
16631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16638 if test x$use_libtool != xno; then
16639 DEFAULT_OBJECT_TYPE=".lo"
16640 DEFAULT_ARCHIVE_TYPE=".la"
16641 DEFAULT_SHARED_OBJECT_TYPE=".la"
16642 LIBTOOL="\$(LIBTOOL)"
16643 LIBTOOL_INSTALL_TARGET="libtool-install"
16644 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16645 LIBTOOL_CLEAN_TARGET="libtool-clean"
16646 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16647 FD_PLUGIN_DIR="src/plugins/fd"
16650 DEFAULT_OBJECT_TYPE=".o"
16651 DEFAULT_ARCHIVE_TYPE=".a"
16652 DEFAULT_SHARED_OBJECT_TYPE=".so"
16653 LIBTOOL="# \$(LIBTOOL)"
16654 LIBTOOL_INSTALL_TARGET=""
16655 LIBTOOL_UNINSTALL_TARGET=""
16656 LIBTOOL_CLEAN_TARGET=""
16657 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16672 # Check whether --enable-includes was given.
16673 if test "${enable_includes+set}" = set; then :
16674 enableval=$enable_includes;
16675 if test x$enableval = xyes; then
16676 install_includes=yes
16684 if test x$use_libtool != xno -a x$install_includes = xyes; then
16685 INCLUDE_INSTALL_TARGET="install-includes"
16686 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16688 INCLUDE_INSTALL_TARGET=""
16689 INCLUDE_UNINSTALL_TARGET=""
16697 *cygwin* ) CYGWIN=yes;;
16701 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16707 HAVE_SUN_OS_FALSE='#'
16709 HAVE_SUN_OS_TRUE='#'
16712 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16719 HAVE_SUN_OS_FALSE='#'
16721 HAVE_SUN_OS_TRUE='#'
16726 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16732 HAVE_HURD_OS_FALSE='#'
16734 HAVE_HURD_OS_TRUE='#'
16735 HAVE_HURD_OS_FALSE=
16737 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16744 HAVE_HURD_OS_FALSE='#'
16746 HAVE_HURD_OS_TRUE='#'
16747 HAVE_HURD_OS_FALSE=
16751 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16757 HAVE_OSF1_OS_FALSE='#'
16759 HAVE_OSF1_OS_TRUE='#'
16760 HAVE_OSF1_OS_FALSE=
16762 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16769 HAVE_OSF1_OS_FALSE='#'
16771 HAVE_OSF1_OS_TRUE='#'
16772 HAVE_OSF1_OS_FALSE=
16776 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16782 HAVE_AIX_OS_FALSE='#'
16784 HAVE_AIX_OS_TRUE='#'
16787 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16794 HAVE_AIX_OS_FALSE='#'
16796 HAVE_AIX_OS_TRUE='#'
16801 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16807 HAVE_HPUX_OS_FALSE='#'
16809 HAVE_HPUX_OS_TRUE='#'
16810 HAVE_HPUX_OS_FALSE=
16812 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16819 HAVE_HPUX_OS_FALSE='#'
16821 HAVE_HPUX_OS_TRUE='#'
16822 HAVE_HPUX_OS_FALSE=
16826 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16831 HAVE_LINUX_OS_TRUE=
16832 HAVE_LINUX_OS_FALSE='#'
16834 HAVE_LINUX_OS_TRUE='#'
16835 HAVE_LINUX_OS_FALSE=
16837 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16843 HAVE_LINUX_OS_TRUE=
16844 HAVE_LINUX_OS_FALSE='#'
16846 HAVE_LINUX_OS_TRUE='#'
16847 HAVE_LINUX_OS_FALSE=
16851 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16856 HAVE_FREEBSD_OS_TRUE=
16857 HAVE_FREEBSD_OS_FALSE='#'
16859 HAVE_FREEBSD_OS_TRUE='#'
16860 HAVE_FREEBSD_OS_FALSE=
16862 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16868 HAVE_FREEBSD_OS_TRUE=
16869 HAVE_FREEBSD_OS_FALSE='#'
16871 HAVE_FREEBSD_OS_TRUE='#'
16872 HAVE_FREEBSD_OS_FALSE=
16876 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16881 HAVE_NETBSD_OS_TRUE=
16882 HAVE_NETBSD_OS_FALSE='#'
16884 HAVE_NETBSD_OS_TRUE='#'
16885 HAVE_NETBSD_OS_FALSE=
16887 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16893 HAVE_NETBSD_OS_TRUE=
16894 HAVE_NETBSD_OS_FALSE='#'
16896 HAVE_NETBSD_OS_TRUE='#'
16897 HAVE_NETBSD_OS_FALSE=
16901 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16906 HAVE_OPENBSD_OS_TRUE=
16907 HAVE_OPENBSD_OS_FALSE='#'
16909 HAVE_OPENBSD_OS_TRUE='#'
16910 HAVE_OPENBSD_OS_FALSE=
16912 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16918 HAVE_OPENBSD_OS_TRUE=
16919 HAVE_OPENBSD_OS_FALSE='#'
16921 HAVE_OPENBSD_OS_TRUE='#'
16922 HAVE_OPENBSD_OS_FALSE=
16926 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16932 HAVE_BSDI_OS_FALSE='#'
16934 HAVE_BSDI_OS_TRUE='#'
16935 HAVE_BSDI_OS_FALSE=
16937 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16944 HAVE_BSDI_OS_FALSE='#'
16946 HAVE_BSDI_OS_TRUE='#'
16947 HAVE_BSDI_OS_FALSE=
16951 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16957 HAVE_SGI_OS_FALSE='#'
16959 HAVE_SGI_OS_TRUE='#'
16962 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16969 HAVE_SGI_OS_FALSE='#'
16971 HAVE_SGI_OS_TRUE='#'
16976 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16982 HAVE_IRIX_OS_FALSE='#'
16984 HAVE_IRIX_OS_TRUE='#'
16985 HAVE_IRIX_OS_FALSE=
16987 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16994 HAVE_IRIX_OS_FALSE='#'
16996 HAVE_IRIX_OS_TRUE='#'
16997 HAVE_IRIX_OS_FALSE=
17001 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17006 HAVE_DARWIN_OS_TRUE=
17007 HAVE_DARWIN_OS_FALSE='#'
17009 HAVE_DARWIN_OS_TRUE='#'
17010 HAVE_DARWIN_OS_FALSE=
17012 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17018 HAVE_DARWIN_OS_TRUE=
17019 HAVE_DARWIN_OS_FALSE='#'
17021 HAVE_DARWIN_OS_TRUE='#'
17022 HAVE_DARWIN_OS_FALSE=
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17028 $as_echo_n "checking for Operating System Distribution... " >&6; }
17029 if test "x$DISTNAME" != "x"
17031 echo "distname set to $DISTNAME"
17032 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17035 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17038 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17041 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17044 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17047 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17050 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17053 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17056 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17059 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17062 elif test -f /etc/SuSE-release
17065 elif test -d /etc/SuSEconfig
17068 elif test -f /etc/mandrake-release
17071 elif test -f /etc/whitebox-release
17074 elif test -f /etc/redhat-release
17077 elif test -f /etc/gentoo-release
17080 elif test -f /etc/debian_version
17083 elif test -f /etc/slackware-version
17086 elif test x$host_vendor = xapple
17089 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17092 elif test -f /etc/engarde-version
17095 elif test -f /etc/arch-release
17098 elif test "$CYGWIN" = yes
17101 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17107 $as_echo "done" >&6; }
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17111 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17113 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17114 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17115 $as_echo_n "(cached) " >&6
17117 cat >conftest.make <<\_ACEOF
17120 @echo '@@@%%%=$(MAKE)=@@@%%%'
17122 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17124 *@@@%%%=?*=@@@%%%*)
17125 eval ac_cv_prog_make_${ac_make}_set=yes;;
17127 eval ac_cv_prog_make_${ac_make}_set=no;;
17129 rm -f conftest.make
17131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17133 $as_echo "yes" >&6; }
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17137 $as_echo "no" >&6; }
17138 SET_MAKE="MAKE=${MAKE-make}"
17144 if test -n "$ac_aux_dir"; then
17145 case "$ac_aux_dir" in
17146 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17147 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17150 if test -z "$MKINSTALLDIRS"; then
17151 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17157 $as_echo_n "checking whether NLS is requested... " >&6; }
17158 # Check whether --enable-nls was given.
17159 if test "${enable_nls+set}" = set; then :
17160 enableval=$enable_nls; USE_NLS=$enableval
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17166 $as_echo "$USE_NLS" >&6; }
17173 # Prepare PATH_SEPARATOR.
17174 # The user is always right.
17175 if test "${PATH_SEPARATOR+set}" != set; then
17176 echo "#! /bin/sh" >conf$$.sh
17177 echo "exit 0" >>conf$$.sh
17179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17187 # Find out how to test for executable files. Don't use a zero-byte file,
17188 # as systems may use methods other than mode bits to determine executability.
17189 cat >conf$$.file <<_ASEOF
17193 chmod +x conf$$.file
17194 if test -x conf$$.file >/dev/null 2>&1; then
17195 ac_executable_p="test -x"
17197 ac_executable_p="test -f"
17201 # Extract the first word of "msgfmt", so it can be a program name with args.
17202 set dummy msgfmt; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_path_MSGFMT+:} false; then :
17206 $as_echo_n "(cached) " >&6
17210 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17213 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17214 for ac_dir in $PATH; do
17216 test -z "$ac_dir" && ac_dir=.
17217 for ac_exec_ext in '' $ac_executable_extensions; do
17218 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17219 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17220 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17221 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17222 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17229 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17233 MSGFMT="$ac_cv_path_MSGFMT"
17234 if test "$MSGFMT" != ":"; then
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17236 $as_echo "$MSGFMT" >&6; }
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17242 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17243 set dummy gmsgfmt; ac_word=$2
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17245 $as_echo_n "checking for $ac_word... " >&6; }
17246 if ${ac_cv_path_GMSGFMT+:} false; then :
17247 $as_echo_n "(cached) " >&6
17251 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255 for as_dir in $PATH
17258 test -z "$as_dir" && as_dir=.
17259 for ac_exec_ext in '' $ac_executable_extensions; do
17260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17261 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17269 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17273 GMSGFMT=$ac_cv_path_GMSGFMT
17274 if test -n "$GMSGFMT"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17276 $as_echo "$GMSGFMT" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17285 # Prepare PATH_SEPARATOR.
17286 # The user is always right.
17287 if test "${PATH_SEPARATOR+set}" != set; then
17288 echo "#! /bin/sh" >conf$$.sh
17289 echo "exit 0" >>conf$$.sh
17291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17299 # Find out how to test for executable files. Don't use a zero-byte file,
17300 # as systems may use methods other than mode bits to determine executability.
17301 cat >conf$$.file <<_ASEOF
17305 chmod +x conf$$.file
17306 if test -x conf$$.file >/dev/null 2>&1; then
17307 ac_executable_p="test -x"
17309 ac_executable_p="test -f"
17313 # Extract the first word of "xgettext", so it can be a program name with args.
17314 set dummy xgettext; ac_word=$2
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17316 $as_echo_n "checking for $ac_word... " >&6; }
17317 if ${ac_cv_path_XGETTEXT+:} false; then :
17318 $as_echo_n "(cached) " >&6
17320 case "$XGETTEXT" in
17322 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17325 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17326 for ac_dir in $PATH; do
17328 test -z "$ac_dir" && ac_dir=.
17329 for ac_exec_ext in '' $ac_executable_extensions; do
17330 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17331 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17332 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17333 (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
17334 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17341 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17345 XGETTEXT="$ac_cv_path_XGETTEXT"
17346 if test "$XGETTEXT" != ":"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17348 $as_echo "$XGETTEXT" >&6; }
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17357 # Prepare PATH_SEPARATOR.
17358 # The user is always right.
17359 if test "${PATH_SEPARATOR+set}" != set; then
17360 echo "#! /bin/sh" >conf$$.sh
17361 echo "exit 0" >>conf$$.sh
17363 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17371 # Find out how to test for executable files. Don't use a zero-byte file,
17372 # as systems may use methods other than mode bits to determine executability.
17373 cat >conf$$.file <<_ASEOF
17377 chmod +x conf$$.file
17378 if test -x conf$$.file >/dev/null 2>&1; then
17379 ac_executable_p="test -x"
17381 ac_executable_p="test -f"
17385 # Extract the first word of "msgmerge", so it can be a program name with args.
17386 set dummy msgmerge; ac_word=$2
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17388 $as_echo_n "checking for $ac_word... " >&6; }
17389 if ${ac_cv_path_MSGMERGE+:} false; then :
17390 $as_echo_n "(cached) " >&6
17392 case "$MSGMERGE" in
17394 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17397 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17398 for ac_dir in $PATH; do
17400 test -z "$ac_dir" && ac_dir=.
17401 for ac_exec_ext in '' $ac_executable_extensions; do
17402 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17403 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17404 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17405 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17412 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17416 MSGMERGE="$ac_cv_path_MSGMERGE"
17417 if test "$MSGMERGE" != ":"; then
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17419 $as_echo "$MSGMERGE" >&6; }
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17422 $as_echo "no" >&6; }
17426 if test "$GMSGFMT" != ":"; then
17427 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17428 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17431 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17433 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17438 if test "$XGETTEXT" != ":"; then
17439 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17440 (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
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17444 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17450 ac_config_commands="$ac_config_commands default-1"
17454 if test "X$prefix" = "XNONE"; then
17455 acl_final_prefix="$ac_default_prefix"
17457 acl_final_prefix="$prefix"
17459 if test "X$exec_prefix" = "XNONE"; then
17460 acl_final_exec_prefix='${prefix}'
17462 acl_final_exec_prefix="$exec_prefix"
17464 acl_save_prefix="$prefix"
17465 prefix="$acl_final_prefix"
17466 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17467 prefix="$acl_save_prefix"
17470 # Check whether --with-gnu-ld was given.
17471 if test "${with_gnu_ld+set}" = set; then :
17472 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17477 # Prepare PATH_SEPARATOR.
17478 # The user is always right.
17479 if test "${PATH_SEPARATOR+set}" != set; then
17480 echo "#! /bin/sh" >conf$$.sh
17481 echo "exit 0" >>conf$$.sh
17483 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17491 if test "$GCC" = yes; then
17492 # Check if gcc -print-prog-name=ld gives a path.
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17494 $as_echo_n "checking for ld used by GCC... " >&6; }
17497 # gcc leaves a trailing carriage return which upsets mingw
17498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17503 # Accept absolute paths.
17504 [\\/]* | [A-Za-z]:[\\/]*)
17505 re_direlt='/[^/][^/]*/\.\./'
17506 # Canonicalize the path of ld
17507 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17508 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17509 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17511 test -z "$LD" && LD="$ac_prog"
17514 # If it fails, then pretend we aren't using GCC.
17518 # If it is relative, then search for the first ld in PATH.
17519 with_gnu_ld=unknown
17522 elif test "$with_gnu_ld" = yes; then
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17524 $as_echo_n "checking for GNU ld... " >&6; }
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17527 $as_echo_n "checking for non-GNU ld... " >&6; }
17529 if ${acl_cv_path_LD+:} false; then :
17530 $as_echo_n "(cached) " >&6
17532 if test -z "$LD"; then
17533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17534 for ac_dir in $PATH; do
17535 test -z "$ac_dir" && ac_dir=.
17536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17537 acl_cv_path_LD="$ac_dir/$ac_prog"
17538 # Check to see if the program is GNU ld. I'd rather use --version,
17539 # but apparently some GNU ld's only accept -v.
17540 # Break only if it was the GNU/non-GNU ld that we prefer.
17541 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17542 *GNU* | *'with BFD'*)
17543 test "$with_gnu_ld" != no && break ;;
17545 test "$with_gnu_ld" != yes && break ;;
17551 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17555 LD="$acl_cv_path_LD"
17556 if test -n "$LD"; then
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17558 $as_echo "$LD" >&6; }
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 $as_echo "no" >&6; }
17563 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17566 if ${acl_cv_prog_gnu_ld+:} false; then :
17567 $as_echo_n "(cached) " >&6
17569 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17570 case `$LD -v 2>&1 </dev/null` in
17571 *GNU* | *'with BFD'*)
17572 acl_cv_prog_gnu_ld=yes ;;
17574 acl_cv_prog_gnu_ld=no ;;
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17578 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17579 with_gnu_ld=$acl_cv_prog_gnu_ld
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17585 $as_echo_n "checking for shared library run path origin... " >&6; }
17586 if ${acl_cv_rpath+:} false; then :
17587 $as_echo_n "(cached) " >&6
17590 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17591 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17593 rm -f ./conftest.sh
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17598 $as_echo "$acl_cv_rpath" >&6; }
17600 libext="$acl_cv_libext"
17601 shlibext="$acl_cv_shlibext"
17602 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17603 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17604 hardcode_direct="$acl_cv_hardcode_direct"
17605 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17606 # Check whether --enable-rpath was given.
17607 if test "${enable_rpath+set}" = set; then :
17608 enableval=$enable_rpath; :
17622 acl_save_prefix="$prefix"
17623 prefix="$acl_final_prefix"
17624 acl_save_exec_prefix="$exec_prefix"
17625 exec_prefix="$acl_final_exec_prefix"
17627 eval additional_includedir=\"$includedir\"
17628 eval additional_libdir=\"$libdir\"
17630 exec_prefix="$acl_save_exec_prefix"
17631 prefix="$acl_save_prefix"
17634 # Check whether --with-libiconv-prefix was given.
17635 if test "${with_libiconv_prefix+set}" = set; then :
17636 withval=$with_libiconv_prefix;
17637 if test "X$withval" = "Xno"; then
17640 if test "X$withval" = "X"; then
17642 acl_save_prefix="$prefix"
17643 prefix="$acl_final_prefix"
17644 acl_save_exec_prefix="$exec_prefix"
17645 exec_prefix="$acl_final_exec_prefix"
17647 eval additional_includedir=\"$includedir\"
17648 eval additional_libdir=\"$libdir\"
17650 exec_prefix="$acl_save_exec_prefix"
17651 prefix="$acl_save_prefix"
17654 additional_includedir="$withval/include"
17655 additional_libdir="$withval/lib"
17666 names_already_handled=
17667 names_next_round='iconv '
17668 while test -n "$names_next_round"; do
17669 names_this_round="$names_next_round"
17671 for name in $names_this_round; do
17673 for n in $names_already_handled; do
17674 if test "$n" = "$name"; then
17675 already_handled=yes
17679 if test -z "$already_handled"; then
17680 names_already_handled="$names_already_handled $name"
17681 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17682 eval value=\"\$HAVE_LIB$uppername\"
17683 if test -n "$value"; then
17684 if test "$value" = yes; then
17685 eval value=\"\$LIB$uppername\"
17686 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17687 eval value=\"\$LTLIB$uppername\"
17688 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17697 if test $use_additional = yes; then
17698 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17699 found_dir="$additional_libdir"
17700 found_so="$additional_libdir/lib$name.$shlibext"
17701 if test -f "$additional_libdir/lib$name.la"; then
17702 found_la="$additional_libdir/lib$name.la"
17705 if test -f "$additional_libdir/lib$name.$libext"; then
17706 found_dir="$additional_libdir"
17707 found_a="$additional_libdir/lib$name.$libext"
17708 if test -f "$additional_libdir/lib$name.la"; then
17709 found_la="$additional_libdir/lib$name.la"
17714 if test "X$found_dir" = "X"; then
17715 for x in $LDFLAGS $LTLIBICONV; do
17717 acl_save_prefix="$prefix"
17718 prefix="$acl_final_prefix"
17719 acl_save_exec_prefix="$exec_prefix"
17720 exec_prefix="$acl_final_exec_prefix"
17722 exec_prefix="$acl_save_exec_prefix"
17723 prefix="$acl_save_prefix"
17727 dir=`echo "X$x" | sed -e 's/^X-L//'`
17728 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17730 found_so="$dir/lib$name.$shlibext"
17731 if test -f "$dir/lib$name.la"; then
17732 found_la="$dir/lib$name.la"
17735 if test -f "$dir/lib$name.$libext"; then
17737 found_a="$dir/lib$name.$libext"
17738 if test -f "$dir/lib$name.la"; then
17739 found_la="$dir/lib$name.la"
17745 if test "X$found_dir" != "X"; then
17750 if test "X$found_dir" != "X"; then
17751 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17752 if test "X$found_so" != "X"; then
17753 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17757 for x in $ltrpathdirs; do
17758 if test "X$x" = "X$found_dir"; then
17763 if test -z "$haveit"; then
17764 ltrpathdirs="$ltrpathdirs $found_dir"
17766 if test "$hardcode_direct" = yes; then
17767 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17769 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17770 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17772 for x in $rpathdirs; do
17773 if test "X$x" = "X$found_dir"; then
17778 if test -z "$haveit"; then
17779 rpathdirs="$rpathdirs $found_dir"
17783 for x in $LDFLAGS $LIBICONV; do
17785 acl_save_prefix="$prefix"
17786 prefix="$acl_final_prefix"
17787 acl_save_exec_prefix="$exec_prefix"
17788 exec_prefix="$acl_final_exec_prefix"
17790 exec_prefix="$acl_save_exec_prefix"
17791 prefix="$acl_save_prefix"
17793 if test "X$x" = "X-L$found_dir"; then
17798 if test -z "$haveit"; then
17799 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17801 if test "$hardcode_minus_L" != no; then
17802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17804 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17810 if test "X$found_a" != "X"; then
17811 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17813 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17816 additional_includedir=
17817 case "$found_dir" in
17819 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17820 additional_includedir="$basedir/include"
17823 if test "X$additional_includedir" != "X"; then
17824 if test "X$additional_includedir" != "X/usr/include"; then
17826 if test "X$additional_includedir" = "X/usr/local/include"; then
17827 if test -n "$GCC"; then
17829 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17833 if test -z "$haveit"; then
17834 for x in $CPPFLAGS $INCICONV; do
17836 acl_save_prefix="$prefix"
17837 prefix="$acl_final_prefix"
17838 acl_save_exec_prefix="$exec_prefix"
17839 exec_prefix="$acl_final_exec_prefix"
17841 exec_prefix="$acl_save_exec_prefix"
17842 prefix="$acl_save_prefix"
17844 if test "X$x" = "X-I$additional_includedir"; then
17849 if test -z "$haveit"; then
17850 if test -d "$additional_includedir"; then
17851 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17857 if test -n "$found_la"; then
17858 save_libdir="$libdir"
17859 case "$found_la" in
17860 */* | *\\*) . "$found_la" ;;
17861 *) . "./$found_la" ;;
17863 libdir="$save_libdir"
17864 for dep in $dependency_libs; do
17867 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17868 if test "X$additional_libdir" != "X/usr/lib"; then
17870 if test "X$additional_libdir" = "X/usr/local/lib"; then
17871 if test -n "$GCC"; then
17873 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17877 if test -z "$haveit"; then
17879 for x in $LDFLAGS $LIBICONV; do
17881 acl_save_prefix="$prefix"
17882 prefix="$acl_final_prefix"
17883 acl_save_exec_prefix="$exec_prefix"
17884 exec_prefix="$acl_final_exec_prefix"
17886 exec_prefix="$acl_save_exec_prefix"
17887 prefix="$acl_save_prefix"
17889 if test "X$x" = "X-L$additional_libdir"; then
17894 if test -z "$haveit"; then
17895 if test -d "$additional_libdir"; then
17896 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17900 for x in $LDFLAGS $LTLIBICONV; do
17902 acl_save_prefix="$prefix"
17903 prefix="$acl_final_prefix"
17904 acl_save_exec_prefix="$exec_prefix"
17905 exec_prefix="$acl_final_exec_prefix"
17907 exec_prefix="$acl_save_exec_prefix"
17908 prefix="$acl_save_prefix"
17910 if test "X$x" = "X-L$additional_libdir"; then
17915 if test -z "$haveit"; then
17916 if test -d "$additional_libdir"; then
17917 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17924 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17925 if test "$enable_rpath" != no; then
17927 for x in $rpathdirs; do
17928 if test "X$x" = "X$dir"; then
17933 if test -z "$haveit"; then
17934 rpathdirs="$rpathdirs $dir"
17937 for x in $ltrpathdirs; do
17938 if test "X$x" = "X$dir"; then
17943 if test -z "$haveit"; then
17944 ltrpathdirs="$ltrpathdirs $dir"
17949 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17952 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17955 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17956 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17962 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17969 if test "X$rpathdirs" != "X"; then
17970 if test -n "$hardcode_libdir_separator"; then
17972 for found_dir in $rpathdirs; do
17973 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17975 acl_save_libdir="$libdir"
17977 eval flag=\"$hardcode_libdir_flag_spec\"
17978 libdir="$acl_save_libdir"
17979 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17981 for found_dir in $rpathdirs; do
17982 acl_save_libdir="$libdir"
17983 libdir="$found_dir"
17984 eval flag=\"$hardcode_libdir_flag_spec\"
17985 libdir="$acl_save_libdir"
17986 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17990 if test "X$ltrpathdirs" != "X"; then
17991 for found_dir in $ltrpathdirs; do
17992 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18014 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18015 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18016 $as_echo_n "(cached) " >&6
18018 gt_save_CPPFLAGS="$CPPFLAGS"
18019 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18020 gt_save_LIBS="$LIBS"
18021 LIBS="$LIBS -framework CoreFoundation"
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 #include <CFPreferences.h>
18028 CFPreferencesCopyAppValue(NULL, NULL)
18033 if ac_fn_c_try_link "$LINENO"; then :
18034 gt_cv_func_CFPreferencesCopyAppValue=yes
18036 gt_cv_func_CFPreferencesCopyAppValue=no
18038 rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 CPPFLAGS="$gt_save_CPPFLAGS"
18041 LIBS="$gt_save_LIBS"
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18044 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18045 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18047 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18051 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18052 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18053 $as_echo_n "(cached) " >&6
18055 gt_save_CPPFLAGS="$CPPFLAGS"
18056 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18057 gt_save_LIBS="$LIBS"
18058 LIBS="$LIBS -framework CoreFoundation"
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 #include <CFLocale.h>
18065 CFLocaleCopyCurrent();
18070 if ac_fn_c_try_link "$LINENO"; then :
18071 gt_cv_func_CFLocaleCopyCurrent=yes
18073 gt_cv_func_CFLocaleCopyCurrent=no
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077 CPPFLAGS="$gt_save_CPPFLAGS"
18078 LIBS="$gt_save_LIBS"
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18081 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18082 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18084 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18088 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18089 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18096 $as_echo_n "checking whether NLS is requested... " >&6; }
18097 # Check whether --enable-nls was given.
18098 if test "${enable_nls+set}" = set; then :
18099 enableval=$enable_nls; USE_NLS=$enableval
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18105 $as_echo "$USE_NLS" >&6; }
18114 if test "$USE_NLS" = "yes"; then
18115 gt_use_preinstalled_gnugettext=no
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18123 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18124 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18125 $as_echo_n "(cached) " >&6
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18129 #include <libintl.h>
18130 extern int _nl_msg_cat_cntr;
18131 extern int *_nl_domain_bindings;
18135 bindtextdomain ("", "");
18136 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18141 if ac_fn_c_try_link "$LINENO"; then :
18142 gt_cv_func_gnugettext1_libc=yes
18144 gt_cv_func_gnugettext1_libc=no
18146 rm -f core conftest.err conftest.$ac_objext \
18147 conftest$ac_exeext conftest.$ac_ext
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18150 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18152 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18158 am_save_CPPFLAGS="$CPPFLAGS"
18160 for element in $INCICONV; do
18162 for x in $CPPFLAGS; do
18164 acl_save_prefix="$prefix"
18165 prefix="$acl_final_prefix"
18166 acl_save_exec_prefix="$exec_prefix"
18167 exec_prefix="$acl_final_exec_prefix"
18169 exec_prefix="$acl_save_exec_prefix"
18170 prefix="$acl_save_prefix"
18172 if test "X$x" = "X$element"; then
18177 if test -z "$haveit"; then
18178 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18184 $as_echo_n "checking for iconv... " >&6; }
18185 if ${am_cv_func_iconv+:} false; then :
18186 $as_echo_n "(cached) " >&6
18189 am_cv_func_iconv="no, consider installing GNU libiconv"
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18193 #include <stdlib.h>
18198 iconv_t cd = iconv_open("","");
18199 iconv(cd,NULL,NULL,NULL,NULL);
18205 if ac_fn_c_try_link "$LINENO"; then :
18206 am_cv_func_iconv=yes
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 if test "$am_cv_func_iconv" != yes; then
18211 am_save_LIBS="$LIBS"
18212 LIBS="$LIBS $LIBICONV"
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18215 #include <stdlib.h>
18220 iconv_t cd = iconv_open("","");
18221 iconv(cd,NULL,NULL,NULL,NULL);
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 am_cv_lib_iconv=yes
18229 am_cv_func_iconv=yes
18231 rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233 LIBS="$am_save_LIBS"
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18238 $as_echo "$am_cv_func_iconv" >&6; }
18239 if test "$am_cv_func_iconv" = yes; then
18241 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18244 if test "$am_cv_lib_iconv" = yes; then
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18246 $as_echo_n "checking how to link with libiconv... " >&6; }
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18248 $as_echo "$LIBICONV" >&6; }
18250 CPPFLAGS="$am_save_CPPFLAGS"
18262 acl_save_prefix="$prefix"
18263 prefix="$acl_final_prefix"
18264 acl_save_exec_prefix="$exec_prefix"
18265 exec_prefix="$acl_final_exec_prefix"
18267 eval additional_includedir=\"$includedir\"
18268 eval additional_libdir=\"$libdir\"
18270 exec_prefix="$acl_save_exec_prefix"
18271 prefix="$acl_save_prefix"
18274 # Check whether --with-libintl-prefix was given.
18275 if test "${with_libintl_prefix+set}" = set; then :
18276 withval=$with_libintl_prefix;
18277 if test "X$withval" = "Xno"; then
18280 if test "X$withval" = "X"; then
18282 acl_save_prefix="$prefix"
18283 prefix="$acl_final_prefix"
18284 acl_save_exec_prefix="$exec_prefix"
18285 exec_prefix="$acl_final_exec_prefix"
18287 eval additional_includedir=\"$includedir\"
18288 eval additional_libdir=\"$libdir\"
18290 exec_prefix="$acl_save_exec_prefix"
18291 prefix="$acl_save_prefix"
18294 additional_includedir="$withval/include"
18295 additional_libdir="$withval/lib"
18306 names_already_handled=
18307 names_next_round='intl '
18308 while test -n "$names_next_round"; do
18309 names_this_round="$names_next_round"
18311 for name in $names_this_round; do
18313 for n in $names_already_handled; do
18314 if test "$n" = "$name"; then
18315 already_handled=yes
18319 if test -z "$already_handled"; then
18320 names_already_handled="$names_already_handled $name"
18321 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18322 eval value=\"\$HAVE_LIB$uppername\"
18323 if test -n "$value"; then
18324 if test "$value" = yes; then
18325 eval value=\"\$LIB$uppername\"
18326 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18327 eval value=\"\$LTLIB$uppername\"
18328 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18337 if test $use_additional = yes; then
18338 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18339 found_dir="$additional_libdir"
18340 found_so="$additional_libdir/lib$name.$shlibext"
18341 if test -f "$additional_libdir/lib$name.la"; then
18342 found_la="$additional_libdir/lib$name.la"
18345 if test -f "$additional_libdir/lib$name.$libext"; then
18346 found_dir="$additional_libdir"
18347 found_a="$additional_libdir/lib$name.$libext"
18348 if test -f "$additional_libdir/lib$name.la"; then
18349 found_la="$additional_libdir/lib$name.la"
18354 if test "X$found_dir" = "X"; then
18355 for x in $LDFLAGS $LTLIBINTL; do
18357 acl_save_prefix="$prefix"
18358 prefix="$acl_final_prefix"
18359 acl_save_exec_prefix="$exec_prefix"
18360 exec_prefix="$acl_final_exec_prefix"
18362 exec_prefix="$acl_save_exec_prefix"
18363 prefix="$acl_save_prefix"
18367 dir=`echo "X$x" | sed -e 's/^X-L//'`
18368 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18370 found_so="$dir/lib$name.$shlibext"
18371 if test -f "$dir/lib$name.la"; then
18372 found_la="$dir/lib$name.la"
18375 if test -f "$dir/lib$name.$libext"; then
18377 found_a="$dir/lib$name.$libext"
18378 if test -f "$dir/lib$name.la"; then
18379 found_la="$dir/lib$name.la"
18385 if test "X$found_dir" != "X"; then
18390 if test "X$found_dir" != "X"; then
18391 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18392 if test "X$found_so" != "X"; then
18393 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18394 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18397 for x in $ltrpathdirs; do
18398 if test "X$x" = "X$found_dir"; then
18403 if test -z "$haveit"; then
18404 ltrpathdirs="$ltrpathdirs $found_dir"
18406 if test "$hardcode_direct" = yes; then
18407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18409 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18412 for x in $rpathdirs; do
18413 if test "X$x" = "X$found_dir"; then
18418 if test -z "$haveit"; then
18419 rpathdirs="$rpathdirs $found_dir"
18423 for x in $LDFLAGS $LIBINTL; do
18425 acl_save_prefix="$prefix"
18426 prefix="$acl_final_prefix"
18427 acl_save_exec_prefix="$exec_prefix"
18428 exec_prefix="$acl_final_exec_prefix"
18430 exec_prefix="$acl_save_exec_prefix"
18431 prefix="$acl_save_prefix"
18433 if test "X$x" = "X-L$found_dir"; then
18438 if test -z "$haveit"; then
18439 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18441 if test "$hardcode_minus_L" != no; then
18442 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18444 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18450 if test "X$found_a" != "X"; then
18451 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18453 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18456 additional_includedir=
18457 case "$found_dir" in
18459 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18460 additional_includedir="$basedir/include"
18463 if test "X$additional_includedir" != "X"; then
18464 if test "X$additional_includedir" != "X/usr/include"; then
18466 if test "X$additional_includedir" = "X/usr/local/include"; then
18467 if test -n "$GCC"; then
18469 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18473 if test -z "$haveit"; then
18474 for x in $CPPFLAGS $INCINTL; do
18476 acl_save_prefix="$prefix"
18477 prefix="$acl_final_prefix"
18478 acl_save_exec_prefix="$exec_prefix"
18479 exec_prefix="$acl_final_exec_prefix"
18481 exec_prefix="$acl_save_exec_prefix"
18482 prefix="$acl_save_prefix"
18484 if test "X$x" = "X-I$additional_includedir"; then
18489 if test -z "$haveit"; then
18490 if test -d "$additional_includedir"; then
18491 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18497 if test -n "$found_la"; then
18498 save_libdir="$libdir"
18499 case "$found_la" in
18500 */* | *\\*) . "$found_la" ;;
18501 *) . "./$found_la" ;;
18503 libdir="$save_libdir"
18504 for dep in $dependency_libs; do
18507 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18508 if test "X$additional_libdir" != "X/usr/lib"; then
18510 if test "X$additional_libdir" = "X/usr/local/lib"; then
18511 if test -n "$GCC"; then
18513 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18517 if test -z "$haveit"; then
18519 for x in $LDFLAGS $LIBINTL; do
18521 acl_save_prefix="$prefix"
18522 prefix="$acl_final_prefix"
18523 acl_save_exec_prefix="$exec_prefix"
18524 exec_prefix="$acl_final_exec_prefix"
18526 exec_prefix="$acl_save_exec_prefix"
18527 prefix="$acl_save_prefix"
18529 if test "X$x" = "X-L$additional_libdir"; then
18534 if test -z "$haveit"; then
18535 if test -d "$additional_libdir"; then
18536 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18540 for x in $LDFLAGS $LTLIBINTL; do
18542 acl_save_prefix="$prefix"
18543 prefix="$acl_final_prefix"
18544 acl_save_exec_prefix="$exec_prefix"
18545 exec_prefix="$acl_final_exec_prefix"
18547 exec_prefix="$acl_save_exec_prefix"
18548 prefix="$acl_save_prefix"
18550 if test "X$x" = "X-L$additional_libdir"; then
18555 if test -z "$haveit"; then
18556 if test -d "$additional_libdir"; then
18557 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18564 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18565 if test "$enable_rpath" != no; then
18567 for x in $rpathdirs; do
18568 if test "X$x" = "X$dir"; then
18573 if test -z "$haveit"; then
18574 rpathdirs="$rpathdirs $dir"
18577 for x in $ltrpathdirs; do
18578 if test "X$x" = "X$dir"; then
18583 if test -z "$haveit"; then
18584 ltrpathdirs="$ltrpathdirs $dir"
18589 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18595 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18596 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18602 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18603 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18609 if test "X$rpathdirs" != "X"; then
18610 if test -n "$hardcode_libdir_separator"; then
18612 for found_dir in $rpathdirs; do
18613 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18615 acl_save_libdir="$libdir"
18617 eval flag=\"$hardcode_libdir_flag_spec\"
18618 libdir="$acl_save_libdir"
18619 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18621 for found_dir in $rpathdirs; do
18622 acl_save_libdir="$libdir"
18623 libdir="$found_dir"
18624 eval flag=\"$hardcode_libdir_flag_spec\"
18625 libdir="$acl_save_libdir"
18626 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18630 if test "X$ltrpathdirs" != "X"; then
18631 for found_dir in $ltrpathdirs; do
18632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18637 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18638 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18639 $as_echo_n "(cached) " >&6
18641 gt_save_CPPFLAGS="$CPPFLAGS"
18642 CPPFLAGS="$CPPFLAGS $INCINTL"
18643 gt_save_LIBS="$LIBS"
18644 LIBS="$LIBS $LIBINTL"
18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h. */
18647 #include <libintl.h>
18648 extern int _nl_msg_cat_cntr;
18653 const char *_nl_expand_alias (const char *);
18657 bindtextdomain ("", "");
18658 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18663 if ac_fn_c_try_link "$LINENO"; then :
18664 gt_cv_func_gnugettext1_libintl=yes
18666 gt_cv_func_gnugettext1_libintl=no
18668 rm -f core conftest.err conftest.$ac_objext \
18669 conftest$ac_exeext conftest.$ac_ext
18670 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18671 LIBS="$LIBS $LIBICONV"
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674 #include <libintl.h>
18675 extern int _nl_msg_cat_cntr;
18680 const char *_nl_expand_alias (const char *);
18684 bindtextdomain ("", "");
18685 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18690 if ac_fn_c_try_link "$LINENO"; then :
18691 LIBINTL="$LIBINTL $LIBICONV"
18692 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18693 gt_cv_func_gnugettext1_libintl=yes
18696 rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18699 CPPFLAGS="$gt_save_CPPFLAGS"
18700 LIBS="$gt_save_LIBS"
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18703 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18706 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18707 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18708 && test "$PACKAGE" != gettext-runtime \
18709 && test "$PACKAGE" != gettext-tools; }; then
18710 gt_use_preinstalled_gnugettext=yes
18719 if test -n "$INTL_MACOSX_LIBS"; then
18720 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18721 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18722 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18723 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18727 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18728 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18730 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18738 $as_echo_n "checking whether to use NLS... " >&6; }
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18740 $as_echo "$USE_NLS" >&6; }
18741 if test "$USE_NLS" = "yes"; then
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18743 $as_echo_n "checking where the gettext function comes from... " >&6; }
18744 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18745 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18746 gt_source="external libintl"
18751 gt_source="included intl directory"
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18754 $as_echo "$gt_source" >&6; }
18757 if test "$USE_NLS" = "yes"; then
18759 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18760 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18762 $as_echo_n "checking how to link with libintl... " >&6; }
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18764 $as_echo "$LIBINTL" >&6; }
18766 for element in $INCINTL; do
18768 for x in $CPPFLAGS; do
18770 acl_save_prefix="$prefix"
18771 prefix="$acl_final_prefix"
18772 acl_save_exec_prefix="$exec_prefix"
18773 exec_prefix="$acl_final_exec_prefix"
18775 exec_prefix="$acl_save_exec_prefix"
18776 prefix="$acl_save_prefix"
18778 if test "X$x" = "X$element"; then
18783 if test -z "$haveit"; then
18784 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18791 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18794 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18803 INTLLIBS="$LIBINTL"
18811 os_name=`uname -s 2>/dev/null`
18812 if test x${prefix} = xNONE ; then
18813 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18814 sysconfdir=/etc/bacula
18817 if test `eval echo ${libdir}` = NONE/lib ; then
18820 os_processor=`uname -p 2>/dev/null`
18821 case ${os_processor} in
18836 if test `eval echo ${includedir}` = NONE/include ; then
18837 includedir=/usr/include
18840 if test `eval echo ${datarootdir}` = NONE/share ; then
18841 datarootdir=/usr/share
18846 if test x${exec_prefix} = xNONE ; then
18847 exec_prefix=${prefix}
18850 sysconfdir=`eval echo ${sysconfdir}`
18851 datarootdir=`eval echo ${datarootdir}`
18852 docdir=`eval echo ${docdir}`
18853 htmldir=`eval echo ${htmldir}`
18854 libdir=`eval echo ${libdir}`
18855 includedir=`eval echo ${includedir}`
18856 localedir=`eval echo ${datarootdir}/locale`
18857 cat >>confdefs.h <<_ACEOF
18858 #define SYSCONFDIR "$sysconfdir"
18861 cat >>confdefs.h <<_ACEOF
18862 #define LOCALEDIR "$localedir"
18866 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18867 sbindir=${exec_prefix}/sbin
18869 sbindir=`eval echo ${sbindir}`
18871 if test x$mandir = x'${prefix}/man' ; then
18872 mandir=/usr/share/man
18875 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18876 htmldir=`eval echo ${docdir}html`
18879 if test x$docdir = x'/usr/share/doc/' ; then
18880 docdir=`eval echo ${docdir}bacula`
18884 for ac_prog in msgfmt
18886 # Extract the first word of "$ac_prog", so it can be a program name with args.
18887 set dummy $ac_prog; ac_word=$2
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18889 $as_echo_n "checking for $ac_word... " >&6; }
18890 if ${ac_cv_path_MSGFMT+:} false; then :
18891 $as_echo_n "(cached) " >&6
18895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18899 for as_dir in $PATH
18902 test -z "$as_dir" && as_dir=.
18903 for ac_exec_ext in '' $ac_executable_extensions; do
18904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18905 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18916 MSGFMT=$ac_cv_path_MSGFMT
18917 if test -n "$MSGFMT"; then
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18919 $as_echo "$MSGFMT" >&6; }
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18922 $as_echo "no" >&6; }
18926 test -n "$MSGFMT" && break
18928 test -n "$MSGFMT" || MSGFMT="no"
18930 if test "$MSGFMT" = "no"
18932 echo 'msgfmt program not found, disabling NLS !'
18934 USE_INCLUDED_LIBINTL=no
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18938 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18939 if ${ac_cv_gnu_library_2+:} false; then :
18940 $as_echo_n "(cached) " >&6
18942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18945 #include <features.h>
18946 #ifdef __GNU_LIBRARY__
18947 #if (__GLIBC__ >= 2)
18953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18954 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18955 ac_cv_gnu_library_2=yes
18957 ac_cv_gnu_library_2=no
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18965 $as_echo "$ac_cv_gnu_library_2" >&6; }
18967 GLIBC2="$ac_cv_gnu_library_2"
18970 if test -n "$ac_tool_prefix"; then
18971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18974 $as_echo_n "checking for $ac_word... " >&6; }
18975 if ${ac_cv_prog_RANLIB+:} false; then :
18976 $as_echo_n "(cached) " >&6
18978 if test -n "$RANLIB"; then
18979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982 for as_dir in $PATH
18985 test -z "$as_dir" && as_dir=.
18986 for ac_exec_ext in '' $ac_executable_extensions; do
18987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18998 RANLIB=$ac_cv_prog_RANLIB
18999 if test -n "$RANLIB"; then
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19001 $as_echo "$RANLIB" >&6; }
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19004 $as_echo "no" >&6; }
19009 if test -z "$ac_cv_prog_RANLIB"; then
19010 ac_ct_RANLIB=$RANLIB
19011 # Extract the first word of "ranlib", so it can be a program name with args.
19012 set dummy ranlib; ac_word=$2
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19014 $as_echo_n "checking for $ac_word... " >&6; }
19015 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19016 $as_echo_n "(cached) " >&6
19018 if test -n "$ac_ct_RANLIB"; then
19019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022 for as_dir in $PATH
19025 test -z "$as_dir" && as_dir=.
19026 for ac_exec_ext in '' $ac_executable_extensions; do
19027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19028 ac_cv_prog_ac_ct_RANLIB="ranlib"
19029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19038 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19039 if test -n "$ac_ct_RANLIB"; then
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19041 $as_echo "$ac_ct_RANLIB" >&6; }
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19044 $as_echo "no" >&6; }
19047 if test "x$ac_ct_RANLIB" = x; then
19050 case $cross_compiling:$ac_tool_warned in
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19054 ac_tool_warned=yes ;;
19056 RANLIB=$ac_ct_RANLIB
19059 RANLIB="$ac_cv_prog_RANLIB"
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19064 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19065 if ${ac_cv_lib_cposix_strerror+:} false; then :
19066 $as_echo_n "(cached) " >&6
19068 ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lcposix $LIBS"
19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h. */
19073 /* Override any GCC internal prototype to avoid an error.
19074 Use char because int might match the return type of a GCC
19075 builtin and then its argument prototype would still apply. */
19083 return strerror ();
19088 if ac_fn_c_try_link "$LINENO"; then :
19089 ac_cv_lib_cposix_strerror=yes
19091 ac_cv_lib_cposix_strerror=no
19093 rm -f core conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext conftest.$ac_ext
19095 LIBS=$ac_check_lib_save_LIBS
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19098 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19099 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19100 LIBS="$LIBS -lcposix"
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19106 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19107 if ${ac_cv_c_const+:} false; then :
19108 $as_echo_n "(cached) " >&6
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19116 /* FIXME: Include the comments suggested by Paul. */
19117 #ifndef __cplusplus
19118 /* Ultrix mips cc rejects this. */
19119 typedef int charset[2];
19121 /* SunOS 4.1.1 cc rejects this. */
19122 char const *const *pcpcc;
19124 /* NEC SVR4.0.2 mips cc rejects this. */
19125 struct point {int x, y;};
19126 static struct point const zero = {0,0};
19127 /* AIX XL C 1.02.0.0 rejects this.
19128 It does not let you subtract one const X* pointer from another in
19129 an arm of an if-expression whose if-part is not a constant
19131 const char *g = "string";
19132 pcpcc = &g + (g ? g-g : 0);
19133 /* HPUX 7.0 cc rejects these. */
19135 ppc = (char**) pcpcc;
19136 pcpcc = (char const *const *) ppc;
19137 { /* SCO 3.2v4 cc rejects this. */
19139 char const *s = 0 ? (char *) 0 : (char const *) 0;
19144 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19145 int x[] = {25, 17};
19146 const int *foo = &x[0];
19149 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19150 typedef const int *iptr;
19154 { /* AIX XL C 1.02.0.0 rejects this saying
19155 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19156 struct s { int j; const int *ap[3]; };
19157 struct s *b; b->j = 5;
19159 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19160 const int foo = 10;
19161 if (!foo) return 0;
19163 return !cs[0] && !zero.x;
19170 if ac_fn_c_try_compile "$LINENO"; then :
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19178 $as_echo "$ac_cv_c_const" >&6; }
19179 if test $ac_cv_c_const = no; then
19181 $as_echo "#define const /**/" >>confdefs.h
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19187 $as_echo_n "checking for signed... " >&6; }
19188 if ${bh_cv_c_signed+:} false; then :
19189 $as_echo_n "(cached) " >&6
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19202 if ac_fn_c_try_compile "$LINENO"; then :
19207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19210 $as_echo "$bh_cv_c_signed" >&6; }
19211 if test $bh_cv_c_signed = no; then
19213 $as_echo "#define signed /**/" >>confdefs.h
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19218 $as_echo_n "checking for inline... " >&6; }
19219 if ${ac_cv_c_inline+:} false; then :
19220 $as_echo_n "(cached) " >&6
19223 for ac_kw in inline __inline__ __inline; do
19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19226 #ifndef __cplusplus
19228 static $ac_kw foo_t static_foo () {return 0; }
19229 $ac_kw foo_t foo () {return 0; }
19233 if ac_fn_c_try_compile "$LINENO"; then :
19234 ac_cv_c_inline=$ac_kw
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 test "$ac_cv_c_inline" != no && break
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19242 $as_echo "$ac_cv_c_inline" >&6; }
19244 case $ac_cv_c_inline in
19247 case $ac_cv_c_inline in
19249 *) ac_val=$ac_cv_c_inline;;
19251 cat >>confdefs.h <<_ACEOF
19252 #ifndef __cplusplus
19253 #define inline $ac_val
19259 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19260 if test "x$ac_cv_type_off_t" = xyes; then :
19264 cat >>confdefs.h <<_ACEOF
19265 #define off_t long int
19270 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19271 if test "x$ac_cv_type_size_t" = xyes; then :
19275 cat >>confdefs.h <<_ACEOF
19276 #define size_t unsigned int
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19283 $as_echo_n "checking for long long... " >&6; }
19284 if ${ac_cv_type_long_long+:} false; then :
19285 $as_echo_n "(cached) " >&6
19287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19289 long long ll = 1LL; int i = 63;
19293 long long llmax = (long long) -1;
19294 return ll << i | ll >> i | llmax / ll | llmax % ll;
19299 if ac_fn_c_try_link "$LINENO"; then :
19300 ac_cv_type_long_long=yes
19302 ac_cv_type_long_long=no
19304 rm -f core conftest.err conftest.$ac_objext \
19305 conftest$ac_exeext conftest.$ac_ext
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19308 $as_echo "$ac_cv_type_long_long" >&6; }
19309 if test $ac_cv_type_long_long = yes; then
19311 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19317 $as_echo_n "checking for long double... " >&6; }
19318 if ${gt_cv_c_long_double+:} false; then :
19319 $as_echo_n "(cached) " >&6
19321 if test "$GCC" = yes; then
19322 gt_cv_c_long_double=yes
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19327 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19328 long double foo = 0.0;
19329 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19330 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19340 if ac_fn_c_try_compile "$LINENO"; then :
19341 gt_cv_c_long_double=yes
19343 gt_cv_c_long_double=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19349 $as_echo "$gt_cv_c_long_double" >&6; }
19350 if test $gt_cv_c_long_double = yes; then
19352 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19358 $as_echo_n "checking for wchar_t... " >&6; }
19359 if ${gt_cv_c_wchar_t+:} false; then :
19360 $as_echo_n "(cached) " >&6
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19364 #include <stddef.h>
19365 wchar_t foo = (wchar_t)'\0';
19374 if ac_fn_c_try_compile "$LINENO"; then :
19375 gt_cv_c_wchar_t=yes
19379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19382 $as_echo "$gt_cv_c_wchar_t" >&6; }
19383 if test $gt_cv_c_wchar_t = yes; then
19385 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19391 $as_echo_n "checking for wint_t... " >&6; }
19392 if ${gt_cv_c_wint_t+:} false; then :
19393 $as_echo_n "(cached) " >&6
19395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396 /* end confdefs.h. */
19398 wint_t foo = (wchar_t)'\0';
19407 if ac_fn_c_try_compile "$LINENO"; then :
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19415 $as_echo "$gt_cv_c_wint_t" >&6; }
19416 if test $gt_cv_c_wint_t = yes; then
19418 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19424 $as_echo_n "checking for inttypes.h... " >&6; }
19425 if ${gl_cv_header_inttypes_h+:} false; then :
19426 $as_echo_n "(cached) " >&6
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 #include <sys/types.h>
19431 #include <inttypes.h>
19435 uintmax_t i = (uintmax_t) -1;
19440 if ac_fn_c_try_compile "$LINENO"; then :
19441 gl_cv_header_inttypes_h=yes
19443 gl_cv_header_inttypes_h=no
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19448 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19449 if test $gl_cv_header_inttypes_h = yes; then
19451 cat >>confdefs.h <<_ACEOF
19452 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19459 $as_echo_n "checking for stdint.h... " >&6; }
19460 if ${gl_cv_header_stdint_h+:} false; then :
19461 $as_echo_n "(cached) " >&6
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19465 #include <sys/types.h>
19466 #include <stdint.h>
19470 uintmax_t i = (uintmax_t) -1;
19475 if ac_fn_c_try_compile "$LINENO"; then :
19476 gl_cv_header_stdint_h=yes
19478 gl_cv_header_stdint_h=no
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19483 $as_echo "$gl_cv_header_stdint_h" >&6; }
19484 if test $gl_cv_header_stdint_h = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_STDINT_H_WITH_UINTMAX 1
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19496 $as_echo_n "checking for intmax_t... " >&6; }
19497 if ${gt_cv_c_intmax_t+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19503 #include <stddef.h>
19504 #include <stdlib.h>
19505 #if HAVE_STDINT_H_WITH_UINTMAX
19506 #include <stdint.h>
19508 #if HAVE_INTTYPES_H_WITH_UINTMAX
19509 #include <inttypes.h>
19520 if ac_fn_c_try_compile "$LINENO"; then :
19521 gt_cv_c_intmax_t=yes
19523 gt_cv_c_intmax_t=no
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19528 $as_echo "$gt_cv_c_intmax_t" >&6; }
19529 if test $gt_cv_c_intmax_t = yes; then
19531 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19538 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19539 if ${gt_cv_func_printf_posix+:} false; then :
19540 $as_echo_n "(cached) " >&6
19543 if test "$cross_compiling" = yes; then :
19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h. */
19548 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19554 $EGREP "notposix" >/dev/null 2>&1; then :
19555 gt_cv_func_printf_posix="guessing no"
19557 gt_cv_func_printf_posix="guessing yes"
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19567 #include <string.h>
19568 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19569 dollar expansion (possibly an autoconf bug). */
19570 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19571 static char buf[100];
19574 sprintf (buf, format, 33, 55);
19575 return (strcmp (buf, "55 33") != 0);
19578 if ac_fn_c_try_run "$LINENO"; then :
19579 gt_cv_func_printf_posix=yes
19581 gt_cv_func_printf_posix=no
19583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19584 conftest.$ac_objext conftest.beam conftest.$ac_ext
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19590 $as_echo "$gt_cv_func_printf_posix" >&6; }
19591 case $gt_cv_func_printf_posix in
19594 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19600 # for constant arguments. Useless!
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19602 $as_echo_n "checking for working alloca.h... " >&6; }
19603 if ${ac_cv_working_alloca_h+:} false; then :
19604 $as_echo_n "(cached) " >&6
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19608 #include <alloca.h>
19612 char *p = (char *) alloca (2 * sizeof (int));
19618 if ac_fn_c_try_link "$LINENO"; then :
19619 ac_cv_working_alloca_h=yes
19621 ac_cv_working_alloca_h=no
19623 rm -f core conftest.err conftest.$ac_objext \
19624 conftest$ac_exeext conftest.$ac_ext
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19627 $as_echo "$ac_cv_working_alloca_h" >&6; }
19628 if test $ac_cv_working_alloca_h = yes; then
19630 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19635 $as_echo_n "checking for alloca... " >&6; }
19636 if ${ac_cv_func_alloca_works+:} false; then :
19637 $as_echo_n "(cached) " >&6
19639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h. */
19642 # define alloca __builtin_alloca
19645 # include <malloc.h>
19646 # define alloca _alloca
19648 # ifdef HAVE_ALLOCA_H
19649 # include <alloca.h>
19654 # ifndef alloca /* predefined by HP cc +Olibcalls */
19655 void *alloca (size_t);
19665 char *p = (char *) alloca (1);
19671 if ac_fn_c_try_link "$LINENO"; then :
19672 ac_cv_func_alloca_works=yes
19674 ac_cv_func_alloca_works=no
19676 rm -f core conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext conftest.$ac_ext
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19680 $as_echo "$ac_cv_func_alloca_works" >&6; }
19682 if test $ac_cv_func_alloca_works = yes; then
19684 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19687 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19688 # that cause trouble. Some versions do not even contain alloca or
19689 # contain a buggy version. If you still want to use their alloca,
19690 # use ar to extract alloca.o from them instead of compiling alloca.c.
19692 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19694 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19698 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19699 if ${ac_cv_os_cray+:} false; then :
19700 $as_echo_n "(cached) " >&6
19702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19704 #if defined CRAY && ! defined CRAY2
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712 $EGREP "webecray" >/dev/null 2>&1; then :
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19721 $as_echo "$ac_cv_os_cray" >&6; }
19722 if test $ac_cv_os_cray = yes; then
19723 for ac_func in _getb67 GETB67 getb67; do
19724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19726 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19728 cat >>confdefs.h <<_ACEOF
19729 #define CRAY_STACKSEG_END $ac_func
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19739 $as_echo_n "checking stack direction for C alloca... " >&6; }
19740 if ${ac_cv_c_stack_direction+:} false; then :
19741 $as_echo_n "(cached) " >&6
19743 if test "$cross_compiling" = yes; then :
19744 ac_cv_c_stack_direction=0
19746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747 /* end confdefs.h. */
19748 $ac_includes_default
19750 find_stack_direction ()
19752 static char *addr = 0;
19757 return find_stack_direction ();
19760 return (&dummy > addr) ? 1 : -1;
19766 return find_stack_direction () < 0;
19769 if ac_fn_c_try_run "$LINENO"; then :
19770 ac_cv_c_stack_direction=1
19772 ac_cv_c_stack_direction=-1
19774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19775 conftest.$ac_objext conftest.beam conftest.$ac_ext
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19780 $as_echo "$ac_cv_c_stack_direction" >&6; }
19781 cat >>confdefs.h <<_ACEOF
19782 #define STACK_DIRECTION $ac_cv_c_stack_direction
19791 for ac_header in $ac_header_list
19793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19794 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19797 cat >>confdefs.h <<_ACEOF
19798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19812 for ac_func in getpagesize
19814 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19815 if test "x$ac_cv_func_getpagesize" = xyes; then :
19816 cat >>confdefs.h <<_ACEOF
19817 #define HAVE_GETPAGESIZE 1
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19824 $as_echo_n "checking for working mmap... " >&6; }
19825 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19826 $as_echo_n "(cached) " >&6
19828 if test "$cross_compiling" = yes; then :
19829 ac_cv_func_mmap_fixed_mapped=no
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19833 $ac_includes_default
19834 /* malloc might have been renamed as rpl_malloc. */
19837 /* Thanks to Mike Haertel and Jim Avera for this test.
19838 Here is a matrix of mmap possibilities:
19839 mmap private not fixed
19840 mmap private fixed at somewhere currently unmapped
19841 mmap private fixed at somewhere already mapped
19842 mmap shared not fixed
19843 mmap shared fixed at somewhere currently unmapped
19844 mmap shared fixed at somewhere already mapped
19845 For private mappings, we should verify that changes cannot be read()
19846 back from the file, nor mmap's back from the file at a different
19847 address. (There have been systems where private was not correctly
19848 implemented like the infamous i386 svr4.0, and systems where the
19849 VM page cache was not coherent with the file system buffer cache
19850 like early versions of FreeBSD and possibly contemporary NetBSD.)
19851 For shared mappings, we should conversely verify that changes get
19852 propagated back to all the places they're supposed to be.
19854 Grep wants private fixed already mapped.
19855 The main things grep needs to know about mmap are:
19856 * does it exist and is it safe to write into the mmap'd area
19857 * how to use it (BSD variants) */
19860 #include <sys/mman.h>
19862 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19866 /* This mess was copied from the GNU getpagesize.h. */
19867 #ifndef HAVE_GETPAGESIZE
19868 # ifdef _SC_PAGESIZE
19869 # define getpagesize() sysconf(_SC_PAGESIZE)
19870 # else /* no _SC_PAGESIZE */
19871 # ifdef HAVE_SYS_PARAM_H
19872 # include <sys/param.h>
19873 # ifdef EXEC_PAGESIZE
19874 # define getpagesize() EXEC_PAGESIZE
19875 # else /* no EXEC_PAGESIZE */
19877 # define getpagesize() NBPG * CLSIZE
19880 # endif /* no CLSIZE */
19881 # else /* no NBPG */
19883 # define getpagesize() NBPC
19884 # else /* no NBPC */
19886 # define getpagesize() PAGESIZE
19887 # endif /* PAGESIZE */
19888 # endif /* no NBPC */
19889 # endif /* no NBPG */
19890 # endif /* no EXEC_PAGESIZE */
19891 # else /* no HAVE_SYS_PARAM_H */
19892 # define getpagesize() 8192 /* punt totally */
19893 # endif /* no HAVE_SYS_PARAM_H */
19894 # endif /* no _SC_PAGESIZE */
19896 #endif /* no HAVE_GETPAGESIZE */
19901 char *data, *data2, *data3;
19902 const char *cdata2;
19906 pagesize = getpagesize ();
19908 /* First, make a file with some known garbage in it. */
19909 data = (char *) malloc (pagesize);
19912 for (i = 0; i < pagesize; ++i)
19913 *(data + i) = rand ();
19915 fd = creat ("conftest.mmap", 0600);
19918 if (write (fd, data, pagesize) != pagesize)
19922 /* Next, check that the tail of a page is zero-filled. File must have
19923 non-zero length, otherwise we risk SIGBUS for entire page. */
19924 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19928 if (write (fd2, cdata2, 1) != 1)
19930 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19931 if (data2 == MAP_FAILED)
19933 for (i = 0; i < pagesize; ++i)
19937 if (munmap (data2, pagesize))
19940 /* Next, try to mmap the file at a fixed address which already has
19941 something else allocated at it. If we can, also make sure that
19942 we see the same garbage. */
19943 fd = open ("conftest.mmap", O_RDWR);
19946 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19947 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19949 for (i = 0; i < pagesize; ++i)
19950 if (*(data + i) != *(data2 + i))
19953 /* Finally, make sure that changes to the mapped area do not
19954 percolate back to the file as seen by read(). (This is a bug on
19955 some variants of i386 svr4.0.) */
19956 for (i = 0; i < pagesize; ++i)
19957 *(data2 + i) = *(data2 + i) + 1;
19958 data3 = (char *) malloc (pagesize);
19961 if (read (fd, data3, pagesize) != pagesize)
19963 for (i = 0; i < pagesize; ++i)
19964 if (*(data + i) != *(data3 + i))
19970 if ac_fn_c_try_run "$LINENO"; then :
19971 ac_cv_func_mmap_fixed_mapped=yes
19973 ac_cv_func_mmap_fixed_mapped=no
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19976 conftest.$ac_objext conftest.beam conftest.$ac_ext
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19981 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19982 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19984 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19987 rm -f conftest.mmap conftest.txt
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19991 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19992 if ${ac_cv_gnu_library_2_1+:} false; then :
19993 $as_echo_n "(cached) " >&6
19995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19996 /* end confdefs.h. */
19998 #include <features.h>
19999 #ifdef __GNU_LIBRARY__
20000 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20007 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20008 ac_cv_gnu_library_2_1=yes
20010 ac_cv_gnu_library_2_1=no
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20018 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20020 GLIBC21="$ac_cv_gnu_library_2_1"
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20026 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20027 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20028 $as_echo_n "(cached) " >&6
20031 if test "$cross_compiling" = yes; then :
20033 # Guess based on the CPU.
20034 case "$host_cpu" in
20035 alpha* | i3456786 | m68k | s390*)
20036 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20038 gt_cv_int_divbyzero_sigfpe="guessing no";;
20042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20043 /* end confdefs.h. */
20045 #include <stdlib.h>
20046 #include <signal.h>
20050 sigfpe_handler (int sig)
20052 sigfpe_handler (sig) int sig;
20055 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20056 exit (sig != SIGFPE);
20066 signal (SIGFPE, sigfpe_handler);
20067 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20068 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20069 signal (SIGTRAP, sigfpe_handler);
20071 /* Linux/SPARC yields signal SIGILL. */
20072 #if defined (__sparc__) && defined (__linux__)
20073 signal (SIGILL, sigfpe_handler);
20082 if ac_fn_c_try_run "$LINENO"; then :
20083 gt_cv_int_divbyzero_sigfpe=yes
20085 gt_cv_int_divbyzero_sigfpe=no
20087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20088 conftest.$ac_objext conftest.beam conftest.$ac_ext
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20094 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20095 case "$gt_cv_int_divbyzero_sigfpe" in
20100 cat >>confdefs.h <<_ACEOF
20101 #define INTDIV0_RAISES_SIGFPE $value
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20107 $as_echo_n "checking for unsigned long long... " >&6; }
20108 if ${ac_cv_type_unsigned_long_long+:} false; then :
20109 $as_echo_n "(cached) " >&6
20111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112 /* end confdefs.h. */
20113 unsigned long long ull = 1ULL; int i = 63;
20117 unsigned long long ullmax = (unsigned long long) -1;
20118 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20123 if ac_fn_c_try_link "$LINENO"; then :
20124 ac_cv_type_unsigned_long_long=yes
20126 ac_cv_type_unsigned_long_long=no
20128 rm -f core conftest.err conftest.$ac_objext \
20129 conftest$ac_exeext conftest.$ac_ext
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20132 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20133 if test $ac_cv_type_unsigned_long_long = yes; then
20135 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20142 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20144 test $ac_cv_type_unsigned_long_long = yes \
20145 && ac_type='unsigned long long' \
20146 || ac_type='unsigned long'
20148 cat >>confdefs.h <<_ACEOF
20149 #define uintmax_t $ac_type
20154 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20160 $as_echo_n "checking for inttypes.h... " >&6; }
20161 if ${gt_cv_header_inttypes_h+:} false; then :
20162 $as_echo_n "(cached) " >&6
20165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h. */
20167 #include <sys/types.h>
20168 #include <inttypes.h>
20177 if ac_fn_c_try_compile "$LINENO"; then :
20178 gt_cv_header_inttypes_h=yes
20180 gt_cv_header_inttypes_h=no
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20186 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20187 if test $gt_cv_header_inttypes_h = yes; then
20189 cat >>confdefs.h <<_ACEOF
20190 #define HAVE_INTTYPES_H 1
20197 if test $gt_cv_header_inttypes_h = yes; then
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20199 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20200 if ${gt_cv_inttypes_pri_broken+:} false; then :
20201 $as_echo_n "(cached) " >&6
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h. */
20206 #include <inttypes.h>
20219 if ac_fn_c_try_compile "$LINENO"; then :
20220 gt_cv_inttypes_pri_broken=no
20222 gt_cv_inttypes_pri_broken=yes
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20228 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20230 if test "$gt_cv_inttypes_pri_broken" = yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define PRI_MACROS_BROKEN 1
20239 for ac_header in stdint.h
20241 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20242 if test "x$ac_cv_header_stdint_h" = xyes; then :
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_STDINT_H 1
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20252 $as_echo_n "checking for SIZE_MAX... " >&6; }
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20257 #include <limits.h>
20259 #include <stdint.h>
20266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20267 $EGREP "Found it" >/dev/null 2>&1; then :
20272 if test -z "$result"; then
20273 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20280 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20287 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20294 if test "$fits_in_uint" = 1; then
20295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20296 /* end confdefs.h. */
20297 #include <stddef.h>
20299 extern unsigned long foo;
20309 if ac_fn_c_try_compile "$LINENO"; then :
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 if test -z "$result"; then
20315 if test "$fits_in_uint" = 1; then
20316 result="$res_hi$res_lo"U
20318 result="$res_hi$res_lo"UL
20321 result='~(size_t)0'
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20325 $as_echo "$result" >&6; }
20326 if test "$result" != yes; then
20328 cat >>confdefs.h <<_ACEOF
20329 #define SIZE_MAX $result
20337 for ac_header in stdint.h
20339 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20340 if test "x$ac_cv_header_stdint_h" = xyes; then :
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_STDINT_H 1
20356 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20357 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20361 $as_echo "#define ptrdiff_t long" >>confdefs.h
20366 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20367 stdlib.h string.h unistd.h sys/param.h
20369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20370 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20372 cat >>confdefs.h <<_ACEOF
20373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20380 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20381 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20382 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20387 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20388 cat >>confdefs.h <<_ACEOF
20389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20398 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20399 if ${ac_cv_have_decl__snprintf+:} false; then :
20400 $as_echo_n "(cached) " >&6
20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h. */
20410 char *p = (char *) _snprintf;
20417 if ac_fn_c_try_compile "$LINENO"; then :
20418 ac_cv_have_decl__snprintf=yes
20420 ac_cv_have_decl__snprintf=no
20422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20425 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20426 if test $ac_cv_have_decl__snprintf = yes; then
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_DECL__SNPRINTF $gt_value
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20439 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20440 if ${ac_cv_have_decl__snwprintf+:} false; then :
20441 $as_echo_n "(cached) " >&6
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20451 char *p = (char *) _snwprintf;
20458 if ac_fn_c_try_compile "$LINENO"; then :
20459 ac_cv_have_decl__snwprintf=yes
20461 ac_cv_have_decl__snwprintf=no
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20466 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20467 if test $ac_cv_have_decl__snwprintf = yes; then
20473 cat >>confdefs.h <<_ACEOF
20474 #define HAVE_DECL__SNWPRINTF $gt_value
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20481 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20482 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20483 $as_echo_n "(cached) " >&6
20485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h. */
20492 #ifndef feof_unlocked
20493 char *p = (char *) feof_unlocked;
20500 if ac_fn_c_try_compile "$LINENO"; then :
20501 ac_cv_have_decl_feof_unlocked=yes
20503 ac_cv_have_decl_feof_unlocked=no
20505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20508 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20509 if test $ac_cv_have_decl_feof_unlocked = yes; then
20515 cat >>confdefs.h <<_ACEOF
20516 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20522 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20523 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20524 $as_echo_n "(cached) " >&6
20526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20527 /* end confdefs.h. */
20533 #ifndef fgets_unlocked
20534 char *p = (char *) fgets_unlocked;
20541 if ac_fn_c_try_compile "$LINENO"; then :
20542 ac_cv_have_decl_fgets_unlocked=yes
20544 ac_cv_have_decl_fgets_unlocked=no
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20549 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20550 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20563 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20564 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20565 $as_echo_n "(cached) " >&6
20567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20568 /* end confdefs.h. */
20574 #ifndef getc_unlocked
20575 char *p = (char *) getc_unlocked;
20582 if ac_fn_c_try_compile "$LINENO"; then :
20583 ac_cv_have_decl_getc_unlocked=yes
20585 ac_cv_have_decl_getc_unlocked=no
20587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20590 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20591 if test $ac_cv_have_decl_getc_unlocked = yes; then
20597 cat >>confdefs.h <<_ACEOF
20598 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20603 case $gt_cv_func_printf_posix in
20604 *yes) HAVE_POSIX_PRINTF=1 ;;
20605 *) HAVE_POSIX_PRINTF=0 ;;
20608 if test "$ac_cv_func_asprintf" = yes; then
20614 if test "$ac_cv_func_snprintf" = yes; then
20620 if test "$ac_cv_func_wprintf" = yes; then
20632 am_save_CPPFLAGS="$CPPFLAGS"
20634 for element in $INCICONV; do
20636 for x in $CPPFLAGS; do
20638 acl_save_prefix="$prefix"
20639 prefix="$acl_final_prefix"
20640 acl_save_exec_prefix="$exec_prefix"
20641 exec_prefix="$acl_final_exec_prefix"
20643 exec_prefix="$acl_save_exec_prefix"
20644 prefix="$acl_save_prefix"
20646 if test "X$x" = "X$element"; then
20651 if test -z "$haveit"; then
20652 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20658 $as_echo_n "checking for iconv... " >&6; }
20659 if ${am_cv_func_iconv+:} false; then :
20660 $as_echo_n "(cached) " >&6
20663 am_cv_func_iconv="no, consider installing GNU libiconv"
20665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20666 /* end confdefs.h. */
20667 #include <stdlib.h>
20672 iconv_t cd = iconv_open("","");
20673 iconv(cd,NULL,NULL,NULL,NULL);
20679 if ac_fn_c_try_link "$LINENO"; then :
20680 am_cv_func_iconv=yes
20682 rm -f core conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20684 if test "$am_cv_func_iconv" != yes; then
20685 am_save_LIBS="$LIBS"
20686 LIBS="$LIBS $LIBICONV"
20687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h. */
20689 #include <stdlib.h>
20694 iconv_t cd = iconv_open("","");
20695 iconv(cd,NULL,NULL,NULL,NULL);
20701 if ac_fn_c_try_link "$LINENO"; then :
20702 am_cv_lib_iconv=yes
20703 am_cv_func_iconv=yes
20705 rm -f core conftest.err conftest.$ac_objext \
20706 conftest$ac_exeext conftest.$ac_ext
20707 LIBS="$am_save_LIBS"
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20712 $as_echo "$am_cv_func_iconv" >&6; }
20713 if test "$am_cv_func_iconv" = yes; then
20715 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20718 if test "$am_cv_lib_iconv" = yes; then
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20720 $as_echo_n "checking how to link with libiconv... " >&6; }
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20722 $as_echo "$LIBICONV" >&6; }
20724 CPPFLAGS="$am_save_CPPFLAGS"
20731 if test "$am_cv_func_iconv" = yes; then
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20733 $as_echo_n "checking for iconv declaration... " >&6; }
20734 if ${am_cv_proto_iconv+:} false; then :
20735 $as_echo_n "(cached) " >&6
20738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20741 #include <stdlib.h>
20747 #if defined(__STDC__) || defined(__cplusplus)
20748 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20761 if ac_fn_c_try_compile "$LINENO"; then :
20762 am_cv_proto_iconv_arg1=""
20764 am_cv_proto_iconv_arg1="const"
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 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);"
20770 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20772 }$am_cv_proto_iconv" >&5
20774 }$am_cv_proto_iconv" >&6; }
20776 cat >>confdefs.h <<_ACEOF
20777 #define ICONV_CONST $am_cv_proto_iconv_arg1
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20784 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20785 if ${am_cv_langinfo_codeset+:} false; then :
20786 $as_echo_n "(cached) " >&6
20788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789 /* end confdefs.h. */
20790 #include <langinfo.h>
20794 char* cs = nl_langinfo(CODESET);
20799 if ac_fn_c_try_link "$LINENO"; then :
20800 am_cv_langinfo_codeset=yes
20802 am_cv_langinfo_codeset=no
20804 rm -f core conftest.err conftest.$ac_objext \
20805 conftest$ac_exeext conftest.$ac_ext
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20809 $as_echo "$am_cv_langinfo_codeset" >&6; }
20810 if test $am_cv_langinfo_codeset = yes; then
20812 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20816 if test $ac_cv_header_locale_h = yes; then
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20819 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20820 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20821 $as_echo_n "(cached) " >&6
20823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20825 #include <locale.h>
20834 if ac_fn_c_try_link "$LINENO"; then :
20835 gt_cv_val_LC_MESSAGES=yes
20837 gt_cv_val_LC_MESSAGES=no
20839 rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext conftest.$ac_ext
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20843 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20844 if test $gt_cv_val_LC_MESSAGES = yes; then
20846 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20852 if test -n "$INTL_MACOSX_LIBS"; then
20853 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20856 for ac_prog in bison
20858 # Extract the first word of "$ac_prog", so it can be a program name with args.
20859 set dummy $ac_prog; ac_word=$2
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20861 $as_echo_n "checking for $ac_word... " >&6; }
20862 if ${ac_cv_prog_INTLBISON+:} false; then :
20863 $as_echo_n "(cached) " >&6
20865 if test -n "$INTLBISON"; then
20866 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20869 for as_dir in $PATH
20872 test -z "$as_dir" && as_dir=.
20873 for ac_exec_ext in '' $ac_executable_extensions; do
20874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20875 ac_cv_prog_INTLBISON="$ac_prog"
20876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20885 INTLBISON=$ac_cv_prog_INTLBISON
20886 if test -n "$INTLBISON"; then
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20888 $as_echo "$INTLBISON" >&6; }
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 $as_echo "no" >&6; }
20895 test -n "$INTLBISON" && break
20898 if test -z "$INTLBISON"; then
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20902 $as_echo_n "checking version of bison... " >&6; }
20903 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20904 case $ac_prog_version in
20905 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20906 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20907 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20908 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20911 $as_echo "$ac_prog_version" >&6; }
20913 if test $ac_verc_fail = yes; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20933 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20934 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20935 $as_echo_n "(cached) " >&6
20937 gt_save_CPPFLAGS="$CPPFLAGS"
20938 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20939 gt_save_LIBS="$LIBS"
20940 LIBS="$LIBS -framework CoreFoundation"
20941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20943 #include <CFPreferences.h>
20947 CFPreferencesCopyAppValue(NULL, NULL)
20952 if ac_fn_c_try_link "$LINENO"; then :
20953 gt_cv_func_CFPreferencesCopyAppValue=yes
20955 gt_cv_func_CFPreferencesCopyAppValue=no
20957 rm -f core conftest.err conftest.$ac_objext \
20958 conftest$ac_exeext conftest.$ac_ext
20959 CPPFLAGS="$gt_save_CPPFLAGS"
20960 LIBS="$gt_save_LIBS"
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20963 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20964 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20966 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20970 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20971 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20972 $as_echo_n "(cached) " >&6
20974 gt_save_CPPFLAGS="$CPPFLAGS"
20975 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20976 gt_save_LIBS="$LIBS"
20977 LIBS="$LIBS -framework CoreFoundation"
20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20980 #include <CFLocale.h>
20984 CFLocaleCopyCurrent();
20989 if ac_fn_c_try_link "$LINENO"; then :
20990 gt_cv_func_CFLocaleCopyCurrent=yes
20992 gt_cv_func_CFLocaleCopyCurrent=no
20994 rm -f core conftest.err conftest.$ac_objext \
20995 conftest$ac_exeext conftest.$ac_ext
20996 CPPFLAGS="$gt_save_CPPFLAGS"
20997 LIBS="$gt_save_LIBS"
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21000 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21001 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21003 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21007 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21008 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21015 $as_echo_n "checking whether NLS is requested... " >&6; }
21016 # Check whether --enable-nls was given.
21017 if test "${enable_nls+set}" = set; then :
21018 enableval=$enable_nls; USE_NLS=$enableval
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21024 $as_echo "$USE_NLS" >&6; }
21029 BUILD_INCLUDED_LIBINTL=no
21030 USE_INCLUDED_LIBINTL=no
21036 if test "$USE_NLS" = "yes"; then
21037 gt_use_preinstalled_gnugettext=no
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21040 $as_echo_n "checking whether included gettext is requested... " >&6; }
21042 # Check whether --with-included-gettext was given.
21043 if test "${with_included_gettext+set}" = set; then :
21044 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21046 nls_cv_force_use_gnu_gettext=no
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21050 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21052 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21053 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21061 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21062 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21063 $as_echo_n "(cached) " >&6
21065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h. */
21067 #include <libintl.h>
21068 extern int _nl_msg_cat_cntr;
21069 extern int *_nl_domain_bindings;
21073 bindtextdomain ("", "");
21074 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21079 if ac_fn_c_try_link "$LINENO"; then :
21080 gt_cv_func_gnugettext1_libc=yes
21082 gt_cv_func_gnugettext1_libc=no
21084 rm -f core conftest.err conftest.$ac_objext \
21085 conftest$ac_exeext conftest.$ac_ext
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21088 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21090 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21096 acl_save_prefix="$prefix"
21097 prefix="$acl_final_prefix"
21098 acl_save_exec_prefix="$exec_prefix"
21099 exec_prefix="$acl_final_exec_prefix"
21101 eval additional_includedir=\"$includedir\"
21102 eval additional_libdir=\"$libdir\"
21104 exec_prefix="$acl_save_exec_prefix"
21105 prefix="$acl_save_prefix"
21108 # Check whether --with-libintl-prefix was given.
21109 if test "${with_libintl_prefix+set}" = set; then :
21110 withval=$with_libintl_prefix;
21111 if test "X$withval" = "Xno"; then
21114 if test "X$withval" = "X"; then
21116 acl_save_prefix="$prefix"
21117 prefix="$acl_final_prefix"
21118 acl_save_exec_prefix="$exec_prefix"
21119 exec_prefix="$acl_final_exec_prefix"
21121 eval additional_includedir=\"$includedir\"
21122 eval additional_libdir=\"$libdir\"
21124 exec_prefix="$acl_save_exec_prefix"
21125 prefix="$acl_save_prefix"
21128 additional_includedir="$withval/include"
21129 additional_libdir="$withval/lib"
21140 names_already_handled=
21141 names_next_round='intl '
21142 while test -n "$names_next_round"; do
21143 names_this_round="$names_next_round"
21145 for name in $names_this_round; do
21147 for n in $names_already_handled; do
21148 if test "$n" = "$name"; then
21149 already_handled=yes
21153 if test -z "$already_handled"; then
21154 names_already_handled="$names_already_handled $name"
21155 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21156 eval value=\"\$HAVE_LIB$uppername\"
21157 if test -n "$value"; then
21158 if test "$value" = yes; then
21159 eval value=\"\$LIB$uppername\"
21160 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21161 eval value=\"\$LTLIB$uppername\"
21162 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21171 if test $use_additional = yes; then
21172 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21173 found_dir="$additional_libdir"
21174 found_so="$additional_libdir/lib$name.$shlibext"
21175 if test -f "$additional_libdir/lib$name.la"; then
21176 found_la="$additional_libdir/lib$name.la"
21179 if test -f "$additional_libdir/lib$name.$libext"; then
21180 found_dir="$additional_libdir"
21181 found_a="$additional_libdir/lib$name.$libext"
21182 if test -f "$additional_libdir/lib$name.la"; then
21183 found_la="$additional_libdir/lib$name.la"
21188 if test "X$found_dir" = "X"; then
21189 for x in $LDFLAGS $LTLIBINTL; do
21191 acl_save_prefix="$prefix"
21192 prefix="$acl_final_prefix"
21193 acl_save_exec_prefix="$exec_prefix"
21194 exec_prefix="$acl_final_exec_prefix"
21196 exec_prefix="$acl_save_exec_prefix"
21197 prefix="$acl_save_prefix"
21201 dir=`echo "X$x" | sed -e 's/^X-L//'`
21202 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21204 found_so="$dir/lib$name.$shlibext"
21205 if test -f "$dir/lib$name.la"; then
21206 found_la="$dir/lib$name.la"
21209 if test -f "$dir/lib$name.$libext"; then
21211 found_a="$dir/lib$name.$libext"
21212 if test -f "$dir/lib$name.la"; then
21213 found_la="$dir/lib$name.la"
21219 if test "X$found_dir" != "X"; then
21224 if test "X$found_dir" != "X"; then
21225 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21226 if test "X$found_so" != "X"; then
21227 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21228 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21231 for x in $ltrpathdirs; do
21232 if test "X$x" = "X$found_dir"; then
21237 if test -z "$haveit"; then
21238 ltrpathdirs="$ltrpathdirs $found_dir"
21240 if test "$hardcode_direct" = yes; then
21241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21243 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21244 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21246 for x in $rpathdirs; do
21247 if test "X$x" = "X$found_dir"; then
21252 if test -z "$haveit"; then
21253 rpathdirs="$rpathdirs $found_dir"
21257 for x in $LDFLAGS $LIBINTL; do
21259 acl_save_prefix="$prefix"
21260 prefix="$acl_final_prefix"
21261 acl_save_exec_prefix="$exec_prefix"
21262 exec_prefix="$acl_final_exec_prefix"
21264 exec_prefix="$acl_save_exec_prefix"
21265 prefix="$acl_save_prefix"
21267 if test "X$x" = "X-L$found_dir"; then
21272 if test -z "$haveit"; then
21273 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21275 if test "$hardcode_minus_L" != no; then
21276 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21278 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21284 if test "X$found_a" != "X"; then
21285 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21287 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21290 additional_includedir=
21291 case "$found_dir" in
21293 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21294 additional_includedir="$basedir/include"
21297 if test "X$additional_includedir" != "X"; then
21298 if test "X$additional_includedir" != "X/usr/include"; then
21300 if test "X$additional_includedir" = "X/usr/local/include"; then
21301 if test -n "$GCC"; then
21303 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21307 if test -z "$haveit"; then
21308 for x in $CPPFLAGS $INCINTL; do
21310 acl_save_prefix="$prefix"
21311 prefix="$acl_final_prefix"
21312 acl_save_exec_prefix="$exec_prefix"
21313 exec_prefix="$acl_final_exec_prefix"
21315 exec_prefix="$acl_save_exec_prefix"
21316 prefix="$acl_save_prefix"
21318 if test "X$x" = "X-I$additional_includedir"; then
21323 if test -z "$haveit"; then
21324 if test -d "$additional_includedir"; then
21325 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21331 if test -n "$found_la"; then
21332 save_libdir="$libdir"
21333 case "$found_la" in
21334 */* | *\\*) . "$found_la" ;;
21335 *) . "./$found_la" ;;
21337 libdir="$save_libdir"
21338 for dep in $dependency_libs; do
21341 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21342 if test "X$additional_libdir" != "X/usr/lib"; then
21344 if test "X$additional_libdir" = "X/usr/local/lib"; then
21345 if test -n "$GCC"; then
21347 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21351 if test -z "$haveit"; then
21353 for x in $LDFLAGS $LIBINTL; do
21355 acl_save_prefix="$prefix"
21356 prefix="$acl_final_prefix"
21357 acl_save_exec_prefix="$exec_prefix"
21358 exec_prefix="$acl_final_exec_prefix"
21360 exec_prefix="$acl_save_exec_prefix"
21361 prefix="$acl_save_prefix"
21363 if test "X$x" = "X-L$additional_libdir"; then
21368 if test -z "$haveit"; then
21369 if test -d "$additional_libdir"; then
21370 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21374 for x in $LDFLAGS $LTLIBINTL; do
21376 acl_save_prefix="$prefix"
21377 prefix="$acl_final_prefix"
21378 acl_save_exec_prefix="$exec_prefix"
21379 exec_prefix="$acl_final_exec_prefix"
21381 exec_prefix="$acl_save_exec_prefix"
21382 prefix="$acl_save_prefix"
21384 if test "X$x" = "X-L$additional_libdir"; then
21389 if test -z "$haveit"; then
21390 if test -d "$additional_libdir"; then
21391 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21398 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21399 if test "$enable_rpath" != no; then
21401 for x in $rpathdirs; do
21402 if test "X$x" = "X$dir"; then
21407 if test -z "$haveit"; then
21408 rpathdirs="$rpathdirs $dir"
21411 for x in $ltrpathdirs; do
21412 if test "X$x" = "X$dir"; then
21417 if test -z "$haveit"; then
21418 ltrpathdirs="$ltrpathdirs $dir"
21423 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21426 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21429 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21430 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21436 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21437 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21443 if test "X$rpathdirs" != "X"; then
21444 if test -n "$hardcode_libdir_separator"; then
21446 for found_dir in $rpathdirs; do
21447 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21449 acl_save_libdir="$libdir"
21451 eval flag=\"$hardcode_libdir_flag_spec\"
21452 libdir="$acl_save_libdir"
21453 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21455 for found_dir in $rpathdirs; do
21456 acl_save_libdir="$libdir"
21457 libdir="$found_dir"
21458 eval flag=\"$hardcode_libdir_flag_spec\"
21459 libdir="$acl_save_libdir"
21460 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21464 if test "X$ltrpathdirs" != "X"; then
21465 for found_dir in $ltrpathdirs; do
21466 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21471 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21472 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21473 $as_echo_n "(cached) " >&6
21475 gt_save_CPPFLAGS="$CPPFLAGS"
21476 CPPFLAGS="$CPPFLAGS $INCINTL"
21477 gt_save_LIBS="$LIBS"
21478 LIBS="$LIBS $LIBINTL"
21479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h. */
21481 #include <libintl.h>
21482 extern int _nl_msg_cat_cntr;
21487 const char *_nl_expand_alias (const char *);
21491 bindtextdomain ("", "");
21492 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21497 if ac_fn_c_try_link "$LINENO"; then :
21498 gt_cv_func_gnugettext1_libintl=yes
21500 gt_cv_func_gnugettext1_libintl=no
21502 rm -f core conftest.err conftest.$ac_objext \
21503 conftest$ac_exeext conftest.$ac_ext
21504 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21505 LIBS="$LIBS $LIBICONV"
21506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21507 /* end confdefs.h. */
21508 #include <libintl.h>
21509 extern int _nl_msg_cat_cntr;
21514 const char *_nl_expand_alias (const char *);
21518 bindtextdomain ("", "");
21519 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21524 if ac_fn_c_try_link "$LINENO"; then :
21525 LIBINTL="$LIBINTL $LIBICONV"
21526 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21527 gt_cv_func_gnugettext1_libintl=yes
21530 rm -f core conftest.err conftest.$ac_objext \
21531 conftest$ac_exeext conftest.$ac_ext
21533 CPPFLAGS="$gt_save_CPPFLAGS"
21534 LIBS="$gt_save_LIBS"
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21537 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21540 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21541 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21542 && test "$PACKAGE" != gettext-runtime \
21543 && test "$PACKAGE" != gettext-tools; }; then
21544 gt_use_preinstalled_gnugettext=yes
21552 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21553 nls_cv_use_gnu_gettext=yes
21557 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21558 BUILD_INCLUDED_LIBINTL=yes
21559 USE_INCLUDED_LIBINTL=yes
21560 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21561 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21562 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21566 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21567 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21572 if test -n "$INTL_MACOSX_LIBS"; then
21573 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21574 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21575 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21576 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21580 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21581 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21583 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21591 $as_echo_n "checking whether to use NLS... " >&6; }
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21593 $as_echo "$USE_NLS" >&6; }
21594 if test "$USE_NLS" = "yes"; then
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21596 $as_echo_n "checking where the gettext function comes from... " >&6; }
21597 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21598 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21599 gt_source="external libintl"
21604 gt_source="included intl directory"
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21607 $as_echo "$gt_source" >&6; }
21610 if test "$USE_NLS" = "yes"; then
21612 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21613 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21615 $as_echo_n "checking how to link with libintl... " >&6; }
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21617 $as_echo "$LIBINTL" >&6; }
21619 for element in $INCINTL; do
21621 for x in $CPPFLAGS; do
21623 acl_save_prefix="$prefix"
21624 prefix="$acl_final_prefix"
21625 acl_save_exec_prefix="$exec_prefix"
21626 exec_prefix="$acl_final_exec_prefix"
21628 exec_prefix="$acl_save_exec_prefix"
21629 prefix="$acl_save_prefix"
21631 if test "X$x" = "X$element"; then
21636 if test -z "$haveit"; then
21637 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21644 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21647 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21655 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21656 BUILD_INCLUDED_LIBINTL=yes
21663 nls_cv_header_intl=
21664 nls_cv_header_libgt=
21676 if test "$USE_INCLUDED_LIBINTL" = yes; then
21677 INTLOBJS="\$(GETTOBJS)"
21681 INTL_LIBTOOL_SUFFIX_PREFIX=
21685 INTLLIBS="$LIBINTL"
21694 support_smartalloc=yes
21695 support_readline=yes
21701 support_static_tools=no
21702 support_static_fd=no
21703 support_static_sd=no
21704 support_static_dir=no
21705 support_static_cons=no
21706 build_client_only=no
21710 batch_insert_db_backends=""
21714 # Check whether --enable-bat was given.
21715 if test "${enable_bat+set}" = set; then :
21716 enableval=$enable_bat;
21717 if test x$enableval = xyes; then
21719 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21729 if test x$support_bat = xyes; then
21730 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21732 if test $pkg = 0; then
21733 BAT_DIR=src/qt-console
21735 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21754 # Check whether --enable-smartalloc was given.
21755 if test "${enable_smartalloc+set}" = set; then :
21756 enableval=$enable_smartalloc;
21757 if test x$enableval = xno; then
21758 support_smartalloc=no
21765 if test x$support_smartalloc = xyes; then
21767 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21771 # Check whether --enable-lockmgr was given.
21772 if test "${enable_lockmgr+set}" = set; then :
21773 enableval=$enable_lockmgr;
21774 if test x$enableval = xyes; then
21775 support_lockmgr=yes
21782 if test x$support_lockmgr = xyes; then
21784 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21789 # Check whether --enable-static-tools was given.
21790 if test "${enable_static_tools+set}" = set; then :
21791 enableval=$enable_static_tools;
21792 if test x$enableval = xyes; then
21793 if test x$use_libtool = xyes; then
21794 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21795 please rerun configure with --disable-libtool" "$LINENO" 5
21797 support_static_tools=yes
21805 if test x$support_static_tools = xyes; then
21806 TTOOL_LDFLAGS="-static"
21810 # Check whether --enable-static-fd was given.
21811 if test "${enable_static_fd+set}" = set; then :
21812 enableval=$enable_static_fd;
21813 if test x$enableval = xyes; then
21814 if test x$use_libtool = xyes; then
21815 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21816 please rerun configure with --disable-libtool" "$LINENO" 5
21818 support_static_fd=yes
21826 if test x$support_static_fd = xyes; then
21827 STATIC_FD="static-bacula-fd"
21831 # Check whether --enable-static-sd was given.
21832 if test "${enable_static_sd+set}" = set; then :
21833 enableval=$enable_static_sd;
21834 if test x$enableval = xyes; then
21835 if test x$use_libtool = xyes; then
21836 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21837 please rerun configure with --disable-libtool" "$LINENO" 5
21839 support_static_sd=yes
21847 if test x$support_static_sd = xyes; then
21848 STATIC_SD="static-bacula-sd"
21852 # Check whether --enable-static-dir was given.
21853 if test "${enable_static_dir+set}" = set; then :
21854 enableval=$enable_static_dir;
21855 if test x$enableval = xyes; then
21856 if test x$use_libtool = xyes; then
21857 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21858 please rerun configure with --disable-libtool" "$LINENO" 5
21860 support_static_dir=yes
21868 if test x$support_static_dir = xyes; then
21869 STATIC_DIR="static-bacula-dir"
21873 # Check whether --enable-static-cons was given.
21874 if test "${enable_static_cons+set}" = set; then :
21875 enableval=$enable_static_cons;
21876 if test x$enableval = xyes; then
21877 if test x$use_libtool = xyes; then
21878 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21879 please rerun configure with --disable-libtool" "$LINENO" 5
21881 support_static_cons=yes
21889 if test x$support_static_cons = xyes; then
21890 STATIC_CONS="static-bconsole"
21894 # Check whether --enable-client-only was given.
21895 if test "${enable_client_only+set}" = set; then :
21896 enableval=$enable_client_only;
21897 if test x$enableval = xyes; then
21898 build_client_only=yes
21906 if test x$build_client_only = xno; then
21913 # Check whether --enable-build-dird was given.
21914 if test "${enable_build_dird+set}" = set; then :
21915 enableval=$enable_build_dird;
21916 if test x$enableval = xno; then
21923 if test x$build_dird = xyes; then
21924 DIRD_DIR="src/dird"
21925 DIR_TOOLS="DIRTOOLS"
21928 DIR_TOOLS="NODIRTOOLS"
21933 # Check whether --enable-build-stored was given.
21934 if test "${enable_build_stored+set}" = set; then :
21935 enableval=$enable_build_stored;
21936 if test x$enableval = xno; then
21943 if test x$build_stored = xyes; then
21944 STORED_DIR="src/stored"
21950 # Check whether --enable-conio was given.
21951 if test "${enable_conio+set}" = set; then :
21952 enableval=$enable_conio;
21953 if test x$enableval = xno; then
21963 # Check whether --enable-ipv6 was given.
21964 if test "${enable_ipv6+set}" = set; then :
21965 enableval=$enable_ipv6;
21966 if test x$enableval = xno; then
21974 if test x$support_ipv6 = xyes; then
21975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976 /* end confdefs.h. */
21977 #include <sys/types.h>
21978 #include <sys/socket.h>
21979 #include <netinet/in.h>
21983 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21988 if ac_fn_c_try_link "$LINENO"; then :
21993 rm -f core conftest.err conftest.$ac_objext \
21994 conftest$ac_exeext conftest.$ac_ext
21997 if test x$support_ipv6 = xyes; then
21999 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22004 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22005 if test "x$ac_cv_header_curses_h" = xyes; then :
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22008 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22009 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22010 $as_echo_n "(cached) " >&6
22012 ac_check_lib_save_LIBS=$LIBS
22013 LIBS="-ltinfo $LIBS"
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22017 /* Override any GCC internal prototype to avoid an error.
22018 Use char because int might match the return type of a GCC
22019 builtin and then its argument prototype would still apply. */
22032 if ac_fn_c_try_link "$LINENO"; then :
22033 ac_cv_lib_tinfo_tgetent=yes
22035 ac_cv_lib_tinfo_tgetent=no
22037 rm -f core conftest.err conftest.$ac_objext \
22038 conftest$ac_exeext conftest.$ac_ext
22039 LIBS=$ac_check_lib_save_LIBS
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22042 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22043 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22048 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22049 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22050 $as_echo_n "(cached) " >&6
22052 ac_check_lib_save_LIBS=$LIBS
22053 LIBS="-lncurses $LIBS"
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h. */
22057 /* Override any GCC internal prototype to avoid an error.
22058 Use char because int might match the return type of a GCC
22059 builtin and then its argument prototype would still apply. */
22072 if ac_fn_c_try_link "$LINENO"; then :
22073 ac_cv_lib_ncurses_tgetent=yes
22075 ac_cv_lib_ncurses_tgetent=no
22077 rm -f core conftest.err conftest.$ac_objext \
22078 conftest$ac_exeext conftest.$ac_ext
22079 LIBS=$ac_check_lib_save_LIBS
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22082 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22083 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22084 TERM_LIB="-lncurses"
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22088 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22089 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22090 $as_echo_n "(cached) " >&6
22092 ac_check_lib_save_LIBS=$LIBS
22093 LIBS="-ltermcap $LIBS"
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22097 /* Override any GCC internal prototype to avoid an error.
22098 Use char because int might match the return type of a GCC
22099 builtin and then its argument prototype would still apply. */
22112 if ac_fn_c_try_link "$LINENO"; then :
22113 ac_cv_lib_termcap_tgetent=yes
22115 ac_cv_lib_termcap_tgetent=no
22117 rm -f core conftest.err conftest.$ac_objext \
22118 conftest$ac_exeext conftest.$ac_ext
22119 LIBS=$ac_check_lib_save_LIBS
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22122 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22123 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22124 TERM_LIB="-ltermcap"
22135 for ac_header in curses.h
22137 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22138 if test "x$ac_cv_header_curses_h" = xyes; then :
22139 cat >>confdefs.h <<_ACEOF
22140 #define HAVE_CURSES_H 1
22147 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22148 if test "x$ac_cv_header_term_h" = xyes; then :
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22150 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22151 if ${ac_cv_lib_curses_tgetent+:} false; then :
22152 $as_echo_n "(cached) " >&6
22154 ac_check_lib_save_LIBS=$LIBS
22155 LIBS="-lcurses $LIBS"
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22159 /* Override any GCC internal prototype to avoid an error.
22160 Use char because int might match the return type of a GCC
22161 builtin and then its argument prototype would still apply. */
22174 if ac_fn_c_try_link "$LINENO"; then :
22175 ac_cv_lib_curses_tgetent=yes
22177 ac_cv_lib_curses_tgetent=no
22179 rm -f core conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22184 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22185 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22186 TERM_LIB="-lcurses"
22200 if test x$support_conio = xyes; then
22201 if test x$TERM_LIB != x; then
22202 CONS_LIBS=$TERM_LIB
22206 support_readline=no
22208 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22211 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22216 # Check whether --enable-readline was given.
22217 if test "${enable_readline+set}" = set; then :
22218 enableval=$enable_readline;
22219 if test x$enableval = xno; then
22220 support_readline=no
22229 if test x$support_readline = xyes; then
22231 # Check whether --with-readline was given.
22232 if test "${with_readline+set}" = set; then :
22233 withval=$with_readline;
22234 case "$with_readline" in
22239 if test -f ${with_readline}/readline.h; then
22240 CONS_INC="-I${with_readline}"
22241 CONS_LDFLAGS="-L$with_readline"
22242 elif test -f ${with_readline}/include/readline/readline.h; then
22243 CONS_INC="-I${with_readline}/include/readline"
22244 CONS_LDFLAGS="-L${with_readline}/lib"
22245 with_readline="${with_readline}/include/readline"
22247 with_readline="/usr/include/readline"
22250 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22251 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22255 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22257 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22263 echo "readline.h not found. readline turned off ..."
22275 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22276 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22279 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22282 CONS_INC="-I/usr/include/readline"
22283 CONS_LIBS="-lreadline ${TERM_LIB}"
22287 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22288 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22292 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22295 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22296 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22297 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22298 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22303 echo "readline.h not found. readline turned off ..."
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22331 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22332 if ${ac_cv_header_stat_broken+:} false; then :
22333 $as_echo_n "(cached) " >&6
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22337 #include <sys/types.h>
22338 #include <sys/stat.h>
22340 #if defined S_ISBLK && defined S_IFDIR
22341 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22344 #if defined S_ISBLK && defined S_IFCHR
22345 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22348 #if defined S_ISLNK && defined S_IFREG
22349 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22352 #if defined S_ISSOCK && defined S_IFREG
22353 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22357 if ac_fn_c_try_compile "$LINENO"; then :
22358 ac_cv_header_stat_broken=no
22360 ac_cv_header_stat_broken=yes
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22365 $as_echo "$ac_cv_header_stat_broken" >&6; }
22366 if test $ac_cv_header_stat_broken = yes; then
22368 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22372 ac_header_dirent=no
22373 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22374 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22376 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22377 if eval \${$as_ac_Header+:} false; then :
22378 $as_echo_n "(cached) " >&6
22380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h. */
22382 #include <sys/types.h>
22394 if ac_fn_c_try_compile "$LINENO"; then :
22395 eval "$as_ac_Header=yes"
22397 eval "$as_ac_Header=no"
22399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22401 eval ac_res=\$$as_ac_Header
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22403 $as_echo "$ac_res" >&6; }
22404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22405 cat >>confdefs.h <<_ACEOF
22406 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22409 ac_header_dirent=$ac_hdr; break
22413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22414 if test $ac_header_dirent = dirent.h; then
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22416 $as_echo_n "checking for library containing opendir... " >&6; }
22417 if ${ac_cv_search_opendir+:} false; then :
22418 $as_echo_n "(cached) " >&6
22420 ac_func_search_save_LIBS=$LIBS
22421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422 /* end confdefs.h. */
22424 /* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22439 for ac_lib in '' dir; do
22440 if test -z "$ac_lib"; then
22441 ac_res="none required"
22444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22446 if ac_fn_c_try_link "$LINENO"; then :
22447 ac_cv_search_opendir=$ac_res
22449 rm -f core conftest.err conftest.$ac_objext \
22451 if ${ac_cv_search_opendir+:} false; then :
22455 if ${ac_cv_search_opendir+:} false; then :
22458 ac_cv_search_opendir=no
22460 rm conftest.$ac_ext
22461 LIBS=$ac_func_search_save_LIBS
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22464 $as_echo "$ac_cv_search_opendir" >&6; }
22465 ac_res=$ac_cv_search_opendir
22466 if test "$ac_res" != no; then :
22467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22473 $as_echo_n "checking for library containing opendir... " >&6; }
22474 if ${ac_cv_search_opendir+:} false; then :
22475 $as_echo_n "(cached) " >&6
22477 ac_func_search_save_LIBS=$LIBS
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h. */
22481 /* Override any GCC internal prototype to avoid an error.
22482 Use char because int might match the return type of a GCC
22483 builtin and then its argument prototype would still apply. */
22496 for ac_lib in '' x; do
22497 if test -z "$ac_lib"; then
22498 ac_res="none required"
22501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22503 if ac_fn_c_try_link "$LINENO"; then :
22504 ac_cv_search_opendir=$ac_res
22506 rm -f core conftest.err conftest.$ac_objext \
22508 if ${ac_cv_search_opendir+:} false; then :
22512 if ${ac_cv_search_opendir+:} false; then :
22515 ac_cv_search_opendir=no
22517 rm conftest.$ac_ext
22518 LIBS=$ac_func_search_save_LIBS
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22521 $as_echo "$ac_cv_search_opendir" >&6; }
22522 ac_res=$ac_cv_search_opendir
22523 if test "$ac_res" != no; then :
22524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22530 for ac_func in strcasecmp select setenv putenv tcgetattr
22532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22535 cat >>confdefs.h <<_ACEOF
22536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22542 for ac_func in lstat lchown lchmod futimes fchmod fchown
22544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22547 cat >>confdefs.h <<_ACEOF
22548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22554 for ac_func in nanosleep nl_langinfo
22556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22557 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22558 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22559 cat >>confdefs.h <<_ACEOF
22560 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22566 for ac_header in varargs.h
22568 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22569 if test "x$ac_cv_header_varargs_h" = xyes; then :
22570 cat >>confdefs.h <<_ACEOF
22571 #define HAVE_VARARGS_H 1
22580 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22581 if test "x$ac_cv_func_socket" = xyes; then :
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22583 $as_echo "using libc's socket" >&6; }
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22586 $as_echo_n "checking for socket in -lxnet... " >&6; }
22587 if ${ac_cv_lib_xnet_socket+:} false; then :
22588 $as_echo_n "(cached) " >&6
22590 ac_check_lib_save_LIBS=$LIBS
22591 LIBS="-lxnet $LIBS"
22592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h. */
22595 /* Override any GCC internal prototype to avoid an error.
22596 Use char because int might match the return type of a GCC
22597 builtin and then its argument prototype would still apply. */
22610 if ac_fn_c_try_link "$LINENO"; then :
22611 ac_cv_lib_xnet_socket=yes
22613 ac_cv_lib_xnet_socket=no
22615 rm -f core conftest.err conftest.$ac_objext \
22616 conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22620 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22621 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22622 cat >>confdefs.h <<_ACEOF
22623 #define HAVE_LIBXNET 1
22626 LIBS="-lxnet $LIBS"
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22631 $as_echo_n "checking for socket in -lsocket... " >&6; }
22632 if ${ac_cv_lib_socket_socket+:} false; then :
22633 $as_echo_n "(cached) " >&6
22635 ac_check_lib_save_LIBS=$LIBS
22636 LIBS="-lsocket $LIBS"
22637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638 /* end confdefs.h. */
22640 /* Override any GCC internal prototype to avoid an error.
22641 Use char because int might match the return type of a GCC
22642 builtin and then its argument prototype would still apply. */
22655 if ac_fn_c_try_link "$LINENO"; then :
22656 ac_cv_lib_socket_socket=yes
22658 ac_cv_lib_socket_socket=no
22660 rm -f core conftest.err conftest.$ac_objext \
22661 conftest$ac_exeext conftest.$ac_ext
22662 LIBS=$ac_check_lib_save_LIBS
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22665 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22666 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22667 cat >>confdefs.h <<_ACEOF
22668 #define HAVE_LIBSOCKET 1
22671 LIBS="-lsocket $LIBS"
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22676 $as_echo_n "checking for socket in -linet... " >&6; }
22677 if ${ac_cv_lib_inet_socket+:} false; then :
22678 $as_echo_n "(cached) " >&6
22680 ac_check_lib_save_LIBS=$LIBS
22681 LIBS="-linet $LIBS"
22682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22683 /* end confdefs.h. */
22685 /* Override any GCC internal prototype to avoid an error.
22686 Use char because int might match the return type of a GCC
22687 builtin and then its argument prototype would still apply. */
22700 if ac_fn_c_try_link "$LINENO"; then :
22701 ac_cv_lib_inet_socket=yes
22703 ac_cv_lib_inet_socket=no
22705 rm -f core conftest.err conftest.$ac_objext \
22706 conftest$ac_exeext conftest.$ac_ext
22707 LIBS=$ac_check_lib_save_LIBS
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22710 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22711 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22712 cat >>confdefs.h <<_ACEOF
22713 #define HAVE_LIBINET 1
22716 LIBS="-linet $LIBS"
22726 # Check whether --with-tcp-wrappers was given.
22727 if test "${with_tcp_wrappers+set}" = set; then :
22728 withval=$with_tcp_wrappers;
22729 if test "x$withval" != "xno" ; then
22731 LIBS="$saved_LIBS -lwrap"
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22733 $as_echo_n "checking for library containing nanosleep... " >&6; }
22734 if ${ac_cv_search_nanosleep+:} false; then :
22735 $as_echo_n "(cached) " >&6
22737 ac_func_search_save_LIBS=$LIBS
22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22739 /* end confdefs.h. */
22741 /* Override any GCC internal prototype to avoid an error.
22742 Use char because int might match the return type of a GCC
22743 builtin and then its argument prototype would still apply. */
22751 return nanosleep ();
22756 for ac_lib in '' rt; do
22757 if test -z "$ac_lib"; then
22758 ac_res="none required"
22761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22763 if ac_fn_c_try_link "$LINENO"; then :
22764 ac_cv_search_nanosleep=$ac_res
22766 rm -f core conftest.err conftest.$ac_objext \
22768 if ${ac_cv_search_nanosleep+:} false; then :
22772 if ${ac_cv_search_nanosleep+:} false; then :
22775 ac_cv_search_nanosleep=no
22777 rm conftest.$ac_ext
22778 LIBS=$ac_func_search_save_LIBS
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22781 $as_echo "$ac_cv_search_nanosleep" >&6; }
22782 ac_res=$ac_cv_search_nanosleep
22783 if test "$ac_res" != no; then :
22784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22789 $as_echo_n "checking for libwrap... " >&6; }
22790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22791 /* end confdefs.h. */
22793 #include <sys/types.h>
22795 int deny_severity = 0;
22796 int allow_severity = 0;
22797 struct request_info *req;
22809 if ac_fn_c_try_link "$LINENO"; then :
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22812 $as_echo "yes" >&6; }
22814 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22822 LIBS="$saved_LIBS -lwrap -lnsl"
22823 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825 /* end confdefs.h. */
22827 #include <sys/types.h>
22829 int deny_severity = 0;
22830 int allow_severity = 0;
22831 struct request_info *req;
22843 if ac_fn_c_try_link "$LINENO"; then :
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22846 $as_echo "yes" >&6; }
22848 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22856 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22860 rm -f core conftest.err conftest.$ac_objext \
22861 conftest$ac_exeext conftest.$ac_ext
22865 rm -f core conftest.err conftest.$ac_objext \
22866 conftest$ac_exeext conftest.$ac_ext
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22875 $as_echo_n "checking for OpenSSL... " >&6; }
22877 # Check whether --with-openssl was given.
22878 if test "${with_openssl+set}" = set; then :
22879 withval=$with_openssl;
22880 with_openssl_directory=${withval}
22886 if test "x$with_openssl_directory" != "xno"; then
22887 OPENSSL_LIBS="-lssl -lcrypto"
22890 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22892 # Make sure the $with_openssl_directory also makes sense
22894 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22895 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22896 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22900 saved_LIBS="${LIBS}"
22901 saved_CFLAGS="${CFLAGS}"
22902 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22903 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22906 /* end confdefs.h. */
22908 #include <openssl/ssl.h>
22914 CRYPTO_set_id_callback(NULL);
22920 if ac_fn_c_try_link "$LINENO"; then :
22923 support_crypto="yes"
22928 support_crypto="no"
22932 rm -f core conftest.err conftest.$ac_objext \
22933 conftest$ac_exeext conftest.$ac_ext
22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h. */
22938 #include <openssl/evp.h>
22950 if ac_fn_c_try_link "$LINENO"; then :
22952 ac_cv_openssl_sha2="yes"
22956 ac_cv_openssl_sha2="no"
22960 rm -f core conftest.err conftest.$ac_objext \
22961 conftest$ac_exeext conftest.$ac_ext
22963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964 /* end confdefs.h. */
22966 #include <openssl/evp.h>
22978 if ac_fn_c_try_link "$LINENO"; then :
22980 ac_cv_openssl_export="no"
22984 ac_cv_openssl_export="yes"
22988 rm -f core conftest.err conftest.$ac_objext \
22989 conftest$ac_exeext conftest.$ac_ext
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22992 $as_echo "$support_tls" >&6; }
22993 if test "$support_tls" = "yes"; then
22995 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22998 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23001 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23005 if test "$ac_cv_openssl_sha2" = "yes"; then
23007 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23011 if test "$ac_cv_openssl_export" = "yes"; then
23013 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23017 if test "$support_crypto" = "yes"; then
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23019 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23020 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23021 $as_echo_n "(cached) " >&6
23023 ac_check_lib_save_LIBS=$LIBS
23024 LIBS="-lcrypto $LIBS"
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23028 /* Override any GCC internal prototype to avoid an error.
23029 Use char because int might match the return type of a GCC
23030 builtin and then its argument prototype would still apply. */
23034 char EVP_PKEY_encrypt_old ();
23038 return EVP_PKEY_encrypt_old ();
23043 if ac_fn_c_try_link "$LINENO"; then :
23044 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23046 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23048 rm -f core conftest.err conftest.$ac_objext \
23049 conftest$ac_exeext conftest.$ac_ext
23050 LIBS=$ac_check_lib_save_LIBS
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23053 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23054 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23056 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23062 LIBS="${saved_LIBS}"
23063 CFLAGS="${saved_CFLAGS}"
23066 support_crypto="no"
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23068 $as_echo "$support_tls" >&6; }
23071 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23080 $as_echo_n "checking for library containing dlopen... " >&6; }
23081 if ${ac_cv_search_dlopen+:} false; then :
23082 $as_echo_n "(cached) " >&6
23084 ac_func_search_save_LIBS=$LIBS
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23088 /* Override any GCC internal prototype to avoid an error.
23089 Use char because int might match the return type of a GCC
23090 builtin and then its argument prototype would still apply. */
23103 for ac_lib in '' dl; do
23104 if test -z "$ac_lib"; then
23105 ac_res="none required"
23108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23110 if ac_fn_c_try_link "$LINENO"; then :
23111 ac_cv_search_dlopen=$ac_res
23113 rm -f core conftest.err conftest.$ac_objext \
23115 if ${ac_cv_search_dlopen+:} false; then :
23119 if ${ac_cv_search_dlopen+:} false; then :
23122 ac_cv_search_dlopen=no
23124 rm conftest.$ac_ext
23125 LIBS=$ac_func_search_save_LIBS
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23128 $as_echo "$ac_cv_search_dlopen" >&6; }
23129 ac_res=$ac_cv_search_dlopen
23130 if test "$ac_res" != no; then :
23131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23136 working_dir=`eval echo /opt/bacula/working`
23138 # Check whether --with-working-dir was given.
23139 if test "${with_working_dir+set}" = set; then :
23140 withval=$with_working_dir;
23141 if test "x$withval" != "xno" ; then
23142 working_dir=$withval
23153 # Check whether --with-archivedir was given.
23154 if test "${with_archivedir+set}" = set; then :
23155 withval=$with_archivedir;
23156 if test "x$withval" != "xno" ; then
23157 archivedir=$withval
23166 basename=`hostname`
23168 # Check whether --with-basename was given.
23169 if test "${with_basename+set}" = set; then :
23170 withval=$with_basename;
23171 if test "x$withval" != "xno" ; then
23181 hostname=`uname -n | cut -d '.' -f 1`
23182 if test x${hostname} = x ; then
23183 hostname="localhost"
23185 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23186 if test ! $? = 0; then
23187 hostname="localhost"
23190 # Check whether --with-hostname was given.
23191 if test "${with_hostname+set}" = set; then :
23192 withval=$with_hostname;
23193 if test "x$withval" != "xno" ; then
23204 scriptdir=`eval echo ${sysconfdir}`
23206 # Check whether --with-scriptdir was given.
23207 if test "${with_scriptdir+set}" = set; then :
23208 withval=$with_scriptdir;
23209 if test "x$withval" != "xno" ; then
23220 bsrdir=`eval echo /opt/bacula/bsr`
23222 # Check whether --with-bsrdir was given.
23223 if test "${with_bsrdir+set}" = set; then :
23224 withval=$with_bsrdir;
23225 if test "x$withval" != "xno" ; then
23235 logdir=`eval echo /opt/bacula/log`
23237 # Check whether --with-logdir was given.
23238 if test "${with_logdir+set}" = set; then :
23239 withval=$with_logdir;
23240 if test "x$withval" != "xno" ; then
23251 # ------------------------------------------
23252 # Where to place plugindir (plugin files)
23253 # ------------------------------------------
23254 plugindir=`eval echo ${libdir}`
23256 # Check whether --with-plugindir was given.
23257 if test "${with_plugindir+set}" = set; then :
23258 withval=$with_plugindir;
23259 if test "x$withval" != "xno" ; then
23269 dump_email=root@localhost
23271 # Check whether --with-dump-email was given.
23272 if test "${with_dump_email+set}" = set; then :
23273 withval=$with_dump_email;
23274 if test "x$withval" != "xno" ; then
23275 dump_email=$withval
23284 job_email=root@localhost
23286 # Check whether --with-job-email was given.
23287 if test "${with_job_email+set}" = set; then :
23288 withval=$with_job_email;
23289 if test "x$withval" != "xno" ; then
23299 smtp_host=localhost
23301 # Check whether --with-smtp_host was given.
23302 if test "${with_smtp_host+set}" = set; then :
23303 withval=$with_smtp_host;
23304 if test "x$withval" != "xno" ; then
23316 # Check whether --with-pid-dir was given.
23317 if test "${with_pid_dir+set}" = set; then :
23318 withval=$with_pid_dir;
23319 if test "x$withval" != "xno" ; then
23327 cat >>confdefs.h <<_ACEOF
23328 #define _PATH_BACULA_PIDDIR "$piddir"
23333 subsysdir=/var/run/subsys
23334 if test -d /var/run/subsys; then
23335 subsysdir=/var/run/subsys
23336 elif test -d /var/lock/subsys; then
23337 subsysdir=/var/lock/subsys
23339 subsysdir=/var/run/subsys
23342 # Check whether --with-subsys-dir was given.
23343 if test "${with_subsys_dir+set}" = set; then :
23344 withval=$with_subsys_dir;
23345 if test "x$withval" != "xno" ; then
23357 # Check whether --with-baseport was given.
23358 if test "${with_baseport+set}" = set; then :
23359 withval=$with_baseport;
23360 if test "x$withval" != "xno" ; then
23369 dir_port=`expr $baseport`
23370 fd_port=`expr $baseport + 1`
23371 sd_port=`expr $fd_port + 1`
23379 # Check whether --with-dir-password was given.
23380 if test "${with_dir_password+set}" = set; then :
23381 withval=$with_dir_password;
23382 if test "x$withval" != "xno" ; then
23383 dir_password=$withval
23390 if test "x$dir_password" = "x" ; then
23391 if test "x$OPENSSL" = "xnone" ; then
23392 key=`autoconf/randpass 33`
23394 key=`openssl rand -base64 33`
23401 # Check whether --with-fd-password was given.
23402 if test "${with_fd_password+set}" = set; then :
23403 withval=$with_fd_password;
23404 if test "x$withval" != "xno" ; then
23405 fd_password=$withval
23412 if test "x$fd_password" = "x" ; then
23413 if test "x$OPENSSL" = "xnone" ; then
23414 key=`autoconf/randpass 37`
23416 key=`openssl rand -base64 33`
23423 # Check whether --with-sd-password was given.
23424 if test "${with_sd_password+set}" = set; then :
23425 withval=$with_sd_password;
23426 if test "x$withval" != "xno" ; then
23427 sd_password=$withval
23434 if test "x$sd_password" = "x" ; then
23435 if test "x$OPENSSL" = "xnone" ; then
23436 key=`autoconf/randpass 41`
23438 key=`openssl rand -base64 33`
23445 # Check whether --with-mon-dir-password was given.
23446 if test "${with_mon_dir_password+set}" = set; then :
23447 withval=$with_mon_dir_password;
23448 if test "x$withval" != "xno" ; then
23449 mon_dir_password=$withval
23456 if test "x$mon_dir_password" = "x" ; then
23457 if test "x$OPENSSL" = "xnone" ; then
23458 key=`autoconf/randpass 33`
23460 key=`openssl rand -base64 33`
23462 mon_dir_password=$key
23467 # Check whether --with-mon-fd-password was given.
23468 if test "${with_mon_fd_password+set}" = set; then :
23469 withval=$with_mon_fd_password;
23470 if test "x$withval" != "xno" ; then
23471 mon_fd_password=$withval
23478 if test "x$mon_fd_password" = "x" ; then
23479 if test "x$OPENSSL" = "xnone" ; then
23480 key=`autoconf/randpass 37`
23482 key=`openssl rand -base64 33`
23484 mon_fd_password=$key
23489 # Check whether --with-mon-sd-password was given.
23490 if test "${with_mon_sd_password+set}" = set; then :
23491 withval=$with_mon_sd_password;
23492 if test "x$withval" != "xno" ; then
23493 mon_sd_password=$withval
23500 if test "x$mon_sd_password" = "x" ; then
23501 if test "x$OPENSSL" = "xnone" ; then
23502 key=`autoconf/randpass 41`
23504 key=`openssl rand -base64 33`
23506 mon_sd_password=$key
23518 # Check whether --with-db_name was given.
23519 if test "${with_db_name+set}" = set; then :
23520 withval=$with_db_name;
23521 if test "x$withval" != "x" ; then
23532 # Check whether --with-db_user was given.
23533 if test "${with_db_user+set}" = set; then :
23534 withval=$with_db_user;
23535 if test "x$withval" != "x" ; then
23546 # Check whether --with-db_password was given.
23547 if test "${with_db_password+set}" = set; then :
23548 withval=$with_db_password;
23549 if test "x$withval" != "x" ; then
23550 db_password=$withval
23560 # Check whether --with-db_port was given.
23561 if test "${with_db_port+set}" = set; then :
23562 withval=$with_db_port;
23563 if test "x$withval" != "x" ; then
23573 # Handle users and groups for each daemon
23577 # Check whether --with-dir_user was given.
23578 if test "${with_dir_user+set}" = set; then :
23579 withval=$with_dir_user;
23580 if test "x$withval" != "x" ; then
23590 # Check whether --with-dir_group was given.
23591 if test "${with_dir_group+set}" = set; then :
23592 withval=$with_dir_group;
23593 if test "x$withval" != "x" ; then
23603 # Check whether --with-sd_user was given.
23604 if test "${with_sd_user+set}" = set; then :
23605 withval=$with_sd_user;
23606 if test "x$withval" != "x" ; then
23616 # Check whether --with-sd_group was given.
23617 if test "${with_sd_group+set}" = set; then :
23618 withval=$with_sd_group;
23619 if test "x$withval" != "x" ; then
23629 # Check whether --with-fd_user was given.
23630 if test "${with_fd_user+set}" = set; then :
23631 withval=$with_fd_user;
23632 if test "x$withval" != "x" ; then
23642 # Check whether --with-fd_group was given.
23643 if test "${with_fd_group+set}" = set; then :
23644 withval=$with_fd_group;
23645 if test "x$withval" != "x" ; then
23662 # Check whether --with-sbin-perm was given.
23663 if test "${with_sbin_perm+set}" = set; then :
23664 withval=$with_sbin_perm;
23665 if test "x$withval" != "x" ; then
23675 support_batch_insert=yes
23676 # Check whether --enable-batch-insert was given.
23677 if test "${enable_batch_insert+set}" = set; then :
23678 enableval=$enable_batch_insert;
23679 if test x$enableval = xno; then
23680 support_batch_insert=no
23687 if test x$support_batch_insert = xyes; then
23689 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23698 $as_echo_n "checking for PostgreSQL support... " >&6; }
23700 # Check whether --with-postgresql was given.
23701 if test "${with_postgresql+set}" = set; then :
23702 withval=$with_postgresql;
23703 if test "$withval" != "no"; then
23704 if test "$withval" = "yes"; then
23705 PG_CONFIG=`which pg_config 2>/dev/null`
23706 if test -n "$PG_CONFIG"; then
23707 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23708 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23709 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23710 elif test -f /usr/local/include/libpq-fe.h; then
23711 POSTGRESQL_INCDIR=/usr/local/include
23712 if test -d /usr/local/lib64; then
23713 POSTGRESQL_LIBDIR=/usr/local/lib64
23715 POSTGRESQL_LIBDIR=/usr/local/lib
23717 POSTGRESQL_BINDIR=/usr/local/bin
23718 elif test -f /usr/include/libpq-fe.h; then
23719 POSTGRESQL_INCDIR=/usr/include
23720 if test -d /usr/lib64; then
23721 POSTGRESQL_LIBDIR=/usr/lib64
23723 POSTGRESQL_LIBDIR=/usr/lib
23725 POSTGRESQL_BINDIR=/usr/bin
23726 elif test -f /usr/include/pgsql/libpq-fe.h; then
23727 POSTGRESQL_INCDIR=/usr/include/pgsql
23728 if test -d /usr/lib64/pgsql; then
23729 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23731 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23733 POSTGRESQL_BINDIR=/usr/bin
23734 elif test -f /usr/include/postgresql/libpq-fe.h; then
23735 POSTGRESQL_INCDIR=/usr/include/postgresql
23736 if test -d /usr/lib64/postgresql; then
23737 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23739 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23741 POSTGRESQL_BINDIR=/usr/bin
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23744 $as_echo "no" >&6; }
23745 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23747 elif test -f $withval/include/libpq-fe.h; then
23748 POSTGRESQL_INCDIR=$withval/include
23749 POSTGRESQL_LIBDIR=$withval/lib
23750 POSTGRESQL_BINDIR=$withval/bin
23751 elif test -f $withval/include/postgresql/libpq-fe.h; then
23752 POSTGRESQL_INCDIR=$withval/include/postgresql
23753 if test -d $withval/lib64; then
23754 POSTGRESQL_LIBDIR=$withval/lib64
23756 POSTGRESQL_LIBDIR=$withval/lib
23758 POSTGRESQL_BINDIR=$withval/bin
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23761 $as_echo "no" >&6; }
23762 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23765 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23768 $as_echo "yes" >&6; }
23770 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23771 if test x$use_libtool != xno; then
23772 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23774 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23776 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23777 if test "x$ac_cv_func_crypt" = xyes; then :
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23781 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23782 if ${ac_cv_lib_crypt_crypt+:} false; then :
23783 $as_echo_n "(cached) " >&6
23785 ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lcrypt $LIBS"
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h. */
23790 /* Override any GCC internal prototype to avoid an error.
23791 Use char because int might match the return type of a GCC
23792 builtin and then its argument prototype would still apply. */
23805 if ac_fn_c_try_link "$LINENO"; then :
23806 ac_cv_lib_crypt_crypt=yes
23808 ac_cv_lib_crypt_crypt=no
23810 rm -f core conftest.err conftest.$ac_objext \
23811 conftest$ac_exeext conftest.$ac_ext
23812 LIBS=$ac_check_lib_save_LIBS
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23815 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23816 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23817 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23822 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23823 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23825 if test -z "${db_backends}"; then
23826 db_backends="PostgreSQL"
23828 db_backends="${db_backends} PostgreSQL"
23830 if test -z "${DB_BACKENDS}"; then
23831 DB_BACKENDS="postgresql"
23833 DB_BACKENDS="${DB_BACKENDS} postgresql"
23836 if test "x$support_batch_insert" = "xyes"; then
23837 saved_LDFLAGS="${LDFLAGS}"
23838 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23839 saved_LIBS="${LIBS}"
23840 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23841 LIBS="${saved_LIBS} -lcrypt"
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23845 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23846 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23847 $as_echo_n "(cached) " >&6
23849 ac_check_lib_save_LIBS=$LIBS
23851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23852 /* end confdefs.h. */
23854 /* Override any GCC internal prototype to avoid an error.
23855 Use char because int might match the return type of a GCC
23856 builtin and then its argument prototype would still apply. */
23860 char PQisthreadsafe ();
23864 return PQisthreadsafe ();
23869 if ac_fn_c_try_link "$LINENO"; then :
23870 ac_cv_lib_pq_PQisthreadsafe=yes
23872 ac_cv_lib_pq_PQisthreadsafe=no
23874 rm -f core conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
23876 LIBS=$ac_check_lib_save_LIBS
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23879 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23880 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23882 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23887 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23888 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23889 $as_echo_n "(cached) " >&6
23891 ac_check_lib_save_LIBS=$LIBS
23893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23894 /* end confdefs.h. */
23896 /* Override any GCC internal prototype to avoid an error.
23897 Use char because int might match the return type of a GCC
23898 builtin and then its argument prototype would still apply. */
23902 char PQputCopyData ();
23906 return PQputCopyData ();
23911 if ac_fn_c_try_link "$LINENO"; then :
23912 ac_cv_lib_pq_PQputCopyData=yes
23914 ac_cv_lib_pq_PQputCopyData=no
23916 rm -f core conftest.err conftest.$ac_objext \
23917 conftest$ac_exeext conftest.$ac_ext
23918 LIBS=$ac_check_lib_save_LIBS
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23921 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23922 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23924 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23928 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23929 if test $support_batch_insert = yes ; then
23931 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23933 if test -z "${batch_insert_db_backends}"; then
23934 batch_insert_db_backends="PostgreSQL"
23936 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
23941 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23943 echo "WARNING: Your PostgreSQL client library is too old to detect "
23944 echo "if it was compiled with --enable-thread-safety, consider to "
23945 echo "upgrade it in order to avoid problems with Batch insert mode"
23948 LDFLAGS="${saved_LDFLAGS}"
23949 LIBS="${saved_LIBS}"
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23953 $as_echo "no" >&6; }
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23959 $as_echo "no" >&6; }
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23971 $as_echo_n "checking for MySQL support... " >&6; }
23973 # Check whether --with-mysql was given.
23974 if test "${with_mysql+set}" = set; then :
23975 withval=$with_mysql;
23976 if test "$withval" != "no"; then
23977 if test "$withval" = "yes"; then
23979 # This code is very broken on older systems
23981 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
23982 # if test "x${MYSQL_CONFIG}" != x; then
23983 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
23984 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
23985 # if test $? = 0 ; then
23986 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
23987 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
23989 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
23990 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
23992 # elif test -f /usr/local/mysql/include/mysql/mysql.h; then
23993 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23994 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23995 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23996 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23997 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23999 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24001 MYSQL_BINDIR=/usr/local/mysql/bin
24002 elif test -f /usr/include/mysql/mysql.h; then
24003 MYSQL_INCDIR=/usr/include/mysql
24004 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24005 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24006 MYSQL_LIBDIR=/usr/lib64/mysql
24007 elif test -f /usr/lib64/libmysqlclient_r.a \
24008 -o -f /usr/lib64/libmysqlclient_r.so; then
24009 MYSQL_LIBDIR=/usr/lib64
24010 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24011 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24012 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24013 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24014 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24015 MYSQL_LIBDIR=/usr/lib/mysql
24017 MYSQL_LIBDIR=/usr/lib
24019 MYSQL_BINDIR=/usr/bin
24020 elif test -f /usr/include/mysql.h; then
24021 MYSQL_INCDIR=/usr/include
24022 if test -f /usr/lib64/libmysqlclient_r.a \
24023 -o -f /usr/lib64/libmysqlclient_r.so; then
24024 MYSQL_LIBDIR=/usr/lib64
24026 MYSQL_LIBDIR=/usr/lib
24028 MYSQL_BINDIR=/usr/bin
24029 elif test -f /usr/local/include/mysql/mysql.h; then
24030 MYSQL_INCDIR=/usr/local/include/mysql
24031 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24032 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24033 MYSQL_LIBDIR=/usr/local/lib64/mysql
24035 MYSQL_LIBDIR=/usr/local/lib/mysql
24037 MYSQL_BINDIR=/usr/local/bin
24038 elif test -f /usr/local/include/mysql.h; then
24039 MYSQL_INCDIR=/usr/local/include
24040 if test -f /usr/local/lib64/libmysqlclient_r.a \
24041 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24042 MYSQL_LIBDIR=/usr/local/lib64
24044 MYSQL_LIBDIR=/usr/local/lib
24046 MYSQL_BINDIR=/usr/local/bin
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24049 $as_echo "no" >&6; }
24050 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24053 if test -f $withval/include/mysql/mysql.h; then
24054 MYSQL_INCDIR=$withval/include/mysql
24055 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24056 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24057 MYSQL_LIBDIR=$withval/lib64/mysql
24058 elif test -f $withval/lib64/libmysqlclient_r.a \
24059 -o -f $withval/lib64/libmysqlclient_r.so; then
24060 MYSQL_LIBDIR=$withval/lib64
24061 elif test -f $withval/lib/libmysqlclient_r.a \
24062 -o -f $withval/lib/libmysqlclient_r.so; then
24063 MYSQL_LIBDIR=$withval/lib
24065 MYSQL_LIBDIR=$withval/lib/mysql
24067 MYSQL_BINDIR=$withval/bin
24068 elif test -f $withval/include/mysql.h; then
24069 MYSQL_INCDIR=$withval/include
24070 if test -f $withval/lib64/libmysqlclient_r.a \
24071 -o -f $withval/lib64/libmysqlclient_r.so; then
24072 MYSQL_LIBDIR=$withval/lib64
24074 MYSQL_LIBDIR=$withval/lib
24076 MYSQL_BINDIR=$withval/bin
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24079 $as_echo "no" >&6; }
24080 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24083 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24084 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24085 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24086 if test x$use_libtool != xno; then
24087 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24089 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24091 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24093 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24096 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24099 $as_echo "yes" >&6; }
24101 if test -z "${db_backends}" ; then
24102 db_backends="MySQL"
24104 db_backends="${db_backends} MySQL"
24106 if test -z "${DB_BACKENDS}" ; then
24107 DB_BACKENDS="mysql"
24109 DB_BACKENDS="${DB_BACKENDS} mysql"
24112 if test "x$support_batch_insert" = "xyes"; then
24113 saved_LDFLAGS="${LDFLAGS}"
24114 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24115 saved_LIBS="${LIBS}"
24116 LIBS="${saved_LIBS} -lz"
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24119 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24120 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24121 $as_echo_n "(cached) " >&6
24123 ac_check_lib_save_LIBS=$LIBS
24124 LIBS="-lmysqlclient_r $LIBS"
24125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24126 /* end confdefs.h. */
24128 /* Override any GCC internal prototype to avoid an error.
24129 Use char because int might match the return type of a GCC
24130 builtin and then its argument prototype would still apply. */
24134 char mysql_thread_safe ();
24138 return mysql_thread_safe ();
24143 if ac_fn_c_try_link "$LINENO"; then :
24144 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24146 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24148 rm -f core conftest.err conftest.$ac_objext \
24149 conftest$ac_exeext conftest.$ac_ext
24150 LIBS=$ac_check_lib_save_LIBS
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24153 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24154 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24156 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24160 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24161 if test -z "${batch_insert_db_backends}"; then
24162 batch_insert_db_backends="MySQL"
24164 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24168 LDFLAGS="${saved_LDFLAGS}"
24169 LIBS="${saved_LIBS}"
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24173 $as_echo "no" >&6; }
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24179 $as_echo "no" >&6; }
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24185 $as_echo_n "checking for MySQL embedded support... " >&6; }
24187 # Check whether --with-embedded-mysql was given.
24188 if test "${with_embedded_mysql+set}" = set; then :
24189 withval=$with_embedded_mysql;
24190 if test "$withval" != "no"; then
24191 if test "$withval" = "yes"; then
24192 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24193 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24194 if test -d /usr/local/mysql/lib64/mysql; then
24195 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24197 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24199 MYSQL_BINDIR=/usr/local/mysql/bin
24200 elif test -f /usr/include/mysql/mysql.h; then
24201 MYSQL_INCDIR=/usr/include/mysql
24202 if test -d /usr/lib64/mysql; then
24203 MYSQL_LIBDIR=/usr/lib64/mysql
24205 MYSQL_LIBDIR=/usr/lib/mysql
24207 MYSQL_BINDIR=/usr/bin
24208 elif test -f /usr/include/mysql.h; then
24209 MYSQL_INCDIR=/usr/include
24210 if test -d /usr/lib64; then
24211 MYSQL_LIBDIR=/usr/lib64
24213 MYSQL_LIBDIR=/usr/lib
24215 MYSQL_BINDIR=/usr/bin
24216 elif test -f /usr/local/include/mysql/mysql.h; then
24217 MYSQL_INCDIR=/usr/local/include/mysql
24218 if test -d /usr/local/lib64/mysql; then
24219 MYSQL_LIBDIR=/usr/local/lib64/mysql
24221 MYSQL_LIBDIR=/usr/local/lib/mysql
24223 MYSQL_BINDIR=/usr/local/bin
24224 elif test -f /usr/local/include/mysql.h; then
24225 MYSQL_INCDIR=/usr/local/include
24226 if test -d /usr/local/lib64; then
24227 MYSQL_LIBDIR=/usr/local/lib64
24229 MYSQL_LIBDIR=/usr/local/lib
24231 MYSQL_BINDIR=/usr/local/bin
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24234 $as_echo "no" >&6; }
24235 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24238 if test -f $withval/include/mysql/mysql.h; then
24239 MYSQL_INCDIR=$withval/include/mysql
24240 if test -d $withval/lib64/mysql; then
24241 MYSQL_LIBDIR=$withval/lib64/mysql
24243 MYSQL_LIBDIR=$withval/lib/mysql
24245 MYSQL_BINDIR=$withval/bin
24246 elif test -f $withval/include/mysql.h; then
24247 MYSQL_INCDIR=$withval/include
24248 if test -d $withval/lib64; then
24249 MYSQL_LIBDIR=$withval/lib64
24251 MYSQL_LIBDIR=$withval/lib
24253 MYSQL_BINDIR=$withval/bin
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24256 $as_echo "no" >&6; }
24257 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24260 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24261 if test x$use_libtool != xno; then
24262 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24264 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24266 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24267 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24270 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24273 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24276 $as_echo "yes" >&6; }
24278 if test -z "${db_backends}"; then
24279 db_backends="MySQL"
24281 db_backends="${db_backends} MySQL"
24283 if test -z "${DB_BACKENDS}"; then
24284 DB_BACKENDS="mysql"
24286 DB_BACKENDS="${DB_BACKENDS} mysql"
24289 if test "x$support_batch_insert" = "xyes"; then
24290 saved_LDFLAGS="${LDFLAGS}"
24291 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24292 saved_LIBS="${LIBS}"
24293 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24296 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24297 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24298 $as_echo_n "(cached) " >&6
24300 ac_check_lib_save_LIBS=$LIBS
24301 LIBS="-lmysqlclient_r $LIBS"
24302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h. */
24305 /* Override any GCC internal prototype to avoid an error.
24306 Use char because int might match the return type of a GCC
24307 builtin and then its argument prototype would still apply. */
24311 char mysql_thread_safe ();
24315 return mysql_thread_safe ();
24320 if ac_fn_c_try_link "$LINENO"; then :
24321 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24323 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24325 rm -f core conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
24327 LIBS=$ac_check_lib_save_LIBS
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24330 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24331 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24333 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24337 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24338 if test -z "${batch_insert_db_backends}"; then
24339 batch_insert_db_backends="MySQL"
24341 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24345 LDFLAGS="${saved_LDFLAGS}"
24346 LIBS="${saved_LIBS}"
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24350 $as_echo "no" >&6; }
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24356 $as_echo "no" >&6; }
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24369 $as_echo_n "checking for SQLite3 support... " >&6; }
24371 # Check whether --with-sqlite3 was given.
24372 if test "${with_sqlite3+set}" = set; then :
24373 withval=$with_sqlite3;
24374 if test "$withval" != "no"; then
24375 if test "$withval" = "yes"; then
24376 if test -f /usr/local/include/sqlite3.h; then
24377 SQLITE_INCDIR=/usr/local/include
24378 if test -d /usr/local/lib64; then
24379 SQLITE_LIBDIR=/usr/local/lib64
24381 SQLITE_LIBDIR=/usr/local/lib
24383 SQLITE_BINDIR=/usr/local/bin
24384 elif test -f /usr/include/sqlite3.h; then
24385 SQLITE_INCDIR=/usr/include
24386 if test -d /usr/lib64; then
24387 SQLITE_LIBDIR=/usr/lib64
24389 SQLITE_LIBDIR=/usr/lib
24391 SQLITE_BINDIR=/usr/bin
24392 elif test -f $prefix/include/sqlite3.h; then
24393 SQLITE_INCDIR=$prefix/include
24394 if test -d $prefix/lib64; then
24395 SQLITE_LIBDIR=$prefix/lib64
24397 SQLITE_LIBDIR=$prefix/lib
24399 SQLITE_BINDIR=$prefix/bin
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24406 if test -f $withval/sqlite3.h; then
24407 SQLITE_INCDIR=$withval
24408 SQLITE_LIBDIR=$withval
24409 SQLITE_BINDIR=$withval
24410 elif test -f $withval/include/sqlite3.h; then
24411 SQLITE_INCDIR=$withval/include
24412 if test -d $withval/lib64; then
24413 SQLITE_LIBDIR=$withval/lib64
24415 SQLITE_LIBDIR=$withval/lib
24417 SQLITE_BINDIR=$withval/bin
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24420 $as_echo "no" >&6; }
24421 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24424 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24425 if test x$use_libtool != xno; then
24426 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24428 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24430 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24431 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24434 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24437 $as_echo "yes" >&6; }
24439 if test -z "${db_backends}"; then
24440 db_backends="SQLite3"
24442 db_backends="${db_backends} SQLite3"
24444 if test -z "${DB_BACKENDS}"; then
24445 DB_BACKENDS="sqlite3"
24447 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24450 if test "x$support_batch_insert" = "xyes"; then
24451 saved_LDFLAGS="${LDFLAGS}"
24452 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24455 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24456 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24457 $as_echo_n "(cached) " >&6
24459 ac_check_lib_save_LIBS=$LIBS
24460 LIBS="-lsqlite3 $LIBS"
24461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24462 /* end confdefs.h. */
24464 /* Override any GCC internal prototype to avoid an error.
24465 Use char because int might match the return type of a GCC
24466 builtin and then its argument prototype would still apply. */
24470 char sqlite3_threadsafe ();
24474 return sqlite3_threadsafe ();
24479 if ac_fn_c_try_link "$LINENO"; then :
24480 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24482 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24484 rm -f core conftest.err conftest.$ac_objext \
24485 conftest$ac_exeext conftest.$ac_ext
24486 LIBS=$ac_check_lib_save_LIBS
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24489 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24490 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24492 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24496 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24497 if test -z "${batch_insert_db_backends}"; then
24498 batch_insert_db_backends="SQLite3"
24500 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24504 LDFLAGS="${saved_LDFLAGS}"
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24508 $as_echo "no" >&6; }
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24514 $as_echo "no" >&6; }
24524 if test -z "${batch_insert_db_backends}"; then
24525 batch_insert_db_backends="None"
24528 if test "x${db_backends}" = "x" ; then
24531 echo "You have not specified either --enable-client-only or one of the"
24532 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24533 echo "This is not permitted. Please reconfigure."
24535 echo "Aborting the configuration ..."
24541 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24543 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24544 if test x$use_libtool = xno; then
24545 SHARED_CATALOG_TARGETS=""
24547 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24551 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24553 if test x$use_libtool = xno; then
24556 echo "You have specified two or more of the"
24557 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24558 echo "This is not permitted when not using libtool Please reconfigure."
24560 echo "Aborting the configuration ..."
24566 SHARED_CATALOG_TARGETS=""
24567 for db_type in ${DB_BACKENDS}
24569 if test -z "${SHARED_CATALOG_TARGETS}"; then
24570 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24572 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24578 if test x$use_libtool = xyes; then
24588 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24591 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24592 if test -z "$CCOPTS"; then
24593 CCOPTS='-g -O2 -Wall'
24600 largefile_support="no"
24602 # Check whether --enable-largefile was given.
24603 if test "${enable_largefile+set}" = set; then :
24604 enableval=$enable_largefile;
24607 if test "$enable_largefile" != no; then
24608 if test -n "$ac_tool_prefix"; then
24609 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24610 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24612 $as_echo_n "checking for $ac_word... " >&6; }
24613 if ${ac_cv_prog_GETCONF+:} false; then :
24614 $as_echo_n "(cached) " >&6
24616 if test -n "$GETCONF"; then
24617 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24620 for as_dir in $PATH
24623 test -z "$as_dir" && as_dir=.
24624 for ac_exec_ext in '' $ac_executable_extensions; do
24625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24626 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24636 GETCONF=$ac_cv_prog_GETCONF
24637 if test -n "$GETCONF"; then
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24639 $as_echo "$GETCONF" >&6; }
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24642 $as_echo "no" >&6; }
24647 if test -z "$ac_cv_prog_GETCONF"; then
24648 ac_ct_GETCONF=$GETCONF
24649 # Extract the first word of "getconf", so it can be a program name with args.
24650 set dummy getconf; ac_word=$2
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24652 $as_echo_n "checking for $ac_word... " >&6; }
24653 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24654 $as_echo_n "(cached) " >&6
24656 if test -n "$ac_ct_GETCONF"; then
24657 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24660 for as_dir in $PATH
24663 test -z "$as_dir" && as_dir=.
24664 for ac_exec_ext in '' $ac_executable_extensions; do
24665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24666 ac_cv_prog_ac_ct_GETCONF="getconf"
24667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24676 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24677 if test -n "$ac_ct_GETCONF"; then
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24679 $as_echo "$ac_ct_GETCONF" >&6; }
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682 $as_echo "no" >&6; }
24685 if test "x$ac_ct_GETCONF" = x; then
24688 case $cross_compiling:$ac_tool_warned in
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24692 ac_tool_warned=yes ;;
24694 GETCONF=$ac_ct_GETCONF
24697 GETCONF="$ac_cv_prog_GETCONF"
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24701 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24702 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24703 $as_echo_n "(cached) " >&6
24705 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24706 ac_cv_sys_largefile_CFLAGS=no
24708 # IRIX 6.2 and later require cc -n32.
24709 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24710 if test "$GCC" != yes; then
24711 ac_cv_sys_largefile_CFLAGS=-n32
24714 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h. */
24726 if ac_fn_c_try_link "$LINENO"; then :
24729 ac_cv_sys_largefile_CFLAGS=no
24731 rm -f core conftest.err conftest.$ac_objext \
24732 conftest$ac_exeext conftest.$ac_ext
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24738 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24740 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24741 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24742 $as_echo_n "(cached) " >&6
24744 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24745 ac_cv_sys_largefile_LDFLAGS=no
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24750 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24752 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24753 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24754 $as_echo_n "(cached) " >&6
24756 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24757 ac_cv_sys_largefile_LIBS=no
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24762 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24764 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24767 -D_FILE_OFFSET_BITS=*) ;;
24768 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24769 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24774 case "$CPPFLAGS" in
24775 '') CPPFLAGS="$ac_flag" ;;
24776 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24784 '') CFLAGS="$ac_flag" ;;
24785 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24790 case "$ac_cv_sys_largefile_LDFLAGS" in
24794 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24795 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24798 case "$ac_cv_sys_largefile_LIBS" in
24802 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24803 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24807 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24808 if ${ac_cv_sys_file_offset_bits+:} false; then :
24809 $as_echo_n "(cached) " >&6
24811 ac_cv_sys_file_offset_bits=no
24812 ac_cv_sys_file_offset_bits=64
24813 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24815 -D_FILE_OFFSET_BITS)
24816 ac_cv_sys_file_offset_bits=1 ;;
24817 -D_FILE_OFFSET_BITS=*)
24818 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24824 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24825 if test "$ac_cv_sys_file_offset_bits" != no; then
24827 cat >>confdefs.h <<_ACEOF
24828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24833 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24834 if ${ac_cv_sys_largefile_source+:} false; then :
24835 $as_echo_n "(cached) " >&6
24837 ac_cv_sys_largefile_source=no
24838 ac_cv_sys_largefile_source=1
24839 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24841 -D_LARGEFILE_SOURCE)
24842 ac_cv_sys_largefile_source=1 ;;
24843 -D_LARGEFILE_SOURCE=*)
24844 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24850 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24851 if test "$ac_cv_sys_largefile_source" != no; then
24853 cat >>confdefs.h <<_ACEOF
24854 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24859 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24860 if ${ac_cv_sys_large_files+:} false; then :
24861 $as_echo_n "(cached) " >&6
24863 ac_cv_sys_large_files=no
24864 ac_cv_sys_large_files=1
24865 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24868 ac_cv_sys_large_files=1 ;;
24870 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24876 $as_echo "$ac_cv_sys_large_files" >&6; }
24877 if test "$ac_cv_sys_large_files" != no; then
24879 cat >>confdefs.h <<_ACEOF
24880 #define _LARGE_FILES $ac_cv_sys_large_files
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24888 $as_echo_n "checking for X... " >&6; }
24891 # Check whether --with-x was given.
24892 if test "${with_x+set}" = set; then :
24896 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24897 if test "x$with_x" = xno; then
24898 # The user explicitly disabled X.
24901 case $x_includes,$x_libraries in #(
24902 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24903 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24904 $as_echo_n "(cached) " >&6
24906 # One or both of the vars are not set, and there is no cached value.
24907 ac_x_includes=no ac_x_libraries=no
24908 rm -f -r conftest.dir
24909 if mkdir conftest.dir; then
24911 cat >Imakefile <<'_ACEOF'
24913 @echo incroot='${INCROOT}'
24915 @echo usrlibdir='${USRLIBDIR}'
24917 @echo libdir='${LIBDIR}'
24919 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24920 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24921 for ac_var in incroot usrlibdir libdir; do
24922 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24924 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24925 for ac_extension in a so sl dylib la dll; do
24926 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24927 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24928 ac_im_usrlibdir=$ac_im_libdir; break
24931 # Screen out bogus values from the imake configuration. They are
24932 # bogus both because they are the default anyway, and because
24933 # using them would break gcc on systems where it needs fixed includes.
24934 case $ac_im_incroot in
24935 /usr/include) ac_x_includes= ;;
24936 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24938 case $ac_im_usrlibdir in
24939 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24940 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24944 rm -f -r conftest.dir
24947 # Standard set of common directories for X headers.
24948 # Check X11 before X11Rn because it is often a symlink to the current release.
24962 /usr/local/X11/include
24963 /usr/local/X11R7/include
24964 /usr/local/X11R6/include
24965 /usr/local/X11R5/include
24966 /usr/local/X11R4/include
24968 /usr/local/include/X11
24969 /usr/local/include/X11R7
24970 /usr/local/include/X11R6
24971 /usr/local/include/X11R5
24972 /usr/local/include/X11R4
24976 /usr/XFree86/include/X11
24980 /usr/unsupported/include
24981 /usr/athena/include
24982 /usr/local/x11r5/include
24983 /usr/lpp/Xamples/include
24985 /usr/openwin/include
24986 /usr/openwin/share/include'
24988 if test "$ac_x_includes" = no; then
24989 # Guess where to find include files, by looking for Xlib.h.
24990 # First, try using that file with no special directory specified.
24991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992 /* end confdefs.h. */
24993 #include <X11/Xlib.h>
24995 if ac_fn_c_try_cpp "$LINENO"; then :
24996 # We can compile using X headers with no special include directory.
24999 for ac_dir in $ac_x_header_dirs; do
25000 if test -r "$ac_dir/X11/Xlib.h"; then
25001 ac_x_includes=$ac_dir
25006 rm -f conftest.err conftest.i conftest.$ac_ext
25007 fi # $ac_x_includes = no
25009 if test "$ac_x_libraries" = no; then
25010 # Check for the libraries.
25011 # See if we find them without any special options.
25012 # Don't add to $LIBS permanently.
25015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25016 /* end confdefs.h. */
25017 #include <X11/Xlib.h>
25026 if ac_fn_c_try_link "$LINENO"; then :
25028 # We can link X programs with no special library path.
25032 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25034 # Don't even attempt the hair of trying to link an X program!
25035 for ac_extension in a so sl dylib la dll; do
25036 if test -r "$ac_dir/libX11.$ac_extension"; then
25037 ac_x_libraries=$ac_dir
25043 rm -f core conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
25045 fi # $ac_x_libraries = no
25047 case $ac_x_includes,$ac_x_libraries in #(
25048 no,* | *,no | *\'*)
25049 # Didn't find X, or a directory has "'" in its name.
25050 ac_cv_have_x="have_x=no";; #(
25052 # Record where we found X for the cache.
25053 ac_cv_have_x="have_x=yes\
25054 ac_x_includes='$ac_x_includes'\
25055 ac_x_libraries='$ac_x_libraries'"
25061 eval "$ac_cv_have_x"
25064 if test "$have_x" != yes; then
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25066 $as_echo "$have_x" >&6; }
25069 # If each of the values was on the command line, it overrides each guess.
25070 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25071 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25072 # Update the cache value to reflect the command line values.
25073 ac_cv_have_x="have_x=yes\
25074 ac_x_includes='$x_includes'\
25075 ac_x_libraries='$x_libraries'"
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25077 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25080 if test "$no_x" = yes; then
25081 # Not all programs may use this symbol, but it does not hurt to define it.
25083 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25085 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25087 if test -n "$x_includes"; then
25088 X_CFLAGS="$X_CFLAGS -I$x_includes"
25091 # It would also be nice to do this for all -L options, not just this one.
25092 if test -n "$x_libraries"; then
25093 X_LIBS="$X_LIBS -L$x_libraries"
25094 # For Solaris; some versions of Sun CC require a space after -R and
25095 # others require no space. Words are not sufficient . . . .
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25097 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25098 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25099 ac_xsave_c_werror_flag=$ac_c_werror_flag
25100 ac_c_werror_flag=yes
25101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25102 /* end confdefs.h. */
25112 if ac_fn_c_try_link "$LINENO"; then :
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25114 $as_echo "no" >&6; }
25115 X_LIBS="$X_LIBS -R$x_libraries"
25117 LIBS="$ac_xsave_LIBS -R $x_libraries"
25118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25119 /* end confdefs.h. */
25129 if ac_fn_c_try_link "$LINENO"; then :
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25131 $as_echo "yes" >&6; }
25132 X_LIBS="$X_LIBS -R $x_libraries"
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25135 $as_echo "neither works" >&6; }
25137 rm -f core conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
25140 rm -f core conftest.err conftest.$ac_objext \
25141 conftest$ac_exeext conftest.$ac_ext
25142 ac_c_werror_flag=$ac_xsave_c_werror_flag
25143 LIBS=$ac_xsave_LIBS
25146 # Check for system-dependent libraries X programs must link with.
25147 # Do this before checking for the system-independent R6 libraries
25148 # (-lICE), since we may need -lsocket or whatever for X linking.
25150 if test "$ISC" = yes; then
25151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25153 # Martyn Johnson says this is needed for Ultrix, if the X
25154 # libraries were built with DECnet support. And Karl Berry says
25155 # the Alpha needs dnet_stub (dnet does not exist).
25156 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h. */
25160 /* Override any GCC internal prototype to avoid an error.
25161 Use char because int might match the return type of a GCC
25162 builtin and then its argument prototype would still apply. */
25166 char XOpenDisplay ();
25170 return XOpenDisplay ();
25175 if ac_fn_c_try_link "$LINENO"; then :
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25179 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25180 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25181 $as_echo_n "(cached) " >&6
25183 ac_check_lib_save_LIBS=$LIBS
25184 LIBS="-ldnet $LIBS"
25185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186 /* end confdefs.h. */
25188 /* Override any GCC internal prototype to avoid an error.
25189 Use char because int might match the return type of a GCC
25190 builtin and then its argument prototype would still apply. */
25198 return dnet_ntoa ();
25203 if ac_fn_c_try_link "$LINENO"; then :
25204 ac_cv_lib_dnet_dnet_ntoa=yes
25206 ac_cv_lib_dnet_dnet_ntoa=no
25208 rm -f core conftest.err conftest.$ac_objext \
25209 conftest$ac_exeext conftest.$ac_ext
25210 LIBS=$ac_check_lib_save_LIBS
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25213 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25214 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25215 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25218 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25220 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25221 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25222 $as_echo_n "(cached) " >&6
25224 ac_check_lib_save_LIBS=$LIBS
25225 LIBS="-ldnet_stub $LIBS"
25226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h. */
25229 /* Override any GCC internal prototype to avoid an error.
25230 Use char because int might match the return type of a GCC
25231 builtin and then its argument prototype would still apply. */
25239 return dnet_ntoa ();
25244 if ac_fn_c_try_link "$LINENO"; then :
25245 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25247 ac_cv_lib_dnet_stub_dnet_ntoa=no
25249 rm -f core conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
25251 LIBS=$ac_check_lib_save_LIBS
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25254 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25255 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25256 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25261 rm -f core conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25263 LIBS="$ac_xsave_LIBS"
25265 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25266 # to get the SysV transport functions.
25267 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25269 # The nsl library prevents programs from opening the X display
25270 # on Irix 5.2, according to T.E. Dickey.
25271 # The functions gethostbyname, getservbyname, and inet_addr are
25272 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25273 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25274 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25278 if test $ac_cv_func_gethostbyname = no; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25280 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25281 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25282 $as_echo_n "(cached) " >&6
25284 ac_check_lib_save_LIBS=$LIBS
25286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25287 /* end confdefs.h. */
25289 /* Override any GCC internal prototype to avoid an error.
25290 Use char because int might match the return type of a GCC
25291 builtin and then its argument prototype would still apply. */
25295 char gethostbyname ();
25299 return gethostbyname ();
25304 if ac_fn_c_try_link "$LINENO"; then :
25305 ac_cv_lib_nsl_gethostbyname=yes
25307 ac_cv_lib_nsl_gethostbyname=no
25309 rm -f core conftest.err conftest.$ac_objext \
25310 conftest$ac_exeext conftest.$ac_ext
25311 LIBS=$ac_check_lib_save_LIBS
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25314 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25315 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25316 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25319 if test $ac_cv_lib_nsl_gethostbyname = no; then
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25321 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25322 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25323 $as_echo_n "(cached) " >&6
25325 ac_check_lib_save_LIBS=$LIBS
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h. */
25330 /* Override any GCC internal prototype to avoid an error.
25331 Use char because int might match the return type of a GCC
25332 builtin and then its argument prototype would still apply. */
25336 char gethostbyname ();
25340 return gethostbyname ();
25345 if ac_fn_c_try_link "$LINENO"; then :
25346 ac_cv_lib_bsd_gethostbyname=yes
25348 ac_cv_lib_bsd_gethostbyname=no
25350 rm -f core conftest.err conftest.$ac_objext \
25351 conftest$ac_exeext conftest.$ac_ext
25352 LIBS=$ac_check_lib_save_LIBS
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25355 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25356 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25357 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25363 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25364 # socket/setsockopt and other routines are undefined under SCO ODT
25365 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25366 # on later versions), says Simon Leinen: it contains gethostby*
25367 # variants that don't use the name server (or something). -lsocket
25368 # must be given before -lnsl if both are needed. We assume that
25369 # if connect needs -lnsl, so does gethostbyname.
25370 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25371 if test "x$ac_cv_func_connect" = xyes; then :
25375 if test $ac_cv_func_connect = no; then
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25377 $as_echo_n "checking for connect in -lsocket... " >&6; }
25378 if ${ac_cv_lib_socket_connect+:} false; then :
25379 $as_echo_n "(cached) " >&6
25381 ac_check_lib_save_LIBS=$LIBS
25382 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25384 /* end confdefs.h. */
25386 /* Override any GCC internal prototype to avoid an error.
25387 Use char because int might match the return type of a GCC
25388 builtin and then its argument prototype would still apply. */
25401 if ac_fn_c_try_link "$LINENO"; then :
25402 ac_cv_lib_socket_connect=yes
25404 ac_cv_lib_socket_connect=no
25406 rm -f core conftest.err conftest.$ac_objext \
25407 conftest$ac_exeext conftest.$ac_ext
25408 LIBS=$ac_check_lib_save_LIBS
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25411 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25412 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25413 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25418 # Guillermo Gomez says -lposix is necessary on A/UX.
25419 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25420 if test "x$ac_cv_func_remove" = xyes; then :
25424 if test $ac_cv_func_remove = no; then
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25426 $as_echo_n "checking for remove in -lposix... " >&6; }
25427 if ${ac_cv_lib_posix_remove+:} false; then :
25428 $as_echo_n "(cached) " >&6
25430 ac_check_lib_save_LIBS=$LIBS
25431 LIBS="-lposix $LIBS"
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h. */
25435 /* Override any GCC internal prototype to avoid an error.
25436 Use char because int might match the return type of a GCC
25437 builtin and then its argument prototype would still apply. */
25450 if ac_fn_c_try_link "$LINENO"; then :
25451 ac_cv_lib_posix_remove=yes
25453 ac_cv_lib_posix_remove=no
25455 rm -f core conftest.err conftest.$ac_objext \
25456 conftest$ac_exeext conftest.$ac_ext
25457 LIBS=$ac_check_lib_save_LIBS
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25460 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25461 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25467 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25468 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25469 if test "x$ac_cv_func_shmat" = xyes; then :
25473 if test $ac_cv_func_shmat = no; then
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25475 $as_echo_n "checking for shmat in -lipc... " >&6; }
25476 if ${ac_cv_lib_ipc_shmat+:} false; then :
25477 $as_echo_n "(cached) " >&6
25479 ac_check_lib_save_LIBS=$LIBS
25481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25482 /* end confdefs.h. */
25484 /* Override any GCC internal prototype to avoid an error.
25485 Use char because int might match the return type of a GCC
25486 builtin and then its argument prototype would still apply. */
25499 if ac_fn_c_try_link "$LINENO"; then :
25500 ac_cv_lib_ipc_shmat=yes
25502 ac_cv_lib_ipc_shmat=no
25504 rm -f core conftest.err conftest.$ac_objext \
25505 conftest$ac_exeext conftest.$ac_ext
25506 LIBS=$ac_check_lib_save_LIBS
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25509 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25510 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25517 # Check for libraries that X11R6 Xt/Xaw programs need.
25518 ac_save_LDFLAGS=$LDFLAGS
25519 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25520 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25521 # check for ICE first), but we must link in the order -lSM -lICE or
25522 # we get undefined symbols. So assume we have SM if we have ICE.
25523 # These have to be linked with before -lX11, unlike the other
25524 # libraries we check for below, so use a different variable.
25525 # John Interrante, Karl Berry
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25527 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25528 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25529 $as_echo_n "(cached) " >&6
25531 ac_check_lib_save_LIBS=$LIBS
25532 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h. */
25536 /* Override any GCC internal prototype to avoid an error.
25537 Use char because int might match the return type of a GCC
25538 builtin and then its argument prototype would still apply. */
25542 char IceConnectionNumber ();
25546 return IceConnectionNumber ();
25551 if ac_fn_c_try_link "$LINENO"; then :
25552 ac_cv_lib_ICE_IceConnectionNumber=yes
25554 ac_cv_lib_ICE_IceConnectionNumber=no
25556 rm -f core conftest.err conftest.$ac_objext \
25557 conftest$ac_exeext conftest.$ac_ext
25558 LIBS=$ac_check_lib_save_LIBS
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25561 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25562 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25563 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25566 LDFLAGS=$ac_save_LDFLAGS
25604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25607 cat >>confdefs.h <<_ACEOF
25608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25616 $as_echo_n "checking for ANSI C header files... " >&6; }
25617 if ${ac_cv_header_stdc+:} false; then :
25618 $as_echo_n "(cached) " >&6
25620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* end confdefs.h. */
25622 #include <stdlib.h>
25623 #include <stdarg.h>
25624 #include <string.h>
25635 if ac_fn_c_try_compile "$LINENO"; then :
25636 ac_cv_header_stdc=yes
25638 ac_cv_header_stdc=no
25640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25642 if test $ac_cv_header_stdc = yes; then
25643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25645 /* end confdefs.h. */
25646 #include <string.h>
25649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25650 $EGREP "memchr" >/dev/null 2>&1; then :
25653 ac_cv_header_stdc=no
25659 if test $ac_cv_header_stdc = yes; then
25660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662 /* end confdefs.h. */
25663 #include <stdlib.h>
25666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25667 $EGREP "free" >/dev/null 2>&1; then :
25670 ac_cv_header_stdc=no
25676 if test $ac_cv_header_stdc = yes; then
25677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25678 if test "$cross_compiling" = yes; then :
25681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h. */
25684 #include <stdlib.h>
25685 #if ((' ' & 0x0FF) == 0x020)
25686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25689 # define ISLOWER(c) \
25690 (('a' <= (c) && (c) <= 'i') \
25691 || ('j' <= (c) && (c) <= 'r') \
25692 || ('s' <= (c) && (c) <= 'z'))
25693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25701 for (i = 0; i < 256; i++)
25702 if (XOR (islower (i), ISLOWER (i))
25703 || toupper (i) != TOUPPER (i))
25708 if ac_fn_c_try_run "$LINENO"; then :
25711 ac_cv_header_stdc=no
25713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25714 conftest.$ac_objext conftest.beam conftest.$ac_ext
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25720 $as_echo "$ac_cv_header_stdc" >&6; }
25721 if test $ac_cv_header_stdc = yes; then
25723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25728 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25729 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25730 $as_echo_n "(cached) " >&6
25732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25733 /* end confdefs.h. */
25734 #include <sys/types.h>
25738 return makedev(0, 0);
25743 if ac_fn_c_try_link "$LINENO"; then :
25744 ac_cv_header_sys_types_h_makedev=yes
25746 ac_cv_header_sys_types_h_makedev=no
25748 rm -f core conftest.err conftest.$ac_objext \
25749 conftest$ac_exeext conftest.$ac_ext
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25753 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25755 if test $ac_cv_header_sys_types_h_makedev = no; then
25756 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25757 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25759 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25765 if test $ac_cv_header_sys_mkdev_h = no; then
25766 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25767 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25769 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25777 ac_header_dirent=no
25778 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25779 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25781 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25782 if eval \${$as_ac_Header+:} false; then :
25783 $as_echo_n "(cached) " >&6
25785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h. */
25787 #include <sys/types.h>
25799 if ac_fn_c_try_compile "$LINENO"; then :
25800 eval "$as_ac_Header=yes"
25802 eval "$as_ac_Header=no"
25804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806 eval ac_res=\$$as_ac_Header
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25808 $as_echo "$ac_res" >&6; }
25809 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25810 cat >>confdefs.h <<_ACEOF
25811 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25814 ac_header_dirent=$ac_hdr; break
25818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25819 if test $ac_header_dirent = dirent.h; then
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25821 $as_echo_n "checking for library containing opendir... " >&6; }
25822 if ${ac_cv_search_opendir+:} false; then :
25823 $as_echo_n "(cached) " >&6
25825 ac_func_search_save_LIBS=$LIBS
25826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25827 /* end confdefs.h. */
25829 /* Override any GCC internal prototype to avoid an error.
25830 Use char because int might match the return type of a GCC
25831 builtin and then its argument prototype would still apply. */
25844 for ac_lib in '' dir; do
25845 if test -z "$ac_lib"; then
25846 ac_res="none required"
25849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25851 if ac_fn_c_try_link "$LINENO"; then :
25852 ac_cv_search_opendir=$ac_res
25854 rm -f core conftest.err conftest.$ac_objext \
25856 if ${ac_cv_search_opendir+:} false; then :
25860 if ${ac_cv_search_opendir+:} false; then :
25863 ac_cv_search_opendir=no
25865 rm conftest.$ac_ext
25866 LIBS=$ac_func_search_save_LIBS
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25869 $as_echo "$ac_cv_search_opendir" >&6; }
25870 ac_res=$ac_cv_search_opendir
25871 if test "$ac_res" != no; then :
25872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25878 $as_echo_n "checking for library containing opendir... " >&6; }
25879 if ${ac_cv_search_opendir+:} false; then :
25880 $as_echo_n "(cached) " >&6
25882 ac_func_search_save_LIBS=$LIBS
25883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25884 /* end confdefs.h. */
25886 /* Override any GCC internal prototype to avoid an error.
25887 Use char because int might match the return type of a GCC
25888 builtin and then its argument prototype would still apply. */
25901 for ac_lib in '' x; do
25902 if test -z "$ac_lib"; then
25903 ac_res="none required"
25906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25908 if ac_fn_c_try_link "$LINENO"; then :
25909 ac_cv_search_opendir=$ac_res
25911 rm -f core conftest.err conftest.$ac_objext \
25913 if ${ac_cv_search_opendir+:} false; then :
25917 if ${ac_cv_search_opendir+:} false; then :
25920 ac_cv_search_opendir=no
25922 rm conftest.$ac_ext
25923 LIBS=$ac_func_search_save_LIBS
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25926 $as_echo "$ac_cv_search_opendir" >&6; }
25927 ac_res=$ac_cv_search_opendir
25928 if test "$ac_res" != no; then :
25929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25936 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25937 if ${ac_cv_header_stat_broken+:} false; then :
25938 $as_echo_n "(cached) " >&6
25940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h. */
25942 #include <sys/types.h>
25943 #include <sys/stat.h>
25945 #if defined S_ISBLK && defined S_IFDIR
25946 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25949 #if defined S_ISBLK && defined S_IFCHR
25950 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25953 #if defined S_ISLNK && defined S_IFREG
25954 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25957 #if defined S_ISSOCK && defined S_IFREG
25958 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25962 if ac_fn_c_try_compile "$LINENO"; then :
25963 ac_cv_header_stat_broken=no
25965 ac_cv_header_stat_broken=yes
25967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25970 $as_echo "$ac_cv_header_stat_broken" >&6; }
25971 if test $ac_cv_header_stat_broken = yes; then
25973 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25978 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25979 if ${ac_cv_header_sys_wait_h+:} false; then :
25980 $as_echo_n "(cached) " >&6
25982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25983 /* end confdefs.h. */
25984 #include <sys/types.h>
25985 #include <sys/wait.h>
25986 #ifndef WEXITSTATUS
25987 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25990 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25998 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26003 if ac_fn_c_try_compile "$LINENO"; then :
26004 ac_cv_header_sys_wait_h=yes
26006 ac_cv_header_sys_wait_h=no
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26011 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26012 if test $ac_cv_header_sys_wait_h = yes; then
26014 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26019 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26020 if ${ac_cv_header_time+:} false; then :
26021 $as_echo_n "(cached) " >&6
26023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h. */
26025 #include <sys/types.h>
26026 #include <sys/time.h>
26032 if ((struct tm *) 0)
26038 if ac_fn_c_try_compile "$LINENO"; then :
26039 ac_cv_header_time=yes
26041 ac_cv_header_time=no
26043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26046 $as_echo "$ac_cv_header_time" >&6; }
26047 if test $ac_cv_header_time = yes; then
26049 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26053 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26054 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26056 cat >>confdefs.h <<_ACEOF
26057 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26061 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26066 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26067 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26069 cat >>confdefs.h <<_ACEOF
26070 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26074 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26077 case " $LIBOBJS " in
26078 *" fileblocks.$ac_objext "* ) ;;
26079 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26087 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26088 if ${ac_cv_struct_tm+:} false; then :
26089 $as_echo_n "(cached) " >&6
26091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092 /* end confdefs.h. */
26093 #include <sys/types.h>
26100 int *p = &tm.tm_sec;
26106 if ac_fn_c_try_compile "$LINENO"; then :
26107 ac_cv_struct_tm=time.h
26109 ac_cv_struct_tm=sys/time.h
26111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26114 $as_echo "$ac_cv_struct_tm" >&6; }
26115 if test $ac_cv_struct_tm = sys/time.h; then
26117 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26121 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26122 #include <$ac_cv_struct_tm>
26125 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26127 cat >>confdefs.h <<_ACEOF
26128 #define HAVE_STRUCT_TM_TM_ZONE 1
26134 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26136 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26139 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26141 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26147 cat >>confdefs.h <<_ACEOF
26148 #define HAVE_DECL_TZNAME $ac_have_decl
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26152 $as_echo_n "checking for tzname... " >&6; }
26153 if ${ac_cv_var_tzname+:} false; then :
26154 $as_echo_n "(cached) " >&6
26156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26157 /* end confdefs.h. */
26159 #if !HAVE_DECL_TZNAME
26160 extern char *tzname[];
26166 return tzname[0][0];
26171 if ac_fn_c_try_link "$LINENO"; then :
26172 ac_cv_var_tzname=yes
26174 ac_cv_var_tzname=no
26176 rm -f core conftest.err conftest.$ac_objext \
26177 conftest$ac_exeext conftest.$ac_ext
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26180 $as_echo "$ac_cv_var_tzname" >&6; }
26181 if test $ac_cv_var_tzname = yes; then
26183 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26190 $as_echo_n "checking for utime.h... " >&6; }
26191 if ${ba_cv_header_utime_h+:} false; then :
26192 $as_echo_n "(cached) " >&6
26195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h. */
26198 #include <sys/types.h>
26211 if ac_fn_c_try_compile "$LINENO"; then :
26213 ba_cv_header_utime_h=yes
26217 ba_cv_header_utime_h=no
26221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26226 $as_echo "$ba_cv_header_utime_h" >&6; }
26227 test $ba_cv_header_utime_h = yes &&
26228 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26232 $as_echo_n "checking for socklen_t... " >&6; }
26233 if ${ba_cv_header_socklen_t+:} false; then :
26234 $as_echo_n "(cached) " >&6
26237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h. */
26240 #include <sys/types.h>
26241 #include <sys/socket.h>
26253 if ac_fn_c_try_compile "$LINENO"; then :
26255 ba_cv_header_socklen_t=yes
26259 ba_cv_header_socklen_t=no
26263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26268 $as_echo "$ba_cv_header_socklen_t" >&6; }
26269 test $ba_cv_header_socklen_t = yes &&
26270 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26274 ac_cpp='$CXXCPP $CPPFLAGS'
26275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26280 $as_echo_n "checking for ioctl_req_t... " >&6; }
26281 if ${ba_cv_header_ioctl_req_t+:} false; then :
26282 $as_echo_n "(cached) " >&6
26285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286 /* end confdefs.h. */
26288 #include <unistd.h>
26289 #include <sys/types.h>
26290 #include <sys/ioctl.h>
26296 int (*d_ioctl)(int fd, unsigned long int request, ...);
26303 if ac_fn_cxx_try_compile "$LINENO"; then :
26305 ba_cv_header_ioctl_req_t=yes
26309 ba_cv_header_ioctl_req_t=no
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26318 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26319 test $ba_cv_header_ioctl_req_t = yes &&
26320 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26324 ac_cpp='$CPP $CPPFLAGS'
26325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26331 ac_cpp='$CXXCPP $CPPFLAGS'
26332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26337 $as_echo_n "checking for typeof... " >&6; }
26338 if ${ba_cv_have_typeof+:} false; then :
26339 $as_echo_n "(cached) " >&6
26342 if test "$cross_compiling" = yes; then :
26344 ba_cv_have_typeof=no
26348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349 /* end confdefs.h. */
26351 main(){char *a = 0; a = (typeof a)a;}
26354 if ac_fn_cxx_try_run "$LINENO"; then :
26356 ba_cv_have_typeof=yes
26360 ba_cv_have_typeof=no
26363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26364 conftest.$ac_objext conftest.beam conftest.$ac_ext
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26371 $as_echo "$ba_cv_have_typeof" >&6; }
26372 test $ba_cv_have_typeof = yes &&
26373 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26376 ac_cpp='$CPP $CPPFLAGS'
26377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26383 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26384 if ${ac_cv_c_const+:} false; then :
26385 $as_echo_n "(cached) " >&6
26387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h. */
26393 /* FIXME: Include the comments suggested by Paul. */
26394 #ifndef __cplusplus
26395 /* Ultrix mips cc rejects this. */
26396 typedef int charset[2];
26398 /* SunOS 4.1.1 cc rejects this. */
26399 char const *const *pcpcc;
26401 /* NEC SVR4.0.2 mips cc rejects this. */
26402 struct point {int x, y;};
26403 static struct point const zero = {0,0};
26404 /* AIX XL C 1.02.0.0 rejects this.
26405 It does not let you subtract one const X* pointer from another in
26406 an arm of an if-expression whose if-part is not a constant
26408 const char *g = "string";
26409 pcpcc = &g + (g ? g-g : 0);
26410 /* HPUX 7.0 cc rejects these. */
26412 ppc = (char**) pcpcc;
26413 pcpcc = (char const *const *) ppc;
26414 { /* SCO 3.2v4 cc rejects this. */
26416 char const *s = 0 ? (char *) 0 : (char const *) 0;
26421 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26422 int x[] = {25, 17};
26423 const int *foo = &x[0];
26426 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26427 typedef const int *iptr;
26431 { /* AIX XL C 1.02.0.0 rejects this saying
26432 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26433 struct s { int j; const int *ap[3]; };
26434 struct s *b; b->j = 5;
26436 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26437 const int foo = 10;
26438 if (!foo) return 0;
26440 return !cs[0] && !zero.x;
26447 if ac_fn_c_try_compile "$LINENO"; then :
26452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26455 $as_echo "$ac_cv_c_const" >&6; }
26456 if test $ac_cv_c_const = no; then
26458 $as_echo "#define const /**/" >>confdefs.h
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26464 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26465 if ${ac_cv_c_bigendian+:} false; then :
26466 $as_echo_n "(cached) " >&6
26468 ac_cv_c_bigendian=unknown
26469 # See if we're dealing with a universal compiler.
26470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26471 /* end confdefs.h. */
26472 #ifndef __APPLE_CC__
26473 not a universal capable compiler
26478 if ac_fn_c_try_compile "$LINENO"; then :
26480 # Check for potential -arch flags. It is not universal unless
26481 # there are at least two -arch flags with different values.
26484 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26485 if test -n "$ac_prev"; then
26487 i?86 | x86_64 | ppc | ppc64)
26488 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26491 ac_cv_c_bigendian=universal
26497 elif test "x$ac_word" = "x-arch"; then
26502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26503 if test $ac_cv_c_bigendian = unknown; then
26504 # See if sys/param.h defines the BYTE_ORDER macro.
26505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26506 /* end confdefs.h. */
26507 #include <sys/types.h>
26508 #include <sys/param.h>
26513 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26514 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26516 bogus endian macros
26523 if ac_fn_c_try_compile "$LINENO"; then :
26524 # It does; now see whether it defined to BIG_ENDIAN or not.
26525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26526 /* end confdefs.h. */
26527 #include <sys/types.h>
26528 #include <sys/param.h>
26533 #if BYTE_ORDER != BIG_ENDIAN
26541 if ac_fn_c_try_compile "$LINENO"; then :
26542 ac_cv_c_bigendian=yes
26544 ac_cv_c_bigendian=no
26546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 if test $ac_cv_c_bigendian = unknown; then
26551 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26553 /* end confdefs.h. */
26554 #include <limits.h>
26559 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26560 bogus endian macros
26567 if ac_fn_c_try_compile "$LINENO"; then :
26568 # It does; now see whether it defined to _BIG_ENDIAN or not.
26569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26570 /* end confdefs.h. */
26571 #include <limits.h>
26576 #ifndef _BIG_ENDIAN
26584 if ac_fn_c_try_compile "$LINENO"; then :
26585 ac_cv_c_bigendian=yes
26587 ac_cv_c_bigendian=no
26589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26593 if test $ac_cv_c_bigendian = unknown; then
26594 # Compile a test program.
26595 if test "$cross_compiling" = yes; then :
26596 # Try to guess by grepping values from an object file.
26597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26598 /* end confdefs.h. */
26599 short int ascii_mm[] =
26600 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26601 short int ascii_ii[] =
26602 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26603 int use_ascii (int i) {
26604 return ascii_mm[i] + ascii_ii[i];
26606 short int ebcdic_ii[] =
26607 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26608 short int ebcdic_mm[] =
26609 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26610 int use_ebcdic (int i) {
26611 return ebcdic_mm[i] + ebcdic_ii[i];
26618 return use_ascii (foo) == use_ebcdic (foo);
26623 if ac_fn_c_try_compile "$LINENO"; then :
26624 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26625 ac_cv_c_bigendian=yes
26627 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26628 if test "$ac_cv_c_bigendian" = unknown; then
26629 ac_cv_c_bigendian=no
26631 # finding both strings is unlikely to happen, but who knows?
26632 ac_cv_c_bigendian=unknown
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26639 /* end confdefs.h. */
26640 $ac_includes_default
26645 /* Are we little or big endian? From Harbison&Steele. */
26649 char c[sizeof (long int)];
26652 return u.c[sizeof (long int) - 1] == 1;
26658 if ac_fn_c_try_run "$LINENO"; then :
26659 ac_cv_c_bigendian=no
26661 ac_cv_c_bigendian=yes
26663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26664 conftest.$ac_objext conftest.beam conftest.$ac_ext
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26670 $as_echo "$ac_cv_c_bigendian" >&6; }
26671 case $ac_cv_c_bigendian in #(
26674 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26678 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26682 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26686 as_fn_error $? "unknown endianness
26687 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26692 $as_echo_n "checking how to get filesystem type... " >&6; }
26694 # The order of these tests is important.
26695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h. */
26698 #include <sys/statvfs.h>
26699 #include <sys/fstyp.h>
26702 if ac_fn_c_try_cpp "$LINENO"; then :
26703 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26707 rm -f conftest.err conftest.i conftest.$ac_ext
26708 if test $fstype = no; then
26709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26710 /* end confdefs.h. */
26712 #include <sys/statfs.h>
26713 #include <sys/fstyp.h>
26716 if ac_fn_c_try_cpp "$LINENO"; then :
26717 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26721 rm -f conftest.err conftest.i conftest.$ac_ext
26723 if test $fstype = no; then
26724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725 /* end confdefs.h. */
26727 #include <sys/statfs.h>
26728 #include <sys/vmount.h>
26731 if ac_fn_c_try_cpp "$LINENO"; then :
26732 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26736 rm -f conftest.err conftest.i conftest.$ac_ext
26738 if test $fstype = no; then
26739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h. */
26742 #include <mntent.h>
26745 if ac_fn_c_try_cpp "$LINENO"; then :
26746 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26750 rm -f conftest.err conftest.i conftest.$ac_ext
26752 if test $fstype = no; then
26753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26754 /* end confdefs.h. */
26755 #include <sys/mount.h>
26758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26759 $EGREP "f_type;" >/dev/null 2>&1; then :
26760 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26766 if test $fstype = no; then
26767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h. */
26770 #include <sys/mount.h>
26771 #include <sys/fs_types.h>
26774 if ac_fn_c_try_cpp "$LINENO"; then :
26775 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26779 rm -f conftest.err conftest.i conftest.$ac_ext
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26782 $as_echo "$fstype" >&6; }
26784 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26785 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26787 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26794 ac_cpp='$CXXCPP $CPPFLAGS'
26795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26799 for ac_func in backtrace
26801 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26802 if test "x$ac_cv_func_backtrace" = xyes; then :
26803 cat >>confdefs.h <<_ACEOF
26804 #define HAVE_BACKTRACE 1
26811 ac_cpp='$CPP $CPPFLAGS'
26812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26818 $as_echo_n "checking return type of signal handlers... " >&6; }
26819 if ${ac_cv_type_signal+:} false; then :
26820 $as_echo_n "(cached) " >&6
26822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26823 /* end confdefs.h. */
26824 #include <sys/types.h>
26825 #include <signal.h>
26830 return *(signal (0, 0)) (0) == 1;
26835 if ac_fn_c_try_compile "$LINENO"; then :
26836 ac_cv_type_signal=int
26838 ac_cv_type_signal=void
26840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26843 $as_echo "$ac_cv_type_signal" >&6; }
26845 cat >>confdefs.h <<_ACEOF
26846 #define RETSIGTYPE $ac_cv_type_signal
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26852 $as_echo_n "checking for type of signal functions... " >&6; }
26853 if ${bash_cv_signal_vintage+:} false; then :
26854 $as_echo_n "(cached) " >&6
26857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26858 /* end confdefs.h. */
26859 #include <signal.h>
26865 struct sigaction sa;
26866 sigemptyset(&ss); sigsuspend(&ss);
26867 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26868 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26874 if ac_fn_c_try_link "$LINENO"; then :
26875 bash_cv_signal_vintage="posix"
26878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h. */
26880 #include <signal.h>
26885 int mask = sigmask(SIGINT);
26886 sigsetmask(mask); sigblock(mask); sigpause(mask);
26892 if ac_fn_c_try_link "$LINENO"; then :
26893 bash_cv_signal_vintage="4.2bsd"
26896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26897 /* end confdefs.h. */
26899 #include <signal.h>
26900 RETSIGTYPE foo() { }
26905 int mask = sigmask(SIGINT);
26906 sigset(SIGINT, foo); sigrelse(SIGINT);
26907 sighold(SIGINT); sigpause(SIGINT);
26913 if ac_fn_c_try_link "$LINENO"; then :
26914 bash_cv_signal_vintage="svr3"
26916 bash_cv_signal_vintage="v7"
26919 rm -f core conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
26923 rm -f core conftest.err conftest.$ac_objext \
26924 conftest$ac_exeext conftest.$ac_ext
26927 rm -f core conftest.err conftest.$ac_objext \
26928 conftest$ac_exeext conftest.$ac_ext
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26933 $as_echo "$bash_cv_signal_vintage" >&6; }
26934 if test "$bash_cv_signal_vintage" = "posix"; then
26935 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26937 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26938 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26940 elif test "$bash_cv_signal_vintage" = "svr3"; then
26941 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26945 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26946 if test "x$ac_cv_type_mode_t" = xyes; then :
26950 cat >>confdefs.h <<_ACEOF
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26957 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26958 if ${ac_cv_type_uid_t+:} false; then :
26959 $as_echo_n "(cached) " >&6
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26963 #include <sys/types.h>
26966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26967 $EGREP "uid_t" >/dev/null 2>&1; then :
26968 ac_cv_type_uid_t=yes
26970 ac_cv_type_uid_t=no
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26976 $as_echo "$ac_cv_type_uid_t" >&6; }
26977 if test $ac_cv_type_uid_t = no; then
26979 $as_echo "#define uid_t int" >>confdefs.h
26982 $as_echo "#define gid_t int" >>confdefs.h
26986 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26987 if test "x$ac_cv_type_size_t" = xyes; then :
26991 cat >>confdefs.h <<_ACEOF
26992 #define size_t unsigned int
26997 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26998 if test "x$ac_cv_type_pid_t" = xyes; then :
27002 cat >>confdefs.h <<_ACEOF
27008 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27009 if test "x$ac_cv_type_off_t" = xyes; then :
27013 cat >>confdefs.h <<_ACEOF
27014 #define off_t long int
27020 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27021 if test "x$ac_cv_type_intptr_t" = xyes; then :
27023 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27026 for ac_type in 'int' 'long int' 'long long int'; do
27027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27028 /* end confdefs.h. */
27029 $ac_includes_default
27033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27040 if ac_fn_c_try_compile "$LINENO"; then :
27042 cat >>confdefs.h <<_ACEOF
27043 #define intptr_t $ac_type
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27049 test -z "$ac_type" && break
27055 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27056 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27058 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27061 for ac_type in 'unsigned int' 'unsigned long int' \
27062 'unsigned long long int'; do
27063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27064 /* end confdefs.h. */
27065 $ac_includes_default
27069 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27076 if ac_fn_c_try_compile "$LINENO"; then :
27078 cat >>confdefs.h <<_ACEOF
27079 #define uintptr_t $ac_type
27084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27085 test -z "$ac_type" && break
27090 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27091 if test "x$ac_cv_type_ino_t" = xyes; then :
27095 cat >>confdefs.h <<_ACEOF
27096 #define ino_t unsigned long
27101 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27102 if test "x$ac_cv_type_dev_t" = xyes; then :
27106 cat >>confdefs.h <<_ACEOF
27107 #define dev_t unsigned long
27112 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27113 if test "x$ac_cv_type_daddr_t" = xyes; then :
27117 cat >>confdefs.h <<_ACEOF
27118 #define daddr_t long
27123 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27124 if test "x$ac_cv_type_major_t" = xyes; then :
27128 cat >>confdefs.h <<_ACEOF
27129 #define major_t int
27134 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27135 if test "x$ac_cv_type_minor_t" = xyes; then :
27139 cat >>confdefs.h <<_ACEOF
27140 #define minor_t int
27145 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27146 if test "x$ac_cv_type_ssize_t" = xyes; then :
27150 cat >>confdefs.h <<_ACEOF
27151 #define ssize_t int
27156 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27157 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27159 cat >>confdefs.h <<_ACEOF
27160 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27164 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27167 case " $LIBOBJS " in
27168 *" fileblocks.$ac_objext "* ) ;;
27169 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27176 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27177 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27179 cat >>confdefs.h <<_ACEOF
27180 #define HAVE_STRUCT_STAT_ST_RDEV 1
27184 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27190 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27191 if ${ac_cv_struct_tm+:} false; then :
27192 $as_echo_n "(cached) " >&6
27194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h. */
27196 #include <sys/types.h>
27203 int *p = &tm.tm_sec;
27209 if ac_fn_c_try_compile "$LINENO"; then :
27210 ac_cv_struct_tm=time.h
27212 ac_cv_struct_tm=sys/time.h
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27217 $as_echo "$ac_cv_struct_tm" >&6; }
27218 if test $ac_cv_struct_tm = sys/time.h; then
27220 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27225 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27226 if ${ac_cv_c_const+:} false; then :
27227 $as_echo_n "(cached) " >&6
27229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230 /* end confdefs.h. */
27235 /* FIXME: Include the comments suggested by Paul. */
27236 #ifndef __cplusplus
27237 /* Ultrix mips cc rejects this. */
27238 typedef int charset[2];
27240 /* SunOS 4.1.1 cc rejects this. */
27241 char const *const *pcpcc;
27243 /* NEC SVR4.0.2 mips cc rejects this. */
27244 struct point {int x, y;};
27245 static struct point const zero = {0,0};
27246 /* AIX XL C 1.02.0.0 rejects this.
27247 It does not let you subtract one const X* pointer from another in
27248 an arm of an if-expression whose if-part is not a constant
27250 const char *g = "string";
27251 pcpcc = &g + (g ? g-g : 0);
27252 /* HPUX 7.0 cc rejects these. */
27254 ppc = (char**) pcpcc;
27255 pcpcc = (char const *const *) ppc;
27256 { /* SCO 3.2v4 cc rejects this. */
27258 char const *s = 0 ? (char *) 0 : (char const *) 0;
27263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27264 int x[] = {25, 17};
27265 const int *foo = &x[0];
27268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27269 typedef const int *iptr;
27273 { /* AIX XL C 1.02.0.0 rejects this saying
27274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27275 struct s { int j; const int *ap[3]; };
27276 struct s *b; b->j = 5;
27278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27279 const int foo = 10;
27280 if (!foo) return 0;
27282 return !cs[0] && !zero.x;
27289 if ac_fn_c_try_compile "$LINENO"; then :
27294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27297 $as_echo "$ac_cv_c_const" >&6; }
27298 if test $ac_cv_c_const = no; then
27300 $as_echo "#define const /**/" >>confdefs.h
27305 # The cast to long int works around a bug in the HP C Compiler
27306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27308 # This bug is HP SR number 8606223364.
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27310 $as_echo_n "checking size of char... " >&6; }
27311 if ${ac_cv_sizeof_char+:} false; then :
27312 $as_echo_n "(cached) " >&6
27314 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27317 if test "$ac_cv_type_char" = yes; then
27318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27320 as_fn_error 77 "cannot compute sizeof (char)
27321 See \`config.log' for more details" "$LINENO" 5; }
27323 ac_cv_sizeof_char=0
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27329 $as_echo "$ac_cv_sizeof_char" >&6; }
27333 cat >>confdefs.h <<_ACEOF
27334 #define SIZEOF_CHAR $ac_cv_sizeof_char
27338 # The cast to long int works around a bug in the HP C Compiler
27339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27341 # This bug is HP SR number 8606223364.
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27343 $as_echo_n "checking size of short int... " >&6; }
27344 if ${ac_cv_sizeof_short_int+:} false; then :
27345 $as_echo_n "(cached) " >&6
27347 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27350 if test "$ac_cv_type_short_int" = yes; then
27351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27353 as_fn_error 77 "cannot compute sizeof (short int)
27354 See \`config.log' for more details" "$LINENO" 5; }
27356 ac_cv_sizeof_short_int=0
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27362 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27366 cat >>confdefs.h <<_ACEOF
27367 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27371 # The cast to long int works around a bug in the HP C Compiler
27372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27374 # This bug is HP SR number 8606223364.
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27376 $as_echo_n "checking size of int... " >&6; }
27377 if ${ac_cv_sizeof_int+:} false; then :
27378 $as_echo_n "(cached) " >&6
27380 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27383 if test "$ac_cv_type_int" = yes; then
27384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27386 as_fn_error 77 "cannot compute sizeof (int)
27387 See \`config.log' for more details" "$LINENO" 5; }
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27395 $as_echo "$ac_cv_sizeof_int" >&6; }
27399 cat >>confdefs.h <<_ACEOF
27400 #define SIZEOF_INT $ac_cv_sizeof_int
27404 # The cast to long int works around a bug in the HP C Compiler
27405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27407 # This bug is HP SR number 8606223364.
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27409 $as_echo_n "checking size of long int... " >&6; }
27410 if ${ac_cv_sizeof_long_int+:} false; then :
27411 $as_echo_n "(cached) " >&6
27413 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27416 if test "$ac_cv_type_long_int" = yes; then
27417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27419 as_fn_error 77 "cannot compute sizeof (long int)
27420 See \`config.log' for more details" "$LINENO" 5; }
27422 ac_cv_sizeof_long_int=0
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27428 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27432 cat >>confdefs.h <<_ACEOF
27433 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27437 # The cast to long int works around a bug in the HP C Compiler
27438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27440 # This bug is HP SR number 8606223364.
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27442 $as_echo_n "checking size of long long int... " >&6; }
27443 if ${ac_cv_sizeof_long_long_int+:} false; then :
27444 $as_echo_n "(cached) " >&6
27446 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27449 if test "$ac_cv_type_long_long_int" = yes; then
27450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27452 as_fn_error 77 "cannot compute sizeof (long long int)
27453 See \`config.log' for more details" "$LINENO" 5; }
27455 ac_cv_sizeof_long_long_int=0
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27461 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27465 cat >>confdefs.h <<_ACEOF
27466 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27470 # The cast to long int works around a bug in the HP C Compiler
27471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27473 # This bug is HP SR number 8606223364.
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27475 $as_echo_n "checking size of int *... " >&6; }
27476 if ${ac_cv_sizeof_int_p+:} false; then :
27477 $as_echo_n "(cached) " >&6
27479 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27482 if test "$ac_cv_type_int_p" = yes; then
27483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27485 as_fn_error 77 "cannot compute sizeof (int *)
27486 See \`config.log' for more details" "$LINENO" 5; }
27488 ac_cv_sizeof_int_p=0
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27494 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27498 cat >>confdefs.h <<_ACEOF
27499 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27505 $as_echo_n "checking for u_int type... " >&6; }
27506 if ${ac_cv_have_u_int+:} false; then :
27507 $as_echo_n "(cached) " >&6
27510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h. */
27513 #include <sys/types.h>
27525 if ac_fn_c_try_compile "$LINENO"; then :
27527 ac_cv_have_u_int="yes"
27531 ac_cv_have_u_int="no"
27535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27540 $as_echo "$ac_cv_have_u_int" >&6; }
27541 if test "x$ac_cv_have_u_int" = "xyes" ; then
27542 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27548 $as_echo_n "checking for intmax_t type... " >&6; }
27549 if ${ac_cv_have_intmax_t+:} false; then :
27550 $as_echo_n "(cached) " >&6
27553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h. */
27556 #include <sys/types.h>
27568 if ac_fn_c_try_compile "$LINENO"; then :
27570 ac_cv_have_intmax_t="yes"
27574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27575 /* end confdefs.h. */
27577 #include <stdint.h>
27589 if ac_fn_c_try_compile "$LINENO"; then :
27591 ac_cv_have_intmax_t="yes"
27595 ac_cv_have_intmax_t="no"
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27608 $as_echo "$ac_cv_have_intmax_t" >&6; }
27609 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27610 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27616 $as_echo_n "checking for u_intmax_t type... " >&6; }
27617 if ${ac_cv_have_u_intmax_t+:} false; then :
27618 $as_echo_n "(cached) " >&6
27621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622 /* end confdefs.h. */
27624 #include <sys/types.h>
27630 u_intmax_t a; a = 1;
27636 if ac_fn_c_try_compile "$LINENO"; then :
27638 ac_cv_have_u_intmax_t="yes"
27642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27643 /* end confdefs.h. */
27645 #include <stdint.h>
27651 u_intmax_t a; a = 1;
27657 if ac_fn_c_try_compile "$LINENO"; then :
27659 ac_cv_have_u_intmax_t="yes"
27663 ac_cv_have_u_intmax_t="no"
27667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27676 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27677 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27678 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27684 $as_echo_n "checking for intXX_t types... " >&6; }
27685 if ${ac_cv_have_intxx_t+:} false; then :
27686 $as_echo_n "(cached) " >&6
27689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690 /* end confdefs.h. */
27692 #include <sys/types.h>
27698 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27704 if ac_fn_c_try_compile "$LINENO"; then :
27706 ac_cv_have_intxx_t="yes"
27710 ac_cv_have_intxx_t="no"
27714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27719 $as_echo "$ac_cv_have_intxx_t" >&6; }
27720 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27721 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27727 $as_echo_n "checking for int64_t type... " >&6; }
27728 if ${ac_cv_have_int64_t+:} false; then :
27729 $as_echo_n "(cached) " >&6
27732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27733 /* end confdefs.h. */
27735 #include <sys/types.h>
27747 if ac_fn_c_try_compile "$LINENO"; then :
27749 ac_cv_have_int64_t="yes"
27753 ac_cv_have_int64_t="no"
27757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27762 $as_echo "$ac_cv_have_int64_t" >&6; }
27763 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27764 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27770 $as_echo_n "checking for u_intXX_t types... " >&6; }
27771 if ${ac_cv_have_u_intxx_t+:} false; then :
27772 $as_echo_n "(cached) " >&6
27775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27776 /* end confdefs.h. */
27778 #include <sys/types.h>
27784 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27790 if ac_fn_c_try_compile "$LINENO"; then :
27792 ac_cv_have_u_intxx_t="yes"
27796 ac_cv_have_u_intxx_t="no"
27800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27805 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27806 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27807 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27813 $as_echo_n "checking for u_int64_t types... " >&6; }
27814 if ${ac_cv_have_u_int64_t+:} false; then :
27815 $as_echo_n "(cached) " >&6
27818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819 /* end confdefs.h. */
27821 #include <sys/types.h>
27827 u_int64_t a; a = 1;
27833 if ac_fn_c_try_compile "$LINENO"; then :
27835 ac_cv_have_u_int64_t="yes"
27839 ac_cv_have_u_int64_t="no"
27843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27848 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27849 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27850 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27855 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27856 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27859 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27861 /* end confdefs.h. */
27863 #include <sys/bitypes.h>
27869 int8_t a; int16_t b; int32_t c;
27870 u_int8_t e; u_int16_t f; u_int32_t g;
27871 a = b = c = e = f = g = 1;
27877 if ac_fn_c_try_compile "$LINENO"; then :
27879 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27881 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27883 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27886 $as_echo "yes" >&6; }
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27891 $as_echo "no" >&6; }
27895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27898 if test -z "$have_u_intxx_t" ; then
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27900 $as_echo_n "checking for uintXX_t types... " >&6; }
27901 if ${ac_cv_have_uintxx_t+:} false; then :
27902 $as_echo_n "(cached) " >&6
27905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27906 /* end confdefs.h. */
27908 #include <sys/types.h>
27914 uint8_t a; uint16_t b;
27915 uint32_t c; a = b = c = 1;
27921 if ac_fn_c_try_compile "$LINENO"; then :
27923 ac_cv_have_uintxx_t="yes"
27927 ac_cv_have_uintxx_t="no"
27931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27936 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27937 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27938 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27943 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27944 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27947 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27949 /* end confdefs.h. */
27951 #include <sys/bitypes.h>
27957 int64_t a; u_int64_t b;
27964 if ac_fn_c_try_compile "$LINENO"; then :
27966 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27968 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27971 $as_echo "yes" >&6; }
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27976 $as_echo "no" >&6; }
27980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 if (test -z "$have_uintxx_t" && \
27984 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27987 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27989 /* end confdefs.h. */
27991 #include <sys/bitypes.h>
27997 uint8_t a; uint16_t b;
27998 uint32_t c; a = b = c = 1;
28004 if ac_fn_c_try_compile "$LINENO"; then :
28006 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28009 $as_echo "yes" >&6; }
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28014 $as_echo "no" >&6; }
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28040 cat >>confdefs.h <<_ACEOF
28041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28045 echo 'configure: cannot find needed function.'; exit 1
28051 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28054 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28056 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28061 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28062 if test "x$ac_cv_func_closefrom" = xyes; then :
28064 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28068 for ac_func in getpagesize
28070 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28071 if test "x$ac_cv_func_getpagesize" = xyes; then :
28072 cat >>confdefs.h <<_ACEOF
28073 #define HAVE_GETPAGESIZE 1
28076 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28081 for ac_func in malloc_trim
28083 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28084 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28085 cat >>confdefs.h <<_ACEOF
28086 #define HAVE_MALLOC_TRIM 1
28089 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28095 for ac_func in fchdir
28097 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28098 if test "x$ac_cv_func_fchdir" = xyes; then :
28099 cat >>confdefs.h <<_ACEOF
28100 #define HAVE_FCHDIR 1
28102 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28107 for ac_func in strtoll
28109 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28110 if test "x$ac_cv_func_strtoll" = xyes; then :
28111 cat >>confdefs.h <<_ACEOF
28112 #define HAVE_STRTOLL 1
28114 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28119 for ac_func in posix_fadvise
28121 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28122 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28123 cat >>confdefs.h <<_ACEOF
28124 #define HAVE_POSIX_FADVISE 1
28130 for ac_func in fdatasync
28132 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28133 if test "x$ac_cv_func_fdatasync" = xyes; then :
28134 cat >>confdefs.h <<_ACEOF
28135 #define HAVE_FDATASYNC 1
28142 for ac_func in chflags
28144 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28145 if test "x$ac_cv_func_chflags" = xyes; then :
28146 cat >>confdefs.h <<_ACEOF
28147 #define HAVE_CHFLAGS 1
28154 for ac_func in snprintf vsnprintf gethostid fseeko
28156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28159 cat >>confdefs.h <<_ACEOF
28160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28168 $as_echo_n "checking for va_copy... " >&6; }
28169 if ${ba_cv_va_copy+:} false; then :
28170 $as_echo_n "(cached) " >&6
28173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28174 /* end confdefs.h. */
28176 #include <stdarg.h>
28177 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28178 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28184 call_use_va_copy(1,2,3)
28190 if ac_fn_c_try_link "$LINENO"; then :
28200 rm -f core conftest.err conftest.$ac_objext \
28201 conftest$ac_exeext conftest.$ac_ext
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28206 $as_echo "$ba_cv_va_copy" >&6; }
28207 test $ba_cv_va_copy = yes &&
28208 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28211 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28216 cat >>confdefs.h <<_ACEOF
28217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28224 # If resolver functions are not in libc check for -lnsl or -lresolv.
28225 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28226 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28228 $as_echo "using libc's resolver" >&6; }
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28231 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28232 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28233 $as_echo_n "(cached) " >&6
28235 ac_check_lib_save_LIBS=$LIBS
28237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28238 /* end confdefs.h. */
28240 /* Override any GCC internal prototype to avoid an error.
28241 Use char because int might match the return type of a GCC
28242 builtin and then its argument prototype would still apply. */
28246 char gethostbyname_r ();
28250 return gethostbyname_r ();
28255 if ac_fn_c_try_link "$LINENO"; then :
28256 ac_cv_lib_nsl_gethostbyname_r=yes
28258 ac_cv_lib_nsl_gethostbyname_r=no
28260 rm -f core conftest.err conftest.$ac_objext \
28261 conftest$ac_exeext conftest.$ac_ext
28262 LIBS=$ac_check_lib_save_LIBS
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28265 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28266 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28267 cat >>confdefs.h <<_ACEOF
28268 #define HAVE_LIBNSL 1
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28276 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28277 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28278 $as_echo_n "(cached) " >&6
28280 ac_check_lib_save_LIBS=$LIBS
28281 LIBS="-lresolv $LIBS"
28282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28283 /* end confdefs.h. */
28285 /* Override any GCC internal prototype to avoid an error.
28286 Use char because int might match the return type of a GCC
28287 builtin and then its argument prototype would still apply. */
28291 char gethostbyname_r ();
28295 return gethostbyname_r ();
28300 if ac_fn_c_try_link "$LINENO"; then :
28301 ac_cv_lib_resolv_gethostbyname_r=yes
28303 ac_cv_lib_resolv_gethostbyname_r=no
28305 rm -f core conftest.err conftest.$ac_objext \
28306 conftest$ac_exeext conftest.$ac_ext
28307 LIBS=$ac_check_lib_save_LIBS
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28310 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28311 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28312 cat >>confdefs.h <<_ACEOF
28313 #define HAVE_LIBRESOLV 1
28316 LIBS="-lresolv $LIBS"
28323 for ac_func in inet_pton
28325 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28326 if test "x$ac_cv_func_inet_pton" = xyes; then :
28327 cat >>confdefs.h <<_ACEOF
28328 #define HAVE_INET_PTON 1
28330 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28335 for ac_func in inet_ntop
28337 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28338 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28339 cat >>confdefs.h <<_ACEOF
28340 #define HAVE_INET_NTOP 1
28342 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28347 for ac_func in gethostbyname2
28349 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28350 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28351 cat >>confdefs.h <<_ACEOF
28352 #define HAVE_GETHOSTBYNAME2 1
28354 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28359 for ac_func in getnameinfo
28361 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28362 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28363 cat >>confdefs.h <<_ACEOF
28364 #define HAVE_GETNAMEINFO 1
28366 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28374 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28375 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28376 $as_echo_n "(cached) " >&6
28379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28380 /* end confdefs.h. */
28382 #include <sys/socket.h>
28388 struct sockaddr s; s.sa_len;
28394 if ac_fn_c_try_compile "$LINENO"; then :
28396 ac_cv_struct_sockaddr_sa_len=yes
28399 ac_cv_struct_sockaddr_sa_len=no
28403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28408 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28410 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28412 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28417 $as_echo_n "checking for working getaddrinfo... " >&6; }
28418 if ${ac_cv_working_getaddrinfo+:} false; then :
28419 $as_echo_n "(cached) " >&6
28422 if test "$cross_compiling" = yes; then :
28424 ac_cv_working_getaddrinfo="yes"
28428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28429 /* end confdefs.h. */
28432 #include <string.h>
28433 #include <sys/types.h>
28434 #include <sys/socket.h>
28437 struct addrinfo hints, *ai;
28440 memset(&hints, 0, sizeof(hints));
28441 hints.ai_family = AF_UNSPEC;
28442 hints.ai_socktype = SOCK_STREAM;
28443 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28447 if (ai->ai_addr->sa_family != AF_INET) {
28454 if ac_fn_c_try_run "$LINENO"; then :
28456 ac_cv_working_getaddrinfo="yes"
28460 ac_cv_working_getaddrinfo="no"
28463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28464 conftest.$ac_objext conftest.beam conftest.$ac_ext
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28471 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28472 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28473 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28475 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28480 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28481 if test "$ac_cv_func_gai_strerror" != "yes"; then
28482 ac_cv_working_getaddrinfo="no"
28485 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28490 for ac_func in strftime
28492 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28493 if test "x$ac_cv_func_strftime" = xyes; then :
28494 cat >>confdefs.h <<_ACEOF
28495 #define HAVE_STRFTIME 1
28499 # strftime is in -lintl on SCO UNIX.
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28501 $as_echo_n "checking for strftime in -lintl... " >&6; }
28502 if ${ac_cv_lib_intl_strftime+:} false; then :
28503 $as_echo_n "(cached) " >&6
28505 ac_check_lib_save_LIBS=$LIBS
28506 LIBS="-lintl $LIBS"
28507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28508 /* end confdefs.h. */
28510 /* Override any GCC internal prototype to avoid an error.
28511 Use char because int might match the return type of a GCC
28512 builtin and then its argument prototype would still apply. */
28520 return strftime ();
28525 if ac_fn_c_try_link "$LINENO"; then :
28526 ac_cv_lib_intl_strftime=yes
28528 ac_cv_lib_intl_strftime=no
28530 rm -f core conftest.err conftest.$ac_objext \
28531 conftest$ac_exeext conftest.$ac_ext
28532 LIBS=$ac_check_lib_save_LIBS
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28535 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28536 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28537 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28539 LIBS="-lintl $LIBS"
28545 for ac_func in vprintf
28547 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28548 if test "x$ac_cv_func_vprintf" = xyes; then :
28549 cat >>confdefs.h <<_ACEOF
28550 #define HAVE_VPRINTF 1
28553 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28554 if test "x$ac_cv_func__doprnt" = xyes; then :
28556 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28564 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28565 # for constant arguments. Useless!
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28567 $as_echo_n "checking for working alloca.h... " >&6; }
28568 if ${ac_cv_working_alloca_h+:} false; then :
28569 $as_echo_n "(cached) " >&6
28571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28572 /* end confdefs.h. */
28573 #include <alloca.h>
28577 char *p = (char *) alloca (2 * sizeof (int));
28583 if ac_fn_c_try_link "$LINENO"; then :
28584 ac_cv_working_alloca_h=yes
28586 ac_cv_working_alloca_h=no
28588 rm -f core conftest.err conftest.$ac_objext \
28589 conftest$ac_exeext conftest.$ac_ext
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28592 $as_echo "$ac_cv_working_alloca_h" >&6; }
28593 if test $ac_cv_working_alloca_h = yes; then
28595 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28600 $as_echo_n "checking for alloca... " >&6; }
28601 if ${ac_cv_func_alloca_works+:} false; then :
28602 $as_echo_n "(cached) " >&6
28604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28605 /* end confdefs.h. */
28607 # define alloca __builtin_alloca
28610 # include <malloc.h>
28611 # define alloca _alloca
28613 # ifdef HAVE_ALLOCA_H
28614 # include <alloca.h>
28619 # ifndef alloca /* predefined by HP cc +Olibcalls */
28620 void *alloca (size_t);
28630 char *p = (char *) alloca (1);
28636 if ac_fn_c_try_link "$LINENO"; then :
28637 ac_cv_func_alloca_works=yes
28639 ac_cv_func_alloca_works=no
28641 rm -f core conftest.err conftest.$ac_objext \
28642 conftest$ac_exeext conftest.$ac_ext
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28645 $as_echo "$ac_cv_func_alloca_works" >&6; }
28647 if test $ac_cv_func_alloca_works = yes; then
28649 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28652 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28653 # that cause trouble. Some versions do not even contain alloca or
28654 # contain a buggy version. If you still want to use their alloca,
28655 # use ar to extract alloca.o from them instead of compiling alloca.c.
28657 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28659 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28663 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28664 if ${ac_cv_os_cray+:} false; then :
28665 $as_echo_n "(cached) " >&6
28667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28668 /* end confdefs.h. */
28669 #if defined CRAY && ! defined CRAY2
28676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28677 $EGREP "webecray" >/dev/null 2>&1; then :
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28686 $as_echo "$ac_cv_os_cray" >&6; }
28687 if test $ac_cv_os_cray = yes; then
28688 for ac_func in _getb67 GETB67 getb67; do
28689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28691 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28693 cat >>confdefs.h <<_ACEOF
28694 #define CRAY_STACKSEG_END $ac_func
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28704 $as_echo_n "checking stack direction for C alloca... " >&6; }
28705 if ${ac_cv_c_stack_direction+:} false; then :
28706 $as_echo_n "(cached) " >&6
28708 if test "$cross_compiling" = yes; then :
28709 ac_cv_c_stack_direction=0
28711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28712 /* end confdefs.h. */
28713 $ac_includes_default
28715 find_stack_direction ()
28717 static char *addr = 0;
28722 return find_stack_direction ();
28725 return (&dummy > addr) ? 1 : -1;
28731 return find_stack_direction () < 0;
28734 if ac_fn_c_try_run "$LINENO"; then :
28735 ac_cv_c_stack_direction=1
28737 ac_cv_c_stack_direction=-1
28739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28740 conftest.$ac_objext conftest.beam conftest.$ac_ext
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28745 $as_echo "$ac_cv_c_stack_direction" >&6; }
28746 cat >>confdefs.h <<_ACEOF
28747 #define STACK_DIRECTION $ac_cv_c_stack_direction
28753 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28754 # -lseq on Dynix/PTX, -lgen on Unixware.
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28756 $as_echo_n "checking for library containing getmntent... " >&6; }
28757 if ${ac_cv_search_getmntent+:} false; then :
28758 $as_echo_n "(cached) " >&6
28760 ac_func_search_save_LIBS=$LIBS
28761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28762 /* end confdefs.h. */
28764 /* Override any GCC internal prototype to avoid an error.
28765 Use char because int might match the return type of a GCC
28766 builtin and then its argument prototype would still apply. */
28774 return getmntent ();
28779 for ac_lib in '' sun seq gen; do
28780 if test -z "$ac_lib"; then
28781 ac_res="none required"
28784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28786 if ac_fn_c_try_link "$LINENO"; then :
28787 ac_cv_search_getmntent=$ac_res
28789 rm -f core conftest.err conftest.$ac_objext \
28791 if ${ac_cv_search_getmntent+:} false; then :
28795 if ${ac_cv_search_getmntent+:} false; then :
28798 ac_cv_search_getmntent=no
28800 rm conftest.$ac_ext
28801 LIBS=$ac_func_search_save_LIBS
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28804 $as_echo "$ac_cv_search_getmntent" >&6; }
28805 ac_res=$ac_cv_search_getmntent
28806 if test "$ac_res" != no; then :
28807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28808 ac_cv_func_getmntent=yes
28810 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28813 ac_cv_func_getmntent=no
28817 for ac_func in getmntinfo
28819 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28820 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28821 cat >>confdefs.h <<_ACEOF
28822 #define HAVE_GETMNTINFO 1
28824 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28830 $as_echo_n "checking whether closedir returns void... " >&6; }
28831 if ${ac_cv_func_closedir_void+:} false; then :
28832 $as_echo_n "(cached) " >&6
28834 if test "$cross_compiling" = yes; then :
28835 ac_cv_func_closedir_void=yes
28837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28838 /* end confdefs.h. */
28839 $ac_includes_default
28840 #include <$ac_header_dirent>
28841 #ifndef __cplusplus
28848 return closedir (opendir (".")) != 0;
28853 if ac_fn_c_try_run "$LINENO"; then :
28854 ac_cv_func_closedir_void=no
28856 ac_cv_func_closedir_void=yes
28858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28859 conftest.$ac_objext conftest.beam conftest.$ac_ext
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28864 $as_echo "$ac_cv_func_closedir_void" >&6; }
28865 if test $ac_cv_func_closedir_void = yes; then
28867 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28872 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28873 if ${ac_cv_func_setpgrp_void+:} false; then :
28874 $as_echo_n "(cached) " >&6
28876 if test "$cross_compiling" = yes; then :
28877 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h. */
28881 $ac_includes_default
28885 /* If this system has a BSD-style setpgrp which takes arguments,
28886 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28887 exit successfully. */
28888 return setpgrp (1,1) != -1;
28893 if ac_fn_c_try_run "$LINENO"; then :
28894 ac_cv_func_setpgrp_void=no
28896 ac_cv_func_setpgrp_void=yes
28898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28899 conftest.$ac_objext conftest.beam conftest.$ac_ext
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28904 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28905 if test $ac_cv_func_setpgrp_void = yes; then
28907 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28910 # AC_FUNC_FNMATCH dnl use local version
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28913 $as_echo_n "checking for gettext in -lintl... " >&6; }
28914 if ${ac_cv_lib_intl_gettext+:} false; then :
28915 $as_echo_n "(cached) " >&6
28917 ac_check_lib_save_LIBS=$LIBS
28918 LIBS="-lintl $LIBS"
28919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28920 /* end confdefs.h. */
28922 /* Override any GCC internal prototype to avoid an error.
28923 Use char because int might match the return type of a GCC
28924 builtin and then its argument prototype would still apply. */
28937 if ac_fn_c_try_link "$LINENO"; then :
28938 ac_cv_lib_intl_gettext=yes
28940 ac_cv_lib_intl_gettext=no
28942 rm -f core conftest.err conftest.$ac_objext \
28943 conftest$ac_exeext conftest.$ac_ext
28944 LIBS=$ac_check_lib_save_LIBS
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28947 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28948 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28949 LIBS="$LIBS -lintl"
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28954 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28955 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28956 $as_echo_n "(cached) " >&6
28958 ac_check_lib_save_LIBS=$LIBS
28960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28961 /* end confdefs.h. */
28963 /* Override any GCC internal prototype to avoid an error.
28964 Use char because int might match the return type of a GCC
28965 builtin and then its argument prototype would still apply. */
28973 return getpwnam ();
28978 if ac_fn_c_try_link "$LINENO"; then :
28979 ac_cv_lib_sun_getpwnam=yes
28981 ac_cv_lib_sun_getpwnam=no
28983 rm -f core conftest.err conftest.$ac_objext \
28984 conftest$ac_exeext conftest.$ac_ext
28985 LIBS=$ac_check_lib_save_LIBS
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28988 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28989 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28990 cat >>confdefs.h <<_ACEOF
28991 #define HAVE_LIBSUN 1
28999 for ac_header in zlib.h
29001 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29002 if test "x$ac_cv_header_zlib_h" = xyes; then :
29003 cat >>confdefs.h <<_ACEOF
29004 #define HAVE_ZLIB_H 1
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29012 $as_echo_n "checking for deflate in -lz... " >&6; }
29013 if ${ac_cv_lib_z_deflate+:} false; then :
29014 $as_echo_n "(cached) " >&6
29016 ac_check_lib_save_LIBS=$LIBS
29018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29019 /* end confdefs.h. */
29021 /* Override any GCC internal prototype to avoid an error.
29022 Use char because int might match the return type of a GCC
29023 builtin and then its argument prototype would still apply. */
29036 if ac_fn_c_try_link "$LINENO"; then :
29037 ac_cv_lib_z_deflate=yes
29039 ac_cv_lib_z_deflate=no
29041 rm -f core conftest.err conftest.$ac_objext \
29042 conftest$ac_exeext conftest.$ac_ext
29043 LIBS=$ac_check_lib_save_LIBS
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29046 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29047 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29052 if test x$ZLIBS = x-lz; then
29053 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29062 # Check whether --enable-afs was given.
29063 if test "${enable_afs+set}" = set; then :
29064 enableval=$enable_afs;
29065 if test x$enableval = xyes; then
29067 elif test x$enableval = xno; then
29076 if test x$support_afs = xyes -o x$support_afs = xauto; then
29078 # Check whether --with-afsdir was given.
29079 if test "${with_afsdir+set}" = set; then :
29080 withval=$with_afsdir; with_afsdir=$withval
29085 if test x$with_afsdir = x; then
29086 for root in /usr /usr/local; do
29087 if test -d ${root}/include/afs/ ; then
29088 with_afsdir=${root}
29091 if test -d ${root}/include/openafs/afs/ ; then
29092 with_afsdir=${root}
29098 if test -d ${with_afsdir}/include/afs/ ; then
29099 AFS_CFLAGS="-I${with_afsdir}/include"
29101 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29102 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29106 saved_CFLAGS="${CFLAGS}"
29107 saved_CPPFLAGS="${CPPFLAGS}"
29108 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29109 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29111 for ac_header in afs/afsint.h
29113 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29114 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29115 cat >>confdefs.h <<_ACEOF
29116 #define HAVE_AFS_AFSINT_H 1
29123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29124 /* end confdefs.h. */
29126 #include <afs/afsint.h>
29127 #include <afs/venus.h>
29130 if ac_fn_c_try_cpp "$LINENO"; then :
29132 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29136 rm -f conftest.err conftest.i conftest.$ac_ext
29138 CFLAGS="${saved_CFLAGS}"
29139 CPPFLAGS="${saved_CPPFLAGS}"
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29142 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29143 for dir in ${with_afsdir}/lib \
29144 ${with_afsdir}/lib/afs \
29145 ${with_afsdir}/lib/openafs \
29146 ${with_afsdir}/lib64 \
29147 ${with_afsdir}/lib64/afs \
29148 ${with_afsdir}/lib64/openafs
29150 for arch_type in .a .so
29152 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29154 if test $pkg = 0; then
29156 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29162 if test $have_afs = yes; then
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29164 $as_echo "yes" >&6; }
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29167 $as_echo "no" >&6; }
29170 if test x$support_afs = xyes -a $have_afs != yes; then
29171 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29172 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29174 if test $have_afs = yes; then
29176 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29179 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29188 # Check whether --enable-lzo was given.
29189 if test "${enable_lzo+set}" = set; then :
29190 enableval=$enable_lzo;
29191 if test x$enableval = xno; then
29204 if test x$support_lzo = xyes; then
29206 # Check whether --with-lzo was given.
29207 if test "${with_lzo+set}" = set; then :
29209 case "$with_lzo" in
29214 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29215 LZO_INC="-I${with_lzo}/include"
29216 LZO_LDFLAGS="-L${with_lzo}/lib"
29217 with_lzo="${with_lzo}/include"
29219 with_lzo="/usr/include"
29222 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29223 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29227 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29229 LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29235 echo "lzoconf.h not found. lzo turned off ..."
29247 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29248 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29250 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29251 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29254 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29255 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29256 $as_echo_n "(cached) " >&6
29258 ac_check_lib_save_LIBS=$LIBS
29259 LIBS="-llzo2 $LIBS"
29260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29261 /* end confdefs.h. */
29263 /* Override any GCC internal prototype to avoid an error.
29264 Use char because int might match the return type of a GCC
29265 builtin and then its argument prototype would still apply. */
29269 char lzo1x_1_compress ();
29273 return lzo1x_1_compress ();
29278 if ac_fn_c_try_link "$LINENO"; then :
29279 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29281 ac_cv_lib_lzo2_lzo1x_1_compress=no
29283 rm -f core conftest.err conftest.$ac_objext \
29284 conftest$ac_exeext conftest.$ac_ext
29285 LIBS=$ac_check_lib_save_LIBS
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29288 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29289 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29293 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29317 # Check whether --enable-acl was given.
29318 if test "${enable_acl+set}" = set; then :
29319 enableval=$enable_acl;
29320 if test x$enableval = xyes; then
29322 elif test x$enableval = xno; then
29331 have_extended_acl=no
29332 if test x$support_acl = xyes -o x$support_acl = xauto; then
29333 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29334 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29336 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29342 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29343 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29351 if test $have_acl = no; then
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29353 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29354 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29355 $as_echo_n "(cached) " >&6
29357 ac_check_lib_save_LIBS=$LIBS
29359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360 /* end confdefs.h. */
29362 /* Override any GCC internal prototype to avoid an error.
29363 Use char because int might match the return type of a GCC
29364 builtin and then its argument prototype would still apply. */
29368 char acl_get_file ();
29372 return acl_get_file ();
29377 if ac_fn_c_try_link "$LINENO"; then :
29378 ac_cv_lib_acl_acl_get_file=yes
29380 ac_cv_lib_acl_acl_get_file=no
29382 rm -f core conftest.err conftest.$ac_objext \
29383 conftest$ac_exeext conftest.$ac_ext
29384 LIBS=$ac_check_lib_save_LIBS
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29387 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29388 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29391 if test $have_afs = yes; then
29392 if test -d /usr/lib64/; then
29393 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29395 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29398 FDLIBS="-lacl $FDLIBS"
29406 if test $have_acl = no -a \
29407 x${HAVE_OSF1_OS_TRUE} = x; then
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29409 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29410 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29411 $as_echo_n "(cached) " >&6
29413 ac_check_lib_save_LIBS=$LIBS
29414 LIBS="-lpacl $LIBS"
29415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29416 /* end confdefs.h. */
29418 /* Override any GCC internal prototype to avoid an error.
29419 Use char because int might match the return type of a GCC
29420 builtin and then its argument prototype would still apply. */
29424 char acl_get_file ();
29428 return acl_get_file ();
29433 if ac_fn_c_try_link "$LINENO"; then :
29434 ac_cv_lib_pacl_acl_get_file=yes
29436 ac_cv_lib_pacl_acl_get_file=no
29438 rm -f core conftest.err conftest.$ac_objext \
29439 conftest$ac_exeext conftest.$ac_ext
29440 LIBS=$ac_check_lib_save_LIBS
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29443 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29444 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29447 FDLIBS="-lpacl $FDLIBS"
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29454 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29455 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29456 if test $? = 0; then
29458 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29461 $as_echo "yes" >&6; }
29463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29464 $as_echo "no" >&6; }
29468 if test $have_acl = yes -a \
29469 x${HAVE_DARWIN_OS_TRUE} = x; then
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29471 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29472 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29473 if test $? = 0; then
29475 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29478 $as_echo "yes" >&6; }
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29481 $as_echo "no" >&6; }
29485 if test $have_acl = yes -a \
29486 x${HAVE_FREEBSD_OS_TRUE} = x; then
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29488 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29489 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29490 if test $? = 0; then
29492 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29495 $as_echo "yes" >&6; }
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29498 $as_echo "no" >&6; }
29502 if test $have_acl = no -a \
29503 x${HAVE_SUN_OS_TRUE} = x; then
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29505 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29506 if ${ac_cv_lib_sec_acltotext+:} false; then :
29507 $as_echo_n "(cached) " >&6
29509 ac_check_lib_save_LIBS=$LIBS
29511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512 /* end confdefs.h. */
29514 /* Override any GCC internal prototype to avoid an error.
29515 Use char because int might match the return type of a GCC
29516 builtin and then its argument prototype would still apply. */
29524 return acltotext ();
29529 if ac_fn_c_try_link "$LINENO"; then :
29530 ac_cv_lib_sec_acltotext=yes
29532 ac_cv_lib_sec_acltotext=no
29534 rm -f core conftest.err conftest.$ac_objext \
29535 conftest$ac_exeext conftest.$ac_ext
29536 LIBS=$ac_check_lib_save_LIBS
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29539 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29540 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29543 FDLIBS="-lsec $FDLIBS"
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29546 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29547 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29548 $as_echo_n "(cached) " >&6
29550 ac_check_lib_save_LIBS=$LIBS
29552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29553 /* end confdefs.h. */
29555 /* Override any GCC internal prototype to avoid an error.
29556 Use char because int might match the return type of a GCC
29557 builtin and then its argument prototype would still apply. */
29561 char acl_totext ();
29565 return acl_totext ();
29570 if ac_fn_c_try_link "$LINENO"; then :
29571 ac_cv_lib_sec_acl_totext=yes
29573 ac_cv_lib_sec_acl_totext=no
29575 rm -f core conftest.err conftest.$ac_objext \
29576 conftest$ac_exeext conftest.$ac_ext
29577 LIBS=$ac_check_lib_save_LIBS
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29580 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29581 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29583 have_extended_acl=yes
29594 if test $have_acl = no -a \
29595 x${HAVE_AIX_OS_TRUE} = x; then
29596 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29597 if test "x$ac_cv_func_acl_get" = xyes; then :
29601 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29602 if test "x$ac_cv_func_aclx_get" = xyes; then :
29604 have_extended_acl=yes
29615 if test x$support_acl = xyes -a $have_acl != yes; then
29616 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29617 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29619 if test $have_acl = yes; then
29621 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29625 if test $have_extended_acl = yes; then
29627 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29634 # Check whether --enable-xattr was given.
29635 if test "${enable_xattr+set}" = set; then :
29636 enableval=$enable_xattr;
29637 if test x$enableval = xyes; then
29639 elif test x$enableval = xno; then
29648 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29649 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29650 x${HAVE_NETBSD_OS_TRUE} = x -o \
29651 x${HAVE_OPENBSD_OS_TRUE} = x; then
29652 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29653 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29655 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29660 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29661 if test "x$ac_cv_header_libutil_h" = xyes; then :
29663 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29668 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29672 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29673 cat >>confdefs.h <<_ACEOF
29674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29679 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29682 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29685 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29693 if test $have_xattr = no; then
29694 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29699 cat >>confdefs.h <<_ACEOF
29700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29705 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29708 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29711 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29720 if test $have_xattr = yes; then
29721 have_extattr_string_in_libc=no
29722 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29726 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29727 cat >>confdefs.h <<_ACEOF
29728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29731 have_extattr_string_in_libc=yes
29733 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29736 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29744 if test $have_extattr_string_in_libc = no; then
29745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29746 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29747 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29748 $as_echo_n "(cached) " >&6
29750 ac_check_lib_save_LIBS=$LIBS
29751 LIBS="-lutil $LIBS"
29752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29753 /* end confdefs.h. */
29755 /* Override any GCC internal prototype to avoid an error.
29756 Use char because int might match the return type of a GCC
29757 builtin and then its argument prototype would still apply. */
29761 char extattr_namespace_to_string extattr_string_to_namespace ();
29765 return extattr_namespace_to_string extattr_string_to_namespace ();
29770 if ac_fn_c_try_link "$LINENO"; then :
29771 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29773 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29775 rm -f core conftest.err conftest.$ac_objext \
29776 conftest$ac_exeext conftest.$ac_ext
29777 LIBS=$ac_check_lib_save_LIBS
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29780 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29781 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29784 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29787 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29789 FDLIBS="-lutil $FDLIBS"
29798 if test $have_xattr = no -a \
29799 x${HAVE_AIX_OS_TRUE} = x; then
29800 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29801 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29803 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29808 for ac_func in llistea lgetea lsetea
29810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29813 cat >>confdefs.h <<_ACEOF
29814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29819 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29822 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29825 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29833 if test $have_xattr = no; then
29834 for ac_func in listea getea setea
29836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29837 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29838 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29839 cat >>confdefs.h <<_ACEOF
29840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29845 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29848 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29851 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29861 if test $have_xattr = no -a \
29862 x${HAVE_OSF1_OS_TRUE} = x; then
29863 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29864 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29866 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29871 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29875 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29876 cat >>confdefs.h <<_ACEOF
29877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29882 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29885 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29888 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29891 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29894 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29903 if test $have_xattr = no -a \
29904 x${HAVE_SUN_OS_TRUE} = x; then
29905 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29906 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29908 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29913 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29914 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29916 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29921 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29922 if test "x$ac_cv_header_attr_h" = xyes; then :
29924 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29930 for ac_func in openat fstatat unlinkat fchownat futimesat
29932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29933 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29934 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29935 cat >>confdefs.h <<_ACEOF
29936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29941 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29944 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29947 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29950 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29953 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29961 if test $have_xattr = yes; then
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29963 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29964 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29965 $as_echo_n "(cached) " >&6
29967 ac_check_lib_save_LIBS=$LIBS
29968 LIBS="-lnvpair $LIBS"
29969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29970 /* end confdefs.h. */
29972 /* Override any GCC internal prototype to avoid an error.
29973 Use char because int might match the return type of a GCC
29974 builtin and then its argument prototype would still apply. */
29978 char nvlist_next_nvpair ();
29982 return nvlist_next_nvpair ();
29987 if ac_fn_c_try_link "$LINENO"; then :
29988 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29990 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29992 rm -f core conftest.err conftest.$ac_objext \
29993 conftest$ac_exeext conftest.$ac_ext
29994 LIBS=$ac_check_lib_save_LIBS
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29997 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29998 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30001 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30003 FDLIBS="-lnvpair $FDLIBS"
30011 if test $have_xattr = no; then
30012 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30013 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30015 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30020 for ac_func in llistxattr lgetxattr lsetxattr
30022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30024 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30025 cat >>confdefs.h <<_ACEOF
30026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30031 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30034 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30037 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30045 if test $have_xattr = no; then
30046 for ac_func in listxattr getxattr setxattr
30048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30049 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30050 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30051 cat >>confdefs.h <<_ACEOF
30052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30057 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30060 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30063 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30073 if test x$support_xattr = xyes -a $have_xattr != yes; then
30074 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30075 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30077 if test $have_xattr = yes; then
30079 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30087 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30088 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30089 $as_echo_n "(cached) " >&6
30091 ac_check_lib_save_LIBS=$LIBS
30092 LIBS="-lpthread $LIBS"
30093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30094 /* end confdefs.h. */
30096 /* Override any GCC internal prototype to avoid an error.
30097 Use char because int might match the return type of a GCC
30098 builtin and then its argument prototype would still apply. */
30102 char pthread_create ();
30106 return pthread_create ();
30111 if ac_fn_c_try_link "$LINENO"; then :
30112 ac_cv_lib_pthread_pthread_create=yes
30114 ac_cv_lib_pthread_pthread_create=no
30116 rm -f core conftest.err conftest.$ac_objext \
30117 conftest$ac_exeext conftest.$ac_ext
30118 LIBS=$ac_check_lib_save_LIBS
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30121 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30122 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30123 PTHREAD_LIB="-lpthread"
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30127 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30128 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30129 $as_echo_n "(cached) " >&6
30131 ac_check_lib_save_LIBS=$LIBS
30132 LIBS="-lpthreads $LIBS"
30133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30134 /* end confdefs.h. */
30136 /* Override any GCC internal prototype to avoid an error.
30137 Use char because int might match the return type of a GCC
30138 builtin and then its argument prototype would still apply. */
30142 char pthread_create ();
30146 return pthread_create ();
30151 if ac_fn_c_try_link "$LINENO"; then :
30152 ac_cv_lib_pthreads_pthread_create=yes
30154 ac_cv_lib_pthreads_pthread_create=no
30156 rm -f core conftest.err conftest.$ac_objext \
30157 conftest$ac_exeext conftest.$ac_ext
30158 LIBS=$ac_check_lib_save_LIBS
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30161 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30162 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30163 PTHREAD_LIB="-lpthreads"
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30167 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30168 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30169 $as_echo_n "(cached) " >&6
30171 ac_check_lib_save_LIBS=$LIBS
30173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30174 /* end confdefs.h. */
30176 /* Override any GCC internal prototype to avoid an error.
30177 Use char because int might match the return type of a GCC
30178 builtin and then its argument prototype would still apply. */
30182 char pthread_create ();
30186 return pthread_create ();
30191 if ac_fn_c_try_link "$LINENO"; then :
30192 ac_cv_lib_c_r_pthread_create=yes
30194 ac_cv_lib_c_r_pthread_create=no
30196 rm -f core conftest.err conftest.$ac_objext \
30197 conftest$ac_exeext conftest.$ac_ext
30198 LIBS=$ac_check_lib_save_LIBS
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30201 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30202 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30203 PTHREAD_LIB="-lc_r"
30206 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30207 if test "x$ac_cv_func_pthread_create" = xyes; then :
30224 for ac_header in sys/prctl.h sys/capability.h
30226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30229 cat >>confdefs.h <<_ACEOF
30230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30237 for ac_func in prctl setreuid
30239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30241 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30242 cat >>confdefs.h <<_ACEOF
30243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30250 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30251 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30252 $as_echo_n "(cached) " >&6
30254 ac_check_lib_save_LIBS=$LIBS
30256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30257 /* end confdefs.h. */
30259 /* Override any GCC internal prototype to avoid an error.
30260 Use char because int might match the return type of a GCC
30261 builtin and then its argument prototype would still apply. */
30265 char cap_set_proc ();
30269 return cap_set_proc ();
30274 if ac_fn_c_try_link "$LINENO"; then :
30275 ac_cv_lib_cap_cap_set_proc=yes
30277 ac_cv_lib_cap_cap_set_proc=no
30279 rm -f core conftest.err conftest.$ac_objext \
30280 conftest$ac_exeext conftest.$ac_ext
30281 LIBS=$ac_check_lib_save_LIBS
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30284 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30285 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30291 if test x$CAP_LIBS = x-lcap; then
30293 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30299 $as_echo "#define FDLIBS 1" >>confdefs.h
30302 CFLAGS=${CFLAGS--O}
30304 if test x$have_gcc = xyes ; then
30305 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30306 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30308 LDFLAGS=${LDFLAGS--O}
30309 CPPFLAGS="$CPPFLAGS"
30335 PFILES="platforms/Makefile"
30338 COMPRESS_MANPAGES=yes
30340 case "$DISTNAME" in
30343 PSCMD="ps -e -o pid,comm"
30344 PFILES="${PFILES} \
30345 platforms/aix/Makefile"
30346 TAPEDRIVE="/dev/rmt0.1"
30350 PTHREAD_LIB="-lpthread -lexc"
30351 if test "${CC}" = "gcc" ; then
30358 TAPEDRIVE="/dev/nrmt0"
30361 DISTVER=`uname -a |awk '{print $3}'`
30362 TAPEDRIVE="/dev/nrmt0"
30363 PTHREAD_LIB="-pthread"
30364 CFLAGS="${CFLAGS} -pthread"
30365 PSCMD="ps -ax -o pid,command"
30368 PFILES="${PFILES} \
30369 platforms/bsdi/Makefile \
30370 platforms/bsdi/bacula-fd \
30371 platforms/bsdi/bacula-sd \
30372 platforms/bsdi/bacula-dir"
30373 largefile_support="yes"
30377 TAPEDRIVE="/dev/nst0"
30378 PSCMD="ps -e -o pid,command"
30380 PFILES="${PFILES} \
30381 platforms/darwin/Makefile"
30385 TAPEDRIVE="/dev/nst0"
30386 PSCMD="ps -e -o pid,command"
30388 PFILES="${PFILES} \
30389 platforms/osx/Makefile"
30392 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30395 DISTVER=`cat /etc/debian_version`
30396 if test -f /etc/lsb-release ; then
30398 if test "x$DISTRIB_ID" != "x" ; then
30399 DISTNAME=$DISTRIB_ID
30401 if test "x$DISTRIB_RELEASE" != "x" ; then
30402 DISTVER=$DISTRIB_RELEASE
30405 if test "$DISTNAME" = "Ubuntu" ; then
30408 TAPEDRIVE="/dev/nst0"
30409 PSCMD="ps -e -o pid,command"
30410 if test "$DISTNAME" = "ubuntu" ; then
30411 PFILES="${PFILES} \
30412 platforms/ubuntu/Makefile \
30413 platforms/ubuntu/bacula-fd \
30414 platforms/ubuntu/bacula-sd \
30415 platforms/ubuntu/bacula-dir"
30417 PFILES="${PFILES} \
30418 platforms/debian/Makefile \
30419 platforms/debian/bacula-fd \
30420 platforms/debian/bacula-sd \
30421 platforms/debian/bacula-dir"
30425 DISTVER=`uname -a |awk '{print $3}'`
30426 VER=`echo $DISTVER | cut -c 1`
30427 if test x$VER = x4 ; then
30428 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30429 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30433 TAPEDRIVE="/dev/nrsa0"
30434 PSCMD="ps -ax -o pid,command"
30435 PFILES="${PFILES} \
30436 platforms/freebsd/Makefile \
30437 platforms/freebsd/bacula-fd \
30438 platforms/freebsd/bacula-sd \
30439 platforms/freebsd/bacula-dir"
30440 largefile_support="yes"
30444 TAPEDRIVE="/dev/nst0"
30445 PSCMD="ps -e -o pid,command"
30446 PFILES="${PFILES} \
30447 platforms/hurd/Makefile \
30448 platforms/hurd/bacula-fd \
30449 platforms/hurd/bacula-sd \
30450 platforms/hurd/bacula-dir"
30453 PSCMD="UNIX95=1; ps -e -o pid,comm"
30454 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30456 TAPEDRIVE="/dev/rmt/0hnb"
30457 PTHREAD_LIB="-lpthread"
30458 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30463 TAPEDRIVE="/dev/rmt/0cbn"
30464 PSCMD="ps -e -o pid,comm"
30465 PFILES="${PFILES} \
30466 platforms/irix/Makefile \
30467 platforms/irix/bacula-fd \
30468 platforms/irix/bacula-sd \
30469 platforms/irix/bacula-dir"
30472 DISTVER=`uname -a |awk '{print $3}'`
30475 TAPEDRIVE="/dev/nrst0"
30476 PSCMD="ps -ax -o pid,command"
30477 PTHREAD_LIB="-pthread"
30478 CFLAGS="${CFLAGS} -pthread"
30481 DISTVER=`uname -a |awk '{print $3}'`
30484 TAPEDRIVE="/dev/nrst0"
30485 PSCMD="ps -ax -o pid,command"
30486 PTHREAD_LIB="-pthread"
30487 CFLAGS="${CFLAGS} -pthread"
30488 PFILES="${PFILES} \
30489 platforms/openbsd/Makefile \
30490 platforms/openbsd/bacula-fd \
30491 platforms/openbsd/bacula-sd \
30492 platforms/openbsd/bacula-dir"
30495 if test -f /etc/whitebox-release ; then
30496 f=/etc/whitebox-release
30498 f=/etc/redhat-release
30500 if test `cat $f | grep release |\
30501 cut -f 3 -d ' '`x = "Enterprise"x ; then
30502 DISTVER="Enterprise "`cat $f | grep release |\
30505 DISTVER=`cat /etc/redhat-release | grep release |\
30508 TAPEDRIVE="/dev/nst0"
30509 PSCMD="ps -e -o pid,command"
30510 PFILES="${PFILES} \
30511 platforms/redhat/Makefile \
30512 platforms/redhat/bacula-fd \
30513 platforms/redhat/bacula-sd \
30514 platforms/redhat/bacula-dir
30518 DISTVER=`cat /etc/mandrake-release | grep release |\
30520 TAPEDRIVE="/dev/nst0"
30521 PSCMD="ps -e -o pid,command"
30522 PFILES="${PFILES} \
30523 platforms/mandrake/Makefile \
30524 platforms/mandrake/bacula-fd \
30525 platforms/mandrake/bacula-sd \
30526 platforms/mandrake/bacula-dir \
30530 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30531 TAPEDRIVE="/dev/nst0"
30532 PSCMD="ps -e -o pid,command"
30533 PFILES="${PFILES} \
30534 platforms/gentoo/Makefile \
30535 platforms/gentoo/bacula-init \
30536 platforms/gentoo/bacula-fd \
30537 platforms/gentoo/bacula-sd \
30538 platforms/gentoo/bacula-dir"
30541 DISTVER=`cat /etc/slackware-version`
30542 TAPEDRIVE="/dev/nst0"
30543 PSCMD="ps -e -o pid,command"
30544 PFILES="${PFILES} \
30545 platforms/slackware/Makefile \
30546 platforms/slackware/rc.bacula-fd \
30547 platforms/slackware/rc.bacula-sd \
30548 platforms/slackware/rc.bacula-dir\
30549 platforms/slackware/functions.bacula"
30553 TAPEDRIVE="/dev/rmt/0cbn"
30554 PSCMD="ps -e -o pid,comm"
30555 PFILES="${PFILES} \
30556 platforms/solaris/Makefile \
30557 platforms/solaris/bacula-fd \
30558 platforms/solaris/bacula-sd \
30559 platforms/solaris/bacula-dir"
30563 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30565 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30569 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30575 LIBS="$LIBS -lresolv -lrt"
30578 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30580 TAPEDRIVE="/dev/nst0"
30581 PSCMD="ps -e -o pid,command"
30582 PFILES="${PFILES} \
30583 platforms/suse/Makefile \
30584 platforms/suse/bacula-fd \
30585 platforms/suse/bacula-sd \
30586 platforms/suse/bacula-dir \
30587 platforms/suse/bacula"
30592 TAPEDRIVE="/dev/nst0"
30593 PSCMD="ps -e -o pid,command"
30594 PFILES="${PFILES} \
30595 platforms/suse/Makefile \
30596 platforms/suse/bacula-fd \
30597 platforms/suse/bacula-sd \
30598 platforms/suse/bacula-dir"
30602 TAPEDRIVE="/dev/nst0"
30605 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30610 $as_echo_n "checking for systemd support... " >&6; }
30612 # Check whether --with-systemd was given.
30613 if test "${with_systemd+set}" = set; then :
30614 withval=$with_systemd;
30615 if test "$withval" != "no"; then
30616 if test "$withval" = "yes"; then
30617 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30619 SYSTEMD_UNITDIR="${withval}"
30622 PFILES="${PFILES} \
30623 platforms/systemd/Makefile \
30624 platforms/systemd/bacula.conf \
30625 platforms/systemd/bacula-dir.service \
30626 platforms/systemd/bacula-fd.service \
30627 platforms/systemd/bacula-sd.service"
30629 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30632 $as_echo "yes" >&6; }
30633 support_systemd="yes"
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636 $as_echo "no" >&6; }
30637 support_systemd="no"
30642 support_systemd="no"
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30644 $as_echo "no" >&6; }
30653 LIBS="$PTHREAD_LIB $LIBS"
30655 cat >>confdefs.h <<_ACEOF
30659 cat >>confdefs.h <<_ACEOF
30670 MCOMMON=./autoconf/Make.common
30673 if test "x${subsysdir}" = "x${sbindir}" ; then
30676 echo "You have set both --sbindir and --with-subsys-dir"
30677 echo " equal to: ${subsysdir} "
30678 echo "This is not permitted. Please reconfigure."
30680 echo "Aborting configuration ..."
30686 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/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file 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 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 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 platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30688 ac_config_commands="$ac_config_commands default"
30690 cat >confcache <<\_ACEOF
30691 # This file is a shell script that caches the results of configure
30692 # tests run on this system so they can be shared between configure
30693 # scripts and configure runs, see configure's option --config-cache.
30694 # It is not useful on other systems. If it contains results you don't
30695 # want to keep, you may remove or edit it.
30697 # config.status only pays attention to the cache file if you give it
30698 # the --recheck option to rerun configure.
30700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30702 # following values.
30706 # The following way of writing the cache mishandles newlines in values,
30707 # but we know of no workaround that is simple, portable, and efficient.
30708 # So, we kill variables containing newlines.
30709 # Ultrix sh set writes to stderr and can't be redirected directly,
30710 # and sets the high bit in the cache file unless we assign to the vars.
30712 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30713 eval ac_val=\$$ac_var
30717 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30721 _ | IFS | as_nl) ;; #(
30722 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30723 *) { eval $ac_var=; unset $ac_var;} ;;
30729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30730 *${as_nl}ac_space=\ *)
30731 # `set' does not quote correctly, so add quotes: double-quote
30732 # substitution turns \\\\ into \\, and sed turns \\ into \.
30735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30738 # `set' quotes correctly as required by POSIX, so do not add quotes.
30739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30753 if test -w "$cache_file"; then
30754 if test "x$cache_file" != "x/dev/null"; then
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30756 $as_echo "$as_me: updating cache $cache_file" >&6;}
30757 if test ! -f "$cache_file" || test -h "$cache_file"; then
30758 cat confcache >"$cache_file"
30760 case $cache_file in #(
30762 mv -f confcache "$cache_file"$$ &&
30763 mv -f "$cache_file"$$ "$cache_file" ;; #(
30765 mv -f confcache "$cache_file" ;;
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30771 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30777 # Let make expand exec_prefix.
30778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30780 DEFS=-DHAVE_CONFIG_H
30785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30786 # 1. Remove the extension, and $U if already installed.
30787 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30788 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30789 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30790 # will be set to the directory where LIBOBJS objects are built.
30791 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30792 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30794 LIBOBJS=$ac_libobjs
30796 LTLIBOBJS=$ac_ltlibobjs
30801 : "${CONFIG_STATUS=./config.status}"
30803 ac_clean_files_save=$ac_clean_files
30804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30806 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30808 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30810 # Generated by $as_me.
30811 # Run this file to recreate the current configuration.
30812 # Compiler output produced by configure, useful for debugging
30813 # configure, is in config.log if it exists.
30816 ac_cs_recheck=false
30819 SHELL=\${CONFIG_SHELL-$SHELL}
30822 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30823 ## -------------------- ##
30824 ## M4sh Initialization. ##
30825 ## -------------------- ##
30827 # Be more Bourne compatible
30828 DUALCASE=1; export DUALCASE # for MKS sh
30829 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30832 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30833 # is contrary to our usage. Disable this feature.
30834 alias -g '${1+"$@"}'='"$@"'
30835 setopt NO_GLOB_SUBST
30837 case `(set -o) 2>/dev/null` in #(
30849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30853 # Prefer a ksh shell builtin over an external printf program on Solaris,
30854 # but without wasting forks for bash or zsh.
30855 if test -z "$BASH_VERSION$ZSH_VERSION" \
30856 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30857 as_echo='print -r --'
30858 as_echo_n='print -rn --'
30859 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30860 as_echo='printf %s\n'
30861 as_echo_n='printf %s'
30863 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30864 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30865 as_echo_n='/usr/ucb/echo -n'
30867 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30868 as_echo_n_body='eval
30872 expr "X$arg" : "X\\(.*\\)$as_nl";
30873 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30875 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30877 export as_echo_n_body
30878 as_echo_n='sh -c $as_echo_n_body as_echo'
30880 export as_echo_body
30881 as_echo='sh -c $as_echo_body as_echo'
30884 # The user is always right.
30885 if test "${PATH_SEPARATOR+set}" != set; then
30887 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30888 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30895 # We need space, tab and new line, in precisely that order. Quoting is
30896 # there to prevent editors from complaining about space-tab.
30897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30898 # splitting by setting IFS to empty value.)
30901 # Find who we are. Look in the path if we contain no directory separator.
30904 *[\\/]* ) as_myself=$0 ;;
30905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30906 for as_dir in $PATH
30909 test -z "$as_dir" && as_dir=.
30910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30916 # We did not find ourselves, most probably we were run as `sh COMMAND'
30917 # in which case we are not to be found in the path.
30918 if test "x$as_myself" = x; then
30921 if test ! -f "$as_myself"; then
30922 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30926 # Unset variables that we do not need and which cause bugs (e.g. in
30927 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30928 # suppresses any "Segmentation fault" message there. '((' could
30929 # trigger a bug in pdksh 5.2.14.
30930 for as_var in BASH_ENV ENV MAIL MAILPATH
30931 do eval test x\${$as_var+set} = xset \
30932 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30948 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30949 # ----------------------------------------
30950 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30951 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30952 # script with STATUS, using 1 if that was 0.
30955 as_status=$1; test $as_status -eq 0 && as_status=1
30957 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30958 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30960 $as_echo "$as_me: error: $2" >&2
30961 as_fn_exit $as_status
30965 # as_fn_set_status STATUS
30966 # -----------------------
30967 # Set $? to STATUS, without forking.
30968 as_fn_set_status ()
30971 } # as_fn_set_status
30973 # as_fn_exit STATUS
30974 # -----------------
30975 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30979 as_fn_set_status $1
30985 # Portably unset VAR.
30988 { eval $1=; unset $1;}
30990 as_unset=as_fn_unset
30991 # as_fn_append VAR VALUE
30992 # ----------------------
30993 # Append the text in VALUE to the end of the definition contained in VAR. Take
30994 # advantage of any shell optimizations that allow amortized linear growth over
30995 # repeated appends, instead of the typical quadratic growth present in naive
30997 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30998 eval 'as_fn_append ()
31009 # as_fn_arith ARG...
31010 # ------------------
31011 # Perform arithmetic evaluation on the ARGs, and store the result in the
31012 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31013 # must be portable across $(()) and expr.
31014 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31015 eval 'as_fn_arith ()
31022 as_val=`expr "$@" || test $? -eq 1`
31027 if expr a : '\(a\)' >/dev/null 2>&1 &&
31028 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31034 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31035 as_basename=basename
31040 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31046 as_me=`$as_basename -- "$0" ||
31047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31048 X"$0" : 'X\(//\)$' \| \
31049 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31051 sed '/^.*\/\([^/][^/]*\)\/*$/{
31065 # Avoid depending upon Character Ranges.
31066 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31069 as_cr_digits='0123456789'
31070 as_cr_alnum=$as_cr_Letters$as_cr_digits
31072 ECHO_C= ECHO_N= ECHO_T=
31073 case `echo -n x` in #(((((
31075 case `echo 'xy\c'` in
31076 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31078 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31085 rm -f conf$$ conf$$.exe conf$$.file
31086 if test -d conf$$.dir; then
31087 rm -f conf$$.dir/conf$$.file
31090 mkdir conf$$.dir 2>/dev/null
31092 if (echo >conf$$.file) 2>/dev/null; then
31093 if ln -s conf$$.file conf$$ 2>/dev/null; then
31095 # ... but there are two gotchas:
31096 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31097 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31098 # In both cases, we have to default to `cp -p'.
31099 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31101 elif ln conf$$.file conf$$ 2>/dev/null; then
31109 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31110 rmdir conf$$.dir 2>/dev/null
31115 # Create "$as_dir" as a directory, including parents if necessary.
31120 -*) as_dir=./$as_dir;;
31122 test -d "$as_dir" || eval $as_mkdir_p || {
31126 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31127 *) as_qdir=$as_dir;;
31129 as_dirs="'$as_qdir' $as_dirs"
31130 as_dir=`$as_dirname -- "$as_dir" ||
31131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31132 X"$as_dir" : 'X\(//\)[^/]' \| \
31133 X"$as_dir" : 'X\(//\)$' \| \
31134 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31135 $as_echo X"$as_dir" |
31136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31140 /^X\(\/\/\)[^/].*/{
31153 test -d "$as_dir" && break
31155 test -z "$as_dirs" || eval "mkdir $as_dirs"
31156 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31160 if mkdir -p . 2>/dev/null; then
31161 as_mkdir_p='mkdir -p "$as_dir"'
31163 test -d ./-p && rmdir ./-p
31167 if test -x / >/dev/null 2>&1; then
31168 as_test_x='test -x'
31170 if ls -dL / >/dev/null 2>&1; then
31177 if test -d "$1"; then
31183 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31184 ???[sx]*):;;*)false;;esac;fi
31188 as_executable_p=$as_test_x
31190 # Sed expression to map a string onto a valid CPP name.
31191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31193 # Sed expression to map a string onto a valid variable name.
31194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31198 ## ----------------------------------- ##
31199 ## Main body of $CONFIG_STATUS script. ##
31200 ## ----------------------------------- ##
31202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31205 # Save the log message, to keep $0 and so on meaningful, and to
31206 # report actual input values of CONFIG_FILES etc. instead of their
31207 # values after options handling.
31209 This file was extended by bacula $as_me 7.0.1, which was
31210 generated by GNU Autoconf 2.68. Invocation command line was
31212 CONFIG_FILES = $CONFIG_FILES
31213 CONFIG_HEADERS = $CONFIG_HEADERS
31214 CONFIG_LINKS = $CONFIG_LINKS
31215 CONFIG_COMMANDS = $CONFIG_COMMANDS
31218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31223 case $ac_config_files in *"
31224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31227 case $ac_config_headers in *"
31228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31233 # Files that config.status was made for.
31234 config_files="$ac_config_files"
31235 config_headers="$ac_config_headers"
31236 config_commands="$ac_config_commands"
31240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31242 \`$as_me' instantiates files and other configuration actions
31243 from templates according to the current configuration. Unless the files
31244 and actions are specified as TAGs, all are instantiated by default.
31246 Usage: $0 [OPTION]... [TAG]...
31248 -h, --help print this help, then exit
31249 -V, --version print version number and configuration settings, then exit
31250 --config print configuration, then exit
31251 -q, --quiet, --silent
31252 do not print progress messages
31253 -d, --debug don't remove temporary files
31254 --recheck update $as_me by reconfiguring in the same conditions
31255 --file=FILE[:TEMPLATE]
31256 instantiate the configuration file FILE
31257 --header=FILE[:TEMPLATE]
31258 instantiate the configuration header FILE
31260 Configuration files:
31263 Configuration headers:
31266 Configuration commands:
31269 Report bugs to the package provider."
31272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31275 bacula config.status 7.0.1
31276 configured by $0, generated by GNU Autoconf 2.68,
31277 with options \\"\$ac_cs_config\\"
31279 Copyright (C) 2010 Free Software Foundation, Inc.
31280 This config.status script is free software; the Free Software Foundation
31281 gives unlimited permission to copy, distribute and modify it."
31287 test -n "\$AWK" || AWK=awk
31290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31291 # The default lists apply if the user does not specify any file.
31297 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31298 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31302 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31314 # Handling of the options.
31315 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31317 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31318 $as_echo "$ac_cs_version"; exit ;;
31319 --config | --confi | --conf | --con | --co | --c )
31320 $as_echo "$ac_cs_config"; exit ;;
31321 --debug | --debu | --deb | --de | --d | -d )
31323 --file | --fil | --fi | --f )
31326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31327 '') as_fn_error $? "missing file argument" ;;
31329 as_fn_append CONFIG_FILES " '$ac_optarg'"
31330 ac_need_defaults=false;;
31331 --header | --heade | --head | --hea )
31334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31336 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31337 ac_need_defaults=false;;
31339 # Conflict between --help and --header
31340 as_fn_error $? "ambiguous option: \`$1'
31341 Try \`$0 --help' for more information.";;
31342 --help | --hel | -h )
31343 $as_echo "$ac_cs_usage"; exit ;;
31344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31348 # This is an error.
31349 -*) as_fn_error $? "unrecognized option: \`$1'
31350 Try \`$0 --help' for more information." ;;
31352 *) as_fn_append ac_config_targets " $1"
31353 ac_need_defaults=false ;;
31359 ac_configure_extra_args=
31361 if $ac_cs_silent; then
31363 ac_configure_extra_args="$ac_configure_extra_args --silent"
31367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31368 if \$ac_cs_recheck; then
31369 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31371 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31372 CONFIG_SHELL='$SHELL'
31373 export CONFIG_SHELL
31378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31383 ## Running $as_me. ##
31389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31395 # The HP-UX ksh and POSIX shell print the target directory to stdout
31396 # if CDPATH is set.
31397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31399 sed_quote_subst='$sed_quote_subst'
31400 double_quote_subst='$double_quote_subst'
31401 delay_variable_subst='$delay_variable_subst'
31402 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31403 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31404 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31405 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31406 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31407 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31408 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31409 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31410 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31411 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31412 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31413 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31414 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31415 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31416 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31417 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31418 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31419 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31420 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31421 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31422 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31423 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31424 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31425 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31426 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31427 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31428 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31429 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31430 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31431 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31432 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31433 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31434 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31435 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31436 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31437 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31438 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31439 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31440 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31442 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31443 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31444 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31445 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31446 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31447 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31448 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31449 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31450 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31451 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31452 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31453 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31454 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31456 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31457 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"`'
31458 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31459 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31460 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31461 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31462 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31463 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31464 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31465 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31466 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31467 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31468 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31469 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31470 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31471 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31472 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31473 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31474 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31475 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31476 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31477 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31478 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31479 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31480 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31481 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31482 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31483 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31484 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31485 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31486 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31487 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31488 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31489 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31490 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31491 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31492 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31493 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31494 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31495 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31496 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31497 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31498 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31499 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31500 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31501 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31502 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31503 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31504 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31505 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31506 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31507 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31508 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31509 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31510 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31511 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31512 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31513 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31514 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31515 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31516 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31517 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31518 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31519 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31520 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31521 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31522 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31523 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31524 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31525 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31526 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31527 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31528 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31529 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31530 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31531 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31532 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31533 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31534 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31535 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31536 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31537 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31538 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31539 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31540 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31541 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31542 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31543 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31544 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31545 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31546 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31547 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31548 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31549 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31550 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31551 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31552 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31553 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31554 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31555 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31556 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31557 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31558 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31559 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31560 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31561 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31562 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31563 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31564 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31565 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31566 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31567 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31568 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31569 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31570 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31571 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31572 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31573 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31574 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31575 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31576 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31577 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31578 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31579 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31580 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31581 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31582 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31583 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31584 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31585 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31586 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31589 LTCFLAGS='$LTCFLAGS'
31590 compiler='$compiler_DEFAULT'
31592 # A function that is used when there is no print builtin or printf.
31593 func_fallback_echo ()
31595 eval 'cat <<_LTECHO_EOF
31600 # Quote evaled strings.
31614 deplibs_check_method \
31619 sharedlib_from_linklib_cmd \
31622 archiver_list_spec \
31628 lt_cv_sys_global_symbol_pipe \
31629 lt_cv_sys_global_symbol_to_cdecl \
31630 lt_cv_sys_global_symbol_to_c_name_address \
31631 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31632 nm_file_list_spec \
31633 lt_prog_compiler_no_builtin_flag \
31634 lt_prog_compiler_pic \
31635 lt_prog_compiler_wl \
31636 lt_prog_compiler_static \
31637 lt_cv_prog_compiler_c_o \
31646 export_dynamic_flag_spec \
31647 whole_archive_flag_spec \
31648 compiler_needs_object \
31650 allow_undefined_flag \
31651 no_undefined_flag \
31652 hardcode_libdir_flag_spec \
31653 hardcode_libdir_flag_spec_ld \
31654 hardcode_libdir_separator \
31658 variables_saved_for_relink \
31660 library_names_spec \
31662 install_override_mode \
31666 compiler_lib_search_dirs \
31671 compiler_lib_search_path \
31675 lt_prog_compiler_no_builtin_flag_CXX \
31676 lt_prog_compiler_pic_CXX \
31677 lt_prog_compiler_wl_CXX \
31678 lt_prog_compiler_static_CXX \
31679 lt_cv_prog_compiler_c_o_CXX \
31680 export_dynamic_flag_spec_CXX \
31681 whole_archive_flag_spec_CXX \
31682 compiler_needs_object_CXX \
31684 allow_undefined_flag_CXX \
31685 no_undefined_flag_CXX \
31686 hardcode_libdir_flag_spec_CXX \
31687 hardcode_libdir_flag_spec_ld_CXX \
31688 hardcode_libdir_separator_CXX \
31689 exclude_expsyms_CXX \
31690 include_expsyms_CXX \
31691 file_list_spec_CXX \
31692 compiler_lib_search_dirs_CXX \
31693 predep_objects_CXX \
31694 postdep_objects_CXX \
31697 compiler_lib_search_path_CXX; do
31698 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31699 *[\\\\\\\`\\"\\\$]*)
31700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31708 # Double-quote double-evaled strings.
31709 for var in reload_cmds \
31710 old_postinstall_cmds \
31711 old_postuninstall_cmds \
31713 extract_expsyms_cmds \
31714 old_archive_from_new_cmds \
31715 old_archive_from_expsyms_cmds \
31717 archive_expsym_cmds \
31719 module_expsym_cmds \
31720 export_symbols_cmds \
31724 postuninstall_cmds \
31726 sys_lib_search_path_spec \
31727 sys_lib_dlsearch_path_spec \
31729 old_archive_cmds_CXX \
31730 old_archive_from_new_cmds_CXX \
31731 old_archive_from_expsyms_cmds_CXX \
31733 archive_expsym_cmds_CXX \
31735 module_expsym_cmds_CXX \
31736 export_symbols_cmds_CXX \
31738 postlink_cmds_CXX; do
31739 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31740 *[\\\\\\\`\\"\\\$]*)
31741 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31744 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31749 ac_aux_dir='$ac_aux_dir'
31750 xsi_shell='$xsi_shell'
31751 lt_shell_append='$lt_shell_append'
31753 # See if we are running on zsh, and set the options which allow our
31754 # commands through without removal of \ escapes INIT.
31755 if test -n "\${ZSH_VERSION+set}" ; then
31756 setopt NO_GLOB_SUBST
31762 TIMESTAMP='$TIMESTAMP'
31770 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31771 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31773 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31774 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31775 LINGUAS="${LINGUAS-%UNSET%}"
31780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31782 # Handling of arguments.
31783 for ac_config_target in $ac_config_targets
31785 case $ac_config_target in
31786 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31787 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31788 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31789 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31790 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31791 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31792 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31793 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31794 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31795 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31796 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31797 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31798 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31799 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31800 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31801 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31802 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31803 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31804 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31805 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31806 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31807 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31808 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31809 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31810 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31811 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31812 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31813 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31814 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31815 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31816 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31817 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31818 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31819 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31820 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31821 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31822 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31823 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31824 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31825 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31826 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31827 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31828 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31829 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31830 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31831 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31832 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31833 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31834 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31835 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31836 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31837 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31838 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31839 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31840 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31841 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31842 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31843 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31844 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31845 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31846 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31847 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31848 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31849 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31850 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31851 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31852 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31853 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31854 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31855 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31856 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31857 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31858 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31859 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31860 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31861 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31862 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31863 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31864 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31865 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31866 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31867 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31868 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31869 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31870 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31871 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31872 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31873 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31874 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31875 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31876 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31877 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
31878 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
31879 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
31880 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
31881 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31882 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31884 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31889 # If the user did not use the arguments to specify the items to instantiate,
31890 # then the envvar interface is used. Set only those that are not.
31891 # We use the long form for the default assignment because of an extremely
31892 # bizarre bug on SunOS 4.1.3.
31893 if $ac_need_defaults; then
31894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31896 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31899 # Have a temporary directory for convenience. Make it in the build tree
31900 # simply because there is no reason against having it here, and in addition,
31901 # creating and moving files from /tmp can sometimes cause problems.
31902 # Hook for its removal unless debugging.
31903 # Note that there is a small window in which the directory will not be cleaned:
31904 # after its creation but before its name has been assigned to `$tmp'.
31908 trap 'exit_status=$?
31909 : "${ac_tmp:=$tmp}"
31910 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31912 trap 'as_fn_exit 1' 1 2 13 15
31914 # Create a (secure) tmp directory for tmp files.
31917 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31921 tmp=./conf$$-$RANDOM
31922 (umask 077 && mkdir "$tmp")
31923 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31926 # Set up the scripts for CONFIG_FILES section.
31927 # No need to generate them if there are no CONFIG_FILES.
31928 # This happens for instance with `./config.status config.h'.
31929 if test -n "$CONFIG_FILES"; then
31931 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31932 ac_cs_awk_getline=:
31933 ac_cs_awk_pipe_init=
31934 ac_cs_awk_read_file='
31935 while ((getline aline < (F[key])) > 0)
31938 ac_cs_awk_pipe_fini=
31940 ac_cs_awk_getline=false
31941 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31942 ac_cs_awk_read_file='
31944 print "cat " F[key] " &&"
31945 '$ac_cs_awk_pipe_init
31946 # The final `:' finishes the AND list.
31947 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31949 ac_cr=`echo X | tr X '\015'`
31950 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31951 # But we know of no other shell where ac_cr would be empty at this
31952 # point, so we can use a bashism as a fallback.
31953 if test "x$ac_cr" = x; then
31954 eval ac_cr=\$\'\\r\'
31956 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31957 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31960 ac_cs_awk_cr=$ac_cr
31963 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31966 # Create commands to substitute file output variables.
31968 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31969 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31970 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31973 } >conf$$files.sh &&
31974 . ./conf$$files.sh ||
31975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31976 rm -f conf$$files.sh
31979 echo "cat >conf$$subs.awk <<_ACEOF" &&
31980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31982 } >conf$$subs.sh ||
31983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31986 for ac_last_try in false false false false false :; do
31987 . ./conf$$subs.sh ||
31988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31991 if test $ac_delim_n = $ac_delim_num; then
31993 elif $ac_last_try; then
31994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31999 rm -f conf$$subs.sh
32001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32002 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32006 s/^/S["/; s/!.*/"]=/
32016 s/\(.\{148\}\)..*/\1/
32018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32030 s/\(.\{148\}\)..*/\1/
32032 s/["\\]/\\&/g; s/^/"/; s/$/"/
32036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32041 ' <conf$$subs.awk | sed '
32046 ' >>$CONFIG_STATUS || ac_write_fail=1
32047 rm -f conf$$subs.awk
32048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32050 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32051 for (key in S) S_is_set[key] = 1
32053 \$ac_cs_awk_pipe_init
32057 nfields = split(line, field, "@")
32059 len = length(field[1])
32060 for (i = 2; i < nfields; i++) {
32062 keylen = length(key)
32063 if (S_is_set[key]) {
32065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32066 len += length(value) + length(field[++i])
32071 if (nfields == 3 && !substed) {
32073 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32074 \$ac_cs_awk_read_file
32080 \$ac_cs_awk_pipe_fini
32083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32084 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32085 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32088 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32089 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32092 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32093 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32094 # trailing colons and then remove the whole line if VPATH becomes empty
32095 # (actually we leave an empty line to preserve line numbers).
32096 if test "x$srcdir" = x.; then
32097 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32116 fi # test -n "$CONFIG_FILES"
32118 # Set up the scripts for CONFIG_HEADERS section.
32119 # No need to generate them if there are no CONFIG_HEADERS.
32120 # This happens for instance with `./config.status Makefile'.
32121 if test -n "$CONFIG_HEADERS"; then
32122 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32126 # Transform confdefs.h into an awk script `defines.awk', embedded as
32127 # here-document in config.status, that substitutes the proper values into
32128 # config.h.in to produce config.h.
32130 # Create a delimiter string that does not exist in confdefs.h, to ease
32131 # handling of long lines.
32133 for ac_last_try in false false :; do
32134 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32135 if test -z "$ac_tt"; then
32137 elif $ac_last_try; then
32138 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32144 # For the awk script, D is an array of macro values keyed by name,
32145 # likewise P contains macro parameters if any. Preserve backslash
32146 # newline sequences.
32148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32150 s/.\{148\}/&'"$ac_delim"'/g
32153 s/^[ ]*#[ ]*define[ ][ ]*/ /
32160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32167 D["\1"]=" \3\\\\\\n"\\/p
32169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32174 s/.\{148\}/&'"$ac_delim"'/g
32179 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32182 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32184 ' <confdefs.h | sed '
32185 s/'"$ac_delim"'/"\\\
32186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32189 for (key in D) D_is_set[key] = 1
32192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32194 split(line, arg, " ")
32195 if (arg[1] == "#") {
32199 defundef = substr(arg[1], 2)
32202 split(mac1, mac2, "(") #)
32204 prefix = substr(line, 1, index(line, defundef) - 1)
32205 if (D_is_set[macro]) {
32206 # Preserve the white space surrounding the "#".
32207 print prefix "define", macro P[macro] D[macro]
32210 # Replace #undef with comments. This is necessary, for example,
32211 # in the case of _POSIX_SOURCE, which is predefined and required
32212 # on some systems where configure will not decide to define it.
32213 if (defundef == "undef") {
32214 print "/*", prefix defundef, macro, "*/"
32222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32223 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32224 fi # test -n "$CONFIG_HEADERS"
32227 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32232 :[FHLC]) ac_mode=$ac_tag; continue;;
32234 case $ac_mode$ac_tag in
32236 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32237 :[FH]-) ac_tag=-:-;;
32238 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32255 -) ac_f="$ac_tmp/stdin";;
32256 *) # Look for the file first in the build tree, then in the source tree
32257 # (if the path is not absolute). The absolute path cannot be DOS-style,
32258 # because $ac_f cannot contain `:'.
32262 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32264 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32266 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32267 as_fn_append ac_file_inputs " '$ac_f'"
32270 # Let's still pretend it is `configure' which instantiates (i.e., don't
32271 # use $as_me), people would be surprised to read:
32272 # /* config.h. Generated by config.status. */
32273 configure_input='Generated from '`
32274 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32276 if test x"$ac_file" != x-; then
32277 configure_input="$ac_file. $configure_input"
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32279 $as_echo "$as_me: creating $ac_file" >&6;}
32281 # Neutralize special characters interpreted by sed in replacement strings.
32282 case $configure_input in #(
32283 *\&* | *\|* | *\\* )
32284 ac_sed_conf_input=`$as_echo "$configure_input" |
32285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32286 *) ac_sed_conf_input=$configure_input;;
32290 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32296 ac_dir=`$as_dirname -- "$ac_file" ||
32297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32298 X"$ac_file" : 'X\(//\)[^/]' \| \
32299 X"$ac_file" : 'X\(//\)$' \| \
32300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32301 $as_echo X"$ac_file" |
32302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32306 /^X\(\/\/\)[^/].*/{
32319 as_dir="$ac_dir"; as_fn_mkdir_p
32323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32326 # A ".." for each directory in $ac_dir_suffix.
32327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32328 case $ac_top_builddir_sub in
32329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32333 ac_abs_top_builddir=$ac_pwd
32334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32335 # for backward compatibility:
32336 ac_top_builddir=$ac_top_build_prefix
32339 .) # We are building in place.
32341 ac_top_srcdir=$ac_top_builddir_sub
32342 ac_abs_top_srcdir=$ac_pwd ;;
32343 [\\/]* | ?:[\\/]* ) # Absolute name.
32344 ac_srcdir=$srcdir$ac_dir_suffix;
32345 ac_top_srcdir=$srcdir
32346 ac_abs_top_srcdir=$srcdir ;;
32347 *) # Relative name.
32348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32349 ac_top_srcdir=$ac_top_build_prefix$srcdir
32350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32362 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32363 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32368 # If the template does not know about datarootdir, expand it.
32369 # FIXME: This hack should be removed a few years after 2.60.
32370 ac_datarootdir_hack=; ac_datarootdir_seen=
32381 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32382 *datarootdir*) ac_datarootdir_seen=yes;;
32383 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32385 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32388 ac_datarootdir_hack='
32389 s&@datadir@&$datadir&g
32390 s&@docdir@&$docdir&g
32391 s&@infodir@&$infodir&g
32392 s&@localedir@&$localedir&g
32393 s&@mandir@&$mandir&g
32394 s&\\\${datarootdir}&$datarootdir&g' ;;
32398 # Neutralize VPATH when `$srcdir' = `.'.
32399 # Shell code in configure.ac might set extrasub.
32400 # FIXME: do we really want to maintain this feature?
32401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32402 ac_sed_extra="$ac_vpsub
32405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32408 s|@configure_input@|$ac_sed_conf_input|;t t
32409 s&@top_builddir@&$ac_top_builddir_sub&;t t
32410 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32411 s&@srcdir@&$ac_srcdir&;t t
32412 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32413 s&@top_srcdir@&$ac_top_srcdir&;t t
32414 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32415 s&@builddir@&$ac_builddir&;t t
32416 s&@abs_builddir@&$ac_abs_builddir&;t t
32417 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32418 s&@INSTALL@&$ac_INSTALL&;t t
32419 $ac_datarootdir_hack
32421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32422 if $ac_cs_awk_getline; then
32423 $AWK -f "$ac_tmp/subs.awk"
32425 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32427 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32429 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32430 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32431 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32432 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32434 which seems to be undefined. Please make sure it is defined" >&5
32435 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32436 which seems to be undefined. Please make sure it is defined" >&2;}
32438 rm -f "$ac_tmp/stdin"
32440 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32441 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32449 if test x"$ac_file" != x-; then
32451 $as_echo "/* $configure_input */" \
32452 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32453 } >"$ac_tmp/config.h" \
32454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32455 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32457 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32460 mv "$ac_tmp/config.h" "$ac_file" \
32461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32464 $as_echo "/* $configure_input */" \
32465 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32466 || as_fn_error $? "could not create -" "$LINENO" 5
32470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32471 $as_echo "$as_me: executing $ac_file commands" >&6;}
32476 case $ac_file$ac_mode in
32479 # See if we are running on zsh, and set the options which allow our
32480 # commands through without removal of \ escapes.
32481 if test -n "${ZSH_VERSION+set}" ; then
32482 setopt NO_GLOB_SUBST
32485 cfgfile="${ofile}T"
32486 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32489 cat <<_LT_EOF >> "$cfgfile"
32492 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32493 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32495 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32497 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32498 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32500 # Written by Gordon Matzigkeit, 1996
32502 # This file is part of GNU Libtool.
32504 # GNU Libtool is free software; you can redistribute it and/or
32505 # modify it under the terms of the GNU General Public License as
32506 # published by the Free Software Foundation; either version 2 of
32507 # the License, or (at your option) any later version.
32509 # As a special exception to the GNU General Public License,
32510 # if you distribute this file as part of a program or library that
32511 # is built using GNU Libtool, you may include this file under the
32512 # same distribution terms that you use for the rest of that program.
32514 # GNU Libtool is distributed in the hope that it will be useful,
32515 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32517 # GNU General Public License for more details.
32519 # You should have received a copy of the GNU General Public License
32520 # along with GNU Libtool; see the file COPYING. If not, a copy
32521 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32522 # obtained by writing to the Free Software Foundation, Inc.,
32523 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32526 # The names of the tagged configurations supported by this script.
32527 available_tags="CXX "
32529 # ### BEGIN LIBTOOL CONFIG
32531 # Which release of libtool.m4 was used?
32532 macro_version=$macro_version
32533 macro_revision=$macro_revision
32535 # Whether or not to build shared libraries.
32536 build_libtool_libs=$enable_shared
32538 # Whether or not to build static libraries.
32539 build_old_libs=$enable_static
32541 # What type of objects to build.
32544 # Whether or not to optimize for fast installation.
32545 fast_install=$enable_fast_install
32547 # Shell to use when invoking shell scripts.
32550 # An echo program that protects backslashes.
32554 host_alias=$host_alias
32558 # The build system.
32559 build_alias=$build_alias
32563 # A sed program that does not truncate output.
32566 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32567 Xsed="\$SED -e 1s/^X//"
32569 # A grep program that handles long lines.
32575 # A literal string matcher.
32578 # A BSD- or MS-compatible name lister.
32581 # Whether we need soft or hard links.
32584 # What is the maximum length of a command?
32585 max_cmd_len=$max_cmd_len
32587 # Object file suffix (normally "o").
32590 # Executable file suffix (normally "").
32593 # whether the shell understands "unset".
32596 # turn spaces into newlines.
32599 # turn newlines into spaces.
32602 # convert \$build file names to \$host format.
32603 to_host_file_cmd=$lt_cv_to_host_file_cmd
32605 # convert \$build files to toolchain format.
32606 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32608 # An object symbol dumper.
32609 OBJDUMP=$lt_OBJDUMP
32611 # Method to check whether dependent libraries are shared objects.
32612 deplibs_check_method=$lt_deplibs_check_method
32614 # Command to use when deplibs_check_method = "file_magic".
32615 file_magic_cmd=$lt_file_magic_cmd
32617 # How to find potential files when deplibs_check_method = "file_magic".
32618 file_magic_glob=$lt_file_magic_glob
32620 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32621 want_nocaseglob=$lt_want_nocaseglob
32623 # DLL creation program.
32624 DLLTOOL=$lt_DLLTOOL
32626 # Command to associate shared and link libraries.
32627 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32632 # Flags to create an archive.
32633 AR_FLAGS=$lt_AR_FLAGS
32635 # How to feed a file listing to the archiver.
32636 archiver_list_spec=$lt_archiver_list_spec
32638 # A symbol stripping program.
32641 # Commands used to install an old-style archive.
32643 old_postinstall_cmds=$lt_old_postinstall_cmds
32644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32646 # Whether to use a lock for old archive extraction.
32647 lock_old_archive_extraction=$lock_old_archive_extraction
32652 # LTCC compiler flags.
32653 LTCFLAGS=$lt_CFLAGS
32655 # Take the output of nm and produce a listing of raw symbols and C names.
32656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32658 # Transform the output of nm in a proper C declaration.
32659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32661 # Transform the output of nm in a C name address pair.
32662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32664 # Transform the output of nm in a C name address pair when lib prefix is needed.
32665 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32667 # Specify filename containing input files for \$NM.
32668 nm_file_list_spec=$lt_nm_file_list_spec
32670 # The root where to search for dependent libraries,and in which our libraries should be installed.
32671 lt_sysroot=$lt_sysroot
32673 # The name of the directory that contains temporary libtool files.
32676 # Used to examine libraries when file_magic_cmd begins with "file".
32677 MAGIC_CMD=$MAGIC_CMD
32679 # Must we lock files when doing compilation?
32680 need_locks=$lt_need_locks
32683 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32685 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32686 DSYMUTIL=$lt_DSYMUTIL
32688 # Tool to change global to local symbols on Mac OS X.
32691 # Tool to manipulate fat objects and archives on Mac OS X.
32694 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32697 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32698 OTOOL64=$lt_OTOOL64
32700 # Old archive suffix (normally "a").
32703 # Shared library suffix (normally ".so").
32704 shrext_cmds=$lt_shrext_cmds
32706 # The commands to extract the exported symbol list from a shared archive.
32707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32709 # Variables whose values should be saved in libtool wrapper scripts and
32710 # restored at link time.
32711 variables_saved_for_relink=$lt_variables_saved_for_relink
32713 # Do we need the "lib" prefix for modules?
32714 need_lib_prefix=$need_lib_prefix
32716 # Do we need a version for libraries?
32717 need_version=$need_version
32719 # Library versioning type.
32720 version_type=$version_type
32722 # Shared library runtime path variable.
32723 runpath_var=$runpath_var
32725 # Shared library path variable.
32726 shlibpath_var=$shlibpath_var
32728 # Is shlibpath searched before the hard-coded library search path?
32729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32731 # Format of library name prefix.
32732 libname_spec=$lt_libname_spec
32734 # List of archive names. First name is the real one, the rest are links.
32735 # The last name is the one that the linker finds with -lNAME
32736 library_names_spec=$lt_library_names_spec
32738 # The coded name of the library, if different from the real name.
32739 soname_spec=$lt_soname_spec
32741 # Permission mode override for installation of shared libraries.
32742 install_override_mode=$lt_install_override_mode
32744 # Command to use after installation of a shared archive.
32745 postinstall_cmds=$lt_postinstall_cmds
32747 # Command to use after uninstallation of a shared archive.
32748 postuninstall_cmds=$lt_postuninstall_cmds
32750 # Commands used to finish a libtool library installation in a directory.
32751 finish_cmds=$lt_finish_cmds
32753 # As "finish_cmds", except a single script fragment to be evaled but
32755 finish_eval=$lt_finish_eval
32757 # Whether we should hardcode library paths into libraries.
32758 hardcode_into_libs=$hardcode_into_libs
32760 # Compile-time system search path for libraries.
32761 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32763 # Run-time system search path for libraries.
32764 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32766 # Whether dlopen is supported.
32767 dlopen_support=$enable_dlopen
32769 # Whether dlopen of programs is supported.
32770 dlopen_self=$enable_dlopen_self
32772 # Whether dlopen of statically linked programs is supported.
32773 dlopen_self_static=$enable_dlopen_self_static
32775 # Commands to strip libraries.
32776 old_striplib=$lt_old_striplib
32777 striplib=$lt_striplib
32780 # The linker used to build libraries.
32783 # How to create reloadable object files.
32784 reload_flag=$lt_reload_flag
32785 reload_cmds=$lt_reload_cmds
32787 # Commands used to build an old-style archive.
32788 old_archive_cmds=$lt_old_archive_cmds
32790 # A language specific compiler.
32793 # Is the compiler the GNU compiler?
32796 # Compiler flag to turn off builtin functions.
32797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32799 # Additional compiler flags for building library objects.
32800 pic_flag=$lt_lt_prog_compiler_pic
32802 # How to pass a linker flag through the compiler.
32803 wl=$lt_lt_prog_compiler_wl
32805 # Compiler flag to prevent dynamic linking.
32806 link_static_flag=$lt_lt_prog_compiler_static
32808 # Does compiler simultaneously support -c and -o options?
32809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32811 # Whether or not to add -lc for building shared libraries.
32812 build_libtool_need_lc=$archive_cmds_need_lc
32814 # Whether or not to disallow shared libs when runtime libs are static.
32815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32817 # Compiler flag to allow reflexive dlopens.
32818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32820 # Compiler flag to generate shared objects directly from archives.
32821 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32823 # Whether the compiler copes with passing no objects directly.
32824 compiler_needs_object=$lt_compiler_needs_object
32826 # Create an old-style archive from a shared archive.
32827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32829 # Create a temporary old-style archive to link instead of a shared archive.
32830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32832 # Commands used to build a shared archive.
32833 archive_cmds=$lt_archive_cmds
32834 archive_expsym_cmds=$lt_archive_expsym_cmds
32836 # Commands used to build a loadable module if different from building
32837 # a shared archive.
32838 module_cmds=$lt_module_cmds
32839 module_expsym_cmds=$lt_module_expsym_cmds
32841 # Whether we are building with GNU ld or not.
32842 with_gnu_ld=$lt_with_gnu_ld
32844 # Flag that allows shared libraries with undefined symbols to be built.
32845 allow_undefined_flag=$lt_allow_undefined_flag
32847 # Flag that enforces no undefined symbols.
32848 no_undefined_flag=$lt_no_undefined_flag
32850 # Flag to hardcode \$libdir into a binary during linking.
32851 # This must work even if \$libdir does not exist
32852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32854 # If ld is used when linking, flag to hardcode \$libdir into a binary
32855 # during linking. This must work even if \$libdir does not exist.
32856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32858 # Whether we need a single "-rpath" flag with a separated argument.
32859 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32862 # DIR into the resulting binary.
32863 hardcode_direct=$hardcode_direct
32865 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32866 # DIR into the resulting binary and the resulting library dependency is
32867 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32868 # library is relocated.
32869 hardcode_direct_absolute=$hardcode_direct_absolute
32871 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32872 # into the resulting binary.
32873 hardcode_minus_L=$hardcode_minus_L
32875 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32876 # into the resulting binary.
32877 hardcode_shlibpath_var=$hardcode_shlibpath_var
32879 # Set to "yes" if building a shared library automatically hardcodes DIR
32880 # into the library and all subsequent libraries and executables linked
32882 hardcode_automatic=$hardcode_automatic
32884 # Set to yes if linker adds runtime paths of dependent libraries
32885 # to runtime path list.
32886 inherit_rpath=$inherit_rpath
32888 # Whether libtool must link a program against all its dependency libraries.
32889 link_all_deplibs=$link_all_deplibs
32891 # Set to "yes" if exported symbols are required.
32892 always_export_symbols=$always_export_symbols
32894 # The commands to list exported symbols.
32895 export_symbols_cmds=$lt_export_symbols_cmds
32897 # Symbols that should not be listed in the preloaded symbols.
32898 exclude_expsyms=$lt_exclude_expsyms
32900 # Symbols that must always be exported.
32901 include_expsyms=$lt_include_expsyms
32903 # Commands necessary for linking programs (against libraries) with templates.
32904 prelink_cmds=$lt_prelink_cmds
32906 # Commands necessary for finishing linking programs.
32907 postlink_cmds=$lt_postlink_cmds
32909 # Specify filename containing input files.
32910 file_list_spec=$lt_file_list_spec
32912 # How to hardcode a shared library path into an executable.
32913 hardcode_action=$hardcode_action
32915 # The directories searched by this compiler when creating a shared library.
32916 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32918 # Dependencies to place before and after the objects being linked to
32919 # create a shared library.
32920 predep_objects=$lt_predep_objects
32921 postdep_objects=$lt_postdep_objects
32922 predeps=$lt_predeps
32923 postdeps=$lt_postdeps
32925 # The library search path used internally by the compiler when linking
32926 # a shared library.
32927 compiler_lib_search_path=$lt_compiler_lib_search_path
32929 # ### END LIBTOOL CONFIG
32935 cat <<\_LT_EOF >> "$cfgfile"
32936 # AIX sometimes has problems with the GCC collect2 program. For some
32937 # reason, if we set the COLLECT_NAMES environment variable, the problems
32938 # vanish in a puff of smoke.
32939 if test "X${COLLECT_NAMES+set}" != Xset; then
32941 export COLLECT_NAMES
32948 ltmain="$ac_aux_dir/ltmain.sh"
32951 # We use sed instead of cat because bash on DJGPP gets confused if
32952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32953 # text mode, it properly converts lines to CR/LF. This bash problem
32954 # is reportedly fixed, but why not run on old versions too?
32955 sed '$q' "$ltmain" >> "$cfgfile" \
32956 || (rm -f "$cfgfile"; exit 1)
32958 if test x"$xsi_shell" = xyes; then
32959 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32963 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32964 \ * ) func_dirname_result="${3}" ;;\
32966 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32967 && mv -f "$cfgfile.tmp" "$cfgfile" \
32968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32969 test 0 -eq $? || _lt_function_replace_fail=:
32972 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32975 \ func_basename_result="${1##*/}"\
32976 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32977 && mv -f "$cfgfile.tmp" "$cfgfile" \
32978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32979 test 0 -eq $? || _lt_function_replace_fail=:
32982 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32983 func_dirname_and_basename ()\
32986 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32987 \ * ) func_dirname_result="${3}" ;;\
32989 \ func_basename_result="${1##*/}"\
32990 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32991 && mv -f "$cfgfile.tmp" "$cfgfile" \
32992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32993 test 0 -eq $? || _lt_function_replace_fail=:
32996 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32999 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33000 \ # positional parameters, so assign one to ordinary parameter first.\
33001 \ func_stripname_result=${3}\
33002 \ func_stripname_result=${func_stripname_result#"${1}"}\
33003 \ func_stripname_result=${func_stripname_result%"${2}"}\
33004 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33005 && mv -f "$cfgfile.tmp" "$cfgfile" \
33006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33007 test 0 -eq $? || _lt_function_replace_fail=:
33010 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33011 func_split_long_opt ()\
33013 \ func_split_long_opt_name=${1%%=*}\
33014 \ func_split_long_opt_arg=${1#*=}\
33015 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33016 && mv -f "$cfgfile.tmp" "$cfgfile" \
33017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33018 test 0 -eq $? || _lt_function_replace_fail=:
33021 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33022 func_split_short_opt ()\
33024 \ func_split_short_opt_arg=${1#??}\
33025 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33026 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33027 && mv -f "$cfgfile.tmp" "$cfgfile" \
33028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33029 test 0 -eq $? || _lt_function_replace_fail=:
33032 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33036 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33037 \ *) func_lo2o_result=${1} ;;\
33039 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33040 && mv -f "$cfgfile.tmp" "$cfgfile" \
33041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33042 test 0 -eq $? || _lt_function_replace_fail=:
33045 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33048 func_xform_result=${1%.*}.lo\
33049 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33050 && mv -f "$cfgfile.tmp" "$cfgfile" \
33051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33052 test 0 -eq $? || _lt_function_replace_fail=:
33055 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33058 func_arith_result=$(( $* ))\
33059 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33060 && mv -f "$cfgfile.tmp" "$cfgfile" \
33061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33062 test 0 -eq $? || _lt_function_replace_fail=:
33065 sed -e '/^func_len ()$/,/^} # func_len /c\
33068 func_len_result=${#1}\
33069 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33070 && mv -f "$cfgfile.tmp" "$cfgfile" \
33071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33072 test 0 -eq $? || _lt_function_replace_fail=:
33076 if test x"$lt_shell_append" = xyes; then
33077 sed -e '/^func_append ()$/,/^} # func_append /c\
33080 eval "${1}+=\\${2}"\
33081 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33082 && mv -f "$cfgfile.tmp" "$cfgfile" \
33083 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33084 test 0 -eq $? || _lt_function_replace_fail=:
33087 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33088 func_append_quoted ()\
33090 \ func_quote_for_eval "${2}"\
33091 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33092 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33093 && mv -f "$cfgfile.tmp" "$cfgfile" \
33094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33095 test 0 -eq $? || _lt_function_replace_fail=:
33098 # Save a `func_append' function call where possible by direct use of '+='
33099 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33100 && mv -f "$cfgfile.tmp" "$cfgfile" \
33101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33102 test 0 -eq $? || _lt_function_replace_fail=:
33104 # Save a `func_append' function call even when '+=' is not available
33105 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33106 && mv -f "$cfgfile.tmp" "$cfgfile" \
33107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33108 test 0 -eq $? || _lt_function_replace_fail=:
33111 if test x"$_lt_function_replace_fail" = x":"; then
33112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33113 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33117 mv -f "$cfgfile" "$ofile" ||
33118 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33122 cat <<_LT_EOF >> "$ofile"
33124 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33126 # The linker used to build libraries.
33129 # How to create reloadable object files.
33130 reload_flag=$lt_reload_flag_CXX
33131 reload_cmds=$lt_reload_cmds_CXX
33133 # Commands used to build an old-style archive.
33134 old_archive_cmds=$lt_old_archive_cmds_CXX
33136 # A language specific compiler.
33137 CC=$lt_compiler_CXX
33139 # Is the compiler the GNU compiler?
33142 # Compiler flag to turn off builtin functions.
33143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33145 # Additional compiler flags for building library objects.
33146 pic_flag=$lt_lt_prog_compiler_pic_CXX
33148 # How to pass a linker flag through the compiler.
33149 wl=$lt_lt_prog_compiler_wl_CXX
33151 # Compiler flag to prevent dynamic linking.
33152 link_static_flag=$lt_lt_prog_compiler_static_CXX
33154 # Does compiler simultaneously support -c and -o options?
33155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33157 # Whether or not to add -lc for building shared libraries.
33158 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33160 # Whether or not to disallow shared libs when runtime libs are static.
33161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33163 # Compiler flag to allow reflexive dlopens.
33164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33166 # Compiler flag to generate shared objects directly from archives.
33167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33169 # Whether the compiler copes with passing no objects directly.
33170 compiler_needs_object=$lt_compiler_needs_object_CXX
33172 # Create an old-style archive from a shared archive.
33173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33175 # Create a temporary old-style archive to link instead of a shared archive.
33176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33178 # Commands used to build a shared archive.
33179 archive_cmds=$lt_archive_cmds_CXX
33180 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33182 # Commands used to build a loadable module if different from building
33183 # a shared archive.
33184 module_cmds=$lt_module_cmds_CXX
33185 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33187 # Whether we are building with GNU ld or not.
33188 with_gnu_ld=$lt_with_gnu_ld_CXX
33190 # Flag that allows shared libraries with undefined symbols to be built.
33191 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33193 # Flag that enforces no undefined symbols.
33194 no_undefined_flag=$lt_no_undefined_flag_CXX
33196 # Flag to hardcode \$libdir into a binary during linking.
33197 # This must work even if \$libdir does not exist
33198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33200 # If ld is used when linking, flag to hardcode \$libdir into a binary
33201 # during linking. This must work even if \$libdir does not exist.
33202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33204 # Whether we need a single "-rpath" flag with a separated argument.
33205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33208 # DIR into the resulting binary.
33209 hardcode_direct=$hardcode_direct_CXX
33211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33212 # DIR into the resulting binary and the resulting library dependency is
33213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33214 # library is relocated.
33215 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33218 # into the resulting binary.
33219 hardcode_minus_L=$hardcode_minus_L_CXX
33221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33222 # into the resulting binary.
33223 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33225 # Set to "yes" if building a shared library automatically hardcodes DIR
33226 # into the library and all subsequent libraries and executables linked
33228 hardcode_automatic=$hardcode_automatic_CXX
33230 # Set to yes if linker adds runtime paths of dependent libraries
33231 # to runtime path list.
33232 inherit_rpath=$inherit_rpath_CXX
33234 # Whether libtool must link a program against all its dependency libraries.
33235 link_all_deplibs=$link_all_deplibs_CXX
33237 # Set to "yes" if exported symbols are required.
33238 always_export_symbols=$always_export_symbols_CXX
33240 # The commands to list exported symbols.
33241 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33243 # Symbols that should not be listed in the preloaded symbols.
33244 exclude_expsyms=$lt_exclude_expsyms_CXX
33246 # Symbols that must always be exported.
33247 include_expsyms=$lt_include_expsyms_CXX
33249 # Commands necessary for linking programs (against libraries) with templates.
33250 prelink_cmds=$lt_prelink_cmds_CXX
33252 # Commands necessary for finishing linking programs.
33253 postlink_cmds=$lt_postlink_cmds_CXX
33255 # Specify filename containing input files.
33256 file_list_spec=$lt_file_list_spec_CXX
33258 # How to hardcode a shared library path into an executable.
33259 hardcode_action=$hardcode_action_CXX
33261 # The directories searched by this compiler when creating a shared library.
33262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33264 # Dependencies to place before and after the objects being linked to
33265 # create a shared library.
33266 predep_objects=$lt_predep_objects_CXX
33267 postdep_objects=$lt_postdep_objects_CXX
33268 predeps=$lt_predeps_CXX
33269 postdeps=$lt_postdeps_CXX
33271 # The library search path used internally by the compiler when linking
33272 # a shared library.
33273 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33275 # ### END LIBTOOL TAG CONFIG: CXX
33280 for ac_file in $CONFIG_FILES; do
33281 # Support "outfile[:infile[:infile...]]"
33283 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33285 # PO directories have a Makefile.in generated from Makefile.in.in.
33286 case "$ac_file" in */Makefile.in)
33287 # Adjust a relative srcdir.
33288 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33289 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33290 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33291 # In autoconf-2.13 it is called $ac_given_srcdir.
33292 # In autoconf-2.50 it is called $srcdir.
33293 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33294 case "$ac_given_srcdir" in
33295 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33296 /*) top_srcdir="$ac_given_srcdir" ;;
33297 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33299 # Treat a directory as a PO directory if and only if it has a
33300 # POTFILES.in file. This allows packages to have multiple PO
33301 # directories under different names or in different locations.
33302 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33303 rm -f "$ac_dir/POTFILES"
33304 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33305 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33306 POMAKEFILEDEPS="POTFILES.in"
33307 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33308 # on $ac_dir but don't depend on user-specified configuration
33310 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33311 # The LINGUAS file contains the set of available languages.
33312 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33313 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33315 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33316 # Hide the ALL_LINGUAS assigment from automake.
33317 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33318 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33320 # The set of available languages was given in configure.in.
33321 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33324 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33325 # Compute UPDATEPOFILES
33326 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33327 # Compute DUMMYPOFILES
33328 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33330 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33331 case "$ac_given_srcdir" in
33333 *) srcdirpre='$(srcdir)/' ;;
33339 for lang in $ALL_LINGUAS; do
33340 POFILES="$POFILES $srcdirpre$lang.po"
33341 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33342 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33343 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33345 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33346 # environment variable.
33348 if test -n "$ALL_LINGUAS"; then
33349 for presentlang in $ALL_LINGUAS; do
33351 if test "%UNSET%" != "$LINGUAS"; then
33352 desiredlanguages="$LINGUAS"
33354 desiredlanguages="$ALL_LINGUAS"
33356 for desiredlang in $desiredlanguages; do
33357 # Use the presentlang catalog if desiredlang is
33358 # a. equal to presentlang, or
33359 # b. a variant of presentlang (because in this case,
33360 # presentlang can be used as a fallback for messages
33361 # which are not translated in the desiredlang catalog).
33362 case "$desiredlang" in
33363 "$presentlang"*) useit=yes;;
33366 if test $useit = yes; then
33367 INST_LINGUAS="$INST_LINGUAS $presentlang"
33372 if test -n "$INST_LINGUAS"; then
33373 for lang in $INST_LINGUAS; do
33374 CATALOGS="$CATALOGS $lang.gmo"
33377 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33378 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"
33379 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33380 if test -f "$f"; then
33382 *.orig | *.bak | *~) ;;
33383 *) cat "$f" >> "$ac_dir/Makefile" ;;
33400 ac_clean_files=$ac_clean_files_save
33402 test $ac_write_fail = 0 ||
33403 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33406 # configure is writing to config.log, and then calls config.status.
33407 # config.status does its own redirection, appending to config.log.
33408 # Unfortunately, on DOS this fails, as config.log is still kept open
33409 # by configure, so config.status won't be able to write to it; its
33410 # output is simply discarded. So we exec the FD to /dev/null,
33411 # effectively closing config.log, so it can be properly (re)opened and
33412 # appended to by config.status. When coming back to configure, we
33413 # need to make the FD available again.
33414 if test "$no_create" != yes; then
33416 ac_config_status_args=
33417 test "$silent" = yes &&
33418 ac_config_status_args="$ac_config_status_args --quiet"
33420 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33422 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33423 # would make configure fail if this is the last instruction.
33424 $ac_cs_success || as_fn_exit 1
33426 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33428 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33432 if test "${support_bat}" = "yes" ; then
33433 if test "x$QMAKE" = "xnone"; then
33434 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33438 echo "Creating bat Makefile"
33444 ${MAKE:-make} clean
33448 if test X"$GCC" = "Xyes" ; then
33449 echo "Doing make of dependencies"
33450 ${MAKE:-make} depend
33454 chmod 755 install_conf_file build-depkgs-qt-console
33458 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33459 chmod 755 dvd-handler dvd-simulator
33460 chmod 755 bconsole disk-changer devel_bacula logrotate
33464 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33465 chmod 755 $c/update_postgresql_tables_10_to_11
33466 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33467 chmod 755 $c/update_postgresql_tables_11_to_12
33472 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33473 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33475 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33476 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33478 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33479 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33481 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33482 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33484 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33485 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33488 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33489 chmod 755 $c/sqlite
33492 chmod 755 $c/install-default-backend
33494 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33495 largefile_support="yes"
33498 if test X"$GCC" = "Xyes" ; then
33499 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33500 if test "x${CCVERSION}" = "x" ; then
33501 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33503 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33504 if test x"${CXXVERSION}" = x ; then
33505 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33509 # clean up any old junk
33513 ${MAKE:-make} clean
33516 Configuration on `date`:
33518 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33519 Bacula version: ${BACULA} ${VERSION} (${DATE})
33520 Source code location: ${srcdir}
33521 Install binaries: ${sbindir}
33522 Install libraries: ${libdir}
33523 Install config files: ${sysconfdir}
33524 Scripts directory: ${scriptdir}
33525 Archive directory: ${archivedir}
33526 Working directory: ${working_dir}
33527 PID directory: ${piddir}
33528 Subsys directory: ${subsysdir}
33529 Man directory: ${mandir}
33530 Data directory: ${datarootdir}
33531 Plugin directory: ${plugindir}
33532 C Compiler: ${CC} ${CCVERSION}
33533 C++ Compiler: ${CXX} ${CXXVERSION}
33534 Compiler flags: ${WCFLAGS} ${CFLAGS}
33535 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33537 Statically Linked Tools: ${support_static_tools}
33538 Statically Linked FD: ${support_static_fd}
33539 Statically Linked SD: ${support_static_sd}
33540 Statically Linked DIR: ${support_static_dir}
33541 Statically Linked CONS: ${support_static_cons}
33542 Database backends: ${db_backends}
33543 Database port: ${db_port}
33544 Database name: ${db_name}
33545 Database user: ${db_user}
33547 Job Output Email: ${job_email}
33548 Traceback Email: ${dump_email}
33549 SMTP Host Address: ${smtp_host}
33551 Director Port: ${dir_port}
33552 File daemon Port: ${fd_port}
33553 Storage daemon Port: ${sd_port}
33555 Director User: ${dir_user}
33556 Director Group: ${dir_group}
33557 Storage Daemon User: ${sd_user}
33558 Storage DaemonGroup: ${sd_group}
33559 File Daemon User: ${fd_user}
33560 File Daemon Group: ${fd_group}
33562 Large file support: $largefile_support
33563 Bacula conio support: ${got_conio} ${CONS_LIBS}
33564 readline support: ${got_readline} ${PRTREADLINE_SRC}
33565 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33566 TLS support: ${support_tls}
33567 Encryption support: ${support_crypto}
33568 ZLIB support: ${have_zlib}
33569 LZO support: ${have_lzo}
33570 enable-smartalloc: ${support_smartalloc}
33571 enable-lockmgr: ${support_lockmgr}
33572 bat support: ${support_bat}
33573 client-only: ${build_client_only}
33574 build-dird: ${build_dird}
33575 build-stored: ${build_stored}
33576 Plugin support: ${have_plugins}
33577 AFS support: ${have_afs}
33578 ACL support: ${have_acl}
33579 XATTR support: ${have_xattr}
33580 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33581 Batch insert enabled: ${batch_insert_db_backends}
33585 # create a small shell script useful for support with
33586 # configure options and config.out info
33587 cat > scripts/bacula_config << EOF
33590 $ $0 $ac_configure_args
33592 cat config.out >> scripts/bacula_config
33593 echo __EOC__ >> scripts/bacula_config
33594 chmod 755 scripts/bacula_config