2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 7.2.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='7.2.1'
591 PACKAGE_STRING='bacula 7.2.1'
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars='LTLIBOBJS
663 SHARED_CATALOG_TARGETS
734 INTL_LIBTOOL_SUFFIX_PREFIX
741 BUILD_INCLUDED_LIBINTL
772 HAVE_OPENBSD_OS_FALSE
776 HAVE_FREEBSD_OS_FALSE
790 INCLUDE_UNINSTALL_TARGET
791 INCLUDE_INSTALL_TARGET
795 LIBTOOL_UNINSTALL_TARGET
796 LIBTOOL_INSTALL_TARGET
797 DEFAULT_SHARED_OBJECT_TYPE
876 LIBBACFIND_LT_RELEASE
877 LIBBACCATS_LT_RELEASE
921 program_transform_name
932 ac_subst_files='MCOMMON'
934 enable_option_checking
948 with_included_gettext
983 with_mon_dir_password
1013 ac_precious_vars='build_alias
1029 # Initialize some variables set by options.
1031 ac_init_version=false
1032 ac_unrecognized_opts=
1033 ac_unrecognized_sep=
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1043 program_transform_name=s,x,x,
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1068 infodir='${datarootdir}/info'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1081 # If the previous option needs an argument, assign it.
1082 if test -n "$ac_prev"; then
1083 eval $ac_prev=\$ac_option
1089 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1094 # Accept the important Cygnus configure options, so we can diagnose typos.
1096 case $ac_dashdash$ac_option in
1100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1103 bindir=$ac_optarg ;;
1105 -build | --build | --buil | --bui | --bu)
1106 ac_prev=build_alias ;;
1107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1108 build_alias=$ac_optarg ;;
1110 -cache-file | --cache-file | --cache-fil | --cache-fi \
1111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1112 ac_prev=cache_file ;;
1113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1115 cache_file=$ac_optarg ;;
1117 --config-cache | -C)
1118 cache_file=config.cache ;;
1120 -datadir | --datadir | --datadi | --datad)
1122 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1123 datadir=$ac_optarg ;;
1125 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1126 | --dataroo | --dataro | --datar)
1127 ac_prev=datarootdir ;;
1128 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1129 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1130 datarootdir=$ac_optarg ;;
1132 -disable-* | --disable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid feature name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_$ac_useropt"
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval enable_$ac_useropt=no ;;
1148 -docdir | --docdir | --docdi | --doc | --do)
1150 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151 docdir=$ac_optarg ;;
1153 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1155 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156 dvidir=$ac_optarg ;;
1158 -enable-* | --enable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval enable_$ac_useropt=\$ac_optarg ;;
1174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176 | --exec | --exe | --ex)
1177 ac_prev=exec_prefix ;;
1178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180 | --exec=* | --exe=* | --ex=*)
1181 exec_prefix=$ac_optarg ;;
1183 -gas | --gas | --ga | --g)
1184 # Obsolete; use --with-gas.
1187 -help | --help | --hel | --he | -h)
1188 ac_init_help=long ;;
1189 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190 ac_init_help=recursive ;;
1191 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192 ac_init_help=short ;;
1194 -host | --host | --hos | --ho)
1195 ac_prev=host_alias ;;
1196 -host=* | --host=* | --hos=* | --ho=*)
1197 host_alias=$ac_optarg ;;
1199 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1201 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1203 htmldir=$ac_optarg ;;
1205 -includedir | --includedir | --includedi | --included | --include \
1206 | --includ | --inclu | --incl | --inc)
1207 ac_prev=includedir ;;
1208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209 | --includ=* | --inclu=* | --incl=* | --inc=*)
1210 includedir=$ac_optarg ;;
1212 -infodir | --infodir | --infodi | --infod | --info | --inf)
1214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215 infodir=$ac_optarg ;;
1217 -libdir | --libdir | --libdi | --libd)
1219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220 libdir=$ac_optarg ;;
1222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223 | --libexe | --libex | --libe)
1224 ac_prev=libexecdir ;;
1225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226 | --libexe=* | --libex=* | --libe=*)
1227 libexecdir=$ac_optarg ;;
1229 -localedir | --localedir | --localedi | --localed | --locale)
1230 ac_prev=localedir ;;
1231 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232 localedir=$ac_optarg ;;
1234 -localstatedir | --localstatedir | --localstatedi | --localstated \
1235 | --localstate | --localstat | --localsta | --localst | --locals)
1236 ac_prev=localstatedir ;;
1237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239 localstatedir=$ac_optarg ;;
1241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244 mandir=$ac_optarg ;;
1246 -nfp | --nfp | --nf)
1247 # Obsolete; use --without-fp.
1250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251 | --no-cr | --no-c | -n)
1254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260 | --oldin | --oldi | --old | --ol | --o)
1261 ac_prev=oldincludedir ;;
1262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265 oldincludedir=$ac_optarg ;;
1267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270 prefix=$ac_optarg ;;
1272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273 | --program-pre | --program-pr | --program-p)
1274 ac_prev=program_prefix ;;
1275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277 program_prefix=$ac_optarg ;;
1279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280 | --program-suf | --program-su | --program-s)
1281 ac_prev=program_suffix ;;
1282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284 program_suffix=$ac_optarg ;;
1286 -program-transform-name | --program-transform-name \
1287 | --program-transform-nam | --program-transform-na \
1288 | --program-transform-n | --program-transform- \
1289 | --program-transform | --program-transfor \
1290 | --program-transfo | --program-transf \
1291 | --program-trans | --program-tran \
1292 | --progr-tra | --program-tr | --program-t)
1293 ac_prev=program_transform_name ;;
1294 -program-transform-name=* | --program-transform-name=* \
1295 | --program-transform-nam=* | --program-transform-na=* \
1296 | --program-transform-n=* | --program-transform-=* \
1297 | --program-transform=* | --program-transfor=* \
1298 | --program-transfo=* | --program-transf=* \
1299 | --program-trans=* | --program-tran=* \
1300 | --progr-tra=* | --program-tr=* | --program-t=*)
1301 program_transform_name=$ac_optarg ;;
1303 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1305 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306 pdfdir=$ac_optarg ;;
1308 -psdir | --psdir | --psdi | --psd | --ps)
1310 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314 | -silent | --silent | --silen | --sile | --sil)
1317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1321 sbindir=$ac_optarg ;;
1323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325 | --sharedst | --shareds | --shared | --share | --shar \
1327 ac_prev=sharedstatedir ;;
1328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1332 sharedstatedir=$ac_optarg ;;
1334 -site | --site | --sit)
1336 -site=* | --site=* | --sit=*)
1339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342 srcdir=$ac_optarg ;;
1344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345 | --syscon | --sysco | --sysc | --sys | --sy)
1346 ac_prev=sysconfdir ;;
1347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349 sysconfdir=$ac_optarg ;;
1351 -target | --target | --targe | --targ | --tar | --ta | --t)
1352 ac_prev=target_alias ;;
1353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354 target_alias=$ac_optarg ;;
1356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1359 -version | --version | --versio | --versi | --vers | -V)
1360 ac_init_version=: ;;
1363 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid package name: $ac_useropt"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1376 eval with_$ac_useropt=\$ac_optarg ;;
1378 -without-* | --without-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1392 eval with_$ac_useropt=no ;;
1395 # Obsolete; use --with-x.
1398 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1399 | --x-incl | --x-inc | --x-in | --x-i)
1400 ac_prev=x_includes ;;
1401 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1402 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1403 x_includes=$ac_optarg ;;
1405 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1406 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1407 ac_prev=x_libraries ;;
1408 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1409 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1410 x_libraries=$ac_optarg ;;
1412 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1413 Try \`$0 --help' for more information"
1417 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418 # Reject names that are not valid shell variable names.
1419 case $ac_envvar in #(
1420 '' | [0-9]* | *[!_$as_cr_alnum]* )
1421 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1423 eval $ac_envvar=\$ac_optarg
1424 export $ac_envvar ;;
1427 # FIXME: should be removed in autoconf 3.0.
1428 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1429 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1430 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1431 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1437 if test -n "$ac_prev"; then
1438 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1439 as_fn_error $? "missing argument to $ac_option"
1442 if test -n "$ac_unrecognized_opts"; then
1443 case $enable_option_checking in
1445 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1446 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1450 # Check all directory arguments for consistency.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1457 # Remove trailing slashes.
1460 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461 eval $ac_var=\$ac_val;;
1463 # Be sure to have absolute directory names.
1465 [\\/$]* | ?:[\\/]* ) continue;;
1466 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1468 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1471 # There might be people who depend on the old broken behavior: `$host'
1472 # used to hold the argument of --host etc.
1473 # FIXME: To remove some day.
1476 target=$target_alias
1478 # FIXME: To remove some day.
1479 if test "x$host_alias" != x; then
1480 if test "x$build_alias" = x; then
1481 cross_compiling=maybe
1482 elif test "x$build_alias" != "x$host_alias"; then
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490 test "$silent" = yes && exec 6>/dev/null
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496 as_fn_error $? "working directory cannot be determined"
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498 as_fn_error $? "pwd does not report name of working directory"
1501 # Find the source files, if location was not specified.
1502 if test -z "$srcdir"; then
1503 ac_srcdir_defaulted=yes
1504 # Try the directory containing this script, then the parent directory.
1505 ac_confdir=`$as_dirname -- "$as_myself" ||
1506 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507 X"$as_myself" : 'X\(//\)[^/]' \| \
1508 X"$as_myself" : 'X\(//\)$' \| \
1509 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510 $as_echo X"$as_myself" |
1511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1533 ac_srcdir_defaulted=no
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1536 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1537 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures bacula 7.2.1 to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking ...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1635 case $ac_init_help in
1636 short | recursive ) echo "Configuration of bacula 7.2.1:";;
1641 --disable-option-checking ignore unrecognized --enable/--with options
1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1644 --enable-libtool enable building using GNU libtool [default=yes]
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=no]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --enable-includes enable installing of include files [default=no]
1651 --disable-nls do not use Native Language Support
1652 --disable-rpath do not hardcode runtime library paths
1653 --enable-bat enable build of bat Qt4 GUI [default=no]
1654 --enable-smartalloc enable smartalloc debugging support [default=no]
1655 --enable-lockmgr enable lock manager support [default=no]
1656 --enable-static-tools enable static tape tools [default=no]
1657 --enable-static-fd enable static File daemon [default=no]
1658 --enable-static-sd enable static Storage daemon [default=no]
1659 --enable-static-dir enable static Director [default=no]
1660 --enable-static-cons enable static Console [default=no]
1661 --enable-client-only build client (File daemon) only [default=no]
1662 --enable-build-dird enable building of dird (Director) [default=yes]
1663 --enable-build-stored enable building of stored (Storage daemon)
1665 --disable-conio disable conio support [default=no]
1666 --enable-ipv6 enable ipv6 support [default=yes]
1667 --disable-readline disable readline support [default=yes]
1668 --enable-batch-insert enable the DB batch insert code [default=yes]
1669 --disable-largefile omit support for large files
1670 --disable-afs disable afs support [default=auto]
1671 --disable-lzo disable lzo support [default=yes]
1672 --disable-acl disable acl support [default=auto]
1673 --disable-xattr disable xattr support [default=auto]
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-sysroot=DIR Search for dependent libraries within DIR
1682 (or the compiler's sysroot if not specified).
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688 --with-included-gettext use the GNU gettext library included here
1689 --with-readline[=DIR] specify readline library directory
1690 --with-tcp-wrappers[=DIR]
1691 enable tcpwrappers support
1692 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1693 --with-working-dir=PATH specify path of Bacula working directory
1694 --with-archivedir=PATH specify path of SD archive directory
1695 --with-basename=RESNAME specify base resource name for daemons
1696 --with-hostname=RESNAME specify host name for daemons
1697 --with-scriptdir=PATH specify path of Bacula scripts directory
1698 --with-bsrdir=PATH specify path of Bacula bsrs directory
1699 --with-logdir=PATH specify path of Bacula logs directory
1700 --with-plugindir=PATH specify path of Bacula plugins directory
1701 --with-dump-email=EMAIL dump email address
1702 --with-job-email=EMAIL job output email address
1703 --with-smtp-host=HOST SMTP mail host address
1704 --with-pid-dir=PATH specify location of Bacula pid files
1705 --with-subsys-dir=PATH specify location of Bacula subsys file
1706 --with-baseport=PORT specify base port address for daemons
1707 --with-dir-password=PASSWORD
1708 specify Director's password
1709 --with-fd-password=PASSWORD
1710 specify Client's password
1711 --with-sd-password=PASSWORD
1712 specify Storage daemon's password
1713 --with-mon-dir-password=PASSWORD
1714 specify Director's password used by the monitor
1715 --with-mon-fd-password=PASSWORD
1716 specify Client's password used by the monitor
1717 --with-mon-sd-password=PASSWORD
1718 specify Storage daemon's password used by the
1720 --with-db-name=DBNAME specify database name [default=bacula]
1721 --with-db-user=UNAME specify database user [default=bacula]
1722 --with-db-password=PWD specify database password [default=*none*]
1723 --with-db-port=DBPORT specify a database port [default=null]
1724 --with-db-ssl-options=DBSSLOPTIONS
1725 specify SSL options for database user connection
1727 --with-dir-user=USER specify user for Director daemon
1728 --with-dir-group=GROUP specify group for Director daemon
1729 --with-sd-user=USER specify user for Storage daemon
1730 --with-sd-group=GROUP specify group for Storage daemon
1731 --with-fd-user=USER specify user for File daemon
1732 --with-fd-group=GROUP specify group for File daemon
1733 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1734 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1735 base install directory, [default=/usr/local/pgsql]
1736 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1737 directory, default is to search through a number of
1738 common places for the MySQL files.
1739 --with-embedded-mysql[=DIR]
1740 Include MySQL support. DIR is the MySQL base install
1741 directory, default is to search through a number of
1742 common places for the MySQL files.
1743 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1744 install directory, default is to search through a
1745 number of common places for the SQLite3 files.
1746 --with-x use the X Window System
1747 --with-afsdir[=DIR] Directory holding AFS includes/libs
1748 --with-lzo[=DIR] specify lzo library directory
1749 --with-systemd[=UNITDIR]
1750 Include systemd support. UNITDIR is where systemd
1751 system .service files are located, default is to ask
1754 Some influential environment variables:
1755 CC C compiler command
1756 CFLAGS C compiler flags
1757 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1758 nonstandard directory <lib dir>
1759 LIBS libraries to pass to the linker, e.g. -l<library>
1760 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1761 you have headers in a nonstandard directory <include dir>
1762 CXX C++ compiler command
1763 CXXFLAGS C++ compiler flags
1765 CXXCPP C++ preprocessor
1766 XMKMF Path to xmkmf, Makefile generator for X Window System
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1771 Report bugs to the package provider.
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1801 .) # We are building in place.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1834 bacula configure 7.2.1
1835 generated by GNU Autoconf 2.69
1837 Copyright (C) 2012 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_try_compile
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext
1893 if { { ac_try="$ac_compile"
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_compile") 2>conftest.err
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest.$ac_objext; then :
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_cxx_try_compile
1924 # ac_fn_c_try_cpp LINENO
1925 # ----------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } > conftest.i && {
1946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 test -x conftest$ac_exeext
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_link
2007 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists and can be compiled using the include files in
2010 # INCLUDES, setting the cache variable VAR accordingly.
2011 ac_fn_c_check_header_compile ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_header_compile
2038 # ac_fn_c_try_run LINENO
2039 # ----------------------
2040 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2041 # that executables *can* be run.
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if { { ac_try="$ac_link"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_link") 2>&5
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2056 { { case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_try") 2>&5
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; }; }; then :
2068 $as_echo "$as_me: program exited with status $ac_status" >&5
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2072 ac_retval=$ac_status
2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 as_fn_set_status $ac_retval
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2095 #define $2 innocuous_$2
2097 /* System header to define __stub macros and hopefully few prototypes,
2098 which can conflict with char $2 (); below.
2099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100 <limits.h> exists even on freestanding compilers. */
2103 # include <limits.h>
2105 # include <assert.h>
2110 /* Override any GCC internal prototype to avoid an error.
2111 Use char because int might match the return type of a GCC
2112 builtin and then its argument prototype would still apply. */
2117 /* The GNU C library defines this for functions which it implements
2118 to always fail with ENOSYS. Some functions are actually named
2119 something starting with __ and the normal name is an alias. */
2120 #if defined __stub_$2 || defined __stub___$2
2132 if ac_fn_c_try_link "$LINENO"; then :
2137 rm -f core conftest.err conftest.$ac_objext \
2138 conftest$ac_exeext conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 } # ac_fn_c_check_func
2147 # ac_fn_cxx_try_cpp LINENO
2148 # ------------------------
2149 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_cxx_try_cpp ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 if { { ac_try="$ac_cpp conftest.$ac_ext"
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2162 if test -s conftest.err; then
2163 grep -v '^ *+' conftest.err >conftest.er1
2164 cat conftest.er1 >&5
2165 mv -f conftest.er1 conftest.err
2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; } > conftest.i && {
2169 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2170 test ! -s conftest.err
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2182 } # ac_fn_cxx_try_cpp
2184 # ac_fn_cxx_try_link LINENO
2185 # -------------------------
2186 # Try to link conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_link ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 rm -f conftest.$ac_objext conftest$ac_exeext
2191 if { { ac_try="$ac_link"
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_link") 2>conftest.err
2200 if test -s conftest.err; then
2201 grep -v '^ *+' conftest.err >conftest.er1
2202 cat conftest.er1 >&5
2203 mv -f conftest.er1 conftest.err
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } && {
2207 test -z "$ac_cxx_werror_flag" ||
2208 test ! -s conftest.err
2209 } && test -s conftest$ac_exeext && {
2210 test "$cross_compiling" = yes ||
2211 test -x conftest$ac_exeext
2215 $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2220 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2221 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2222 # interfere with the next link command; also delete a directory that is
2223 # left behind by Apple's compiler. We do this before executing the actions.
2224 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
2228 } # ac_fn_cxx_try_link
2230 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2231 # ---------------------------------------------
2232 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2234 ac_fn_c_check_decl ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 as_decl_name=`echo $2|sed 's/ *(.*//'`
2238 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2240 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2250 #ifndef $as_decl_name
2252 (void) $as_decl_use;
2254 (void) $as_decl_name;
2262 if ac_fn_c_try_compile "$LINENO"; then :
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274 } # ac_fn_c_check_decl
2276 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2277 # -------------------------------------------
2278 # Tests whether TYPE exists after having included INCLUDES, setting cache
2279 # variable VAR accordingly.
2280 ac_fn_c_check_type ()
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 $as_echo_n "checking for $2... " >&6; }
2285 if eval \${$3+:} false; then :
2286 $as_echo_n "(cached) " >&6
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2314 if ac_fn_c_try_compile "$LINENO"; then :
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328 } # ac_fn_c_check_type
2330 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2331 # -------------------------------------------------------
2332 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2333 # the include files in INCLUDES and setting the cache variable VAR
2335 ac_fn_c_check_header_mongrel ()
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 if eval \${$3+:} false; then :
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if eval \${$3+:} false; then :
2342 $as_echo_n "(cached) " >&6
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2348 # Is the header compilable?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2350 $as_echo_n "checking $2 usability... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357 ac_header_compiler=yes
2359 ac_header_compiler=no
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2363 $as_echo "$ac_header_compiler" >&6; }
2365 # Is the header present?
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2367 $as_echo_n "checking $2 presence... " >&6; }
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2372 if ac_fn_c_try_cpp "$LINENO"; then :
2373 ac_header_preproc=yes
2375 ac_header_preproc=no
2377 rm -f conftest.err conftest.i conftest.$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2379 $as_echo "$ac_header_preproc" >&6; }
2381 # So? What about this header?
2382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2385 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2387 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2391 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2393 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2395 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2397 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2399 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2403 $as_echo_n "checking for $2... " >&6; }
2404 if eval \${$3+:} false; then :
2405 $as_echo_n "(cached) " >&6
2407 eval "$3=\$ac_header_compiler"
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 } # ac_fn_c_check_header_mongrel
2417 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2418 # --------------------------------------------
2419 # Tries to find the compile-time value of EXPR in a program that includes
2420 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2422 ac_fn_c_compute_int ()
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 if test "$cross_compiling" = yes; then
2426 # Depending upon the size, compute the lo and hi bounds.
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2433 static int test_array [1 - 2 * !(($2) >= 0)];
2435 return test_array [0];
2441 if ac_fn_c_try_compile "$LINENO"; then :
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2450 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2452 return test_array [0];
2458 if ac_fn_c_try_compile "$LINENO"; then :
2459 ac_hi=$ac_mid; break
2461 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2462 if test $ac_lo -le $ac_mid; then
2466 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2477 static int test_array [1 - 2 * !(($2) < 0)];
2479 return test_array [0];
2485 if ac_fn_c_try_compile "$LINENO"; then :
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2494 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2496 return test_array [0];
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503 ac_lo=$ac_mid; break
2505 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2506 if test $ac_mid -le $ac_hi; then
2510 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 # Binary search between lo and hi bounds.
2521 while test "x$ac_lo" != "x$ac_hi"; do
2522 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2529 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2531 return test_array [0];
2537 if ac_fn_c_try_compile "$LINENO"; then :
2540 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2552 static long int longval () { return $2; }
2553 static unsigned long int ulongval () { return $2; }
2560 FILE *f = fopen ("conftest.val", "w");
2565 long int i = longval ();
2568 fprintf (f, "%ld", i);
2572 unsigned long int i = ulongval ();
2575 fprintf (f, "%lu", i);
2577 /* Do not output a trailing newline, as this causes \r\n confusion
2578 on some platforms. */
2579 return ferror (f) || fclose (f) != 0;
2585 if ac_fn_c_try_run "$LINENO"; then :
2586 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2591 conftest.$ac_objext conftest.beam conftest.$ac_ext
2595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596 as_fn_set_status $ac_retval
2598 } # ac_fn_c_compute_int
2600 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2601 # ----------------------------------------------------
2602 # Tries to find if the field MEMBER exists in type AGGR, after including
2603 # INCLUDES, setting cache variable VAR accordingly.
2604 ac_fn_c_check_member ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2608 $as_echo_n "checking for $2.$3... " >&6; }
2609 if eval \${$4+:} false; then :
2610 $as_echo_n "(cached) " >&6
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2625 if ac_fn_c_try_compile "$LINENO"; then :
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h. */
2635 if (sizeof ac_aggr.$3)
2641 if ac_fn_c_try_compile "$LINENO"; then :
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2652 $as_echo "$ac_res" >&6; }
2653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2655 } # ac_fn_c_check_member
2657 # ac_fn_cxx_try_run LINENO
2658 # ------------------------
2659 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2660 # that executables *can* be run.
2661 ac_fn_cxx_try_run ()
2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664 if { { ac_try="$ac_link"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670 $as_echo "$ac_try_echo"; } >&5
2671 (eval "$ac_link") 2>&5
2673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2675 { { case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680 $as_echo "$ac_try_echo"; } >&5
2681 (eval "$ac_try") 2>&5
2683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684 test $ac_status = 0; }; }; then :
2687 $as_echo "$as_me: program exited with status $ac_status" >&5
2688 $as_echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2691 ac_retval=$ac_status
2693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 as_fn_set_status $ac_retval
2697 } # ac_fn_cxx_try_run
2699 # ac_fn_cxx_check_func LINENO FUNC VAR
2700 # ------------------------------------
2701 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2702 ac_fn_cxx_check_func ()
2704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2706 $as_echo_n "checking for $2... " >&6; }
2707 if eval \${$3+:} false; then :
2708 $as_echo_n "(cached) " >&6
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2712 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2714 #define $2 innocuous_$2
2716 /* System header to define __stub macros and hopefully few prototypes,
2717 which can conflict with char $2 (); below.
2718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2719 <limits.h> exists even on freestanding compilers. */
2722 # include <limits.h>
2724 # include <assert.h>
2729 /* Override any GCC internal prototype to avoid an error.
2730 Use char because int might match the return type of a GCC
2731 builtin and then its argument prototype would still apply. */
2736 /* The GNU C library defines this for functions which it implements
2737 to always fail with ENOSYS. Some functions are actually named
2738 something starting with __ and the normal name is an alias. */
2739 #if defined __stub_$2 || defined __stub___$2
2751 if ac_fn_cxx_try_link "$LINENO"; then :
2756 rm -f core conftest.err conftest.$ac_objext \
2757 conftest$ac_exeext conftest.$ac_ext
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764 } # ac_fn_cxx_check_func
2765 cat >config.log <<_ACEOF
2766 This file contains any messages produced by compilers while
2767 running configure, to aid debugging if configure makes a mistake.
2769 It was created by bacula $as_me 7.2.1, which was
2770 generated by GNU Autoconf 2.69. Invocation command line was
2782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2794 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 $as_echo "PATH: $as_dir"
2822 # Keep a trace of the command line.
2823 # Strip out --no-create and --no-recursion so they do not pile up.
2824 # Strip out --silent because we don't want to record it for future runs.
2825 # Also quote any args containing shell meta-characters.
2826 # Make two passes to allow for proper duplicate-argument suppression.
2830 ac_must_keep_next=false
2836 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2838 | -silent | --silent | --silen | --sile | --sil)
2841 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2844 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2846 as_fn_append ac_configure_args1 " '$ac_arg'"
2847 if test $ac_must_keep_next = true; then
2848 ac_must_keep_next=false # Got value, back to normal.
2851 *=* | --config-cache | -C | -disable-* | --disable-* \
2852 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2853 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2854 | -with-* | --with-* | -without-* | --without-* | --x)
2855 case "$ac_configure_args0 " in
2856 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2859 -* ) ac_must_keep_next=true ;;
2862 as_fn_append ac_configure_args " '$ac_arg'"
2867 { ac_configure_args0=; unset ac_configure_args0;}
2868 { ac_configure_args1=; unset ac_configure_args1;}
2870 # When interrupted or exit'd, cleanup temporary files, and complete
2871 # config.log. We remove comments because anyway the quotes in there
2872 # would cause problems or look ugly.
2873 # WARNING: Use '\'' to represent an apostrophe within the trap.
2874 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2875 trap 'exit_status=$?
2876 # Save into config.log some information that might help in debugging.
2880 $as_echo "## ---------------- ##
2881 ## Cache variables. ##
2882 ## ---------------- ##"
2884 # The following way of writing the cache mishandles newlines in values,
2886 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2887 eval ac_val=\$$ac_var
2891 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2895 _ | IFS | as_nl) ;; #(
2896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2897 *) { eval $ac_var=; unset $ac_var;} ;;
2902 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2903 *${as_nl}ac_space=\ *)
2905 "s/'\''/'\''\\\\'\'''\''/g;
2906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2916 $as_echo "## ----------------- ##
2917 ## Output variables. ##
2918 ## ----------------- ##"
2920 for ac_var in $ac_subst_vars
2922 eval ac_val=\$$ac_var
2924 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2926 $as_echo "$ac_var='\''$ac_val'\''"
2930 if test -n "$ac_subst_files"; then
2931 $as_echo "## ------------------- ##
2932 ## File substitutions. ##
2933 ## ------------------- ##"
2935 for ac_var in $ac_subst_files
2937 eval ac_val=\$$ac_var
2939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2941 $as_echo "$ac_var='\''$ac_val'\''"
2946 if test -s confdefs.h; then
2947 $as_echo "## ----------- ##
2954 test "$ac_signal" != 0 &&
2955 $as_echo "$as_me: caught signal $ac_signal"
2956 $as_echo "$as_me: exit $exit_status"
2958 rm -f core *.core core.conftest.* &&
2959 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2962 for ac_signal in 1 2 13 15; do
2963 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2967 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2968 rm -f -r conftest* confdefs.h
2970 $as_echo "/* confdefs.h */" > confdefs.h
2972 # Predefined preprocessor variables.
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_NAME "$PACKAGE_NAME"
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2986 cat >>confdefs.h <<_ACEOF
2987 #define PACKAGE_STRING "$PACKAGE_STRING"
2990 cat >>confdefs.h <<_ACEOF
2991 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2994 cat >>confdefs.h <<_ACEOF
2995 #define PACKAGE_URL "$PACKAGE_URL"
2999 # Let the site file select an alternate cache file if it wants to.
3000 # Prefer an explicitly selected file to automatically selected ones.
3003 if test -n "$CONFIG_SITE"; then
3004 # We do not want a PATH search for config.site.
3005 case $CONFIG_SITE in #((
3006 -*) ac_site_file1=./$CONFIG_SITE;;
3007 */*) ac_site_file1=$CONFIG_SITE;;
3008 *) ac_site_file1=./$CONFIG_SITE;;
3010 elif test "x$prefix" != xNONE; then
3011 ac_site_file1=$prefix/share/config.site
3012 ac_site_file2=$prefix/etc/config.site
3014 ac_site_file1=$ac_default_prefix/share/config.site
3015 ac_site_file2=$ac_default_prefix/etc/config.site
3017 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3019 test "x$ac_site_file" = xNONE && continue
3020 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3022 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3023 sed 's/^/| /' "$ac_site_file" >&5
3025 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error $? "failed to load site script $ac_site_file
3028 See \`config.log' for more details" "$LINENO" 5; }
3032 if test -r "$cache_file"; then
3033 # Some versions of bash will fail to source /dev/null (special files
3034 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3035 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3037 $as_echo "$as_me: loading cache $cache_file" >&6;}
3039 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3040 *) . "./$cache_file";;
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3045 $as_echo "$as_me: creating cache $cache_file" >&6;}
3049 as_fn_append ac_header_list " stdlib.h"
3050 as_fn_append ac_header_list " unistd.h"
3051 as_fn_append ac_header_list " sys/param.h"
3052 # Check that the precious variables saved in the cache have kept the same
3054 ac_cache_corrupted=false
3055 for ac_var in $ac_precious_vars; do
3056 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3057 eval ac_new_set=\$ac_env_${ac_var}_set
3058 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3059 eval ac_new_val=\$ac_env_${ac_var}_value
3060 case $ac_old_set,$ac_new_set in
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3063 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3064 ac_cache_corrupted=: ;;
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3067 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3068 ac_cache_corrupted=: ;;
3071 if test "x$ac_old_val" != "x$ac_new_val"; then
3072 # differences in whitespace do not lead to failure.
3073 ac_old_val_w=`echo x $ac_old_val`
3074 ac_new_val_w=`echo x $ac_new_val`
3075 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3077 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3078 ac_cache_corrupted=:
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3081 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3082 eval $ac_var=\$ac_old_val
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3085 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3087 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3090 # Pass precious variables to config.status.
3091 if test "$ac_new_set" = set; then
3093 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3094 *) ac_arg=$ac_var=$ac_new_val ;;
3096 case " $ac_configure_args " in
3097 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3098 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3102 if $ac_cache_corrupted; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3106 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3107 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3109 ## -------------------- ##
3110 ## Main body of script. ##
3111 ## -------------------- ##
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3130 if test -f "$ac_dir/install-sh"; then
3132 ac_install_sh="$ac_aux_dir/install-sh -c"
3134 elif test -f "$ac_dir/install.sh"; then
3136 ac_install_sh="$ac_aux_dir/install.sh -c"
3138 elif test -f "$ac_dir/shtool"; then
3140 ac_install_sh="$ac_aux_dir/shtool install -c"
3144 if test -z "$ac_aux_dir"; then
3145 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3148 # These three variables are undocumented and unsupported,
3149 # and are intended to be withdrawn in a future Autoconf release.
3150 # They can cause serious problems if a builder's source tree is in a directory
3151 # whose full name contains unusual characters.
3152 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3153 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3154 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3157 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_path_TRUEPRG+:} false; then :
3167 $as_echo_n "(cached) " >&6
3171 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 TRUEPRG=$ac_cv_path_TRUEPRG
3193 if test -n "$TRUEPRG"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3195 $as_echo "$TRUEPRG" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3202 test -n "$TRUEPRG" && break
3204 test -n "$TRUEPRG" || TRUEPRG=":"
3206 for ac_prog in false
3208 # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_path_FALSEPRG+:} false; then :
3213 $as_echo_n "(cached) " >&6
3217 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 FALSEPRG=$ac_cv_path_FALSEPRG
3239 if test -n "$FALSEPRG"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3241 $as_echo "$FALSEPRG" >&6; }
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3248 test -n "$FALSEPRG" && break
3250 test -n "$FALSEPRG" || FALSEPRG=":"
3255 if test "x$BACULA" != x; then
3256 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3258 BACULA=${BACULA:-Bacula}
3259 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3260 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3261 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3264 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3265 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3273 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3276 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3277 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3280 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3283 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3289 PFILES="platforms/Makefile"
3291 echo "configuring for ${BACULA} $VERSION ($DATE)"
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_CC+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3339 if test -z "$ac_cv_prog_CC"; then
3341 # Extract the first word of "gcc", so it can be a program name with args.
3342 set dummy gcc; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_ac_ct_CC="gcc"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3369 if test -n "$ac_ct_CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3371 $as_echo "$ac_ct_CC" >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3377 if test "x$ac_ct_CC" = x; then
3380 case $cross_compiling:$ac_tool_warned in
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384 ac_tool_warned=yes ;;
3392 if test -z "$CC"; then
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}cc; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_CC+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_CC="${ac_tool_prefix}cc"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 if test -n "$CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 $as_echo "$CC" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3433 if test -z "$CC"; then
3434 # Extract the first word of "cc", so it can be a program name with args.
3435 set dummy cc; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453 ac_prog_rejected=yes
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 if test $ac_prog_rejected = yes; then
3465 # We found a bogon in the path, so make sure we never use it.
3466 set dummy $ac_cv_prog_CC
3468 if test $# != 0; then
3469 # We chose a different compiler from the bogus one.
3470 # However, it has the same basename, so the bogon will be chosen
3471 # first if we set CC to just the basename; use the full file name.
3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3479 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl.exe
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3530 test -n "$CC" && break
3533 if test -z "$CC"; then
3535 for ac_prog in cl.exe
3537 # Extract the first word of "$ac_prog", so it can be a program name with args.
3538 set dummy $ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_ac_ct_CC="$ac_prog"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567 $as_echo "$ac_ct_CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3574 test -n "$ac_ct_CC" && break
3577 if test "x$ac_ct_CC" = x; then
3580 case $cross_compiling:$ac_tool_warned in
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3593 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "no acceptable C compiler found in \$PATH
3596 See \`config.log' for more details" "$LINENO" 5; }
3598 # Provide some information about the compiler.
3599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602 for ac_option in --version -v -V -qversion; do
3603 { { ac_try="$ac_compiler $ac_option >&5"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3612 if test -s conftest.err; then
3614 ... rest of stderr output deleted ...
3615 10q' conftest.err >conftest.er1
3616 cat conftest.er1 >&5
3618 rm -f conftest.er1 conftest.err
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3634 ac_clean_files_save=$ac_clean_files
3635 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3636 # Try to create an executable without -o first, disregard a.out.
3637 # It will help us diagnose broken compilers, and finding out an intuition
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3640 $as_echo_n "checking whether the C compiler works... " >&6; }
3641 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3643 # The possible output files:
3644 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3647 for ac_file in $ac_files
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3656 if { { ac_try="$ac_link_default"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_link_default") 2>&5
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3668 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3669 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3670 # so that the user can short-circuit this test for compilers unknown to
3672 for ac_file in $ac_files ''
3674 test -f "$ac_file" || continue
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3679 # We found the default executable, but exeext='' is most
3683 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687 # We set ac_cv_exeext here because the later test for it is not
3688 # safe: cross compilers may not add the suffix if given an `-o'
3689 # argument, so we may need to know it at that point already.
3690 # Even if this section looks crufty: it has the advantage of
3697 test "$ac_cv_exeext" = no && ac_cv_exeext=
3702 if test -z "$ac_file"; then :
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error 77 "C compiler cannot create executables
3711 See \`config.log' for more details" "$LINENO" 5; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714 $as_echo "yes" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3717 $as_echo_n "checking for C compiler default output file name... " >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3719 $as_echo "$ac_file" >&6; }
3720 ac_exeext=$ac_cv_exeext
3722 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3725 $as_echo_n "checking for suffix of executables... " >&6; }
3726 if { { ac_try="$ac_link"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; then :
3737 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3738 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3739 # work properly (i.e., refer to `conftest.exe'), while it won't with
3741 for ac_file in conftest.exe conftest conftest.*; do
3742 test -f "$ac_file" || continue
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 rm -f conftest conftest$ac_cv_exeext
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3758 $as_echo "$ac_cv_exeext" >&6; }
3760 rm -f conftest.$ac_ext
3761 EXEEXT=$ac_cv_exeext
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3769 FILE *f = fopen ("conftest.out", "w");
3770 return ferror (f) || fclose (f) != 0;
3776 ac_clean_files="$ac_clean_files conftest.out"
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780 $as_echo_n "checking whether we are cross compiling... " >&6; }
3781 if test "$cross_compiling" != yes; then
3782 { { ac_try="$ac_link"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_link") 2>&5
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3793 if { ac_try='./conftest$ac_cv_exeext'
3794 { { case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_try") 2>&5
3802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803 test $ac_status = 0; }; }; then
3806 if test "$cross_compiling" = maybe; then
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "cannot run C compiled programs.
3812 If you meant to cross compile, use \`--host'.
3813 See \`config.log' for more details" "$LINENO" 5; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3818 $as_echo "$cross_compiling" >&6; }
3820 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3821 ac_clean_files=$ac_clean_files_save
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3823 $as_echo_n "checking for suffix of object files... " >&6; }
3824 if ${ac_cv_objext+:} false; then :
3825 $as_echo_n "(cached) " >&6
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3838 rm -f conftest.o conftest.obj
3839 if { { ac_try="$ac_compile"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_compile") 2>&5
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; then :
3850 for ac_file in conftest.o conftest.obj conftest.*; do
3851 test -f "$ac_file" || continue;
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error $? "cannot compute suffix of object files: cannot compile
3865 See \`config.log' for more details" "$LINENO" 5; }
3867 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3870 $as_echo "$ac_cv_objext" >&6; }
3871 OBJEXT=$ac_cv_objext
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3874 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3875 if ${ac_cv_c_compiler_gnu+:} false; then :
3876 $as_echo_n "(cached) " >&6
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3892 if ac_fn_c_try_compile "$LINENO"; then :
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3902 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3903 if test $ac_compiler_gnu = yes; then
3908 ac_test_CFLAGS=${CFLAGS+set}
3909 ac_save_CFLAGS=$CFLAGS
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3911 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3912 if ${ac_cv_prog_cc_g+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 ac_save_c_werror_flag=$ac_c_werror_flag
3916 ac_c_werror_flag=yes
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3930 if ac_fn_c_try_compile "$LINENO"; then :
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3945 if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_c_werror_flag=$ac_save_c_werror_flag
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3961 if ac_fn_c_try_compile "$LINENO"; then :
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3972 $as_echo "$ac_cv_prog_cc_g" >&6; }
3973 if test "$ac_test_CFLAGS" = set; then
3974 CFLAGS=$ac_save_CFLAGS
3975 elif test $ac_cv_prog_cc_g = yes; then
3976 if test "$GCC" = yes; then
3982 if test "$GCC" = yes; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3990 if ${ac_cv_prog_cc_c89+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 ac_cv_prog_cc_c89=no
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4001 struct buf { int x; };
4002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003 static char *e (p, i)
4009 static char *f (char * (*g) (char **, int), char **p, ...)
4014 s = g (p, va_arg (v,int));
4019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4020 function prototypes and stuff, but not '\xHH' hex character constants.
4021 These don't provoke an error unfortunately, instead are silently treated
4022 as 'x'. The following induces an error, until -std is added to get
4023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4024 array size at least. It's necessary to write '\x00'==0 to get something
4025 that's true only with -std. */
4026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4029 inside strings and character constants. */
4031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033 int test (int i, double x);
4034 struct s1 {int (*f) (int a);};
4035 struct s2 {int (*f) (double a);};
4036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050 CC="$ac_save_CC $ac_arg"
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_prog_cc_c89=$ac_arg
4054 rm -f core conftest.err conftest.$ac_objext
4055 test "x$ac_cv_prog_cc_c89" != "xno" && break
4057 rm -f conftest.$ac_ext
4062 case "x$ac_cv_prog_cc_c89" in
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4065 $as_echo "none needed" >&6; } ;;
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068 $as_echo "unsupported" >&6; } ;;
4070 CC="$CC $ac_cv_prog_cc_c89"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4072 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074 if test "x$ac_cv_prog_cc_c89" != xno; then :
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 ac_cpp='$CXXCPP $CPPFLAGS'
4086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4089 if test -z "$CXX"; then
4090 if test -n "$CCC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CXX+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 if test -n "$CXX"; then
4104 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 if test -n "$CXX"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4126 $as_echo "$CXX" >&6; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4133 test -n "$CXX" && break
4136 if test -z "$CXX"; then
4138 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -n "$ac_ct_CXX"; then
4148 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_ac_ct_CXX="$ac_prog"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4168 if test -n "$ac_ct_CXX"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4170 $as_echo "$ac_ct_CXX" >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4177 test -n "$ac_ct_CXX" && break
4180 if test "x$ac_ct_CXX" = x; then
4183 case $cross_compiling:$ac_tool_warned in
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4195 # Provide some information about the compiler.
4196 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4199 for ac_option in --version -v -V -qversion; do
4200 { { ac_try="$ac_compiler $ac_option >&5"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4209 if test -s conftest.err; then
4211 ... rest of stderr output deleted ...
4212 10q' conftest.err >conftest.er1
4213 cat conftest.er1 >&5
4215 rm -f conftest.er1 conftest.err
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4221 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4222 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4239 if ac_fn_cxx_try_compile "$LINENO"; then :
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4249 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4250 if test $ac_compiler_gnu = yes; then
4255 ac_test_CXXFLAGS=${CXXFLAGS+set}
4256 ac_save_CXXFLAGS=$CXXFLAGS
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4258 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4259 if ${ac_cv_prog_cxx_g+:} false; then :
4260 $as_echo_n "(cached) " >&6
4262 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4263 ac_cxx_werror_flag=yes
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278 ac_cv_prog_cxx_g=yes
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4292 if ac_fn_cxx_try_compile "$LINENO"; then :
4295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4309 ac_cv_prog_cxx_g=yes
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4319 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4320 if test "$ac_test_CXXFLAGS" = set; then
4321 CXXFLAGS=$ac_save_CXXFLAGS
4322 elif test $ac_cv_prog_cxx_g = yes; then
4323 if test "$GXX" = yes; then
4329 if test "$GXX" = yes; then
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 if test "x$CC" != xcc; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4343 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4346 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4348 set dummy $CC; ac_cc=`$as_echo "$2" |
4349 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4350 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4364 # Make sure it works both with $CC and with simple cc.
4365 # We do the test twice because some compilers refuse to overwrite an
4366 # existing .o file with -o, though they will create one.
4367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4369 if { { case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374 $as_echo "$ac_try_echo"; } >&5
4375 (eval "$ac_try") 2>&5
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; } &&
4379 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_try") 2>&5
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; };
4390 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4391 if test "x$CC" != xcc; then
4392 # Test first that cc exists at all.
4393 if { ac_try='cc -c conftest.$ac_ext >&5'
4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
4404 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4406 if { { case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412 (eval "$ac_try") 2>&5
4414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415 test $ac_status = 0; } &&
4416 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_try") 2>&5
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; };
4430 # cc exists but doesn't like -o.
4431 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4436 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4438 rm -f core conftest*
4441 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4448 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4459 # On Suns, sometimes $CPP names a directory.
4460 if test -n "$CPP" && test -d "$CPP"; then
4463 if test -z "$CPP"; then
4464 if ${ac_cv_prog_CPP+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 # Double quotes because CPP needs to be expanded
4468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4471 for ac_c_preproc_warn_flag in '' yes
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 # include <limits.h>
4484 # include <assert.h>
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: fails on valid input.
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <ac_nonexistent.h>
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503 # Broken: success on invalid input.
4506 # Passes both tests.
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4528 $as_echo "$CPP" >&6; }
4530 for ac_c_preproc_warn_flag in '' yes
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 # include <limits.h>
4543 # include <assert.h>
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4550 # Broken: fails on valid input.
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562 # Broken: success on invalid input.
4565 # Passes both tests.
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details" "$LINENO" 5; }
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4592 if ${ac_cv_path_GREP+:} false; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -z "$GREP"; then
4596 ac_path_GREP_found=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 test -z "$as_dir" && as_dir=.
4603 for ac_prog in grep ggrep; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4606 as_fn_executable_p "$ac_path_GREP" || continue
4607 # Check for GNU ac_path_GREP and select it if it is found.
4608 # Check for GNU $ac_path_GREP
4609 case `"$ac_path_GREP" --version 2>&1` in
4611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4614 $as_echo_n 0123456789 >"conftest.in"
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'GREP' >> "conftest.nl"
4621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623 as_fn_arith $ac_count + 1 && ac_count=$as_val
4624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_GREP="$ac_path_GREP"
4627 ac_path_GREP_max=$ac_count
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 $ac_path_GREP_found && break 3
4640 if test -z "$ac_cv_path_GREP"; then
4641 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 ac_cv_path_GREP=$GREP
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649 $as_echo "$ac_cv_path_GREP" >&6; }
4650 GREP="$ac_cv_path_GREP"
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654 $as_echo_n "checking for egrep... " >&6; }
4655 if ${ac_cv_path_EGREP+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659 then ac_cv_path_EGREP="$GREP -E"
4661 if test -z "$EGREP"; then
4662 ac_path_EGREP_found=false
4663 # Loop through the user's path and test for each of PROGNAME-LIST
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 test -z "$as_dir" && as_dir=.
4669 for ac_prog in egrep; do
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672 as_fn_executable_p "$ac_path_EGREP" || continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674 # Check for GNU $ac_path_EGREP
4675 case `"$ac_path_EGREP" --version 2>&1` in
4677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4680 $as_echo_n 0123456789 >"conftest.in"
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 $as_echo 'EGREP' >> "conftest.nl"
4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689 as_fn_arith $ac_count + 1 && ac_count=$as_val
4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_EGREP="$ac_path_EGREP"
4693 ac_path_EGREP_max=$ac_count
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 $ac_path_EGREP_found && break 3
4706 if test -z "$ac_cv_path_EGREP"; then
4707 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 ac_cv_path_EGREP=$EGREP
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716 $as_echo "$ac_cv_path_EGREP" >&6; }
4717 EGREP="$ac_cv_path_EGREP"
4720 if test $ac_cv_c_compiler_gnu = yes; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4722 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4723 if ${ac_cv_prog_gcc_traditional+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 ac_pattern="Autoconf.*'x'"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4734 ac_cv_prog_gcc_traditional=yes
4736 ac_cv_prog_gcc_traditional=no
4741 if test $ac_cv_prog_gcc_traditional = no; then
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4749 ac_cv_prog_gcc_traditional=yes
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4756 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4757 if test $ac_cv_prog_gcc_traditional = yes; then
4758 CC="$CC -traditional"
4762 BASECC=`basename $CC`
4764 if test "x$BASECC" = xgcc; then
4765 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4769 # Extract the first word of "$CXX", so it can be a program name with args.
4770 set dummy $CXX; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_path_CXX+:} false; then :
4774 $as_echo_n "(cached) " >&6
4778 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4801 if test -n "$CXX"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4803 $as_echo "$CXX" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4810 if test ! -e $CXX; then
4811 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4814 # Find a good install program. We prefer a C program (faster),
4815 # so one script is as good as another. But avoid the broken or
4816 # incompatible versions:
4817 # SysV /etc/install, /usr/sbin/install
4818 # SunOS /usr/etc/install
4819 # IRIX /sbin/install
4821 # AmigaOS /C/install, which installs bootblocks on floppy discs
4822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4825 # OS/2's system install, which has a completely different semantic
4826 # ./install, which can be erroneously created by make from ./install.sh.
4827 # Reject install programs that cannot install multiple files.
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4830 if test -z "$INSTALL"; then
4831 if ${ac_cv_path_install+:} false; then :
4832 $as_echo_n "(cached) " >&6
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 # Account for people who put trailing slashes in PATH elements.
4840 case $as_dir/ in #((
4841 ./ | .// | /[cC]/* | \
4842 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4843 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4846 # OSF1 and SCO ODT 3.0 have their own names for install.
4847 # Don't use installbsd from OSF since it installs stuff as root
4849 for ac_prog in ginstall scoinst install; do
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4852 if test $ac_prog = install &&
4853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4854 # AIX install. It has an incompatible calling convention.
4856 elif test $ac_prog = install &&
4857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4858 # program-specific install script used by HP pwplus--don't use.
4861 rm -rf conftest.one conftest.two conftest.dir
4862 echo one > conftest.one
4863 echo two > conftest.two
4865 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4866 test -s conftest.one && test -s conftest.two &&
4867 test -s conftest.dir/conftest.one &&
4868 test -s conftest.dir/conftest.two
4870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4883 rm -rf conftest.one conftest.two conftest.dir
4886 if test "${ac_cv_path_install+set}" = set; then
4887 INSTALL=$ac_cv_path_install
4889 # As a last resort, use the slow shell script. Don't cache a
4890 # value for INSTALL within a source directory, because that will
4891 # break other packages using the cache if that directory is
4892 # removed, or if the value is a relative name.
4893 INSTALL=$ac_install_sh
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4897 $as_echo "$INSTALL" >&6; }
4899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4900 # It thinks the first close brace ends the variable substitution.
4901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4907 # Extract the first word of "mv", so it can be a program name with args.
4908 set dummy mv; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_path_MV+:} false; then :
4912 $as_echo_n "(cached) " >&6
4916 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4939 if test -n "$MV"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4941 $as_echo "$MV" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4948 # Extract the first word of "rm", so it can be a program name with args.
4949 set dummy rm; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if ${ac_cv_path_REMOVE+:} false; then :
4953 $as_echo_n "(cached) " >&6
4957 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4979 REMOVE=$ac_cv_path_REMOVE
4980 if test -n "$REMOVE"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4982 $as_echo "$REMOVE" >&6; }
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4989 # Extract the first word of "cp", so it can be a program name with args.
4990 set dummy cp; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_path_CP+:} false; then :
4994 $as_echo_n "(cached) " >&6
4998 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5021 if test -n "$CP"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5023 $as_echo "$CP" >&6; }
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5030 # Extract the first word of "sed", so it can be a program name with args.
5031 set dummy sed; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_SED+:} false; then :
5035 $as_echo_n "(cached) " >&6
5039 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5062 if test -n "$SED"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5064 $as_echo "$SED" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5071 # Extract the first word of "echo", so it can be a program name with args.
5072 set dummy echo; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_path_ECHO+:} false; then :
5076 $as_echo_n "(cached) " >&6
5080 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5102 ECHO=$ac_cv_path_ECHO
5103 if test -n "$ECHO"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5105 $as_echo "$ECHO" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5112 # Extract the first word of "cmp", so it can be a program name with args.
5113 set dummy cmp; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_path_CMP+:} false; then :
5117 $as_echo_n "(cached) " >&6
5121 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5144 if test -n "$CMP"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5146 $as_echo "$CMP" >&6; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5153 # Extract the first word of "tbl", so it can be a program name with args.
5154 set dummy tbl; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_path_TBL+:} false; then :
5158 $as_echo_n "(cached) " >&6
5162 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5185 if test -n "$TBL"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5187 $as_echo "$TBL" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5194 # Extract the first word of "ar", so it can be a program name with args.
5195 set dummy ar; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_path_AR+:} false; then :
5199 $as_echo_n "(cached) " >&6
5203 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5226 if test -n "$AR"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5228 $as_echo "$AR" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 # Extract the first word of "openssl", so it can be a program name with args.
5236 set dummy openssl; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_path_OPENSSL+:} false; then :
5240 $as_echo_n "(cached) " >&6
5244 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5266 OPENSSL=$ac_cv_path_OPENSSL
5267 if test -n "$OPENSSL"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5269 $as_echo "$OPENSSL" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5276 # Extract the first word of "mtx", so it can be a program name with args.
5277 set dummy mtx; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_path_MTX+:} false; then :
5281 $as_echo_n "(cached) " >&6
5285 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5308 if test -n "$MTX"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5310 $as_echo "$MTX" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5317 # Extract the first word of "dd", so it can be a program name with args.
5318 set dummy dd; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_path_DD+:} false; then :
5322 $as_echo_n "(cached) " >&6
5326 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5349 if test -n "$DD"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5351 $as_echo "$DD" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 # Extract the first word of "mkisofs", so it can be a program name with args.
5359 set dummy mkisofs; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_path_MKISOFS+:} false; then :
5363 $as_echo_n "(cached) " >&6
5367 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5389 MKISOFS=$ac_cv_path_MKISOFS
5390 if test -n "$MKISOFS"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5392 $as_echo "$MKISOFS" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5399 # Extract the first word of "python", so it can be a program name with args.
5400 set dummy python; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if ${ac_cv_path_PYTHON+:} false; then :
5404 $as_echo_n "(cached) " >&6
5408 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5430 PYTHON=$ac_cv_path_PYTHON
5431 if test -n "$PYTHON"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5433 $as_echo "$PYTHON" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 # Extract the first word of "growisofs", so it can be a program name with args.
5441 set dummy growisofs; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_path_GROWISOFS+:} false; then :
5445 $as_echo_n "(cached) " >&6
5449 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5471 GROWISOFS=$ac_cv_path_GROWISOFS
5472 if test -n "$GROWISOFS"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5474 $as_echo "$GROWISOFS" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5482 set dummy dvd+rw-mediainfo; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5486 $as_echo_n "(cached) " >&6
5488 case $DVDRWMEDIAINFO in
5490 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5512 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5513 if test -n "$DVDRWMEDIAINFO"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5515 $as_echo "$DVDRWMEDIAINFO" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5522 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5523 set dummy dvd+rw-format; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5527 $as_echo_n "(cached) " >&6
5529 case $DVDRWFORMAT in
5531 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5553 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5554 if test -n "$DVDRWFORMAT"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5556 $as_echo "$DVDRWFORMAT" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 # Extract the first word of "pkg-config", so it can be a program name with args.
5564 set dummy pkg-config; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_path_PKGCONFIG+:} false; then :
5568 $as_echo_n "(cached) " >&6
5572 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5594 PKGCONFIG=$ac_cv_path_PKGCONFIG
5595 if test -n "$PKGCONFIG"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5597 $as_echo "$PKGCONFIG" >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5604 # Extract the first word of "qmake", so it can be a program name with args.
5605 set dummy qmake; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_path_QMAKE+:} false; then :
5609 $as_echo_n "(cached) " >&6
5613 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5635 QMAKE=$ac_cv_path_QMAKE
5636 if test -n "$QMAKE"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5638 $as_echo "$QMAKE" >&6; }
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5645 # Extract the first word of "gmake", so it can be a program name with args.
5646 set dummy gmake; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_path_GMAKE+:} false; then :
5650 $as_echo_n "(cached) " >&6
5654 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5676 GMAKE=$ac_cv_path_GMAKE
5677 if test -n "$GMAKE"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5679 $as_echo "$GMAKE" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5686 # Extract the first word of "pidof", so it can be a program name with args.
5687 set dummy pidof; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_path_PIDOF+:} false; then :
5691 $as_echo_n "(cached) " >&6
5695 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5717 PIDOF=$ac_cv_path_PIDOF
5718 if test -n "$PIDOF"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5720 $as_echo "$PIDOF" >&6; }
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5727 for ac_prog in gawk mawk nawk awk
5729 # Extract the first word of "$ac_prog", so it can be a program name with args.
5730 set dummy $ac_prog; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_prog_AWK+:} false; then :
5734 $as_echo_n "(cached) " >&6
5736 if test -n "$AWK"; then
5737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_AWK="$ac_prog"
5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 if test -n "$AWK"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5759 $as_echo "$AWK" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5766 test -n "$AWK" && break
5769 # Some AWK programs fail, so test it and warn the user
5770 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5771 { if ((prog == $2) || (("(" prog ")") == $2) ||
5772 (("" prog "") == $2) ||
5773 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5775 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5776 The regex engine of $AWK is too broken to be used you
5777 might want to install GNU AWK.
5778 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5781 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5782 set dummy $THE_AWK; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_path_AWK+:} false; then :
5786 $as_echo_n "(cached) " >&6
5790 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5813 if test -n "$AWK"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5815 $as_echo "$AWK" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5824 test -n "$ARFLAG" || ARFLAGS="cr"
5836 # Check whether --enable-libtool was given.
5837 if test "${enable_libtool+set}" = set; then :
5838 enableval=$enable_libtool;
5839 if test x$enableval = xno; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5849 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5854 macro_version='2.4.2'
5855 macro_revision='1.3337'
5869 ltmain="$ac_aux_dir/ltmain.sh"
5871 # Make sure we can run config.sub.
5872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5873 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5876 $as_echo_n "checking build system type... " >&6; }
5877 if ${ac_cv_build+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 ac_build_alias=$build_alias
5881 test "x$ac_build_alias" = x &&
5882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5883 test "x$ac_build_alias" = x &&
5884 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5890 $as_echo "$ac_cv_build" >&6; }
5891 case $ac_cv_build in
5893 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5896 ac_save_IFS=$IFS; IFS='-'
5902 # Remember, the first character of IFS is used to create $*,
5903 # except with old shells:
5906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5910 $as_echo_n "checking host system type... " >&6; }
5911 if ${ac_cv_host+:} false; then :
5912 $as_echo_n "(cached) " >&6
5914 if test "x$host_alias" = x; then
5915 ac_cv_host=$ac_cv_build
5917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5923 $as_echo "$ac_cv_host" >&6; }
5926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5929 ac_save_IFS=$IFS; IFS='-'
5935 # Remember, the first character of IFS is used to create $*,
5936 # except with old shells:
5939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5942 # Backslashify metacharacters that are still active within
5943 # double-quoted strings.
5944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5946 # Same as above, but do not quote variable references.
5947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5949 # Sed substitution to delay expansion of an escaped shell variable in a
5950 # double_quote_subst'ed string.
5951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5953 # Sed substitution to delay expansion of an escaped single quote.
5954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5956 # Sed substitution to avoid accidental globbing in evaled expressions
5957 no_glob_subst='s/\*/\\\*/g'
5959 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5964 $as_echo_n "checking how to print strings... " >&6; }
5965 # Test print first, because it will be a builtin if present.
5966 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5967 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5969 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5972 # Use this function as a fallback that always works.
5973 func_fallback_echo ()
5975 eval 'cat <<_LTECHO_EOF
5979 ECHO='func_fallback_echo'
5982 # func_echo_all arg...
5983 # Invoke $ECHO with all args, space-separated.
5990 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5991 $as_echo "printf" >&6; } ;;
5992 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5993 $as_echo "print -r" >&6; } ;;
5994 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5995 $as_echo "cat" >&6; } ;;
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6012 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6013 if ${ac_cv_path_SED+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6017 for ac_i in 1 2 3 4 5 6 7; do
6018 ac_script="$ac_script$as_nl$ac_script"
6020 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6021 { ac_script=; unset ac_script;}
6022 if test -z "$SED"; then
6023 ac_path_SED_found=false
6024 # Loop through the user's path and test for each of PROGNAME-LIST
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_prog in sed gsed; do
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6033 as_fn_executable_p "$ac_path_SED" || continue
6034 # Check for GNU ac_path_SED and select it if it is found.
6035 # Check for GNU $ac_path_SED
6036 case `"$ac_path_SED" --version 2>&1` in
6038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6041 $as_echo_n 0123456789 >"conftest.in"
6044 cat "conftest.in" "conftest.in" >"conftest.tmp"
6045 mv "conftest.tmp" "conftest.in"
6046 cp "conftest.in" "conftest.nl"
6047 $as_echo '' >> "conftest.nl"
6048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6050 as_fn_arith $ac_count + 1 && ac_count=$as_val
6051 if test $ac_count -gt ${ac_path_SED_max-0}; then
6052 # Best one so far, save it but keep looking for a better one
6053 ac_cv_path_SED="$ac_path_SED"
6054 ac_path_SED_max=$ac_count
6056 # 10*(2^10) chars as input seems more than enough
6057 test $ac_count -gt 10 && break
6059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6062 $ac_path_SED_found && break 3
6067 if test -z "$ac_cv_path_SED"; then
6068 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6076 $as_echo "$ac_cv_path_SED" >&6; }
6077 SED="$ac_cv_path_SED"
6080 test -z "$SED" && SED=sed
6081 Xsed="$SED -e 1s/^X//"
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6094 $as_echo_n "checking for fgrep... " >&6; }
6095 if ${ac_cv_path_FGREP+:} false; then :
6096 $as_echo_n "(cached) " >&6
6098 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6099 then ac_cv_path_FGREP="$GREP -F"
6101 if test -z "$FGREP"; then
6102 ac_path_FGREP_found=false
6103 # Loop through the user's path and test for each of PROGNAME-LIST
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6108 test -z "$as_dir" && as_dir=.
6109 for ac_prog in fgrep; do
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6112 as_fn_executable_p "$ac_path_FGREP" || continue
6113 # Check for GNU ac_path_FGREP and select it if it is found.
6114 # Check for GNU $ac_path_FGREP
6115 case `"$ac_path_FGREP" --version 2>&1` in
6117 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6120 $as_echo_n 0123456789 >"conftest.in"
6123 cat "conftest.in" "conftest.in" >"conftest.tmp"
6124 mv "conftest.tmp" "conftest.in"
6125 cp "conftest.in" "conftest.nl"
6126 $as_echo 'FGREP' >> "conftest.nl"
6127 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6129 as_fn_arith $ac_count + 1 && ac_count=$as_val
6130 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6131 # Best one so far, save it but keep looking for a better one
6132 ac_cv_path_FGREP="$ac_path_FGREP"
6133 ac_path_FGREP_max=$ac_count
6135 # 10*(2^10) chars as input seems more than enough
6136 test $ac_count -gt 10 && break
6138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6141 $ac_path_FGREP_found && break 3
6146 if test -z "$ac_cv_path_FGREP"; then
6147 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6150 ac_cv_path_FGREP=$FGREP
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6156 $as_echo "$ac_cv_path_FGREP" >&6; }
6157 FGREP="$ac_cv_path_FGREP"
6160 test -z "$GREP" && GREP=grep
6180 # Check whether --with-gnu-ld was given.
6181 if test "${with_gnu_ld+set}" = set; then :
6182 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6188 if test "$GCC" = yes; then
6189 # Check if gcc -print-prog-name=ld gives a path.
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6191 $as_echo_n "checking for ld used by $CC... " >&6; }
6194 # gcc leaves a trailing carriage return which upsets mingw
6195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6200 # Accept absolute paths.
6202 re_direlt='/[^/][^/]*/\.\./'
6203 # Canonicalize the pathname of ld
6204 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6205 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6206 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6208 test -z "$LD" && LD="$ac_prog"
6211 # If it fails, then pretend we aren't using GCC.
6215 # If it is relative, then search for the first ld in PATH.
6219 elif test "$with_gnu_ld" = yes; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6221 $as_echo_n "checking for GNU ld... " >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6224 $as_echo_n "checking for non-GNU ld... " >&6; }
6226 if ${lt_cv_path_LD+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -z "$LD"; then
6230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6231 for ac_dir in $PATH; do
6233 test -z "$ac_dir" && ac_dir=.
6234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6235 lt_cv_path_LD="$ac_dir/$ac_prog"
6236 # Check to see if the program is GNU ld. I'd rather use --version,
6237 # but apparently some variants of GNU ld only accept -v.
6238 # Break only if it was the GNU/non-GNU ld that we prefer.
6239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6240 *GNU* | *'with BFD'*)
6241 test "$with_gnu_ld" != no && break
6244 test "$with_gnu_ld" != yes && break
6251 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6256 if test -n "$LD"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6258 $as_echo "$LD" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6263 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6265 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6266 if ${lt_cv_prog_gnu_ld+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6270 case `$LD -v 2>&1 </dev/null` in
6271 *GNU* | *'with BFD'*)
6272 lt_cv_prog_gnu_ld=yes
6275 lt_cv_prog_gnu_ld=no
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6280 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6281 with_gnu_ld=$lt_cv_prog_gnu_ld
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6292 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6293 if ${lt_cv_path_NM+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 if test -n "$NM"; then
6297 # Let the user override the test.
6300 lt_nm_to_check="${ac_tool_prefix}nm"
6301 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6302 lt_nm_to_check="$lt_nm_to_check nm"
6304 for lt_tmp_nm in $lt_nm_to_check; do
6305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6306 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6308 test -z "$ac_dir" && ac_dir=.
6309 tmp_nm="$ac_dir/$lt_tmp_nm"
6310 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6311 # Check to see if the nm accepts a BSD-compat flag.
6312 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6313 # nm: unknown option "B" ignored
6314 # Tru64's nm complains that /dev/null is an invalid object file
6315 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6316 */dev/null* | *'Invalid file or object type'*)
6317 lt_cv_path_NM="$tmp_nm -B"
6321 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6323 lt_cv_path_NM="$tmp_nm -p"
6327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6328 continue # so that we can try to find one that supports BSD flags
6337 : ${lt_cv_path_NM=no}
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6341 $as_echo "$lt_cv_path_NM" >&6; }
6342 if test "$lt_cv_path_NM" != "no"; then
6345 # Didn't find any BSD compatible name lister, look for dumpbin.
6346 if test -n "$DUMPBIN"; then :
6347 # Let the user override the test.
6349 if test -n "$ac_tool_prefix"; then
6350 for ac_prog in dumpbin "link -dump"
6352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_DUMPBIN+:} false; then :
6357 $as_echo_n "(cached) " >&6
6359 if test -n "$DUMPBIN"; then
6360 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 DUMPBIN=$ac_cv_prog_DUMPBIN
6380 if test -n "$DUMPBIN"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6382 $as_echo "$DUMPBIN" >&6; }
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6389 test -n "$DUMPBIN" && break
6392 if test -z "$DUMPBIN"; then
6393 ac_ct_DUMPBIN=$DUMPBIN
6394 for ac_prog in dumpbin "link -dump"
6396 # Extract the first word of "$ac_prog", so it can be a program name with args.
6397 set dummy $ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$ac_ct_DUMPBIN"; then
6404 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6424 if test -n "$ac_ct_DUMPBIN"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6426 $as_echo "$ac_ct_DUMPBIN" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6433 test -n "$ac_ct_DUMPBIN" && break
6436 if test "x$ac_ct_DUMPBIN" = x; then
6439 case $cross_compiling:$ac_tool_warned in
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6443 ac_tool_warned=yes ;;
6445 DUMPBIN=$ac_ct_DUMPBIN
6449 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6451 DUMPBIN="$DUMPBIN -symbols"
6459 if test "$DUMPBIN" != ":"; then
6463 test -z "$NM" && NM=nm
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6471 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6472 if ${lt_cv_nm_interface+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 lt_cv_nm_interface="BSD nm"
6476 echo "int some_variable = 0;" > conftest.$ac_ext
6477 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6478 (eval "$ac_compile" 2>conftest.err)
6479 cat conftest.err >&5
6480 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6481 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6482 cat conftest.err >&5
6483 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6484 cat conftest.out >&5
6485 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6486 lt_cv_nm_interface="MS dumpbin"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6491 $as_echo "$lt_cv_nm_interface" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6494 $as_echo_n "checking whether ln -s works... " >&6; }
6496 if test "$LN_S" = "ln -s"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6498 $as_echo "yes" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6501 $as_echo "no, using $LN_S" >&6; }
6504 # find the maximum length of command line arguments
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6506 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6507 if ${lt_cv_sys_max_cmd_len+:} false; then :
6508 $as_echo_n "(cached) " >&6
6515 # On DJGPP, this test can blow up pretty badly due to problems in libc
6516 # (any single argument exceeding 2000 bytes causes a buffer overrun
6517 # during glob expansion). Even if it were fixed, the result of this
6518 # check would be larger than it should be.
6519 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6523 # Under GNU Hurd, this test is not required because there is
6524 # no limit to the length of command line arguments.
6525 # Libtool will interpret -1 as no limit whatsoever
6526 lt_cv_sys_max_cmd_len=-1;
6529 cygwin* | mingw* | cegcc*)
6530 # On Win9x/ME, this test blows up -- it succeeds, but takes
6531 # about 5 minutes as the teststring grows exponentially.
6532 # Worse, since 9x/ME are not pre-emptively multitasking,
6533 # you end up with a "frozen" computer, even though with patience
6534 # the test eventually succeeds (with a max line length of 256k).
6535 # Instead, let's just punt: use the minimum linelength reported by
6536 # all of the supported platforms: 8192 (on NT/2K/XP).
6537 lt_cv_sys_max_cmd_len=8192;
6541 # On MiNT this can take a long time and run out of memory.
6542 lt_cv_sys_max_cmd_len=8192;
6546 # On AmigaOS with pdksh, this test takes hours, literally.
6547 # So we just punt and use a minimum line length of 8192.
6548 lt_cv_sys_max_cmd_len=8192;
6551 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6552 # This has been around since 386BSD, at least. Likely further.
6553 if test -x /sbin/sysctl; then
6554 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6555 elif test -x /usr/sbin/sysctl; then
6556 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6558 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6560 # And add a safety zone
6561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6566 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6567 lt_cv_sys_max_cmd_len=196608
6571 # The test takes a long time on OS/2.
6572 lt_cv_sys_max_cmd_len=8192
6576 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6577 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6578 # nice to cause kernel panics so lets avoid the loop below.
6579 # First set a reasonable default.
6580 lt_cv_sys_max_cmd_len=16384
6582 if test -x /sbin/sysconfig; then
6583 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6584 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6589 lt_cv_sys_max_cmd_len=102400
6591 sysv5* | sco5v6* | sysv4.2uw2*)
6592 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6593 if test -n "$kargmax"; then
6594 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6596 lt_cv_sys_max_cmd_len=32768
6600 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6601 if test -n "$lt_cv_sys_max_cmd_len" && \
6602 test undefined != "$lt_cv_sys_max_cmd_len"; then
6603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6606 # Make teststring a little bigger before we do anything with it.
6607 # a 1K string should be a reasonable start.
6608 for i in 1 2 3 4 5 6 7 8 ; do
6609 teststring=$teststring$teststring
6611 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6612 # If test is not a shell built-in, we'll probably end up computing a
6613 # maximum length that is only half of the actual maximum length, but
6615 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6616 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6617 test $i != 17 # 1/2 MB should be enough
6620 teststring=$teststring$teststring
6622 # Only check the string length outside the loop.
6623 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6625 # Add a significant safety factor because C++ compilers can tack on
6626 # massive amounts of additional arguments before passing them to the
6627 # linker. It appears as though 1/2 is a usable value.
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6635 if test -n $lt_cv_sys_max_cmd_len ; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6637 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6640 $as_echo "none" >&6; }
6642 max_cmd_len=$lt_cv_sys_max_cmd_len
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6654 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6655 # Try some XSI features
6658 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6660 && eval 'test $(( 1 + 1 )) -eq 2 \
6661 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6664 $as_echo "$xsi_shell" >&6; }
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6668 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6670 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6672 && lt_shell_append=yes
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6674 $as_echo "$lt_shell_append" >&6; }
6677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6687 # test EBCDIC or ASCII
6688 case `echo X|tr X '\101'` in
6689 A) # ASCII based system
6690 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6691 lt_SP2NL='tr \040 \012'
6692 lt_NL2SP='tr \015\012 \040\040'
6694 *) # EBCDIC based system
6695 lt_SP2NL='tr \100 \n'
6696 lt_NL2SP='tr \r\n \100\100'
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6709 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6710 if ${lt_cv_to_host_file_cmd+:} false; then :
6711 $as_echo_n "(cached) " >&6
6716 *-*-mingw* ) # actually msys
6717 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6720 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6722 * ) # otherwise, assume *nix
6723 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6729 *-*-mingw* ) # actually msys
6730 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6733 lt_cv_to_host_file_cmd=func_convert_file_noop
6735 * ) # otherwise, assume *nix
6736 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6740 * ) # unhandled hosts (and "normal" native builds)
6741 lt_cv_to_host_file_cmd=func_convert_file_noop
6747 to_host_file_cmd=$lt_cv_to_host_file_cmd
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6749 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6756 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6757 if ${lt_cv_to_tool_file_cmd+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 #assume ordinary cross tools, or native build.
6761 lt_cv_to_tool_file_cmd=func_convert_file_noop
6765 *-*-mingw* ) # actually msys
6766 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6774 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6776 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6783 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6784 if ${lt_cv_ld_reload_flag+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 lt_cv_ld_reload_flag='-r'
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6790 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6791 reload_flag=$lt_cv_ld_reload_flag
6792 case $reload_flag in
6794 *) reload_flag=" $reload_flag" ;;
6796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6798 cygwin* | mingw* | pw32* | cegcc*)
6799 if test "$GCC" != yes; then
6804 if test "$GCC" = yes; then
6805 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6807 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_OBJDUMP+:} false; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$OBJDUMP"; then
6829 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 OBJDUMP=$ac_cv_prog_OBJDUMP
6849 if test -n "$OBJDUMP"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6851 $as_echo "$OBJDUMP" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6859 if test -z "$ac_cv_prog_OBJDUMP"; then
6860 ac_ct_OBJDUMP=$OBJDUMP
6861 # Extract the first word of "objdump", so it can be a program name with args.
6862 set dummy objdump; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6866 $as_echo_n "(cached) " >&6
6868 if test -n "$ac_ct_OBJDUMP"; then
6869 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6889 if test -n "$ac_ct_OBJDUMP"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6891 $as_echo "$ac_ct_OBJDUMP" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6897 if test "x$ac_ct_OBJDUMP" = x; then
6900 case $cross_compiling:$ac_tool_warned in
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6906 OBJDUMP=$ac_ct_OBJDUMP
6909 OBJDUMP="$ac_cv_prog_OBJDUMP"
6912 test -z "$OBJDUMP" && OBJDUMP=objdump
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6923 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6924 if ${lt_cv_deplibs_check_method+:} false; then :
6925 $as_echo_n "(cached) " >&6
6927 lt_cv_file_magic_cmd='$MAGIC_CMD'
6928 lt_cv_file_magic_test_file=
6929 lt_cv_deplibs_check_method='unknown'
6930 # Need to set the preceding variable on all platforms that support
6931 # interlibrary dependencies.
6932 # 'none' -- dependencies not supported.
6933 # `unknown' -- same as none, but documents that we really don't know.
6934 # 'pass_all' -- all dependencies passed with no checks.
6935 # 'test_compile' -- check by making test program.
6936 # 'file_magic [[regex]]' -- check by looking for files in library path
6937 # which responds to the $file_magic_cmd with a given extended regex.
6938 # If you have `file' or equivalent on your system and you're not sure
6939 # whether `pass_all' will *always* work, you probably want this one.
6943 lt_cv_deplibs_check_method=pass_all
6947 lt_cv_deplibs_check_method=pass_all
6951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6952 lt_cv_file_magic_cmd='/usr/bin/file -L'
6953 lt_cv_file_magic_test_file=/shlib/libc.so
6957 # func_win32_libid is a shell function defined in ltmain.sh
6958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6959 lt_cv_file_magic_cmd='func_win32_libid'
6963 # Base MSYS/MinGW do not provide the 'file' command needed by
6964 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6965 # unless we find 'file', for example because we are cross-compiling.
6966 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6967 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6969 lt_cv_file_magic_cmd='func_win32_libid'
6971 # Keep this pattern in sync with the one in func_win32_libid.
6972 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6973 lt_cv_file_magic_cmd='$OBJDUMP -f'
6978 # use the weaker test based on 'objdump'. See mingw*.
6979 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6980 lt_cv_file_magic_cmd='$OBJDUMP -f'
6983 darwin* | rhapsody*)
6984 lt_cv_deplibs_check_method=pass_all
6987 freebsd* | dragonfly*)
6988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6991 # Not sure whether the presence of OpenBSD here was a mistake.
6992 # Let's accept both of them until this is cleared up.
6993 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6994 lt_cv_file_magic_cmd=/usr/bin/file
6995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6999 lt_cv_deplibs_check_method=pass_all
7004 lt_cv_deplibs_check_method=pass_all
7007 hpux10.20* | hpux11*)
7008 lt_cv_file_magic_cmd=/usr/bin/file
7011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7012 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7015 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]'
7016 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7020 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7026 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7030 irix5* | irix6* | nonstopux*)
7032 *-32|*"-32 ") libmagic=32-bit;;
7033 *-n32|*"-n32 ") libmagic=N32;;
7034 *-64|*"-64 ") libmagic=64-bit;;
7035 *) libmagic=never-match;;
7037 lt_cv_deplibs_check_method=pass_all
7040 # This must be glibc/ELF.
7041 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7042 lt_cv_deplibs_check_method=pass_all
7045 netbsd* | netbsdelf*-gnu)
7046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7055 lt_cv_file_magic_cmd=/usr/bin/file
7056 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7060 lt_cv_deplibs_check_method=pass_all
7064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7071 osf3* | osf4* | osf5*)
7072 lt_cv_deplibs_check_method=pass_all
7076 lt_cv_deplibs_check_method=pass_all
7080 lt_cv_deplibs_check_method=pass_all
7083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7084 lt_cv_deplibs_check_method=pass_all
7088 case $host_vendor in
7090 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]'
7091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7094 lt_cv_deplibs_check_method=pass_all
7097 lt_cv_file_magic_cmd='/bin/file'
7098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7101 lt_cv_file_magic_cmd='/bin/file'
7102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7103 lt_cv_file_magic_test_file=/lib/libc.so
7106 lt_cv_deplibs_check_method=pass_all
7109 lt_cv_deplibs_check_method=pass_all
7115 lt_cv_deplibs_check_method=pass_all
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7121 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7125 if test "$build" = "$host"; then
7128 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7131 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7137 file_magic_cmd=$lt_cv_file_magic_cmd
7138 deplibs_check_method=$lt_cv_deplibs_check_method
7139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_DLLTOOL+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$DLLTOOL"; then
7171 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 DLLTOOL=$ac_cv_prog_DLLTOOL
7191 if test -n "$DLLTOOL"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7193 $as_echo "$DLLTOOL" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7201 if test -z "$ac_cv_prog_DLLTOOL"; then
7202 ac_ct_DLLTOOL=$DLLTOOL
7203 # Extract the first word of "dlltool", so it can be a program name with args.
7204 set dummy dlltool; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$ac_ct_DLLTOOL"; then
7211 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7231 if test -n "$ac_ct_DLLTOOL"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7233 $as_echo "$ac_ct_DLLTOOL" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7239 if test "x$ac_ct_DLLTOOL" = x; then
7242 case $cross_compiling:$ac_tool_warned in
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7248 DLLTOOL=$ac_ct_DLLTOOL
7251 DLLTOOL="$ac_cv_prog_DLLTOOL"
7254 test -z "$DLLTOOL" && DLLTOOL=dlltool
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7266 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7267 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7268 $as_echo_n "(cached) " >&6
7270 lt_cv_sharedlib_from_linklib_cmd='unknown'
7273 cygwin* | mingw* | pw32* | cegcc*)
7274 # two different shell functions defined in ltmain.sh
7275 # decide which to use based on capabilities of $DLLTOOL
7276 case `$DLLTOOL --help 2>&1` in
7277 *--identify-strict*)
7278 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7281 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7286 # fallback: assume linklib IS sharedlib
7287 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7293 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7294 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7295 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7303 if test -n "$ac_tool_prefix"; then
7306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_prog_AR+:} false; then :
7311 $as_echo_n "(cached) " >&6
7313 if test -n "$AR"; then
7314 ac_cv_prog_AR="$AR" # Let the user override the test.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 if test -n "$AR"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7336 $as_echo "$AR" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7343 test -n "$AR" && break
7346 if test -z "$AR"; then
7350 # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$ac_ct_AR"; then
7358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_AR="$ac_prog"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7378 if test -n "$ac_ct_AR"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7380 $as_echo "$ac_ct_AR" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7387 test -n "$ac_ct_AR" && break
7390 if test "x$ac_ct_AR" = x; then
7393 case $cross_compiling:$ac_tool_warned in
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7417 $as_echo_n "checking for archiver @FILE support... " >&6; }
7418 if ${lt_cv_ar_at_file+:} false; then :
7419 $as_echo_n "(cached) " >&6
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7433 if ac_fn_c_try_compile "$LINENO"; then :
7434 echo conftest.$ac_objext > conftest.lst
7435 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7437 (eval $lt_ar_try) 2>&5
7439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7440 test $ac_status = 0; }
7441 if test "$ac_status" -eq 0; then
7442 # Ensure the archiver fails upon bogus file names.
7443 rm -f conftest.$ac_objext libconftest.a
7444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7445 (eval $lt_ar_try) 2>&5
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }
7449 if test "$ac_status" -ne 0; then
7453 rm -f conftest.* libconftest.a
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7460 $as_echo "$lt_cv_ar_at_file" >&6; }
7462 if test "x$lt_cv_ar_at_file" = xno; then
7465 archiver_list_spec=$lt_cv_ar_at_file
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}strip; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_STRIP+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 if test -n "$STRIP"; then
7483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 STRIP=$ac_cv_prog_STRIP
7503 if test -n "$STRIP"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7505 $as_echo "$STRIP" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test -z "$ac_cv_prog_STRIP"; then
7515 # Extract the first word of "strip", so it can be a program name with args.
7516 set dummy strip; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 if test -n "$ac_ct_STRIP"; then
7523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_ac_ct_STRIP="strip"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7543 if test -n "$ac_ct_STRIP"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7545 $as_echo "$ac_ct_STRIP" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7551 if test "x$ac_ct_STRIP" = x; then
7554 case $cross_compiling:$ac_tool_warned in
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7563 STRIP="$ac_cv_prog_STRIP"
7566 test -z "$STRIP" && STRIP=:
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_RANLIB+:} false; then :
7579 $as_echo_n "(cached) " >&6
7581 if test -n "$RANLIB"; then
7582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 RANLIB=$ac_cv_prog_RANLIB
7602 if test -n "$RANLIB"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7604 $as_echo "$RANLIB" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7612 if test -z "$ac_cv_prog_RANLIB"; then
7613 ac_ct_RANLIB=$RANLIB
7614 # Extract the first word of "ranlib", so it can be a program name with args.
7615 set dummy ranlib; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7619 $as_echo_n "(cached) " >&6
7621 if test -n "$ac_ct_RANLIB"; then
7622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_ac_ct_RANLIB="ranlib"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7642 if test -n "$ac_ct_RANLIB"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7644 $as_echo "$ac_ct_RANLIB" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7650 if test "x$ac_ct_RANLIB" = x; then
7653 case $cross_compiling:$ac_tool_warned in
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7659 RANLIB=$ac_ct_RANLIB
7662 RANLIB="$ac_cv_prog_RANLIB"
7665 test -z "$RANLIB" && RANLIB=:
7672 # Determine commands to create old-style static archives.
7673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7674 old_postinstall_cmds='chmod 644 $oldlib'
7675 old_postuninstall_cmds=
7677 if test -n "$RANLIB"; then
7680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7691 lock_old_archive_extraction=yes ;;
7693 lock_old_archive_extraction=no ;;
7734 # If no C compiler was specified, use CC.
7737 # If no C compiler flags were specified, use CFLAGS.
7738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7740 # Allow CC to be a program name with arguments.
7744 # Check for command to grab the raw symbol name followed by C symbol from nm.
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7746 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7747 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7748 $as_echo_n "(cached) " >&6
7751 # These are sane defaults that work on at least a few old systems.
7752 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7754 # Character class describing NM global symbol codes.
7755 symcode='[BCDEGRST]'
7757 # Regexp to match symbols that can be accessed directly from C.
7758 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7760 # Define system-specific variables.
7765 cygwin* | mingw* | pw32* | cegcc*)
7766 symcode='[ABCDGISTW]'
7769 if test "$host_cpu" = ia64; then
7770 symcode='[ABCDEGRST]'
7774 symcode='[BCDEGRST]'
7777 symcode='[BCDEGQRST]'
7788 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7796 # If we're using GNU nm, then use its standard symbol codes.
7797 case `$NM -V 2>&1` in
7798 *GNU* | *'with BFD'*)
7799 symcode='[ABCDGIRSTW]' ;;
7802 # Transform an extracted symbol line into a proper C declaration.
7803 # Some systems (esp. on ia64) link data and code symbols differently,
7804 # so use this general approach.
7805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7807 # Transform an extracted symbol line into symbol name and symbol address
7808 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7809 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'"
7811 # Handle CRLF in mingw tool chain
7815 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7819 # Try without a prefix underscore, then with it.
7820 for ac_symprfx in "" "_"; do
7822 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7823 symxfrm="\\1 $ac_symprfx\\2 \\2"
7825 # Write the raw and C identifiers.
7826 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7827 # Fake it for dumpbin and say T for any non-static function
7828 # and D for any global variable.
7829 # Also find C++ and __fastcall symbols from MSVC++,
7830 # which start with @ or ?.
7831 lt_cv_sys_global_symbol_pipe="$AWK '"\
7832 " {last_section=section; section=\$ 3};"\
7833 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7834 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7835 " \$ 0!~/External *\|/{next};"\
7836 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7837 " {if(hide[section]) next};"\
7838 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7839 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7840 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7841 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7842 " ' prfx=^$ac_symprfx"
7844 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7846 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7848 # Check to see that the pipe works correctly.
7852 cat > conftest.$ac_ext <<_LT_EOF
7857 void nm_test_func(void);
7858 void nm_test_func(void){}
7862 int main(){nm_test_var='a';nm_test_func();return(0);}
7865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7866 (eval $ac_compile) 2>&5
7868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869 test $ac_status = 0; }; then
7870 # Now try to grab the symbols.
7872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7873 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; } && test -s "$nlist"; then
7877 # Try sorting and uniquifying the output.
7878 if sort "$nlist" | uniq > "$nlist"T; then
7879 mv -f "$nlist"T "$nlist"
7884 # Make sure that we snagged all the symbols we need.
7885 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7886 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7887 cat <<_LT_EOF > conftest.$ac_ext
7888 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7889 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7890 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7891 relocations are performed -- see ld's documentation on pseudo-relocs. */
7892 # define LT_DLSYM_CONST
7893 #elif defined(__osf__)
7894 /* This system does not cope well with relocations in const data. */
7895 # define LT_DLSYM_CONST
7897 # define LT_DLSYM_CONST const
7905 # Now generate the symbol file.
7906 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7908 cat <<_LT_EOF >> conftest.$ac_ext
7910 /* The mapping between symbol names and symbols. */
7911 LT_DLSYM_CONST struct {
7915 lt__PROGRAM__LTX_preloaded_symbols[] =
7917 { "@PROGRAM@", (void *) 0 },
7919 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7920 cat <<\_LT_EOF >> conftest.$ac_ext
7924 /* This works around a problem in FreeBSD linker */
7925 #ifdef FREEBSD_WORKAROUND
7926 static const void *lt_preloaded_setup() {
7927 return lt__PROGRAM__LTX_preloaded_symbols;
7935 # Now try linking the two files.
7936 mv conftest.$ac_objext conftstm.$ac_objext
7937 lt_globsym_save_LIBS=$LIBS
7938 lt_globsym_save_CFLAGS=$CFLAGS
7939 LIBS="conftstm.$ac_objext"
7940 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7942 (eval $ac_link) 2>&5
7944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7948 LIBS=$lt_globsym_save_LIBS
7949 CFLAGS=$lt_globsym_save_CFLAGS
7951 echo "cannot find nm_test_func in $nlist" >&5
7954 echo "cannot find nm_test_var in $nlist" >&5
7957 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7960 echo "$progname: failed program was:" >&5
7961 cat conftest.$ac_ext >&5
7963 rm -rf conftest* conftst*
7965 # Do not use the global_symbol_pipe unless it works.
7966 if test "$pipe_works" = yes; then
7969 lt_cv_sys_global_symbol_pipe=
7975 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7976 lt_cv_sys_global_symbol_to_cdecl=
7978 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7980 $as_echo "failed" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7983 $as_echo "ok" >&6; }
7986 # Response file support.
7987 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7988 nm_file_list_spec='@'
7989 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7990 nm_file_list_spec='@'
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8020 $as_echo_n "checking for sysroot... " >&6; }
8022 # Check whether --with-sysroot was given.
8023 if test "${with_sysroot+set}" = set; then :
8024 withval=$with_sysroot;
8031 case ${with_sysroot} in #(
8033 if test "$GCC" = yes; then
8034 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8038 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8044 $as_echo "${with_sysroot}" >&6; }
8045 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8050 $as_echo "${lt_sysroot:-no}" >&6; }
8056 # Check whether --enable-libtool-lock was given.
8057 if test "${enable_libtool_lock+set}" = set; then :
8058 enableval=$enable_libtool_lock;
8061 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8063 # Some flags need to be propagated to the compiler or linker for good
8067 # Find out which ABI we are using.
8068 echo 'int i;' > conftest.$ac_ext
8069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8070 (eval $ac_compile) 2>&5
8072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073 test $ac_status = 0; }; then
8074 case `/usr/bin/file conftest.$ac_objext` in
8086 # Find out which ABI we are using.
8087 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8089 (eval $ac_compile) 2>&5
8091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092 test $ac_status = 0; }; then
8093 if test "$lt_cv_prog_gnu_ld" = yes; then
8094 case `/usr/bin/file conftest.$ac_objext` in
8096 LD="${LD-ld} -melf32bsmip"
8099 LD="${LD-ld} -melf32bmipn32"
8102 LD="${LD-ld} -melf64bmip"
8106 case `/usr/bin/file conftest.$ac_objext` in
8122 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8123 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8124 # Find out which ABI we are using.
8125 echo 'int i;' > conftest.$ac_ext
8126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8127 (eval $ac_compile) 2>&5
8129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130 test $ac_status = 0; }; then
8131 case `/usr/bin/file conftest.o` in
8134 x86_64-*kfreebsd*-gnu)
8135 LD="${LD-ld} -m elf_i386_fbsd"
8138 case `/usr/bin/file conftest.o` in
8140 LD="${LD-ld} -m elf32_x86_64"
8143 LD="${LD-ld} -m elf_i386"
8148 LD="${LD-ld} -m elf32lppclinux"
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"
8170 LD="${LD-ld} -m elf64lppc"
8173 LD="${LD-ld} -m elf64ppc"
8175 s390*-*linux*|s390*-*tpf*)
8176 LD="${LD-ld} -m elf64_s390"
8179 LD="${LD-ld} -m elf64_sparc"
8189 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8190 SAVE_CFLAGS="$CFLAGS"
8191 CFLAGS="$CFLAGS -belf"
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8193 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8194 if ${lt_cv_cc_needs_belf+:} false; then :
8195 $as_echo_n "(cached) " >&6
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8214 if ac_fn_c_try_link "$LINENO"; then :
8215 lt_cv_cc_needs_belf=yes
8217 lt_cv_cc_needs_belf=no
8219 rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8222 ac_cpp='$CPP $CPPFLAGS'
8223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8229 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8230 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8231 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8232 CFLAGS="$SAVE_CFLAGS"
8236 # Find out which ABI we are using.
8237 echo 'int i;' > conftest.$ac_ext
8238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8239 (eval $ac_compile) 2>&5
8241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8242 test $ac_status = 0; }; then
8243 case `/usr/bin/file conftest.o` in
8245 case $lt_cv_prog_gnu_ld in
8249 LD="${LD-ld} -m elf_x86_64"
8252 LD="${LD-ld} -m elf64_sparc"
8255 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8256 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8261 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8273 need_locks="$enable_libtool_lock"
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}mt; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8281 $as_echo_n "(cached) " >&6
8283 if test -n "$MANIFEST_TOOL"; then
8284 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8303 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8304 if test -n "$MANIFEST_TOOL"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8306 $as_echo "$MANIFEST_TOOL" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8314 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8315 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8316 # Extract the first word of "mt", so it can be a program name with args.
8317 set dummy mt; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8321 $as_echo_n "(cached) " >&6
8323 if test -n "$ac_ct_MANIFEST_TOOL"; then
8324 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8344 if test -n "$ac_ct_MANIFEST_TOOL"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8346 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8352 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8355 case $cross_compiling:$ac_tool_warned in
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359 ac_tool_warned=yes ;;
8361 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8364 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8367 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8369 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8370 if ${lt_cv_path_mainfest_tool+:} false; then :
8371 $as_echo_n "(cached) " >&6
8373 lt_cv_path_mainfest_tool=no
8374 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8375 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8376 cat conftest.err >&5
8377 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8378 lt_cv_path_mainfest_tool=yes
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8383 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8384 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8394 rhapsody* | darwin*)
8395 if test -n "$ac_tool_prefix"; then
8396 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8397 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399 $as_echo_n "checking for $ac_word... " >&6; }
8400 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8401 $as_echo_n "(cached) " >&6
8403 if test -n "$DSYMUTIL"; then
8404 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8413 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8424 if test -n "$DSYMUTIL"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8426 $as_echo "$DSYMUTIL" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 $as_echo "no" >&6; }
8434 if test -z "$ac_cv_prog_DSYMUTIL"; then
8435 ac_ct_DSYMUTIL=$DSYMUTIL
8436 # Extract the first word of "dsymutil", so it can be a program name with args.
8437 set dummy dsymutil; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8441 $as_echo_n "(cached) " >&6
8443 if test -n "$ac_ct_DSYMUTIL"; then
8444 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8464 if test -n "$ac_ct_DSYMUTIL"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8466 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8472 if test "x$ac_ct_DSYMUTIL" = x; then
8475 case $cross_compiling:$ac_tool_warned in
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8479 ac_tool_warned=yes ;;
8481 DSYMUTIL=$ac_ct_DSYMUTIL
8484 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8487 if test -n "$ac_tool_prefix"; then
8488 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8489 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if ${ac_cv_prog_NMEDIT+:} false; then :
8493 $as_echo_n "(cached) " >&6
8495 if test -n "$NMEDIT"; then
8496 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8505 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 NMEDIT=$ac_cv_prog_NMEDIT
8516 if test -n "$NMEDIT"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8518 $as_echo "$NMEDIT" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8526 if test -z "$ac_cv_prog_NMEDIT"; then
8527 ac_ct_NMEDIT=$NMEDIT
8528 # Extract the first word of "nmedit", so it can be a program name with args.
8529 set dummy nmedit; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8533 $as_echo_n "(cached) " >&6
8535 if test -n "$ac_ct_NMEDIT"; then
8536 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8556 if test -n "$ac_ct_NMEDIT"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8558 $as_echo "$ac_ct_NMEDIT" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8564 if test "x$ac_ct_NMEDIT" = x; then
8567 case $cross_compiling:$ac_tool_warned in
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8573 NMEDIT=$ac_ct_NMEDIT
8576 NMEDIT="$ac_cv_prog_NMEDIT"
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_LIPO+:} false; then :
8585 $as_echo_n "(cached) " >&6
8587 if test -n "$LIPO"; then
8588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 LIPO=$ac_cv_prog_LIPO
8608 if test -n "$LIPO"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8610 $as_echo "$LIPO" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8618 if test -z "$ac_cv_prog_LIPO"; then
8620 # Extract the first word of "lipo", so it can be a program name with args.
8621 set dummy lipo; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8625 $as_echo_n "(cached) " >&6
8627 if test -n "$ac_ct_LIPO"; then
8628 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_ac_ct_LIPO="lipo"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8648 if test -n "$ac_ct_LIPO"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8650 $as_echo "$ac_ct_LIPO" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8656 if test "x$ac_ct_LIPO" = x; then
8659 case $cross_compiling:$ac_tool_warned in
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8668 LIPO="$ac_cv_prog_LIPO"
8671 if test -n "$ac_tool_prefix"; then
8672 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8673 set dummy ${ac_tool_prefix}otool; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if ${ac_cv_prog_OTOOL+:} false; then :
8677 $as_echo_n "(cached) " >&6
8679 if test -n "$OTOOL"; then
8680 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 test -z "$as_dir" && as_dir=.
8687 for ac_exec_ext in '' $ac_executable_extensions; do
8688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 OTOOL=$ac_cv_prog_OTOOL
8700 if test -n "$OTOOL"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8702 $as_echo "$OTOOL" >&6; }
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8710 if test -z "$ac_cv_prog_OTOOL"; then
8712 # Extract the first word of "otool", so it can be a program name with args.
8713 set dummy otool; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8717 $as_echo_n "(cached) " >&6
8719 if test -n "$ac_ct_OTOOL"; then
8720 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729 ac_cv_prog_ac_ct_OTOOL="otool"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8740 if test -n "$ac_ct_OTOOL"; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8742 $as_echo "$ac_ct_OTOOL" >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8748 if test "x$ac_ct_OTOOL" = x; then
8751 case $cross_compiling:$ac_tool_warned in
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8755 ac_tool_warned=yes ;;
8760 OTOOL="$ac_cv_prog_OTOOL"
8763 if test -n "$ac_tool_prefix"; then
8764 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8765 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if ${ac_cv_prog_OTOOL64+:} false; then :
8769 $as_echo_n "(cached) " >&6
8771 if test -n "$OTOOL64"; then
8772 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 OTOOL64=$ac_cv_prog_OTOOL64
8792 if test -n "$OTOOL64"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8794 $as_echo "$OTOOL64" >&6; }
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8802 if test -z "$ac_cv_prog_OTOOL64"; then
8803 ac_ct_OTOOL64=$OTOOL64
8804 # Extract the first word of "otool64", so it can be a program name with args.
8805 set dummy otool64; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8809 $as_echo_n "(cached) " >&6
8811 if test -n "$ac_ct_OTOOL64"; then
8812 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 ac_cv_prog_ac_ct_OTOOL64="otool64"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8832 if test -n "$ac_ct_OTOOL64"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8834 $as_echo "$ac_ct_OTOOL64" >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8840 if test "x$ac_ct_OTOOL64" = x; then
8843 case $cross_compiling:$ac_tool_warned in
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8847 ac_tool_warned=yes ;;
8849 OTOOL64=$ac_ct_OTOOL64
8852 OTOOL64="$ac_cv_prog_OTOOL64"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8882 $as_echo_n "checking for -single_module linker flag... " >&6; }
8883 if ${lt_cv_apple_cc_single_mod+:} false; then :
8884 $as_echo_n "(cached) " >&6
8886 lt_cv_apple_cc_single_mod=no
8887 if test -z "${LT_MULTI_MODULE}"; then
8888 # By default we will add the -single_module flag. You can override
8889 # by either setting the environment variable LT_MULTI_MODULE
8890 # non-empty at configure time, or by adding -multi_module to the
8892 rm -rf libconftest.dylib*
8893 echo "int foo(void){return 1;}" > conftest.c
8894 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8895 -dynamiclib -Wl,-single_module conftest.c" >&5
8896 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8897 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8899 # If there is a non-empty error log, and "single_module"
8900 # appears in it, assume the flag caused a linker warning
8901 if test -s conftest.err && $GREP single_module conftest.err; then
8902 cat conftest.err >&5
8903 # Otherwise, if the output was created with a 0 exit code from
8904 # the compiler, it worked.
8905 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8906 lt_cv_apple_cc_single_mod=yes
8908 cat conftest.err >&5
8910 rm -rf libconftest.dylib*
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8915 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8918 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8919 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8920 $as_echo_n "(cached) " >&6
8922 lt_cv_ld_exported_symbols_list=no
8923 save_LDFLAGS=$LDFLAGS
8924 echo "_main" > conftest.sym
8925 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8937 if ac_fn_c_try_link "$LINENO"; then :
8938 lt_cv_ld_exported_symbols_list=yes
8940 lt_cv_ld_exported_symbols_list=no
8942 rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944 LDFLAGS="$save_LDFLAGS"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8948 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8951 $as_echo_n "checking for -force_load linker flag... " >&6; }
8952 if ${lt_cv_ld_force_load+:} false; then :
8953 $as_echo_n "(cached) " >&6
8955 lt_cv_ld_force_load=no
8956 cat > conftest.c << _LT_EOF
8957 int forced_loaded() { return 2;}
8959 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8960 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8961 echo "$AR cru libconftest.a conftest.o" >&5
8962 $AR cru libconftest.a conftest.o 2>&5
8963 echo "$RANLIB libconftest.a" >&5
8964 $RANLIB libconftest.a 2>&5
8965 cat > conftest.c << _LT_EOF
8966 int main() { return 0;}
8968 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8969 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8971 if test -s conftest.err && $GREP force_load conftest.err; then
8972 cat conftest.err >&5
8973 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8974 lt_cv_ld_force_load=yes
8976 cat conftest.err >&5
8978 rm -f conftest.err libconftest.a conftest conftest.c
8979 rm -rf conftest.dSYM
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8983 $as_echo "$lt_cv_ld_force_load" >&6; }
8985 rhapsody* | darwin1.[012])
8986 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8988 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8989 darwin*) # darwin 5.x on
8990 # if running on 10.5 or later, the deployment target defaults
8991 # to the OS version, if on x86, and 10.4, the deployment
8992 # target defaults to 10.4. Don't you love it?
8993 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8994 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8995 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8997 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8999 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9003 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9004 _lt_dar_single_mod='$single_module'
9006 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9007 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9009 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9011 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9012 _lt_dsymutil='~$DSYMUTIL $lib || :'
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9020 $as_echo_n "checking for ANSI C header files... " >&6; }
9021 if ${ac_cv_header_stdc+:} false; then :
9022 $as_echo_n "(cached) " >&6
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9039 if ac_fn_c_try_compile "$LINENO"; then :
9040 ac_cv_header_stdc=yes
9042 ac_cv_header_stdc=no
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046 if test $ac_cv_header_stdc = yes; then
9047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9054 $EGREP "memchr" >/dev/null 2>&1; then :
9057 ac_cv_header_stdc=no
9063 if test $ac_cv_header_stdc = yes; then
9064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9071 $EGREP "free" >/dev/null 2>&1; then :
9074 ac_cv_header_stdc=no
9080 if test $ac_cv_header_stdc = yes; then
9081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9082 if test "$cross_compiling" = yes; then :
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9089 #if ((' ' & 0x0FF) == 0x020)
9090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9093 # define ISLOWER(c) \
9094 (('a' <= (c) && (c) <= 'i') \
9095 || ('j' <= (c) && (c) <= 'r') \
9096 || ('s' <= (c) && (c) <= 'z'))
9097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9105 for (i = 0; i < 256; i++)
9106 if (XOR (islower (i), ISLOWER (i))
9107 || toupper (i) != TOUPPER (i))
9112 if ac_fn_c_try_run "$LINENO"; then :
9115 ac_cv_header_stdc=no
9117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9118 conftest.$ac_objext conftest.beam conftest.$ac_ext
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9124 $as_echo "$ac_cv_header_stdc" >&6; }
9125 if test $ac_cv_header_stdc = yes; then
9127 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9132 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9133 inttypes.h stdint.h unistd.h
9135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9136 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9139 cat >>confdefs.h <<_ACEOF
9140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9148 for ac_header in dlfcn.h
9150 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9152 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9153 cat >>confdefs.h <<_ACEOF
9154 #define HAVE_DLFCN_H 1
9164 func_stripname_cnf ()
9167 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9168 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9170 } # func_stripname_cnf
9177 # Check whether --enable-shared was given.
9178 if test "${enable_shared+set}" = set; then :
9179 enableval=$enable_shared; p=${PACKAGE-default}
9181 yes) enable_shared=yes ;;
9182 no) enable_shared=no ;;
9185 # Look at the argument we got. We use all the common list separators.
9186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9187 for pkg in $enableval; do
9189 if test "X$pkg" = "X$p"; then
9206 # Check whether --enable-static was given.
9207 if test "${enable_static+set}" = set; then :
9208 enableval=$enable_static; p=${PACKAGE-default}
9210 yes) enable_static=yes ;;
9211 no) enable_static=no ;;
9214 # Look at the argument we got. We use all the common list separators.
9215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9216 for pkg in $enableval; do
9218 if test "X$pkg" = "X$p"; then
9247 # Check whether --with-pic was given.
9248 if test "${with_pic+set}" = set; then :
9249 withval=$with_pic; lt_p=${PACKAGE-default}
9251 yes|no) pic_mode=$withval ;;
9254 # Look at the argument we got. We use all the common list separators.
9255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9256 for lt_pkg in $withval; do
9258 if test "X$lt_pkg" = "X$lt_p"; then
9270 test -z "$pic_mode" && pic_mode=default
9278 # Check whether --enable-fast-install was given.
9279 if test "${enable_fast_install+set}" = set; then :
9280 enableval=$enable_fast_install; p=${PACKAGE-default}
9282 yes) enable_fast_install=yes ;;
9283 no) enable_fast_install=no ;;
9285 enable_fast_install=no
9286 # Look at the argument we got. We use all the common list separators.
9287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9288 for pkg in $enableval; do
9290 if test "X$pkg" = "X$p"; then
9291 enable_fast_install=yes
9298 enable_fast_install=yes
9311 # This can be used to rebuild libtool when needed
9312 LIBTOOL_DEPS="$ltmain"
9314 # Always use our own libtool.
9315 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9346 test -z "$LN_S" && LN_S="ln -s"
9361 if test -n "${ZSH_VERSION+set}" ; then
9362 setopt NO_GLOB_SUBST
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9366 $as_echo_n "checking for objdir... " >&6; }
9367 if ${lt_cv_objdir+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 rm -f .libs 2>/dev/null
9371 mkdir .libs 2>/dev/null
9372 if test -d .libs; then
9375 # MS-DOS does not allow filenames that begin with a dot.
9378 rmdir .libs 2>/dev/null
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9381 $as_echo "$lt_cv_objdir" >&6; }
9382 objdir=$lt_cv_objdir
9388 cat >>confdefs.h <<_ACEOF
9389 #define LT_OBJDIR "$lt_cv_objdir/"
9397 # AIX sometimes has problems with the GCC collect2 program. For some
9398 # reason, if we set the COLLECT_NAMES environment variable, the problems
9399 # vanish in a puff of smoke.
9400 if test "X${COLLECT_NAMES+set}" != Xset; then
9402 export COLLECT_NAMES
9409 can_build_shared=yes
9411 # All known linkers require a `.a' archive for static linking (except MSVC,
9412 # which needs '.lib').
9415 with_gnu_ld="$lt_cv_prog_gnu_ld"
9418 old_CFLAGS="$CFLAGS"
9420 # Set sane defaults for various variables
9421 test -z "$CC" && CC=cc
9422 test -z "$LTCC" && LTCC=$CC
9423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9424 test -z "$LD" && LD=ld
9425 test -z "$ac_objext" && ac_objext=o
9427 for cc_temp in $compiler""; do
9429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9435 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9438 # Only perform the check for file, if the check method requires it
9439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9440 case $deplibs_check_method in
9442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9445 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9446 $as_echo_n "(cached) " >&6
9450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9453 lt_save_MAGIC_CMD="$MAGIC_CMD"
9454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9456 for ac_dir in $ac_dummy; do
9458 test -z "$ac_dir" && ac_dir=.
9459 if test -f $ac_dir/${ac_tool_prefix}file; then
9460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9461 if test -n "$file_magic_test_file"; then
9462 case $deplibs_check_method in
9464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9467 $EGREP "$file_magic_regex" > /dev/null; then
9472 *** Warning: the command libtool uses to detect shared libraries,
9473 *** $file_magic_cmd, produces output that libtool cannot recognize.
9474 *** The result is that libtool may fail to recognize shared libraries
9475 *** as such. This will affect the creation of libtool libraries that
9476 *** depend on shared libraries, but programs linked with such libtool
9477 *** libraries will work regardless of this problem. Nevertheless, you
9478 *** may want to report the problem to your system manager and/or to
9479 *** bug-libtool@gnu.org
9489 MAGIC_CMD="$lt_save_MAGIC_CMD"
9494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9495 if test -n "$MAGIC_CMD"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9497 $as_echo "$MAGIC_CMD" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9507 if test -z "$lt_cv_path_MAGIC_CMD"; then
9508 if test -n "$ac_tool_prefix"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9510 $as_echo_n "checking for file... " >&6; }
9511 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9512 $as_echo_n "(cached) " >&6
9516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9519 lt_save_MAGIC_CMD="$MAGIC_CMD"
9520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9521 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9522 for ac_dir in $ac_dummy; do
9524 test -z "$ac_dir" && ac_dir=.
9525 if test -f $ac_dir/file; then
9526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9527 if test -n "$file_magic_test_file"; then
9528 case $deplibs_check_method in
9530 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9533 $EGREP "$file_magic_regex" > /dev/null; then
9538 *** Warning: the command libtool uses to detect shared libraries,
9539 *** $file_magic_cmd, produces output that libtool cannot recognize.
9540 *** The result is that libtool may fail to recognize shared libraries
9541 *** as such. This will affect the creation of libtool libraries that
9542 *** depend on shared libraries, but programs linked with such libtool
9543 *** libraries will work regardless of this problem. Nevertheless, you
9544 *** may want to report the problem to your system manager and/or to
9545 *** bug-libtool@gnu.org
9555 MAGIC_CMD="$lt_save_MAGIC_CMD"
9560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9561 if test -n "$MAGIC_CMD"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9563 $as_echo "$MAGIC_CMD" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9579 # Use C for the default configuration in the libtool script
9583 ac_cpp='$CPP $CPPFLAGS'
9584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589 # Source file extension for C test sources.
9592 # Object file extension for compiled C test sources.
9596 # Code to be used in simple compile tests
9597 lt_simple_compile_test_code="int some_variable = 0;"
9599 # Code to be used in simple link tests
9600 lt_simple_link_test_code='int main(){return(0);}'
9608 # If no C compiler was specified, use CC.
9611 # If no C compiler flags were specified, use CFLAGS.
9612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9614 # Allow CC to be a program name with arguments.
9617 # Save the default compiler, since it gets overwritten when the other
9618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9619 compiler_DEFAULT=$CC
9621 # save warnings/boilerplate of simple test code
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625 _lt_compiler_boilerplate=`cat conftest.err`
9628 ac_outfile=conftest.$ac_objext
9629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9631 _lt_linker_boilerplate=`cat conftest.err`
9636 ## There is no encapsulation within the following macros, do not change
9637 ## the running order or otherwise move them around unless you know exactly
9638 ## what you are doing...
9639 if test -n "$compiler"; then
9641 lt_prog_compiler_no_builtin_flag=
9643 if test "$GCC" = yes; then
9644 case $cc_basename in
9646 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9648 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9652 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9653 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9654 $as_echo_n "(cached) " >&6
9656 lt_cv_prog_compiler_rtti_exceptions=no
9657 ac_outfile=conftest.$ac_objext
9658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9659 lt_compiler_flag="-fno-rtti -fno-exceptions"
9660 # Insert the option either (1) after the last *FLAGS variable, or
9661 # (2) before a word containing "conftest.", or (3) at the end.
9662 # Note that $ac_compile itself does not contain backslashes and begins
9663 # with a dollar sign (not a hyphen), so the echo should work correctly.
9664 # The option is referenced via a variable to avoid confusing sed.
9665 lt_compile=`echo "$ac_compile" | $SED \
9666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9668 -e 's:$: $lt_compiler_flag:'`
9669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9670 (eval "$lt_compile" 2>conftest.err)
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 if (exit $ac_status) && test -s "$ac_outfile"; then
9675 # The compiler can only warn and ignore the option if not recognized
9676 # So say no if there are warnings other than the usual output.
9677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9680 lt_cv_prog_compiler_rtti_exceptions=yes
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9687 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9690 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9702 lt_prog_compiler_wl=
9703 lt_prog_compiler_pic=
9704 lt_prog_compiler_static=
9707 if test "$GCC" = yes; then
9708 lt_prog_compiler_wl='-Wl,'
9709 lt_prog_compiler_static='-static'
9713 # All AIX code is PIC.
9714 if test "$host_cpu" = ia64; then
9715 # AIX 5 now supports IA64 processor
9716 lt_prog_compiler_static='-Bstatic'
9723 # see comment about AmigaOS4 .so support
9724 lt_prog_compiler_pic='-fPIC'
9727 # FIXME: we need at least 68020 code to build shared libraries, but
9728 # adding the `-m68020' flag to GCC prevents building anything better,
9730 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9735 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9736 # PIC is the default for these OSes.
9739 mingw* | cygwin* | pw32* | os2* | cegcc*)
9740 # This hack is so that the source file can tell whether it is being
9741 # built for inclusion in a dll (and should export symbols for example).
9742 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9743 # (--disable-auto-import) libraries
9744 lt_prog_compiler_pic='-DDLL_EXPORT'
9747 darwin* | rhapsody*)
9748 # PIC is the default on this platform
9749 # Common symbols not allowed in MH_DYLIB files
9750 lt_prog_compiler_pic='-fno-common'
9754 # PIC is the default for Haiku.
9755 # The "-static" flag exists, but is broken.
9756 lt_prog_compiler_static=
9760 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9761 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9762 # sets the default TLS model and affects inlining.
9768 lt_prog_compiler_pic='-fPIC'
9774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9775 # Instead, we relocate shared libraries at runtime.
9779 # Just because we use GCC doesn't mean we suddenly get shared libraries
9780 # on systems that don't support them.
9781 lt_prog_compiler_can_build_shared=no
9786 # QNX uses GNU C++, but need to define -shared option too, otherwise
9788 lt_prog_compiler_pic='-fPIC -shared'
9792 if test -d /usr/nec; then
9793 lt_prog_compiler_pic=-Kconform_pic
9798 lt_prog_compiler_pic='-fPIC'
9802 case $cc_basename in
9803 nvcc*) # Cuda Compiler Driver 2.2
9804 lt_prog_compiler_wl='-Xlinker '
9805 if test -n "$lt_prog_compiler_pic"; then
9806 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9811 # PORTME Check for flag to pass linker flags through the system compiler.
9814 lt_prog_compiler_wl='-Wl,'
9815 if test "$host_cpu" = ia64; then
9816 # AIX 5 now supports IA64 processor
9817 lt_prog_compiler_static='-Bstatic'
9819 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9823 mingw* | cygwin* | pw32* | os2* | cegcc*)
9824 # This hack is so that the source file can tell whether it is being
9825 # built for inclusion in a dll (and should export symbols for example).
9826 lt_prog_compiler_pic='-DDLL_EXPORT'
9829 hpux9* | hpux10* | hpux11*)
9830 lt_prog_compiler_wl='-Wl,'
9831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9838 lt_prog_compiler_pic='+Z'
9841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9842 lt_prog_compiler_static='${wl}-a ${wl}archive'
9845 irix5* | irix6* | nonstopux*)
9846 lt_prog_compiler_wl='-Wl,'
9847 # PIC (with -KPIC) is the default.
9848 lt_prog_compiler_static='-non_shared'
9851 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9852 case $cc_basename in
9853 # old Intel for x86_64 which still supported -KPIC.
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='-KPIC'
9857 lt_prog_compiler_static='-static'
9859 # icc used to be incompatible with GCC.
9860 # ICC 10 doesn't accept -KPIC any more.
9862 lt_prog_compiler_wl='-Wl,'
9863 lt_prog_compiler_pic='-fPIC'
9864 lt_prog_compiler_static='-static'
9866 # Lahey Fortran 8.1.
9868 lt_prog_compiler_wl='-Wl,'
9869 lt_prog_compiler_pic='--shared'
9870 lt_prog_compiler_static='--static'
9873 # NAG Fortran compiler
9874 lt_prog_compiler_wl='-Wl,-Wl,,'
9875 lt_prog_compiler_pic='-PIC'
9876 lt_prog_compiler_static='-Bstatic'
9878 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9879 # Portland Group compilers (*not* the Pentium gcc compiler,
9880 # which looks to be a dead project)
9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-fpic'
9883 lt_prog_compiler_static='-Bstatic'
9886 lt_prog_compiler_wl='-Wl,'
9887 # All Alpha code is PIC.
9888 lt_prog_compiler_static='-non_shared'
9890 xl* | bgxl* | bgf* | mpixl*)
9891 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9892 lt_prog_compiler_wl='-Wl,'
9893 lt_prog_compiler_pic='-qpic'
9894 lt_prog_compiler_static='-qstaticlink'
9897 case `$CC -V 2>&1 | sed 5q` in
9898 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9899 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9900 lt_prog_compiler_pic='-KPIC'
9901 lt_prog_compiler_static='-Bstatic'
9902 lt_prog_compiler_wl=''
9904 *Sun\ F* | *Sun*Fortran*)
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-Bstatic'
9907 lt_prog_compiler_wl='-Qoption ld '
9911 lt_prog_compiler_pic='-KPIC'
9912 lt_prog_compiler_static='-Bstatic'
9913 lt_prog_compiler_wl='-Wl,'
9915 *Intel*\ [CF]*Compiler*)
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-fPIC'
9918 lt_prog_compiler_static='-static'
9921 lt_prog_compiler_wl='-Wl,'
9922 lt_prog_compiler_pic='-fpic'
9923 lt_prog_compiler_static='-Bstatic'
9931 lt_prog_compiler_pic='-KPIC'
9932 lt_prog_compiler_static='-Bstatic'
9936 # QNX uses GNU C++, but need to define -shared option too, otherwise
9938 lt_prog_compiler_pic='-fPIC -shared'
9941 osf3* | osf4* | osf5*)
9942 lt_prog_compiler_wl='-Wl,'
9943 # All OSF/1 code is PIC.
9944 lt_prog_compiler_static='-non_shared'
9948 lt_prog_compiler_static='-non_shared'
9952 lt_prog_compiler_pic='-KPIC'
9953 lt_prog_compiler_static='-Bstatic'
9954 case $cc_basename in
9955 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9956 lt_prog_compiler_wl='-Qoption ld ';;
9958 lt_prog_compiler_wl='-Wl,';;
9963 lt_prog_compiler_wl='-Qoption ld '
9964 lt_prog_compiler_pic='-PIC'
9965 lt_prog_compiler_static='-Bstatic'
9968 sysv4 | sysv4.2uw2* | sysv4.3*)
9969 lt_prog_compiler_wl='-Wl,'
9970 lt_prog_compiler_pic='-KPIC'
9971 lt_prog_compiler_static='-Bstatic'
9975 if test -d /usr/nec ;then
9976 lt_prog_compiler_pic='-Kconform_pic'
9977 lt_prog_compiler_static='-Bstatic'
9981 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9982 lt_prog_compiler_wl='-Wl,'
9983 lt_prog_compiler_pic='-KPIC'
9984 lt_prog_compiler_static='-Bstatic'
9988 lt_prog_compiler_wl='-Wl,'
9989 lt_prog_compiler_can_build_shared=no
9993 lt_prog_compiler_pic='-pic'
9994 lt_prog_compiler_static='-Bstatic'
9998 lt_prog_compiler_can_build_shared=no
10004 # For platforms which do not support PIC, -DPIC is meaningless:
10006 lt_prog_compiler_pic=
10009 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10014 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10015 if ${lt_cv_prog_compiler_pic+:} false; then :
10016 $as_echo_n "(cached) " >&6
10018 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10021 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10022 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10025 # Check to make sure the PIC flag actually works.
10027 if test -n "$lt_prog_compiler_pic"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10029 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10030 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10031 $as_echo_n "(cached) " >&6
10033 lt_cv_prog_compiler_pic_works=no
10034 ac_outfile=conftest.$ac_objext
10035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10036 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10037 # Insert the option either (1) after the last *FLAGS variable, or
10038 # (2) before a word containing "conftest.", or (3) at the end.
10039 # Note that $ac_compile itself does not contain backslashes and begins
10040 # with a dollar sign (not a hyphen), so the echo should work correctly.
10041 # The option is referenced via a variable to avoid confusing sed.
10042 lt_compile=`echo "$ac_compile" | $SED \
10043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10045 -e 's:$: $lt_compiler_flag:'`
10046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10047 (eval "$lt_compile" 2>conftest.err)
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 if (exit $ac_status) && test -s "$ac_outfile"; then
10052 # The compiler can only warn and ignore the option if not recognized
10053 # So say no if there are warnings other than the usual output.
10054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10057 lt_cv_prog_compiler_pic_works=yes
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10064 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10066 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10067 case $lt_prog_compiler_pic in
10069 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10072 lt_prog_compiler_pic=
10073 lt_prog_compiler_can_build_shared=no
10089 # Check to make sure the static flag actually works.
10091 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10093 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10094 if ${lt_cv_prog_compiler_static_works+:} false; then :
10095 $as_echo_n "(cached) " >&6
10097 lt_cv_prog_compiler_static_works=no
10098 save_LDFLAGS="$LDFLAGS"
10099 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10100 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10102 # The linker can only warn and ignore the option if not recognized
10103 # So say no if there are warnings
10104 if test -s conftest.err; then
10105 # Append any errors to the config.log.
10106 cat conftest.err 1>&5
10107 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10109 if diff conftest.exp conftest.er2 >/dev/null; then
10110 lt_cv_prog_compiler_static_works=yes
10113 lt_cv_prog_compiler_static_works=yes
10117 LDFLAGS="$save_LDFLAGS"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10121 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10123 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10126 lt_prog_compiler_static=
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10136 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10137 if ${lt_cv_prog_compiler_c_o+:} false; then :
10138 $as_echo_n "(cached) " >&6
10140 lt_cv_prog_compiler_c_o=no
10141 $RM -r conftest 2>/dev/null
10145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10147 lt_compiler_flag="-o out/conftest2.$ac_objext"
10148 # Insert the option either (1) after the last *FLAGS variable, or
10149 # (2) before a word containing "conftest.", or (3) at the end.
10150 # Note that $ac_compile itself does not contain backslashes and begins
10151 # with a dollar sign (not a hyphen), so the echo should work correctly.
10152 lt_compile=`echo "$ac_compile" | $SED \
10153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10155 -e 's:$: $lt_compiler_flag:'`
10156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10157 (eval "$lt_compile" 2>out/conftest.err)
10159 cat out/conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10163 # The compiler can only warn and ignore the option if not recognized
10164 # So say no if there are warnings
10165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10166 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10167 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10168 lt_cv_prog_compiler_c_o=yes
10173 # SGI C++ compiler will create directory out/ii_files/ for
10174 # template instantiation
10175 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10176 $RM out/* && rmdir out
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10183 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10192 if ${lt_cv_prog_compiler_c_o+:} false; then :
10193 $as_echo_n "(cached) " >&6
10195 lt_cv_prog_compiler_c_o=no
10196 $RM -r conftest 2>/dev/null
10200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10202 lt_compiler_flag="-o out/conftest2.$ac_objext"
10203 # Insert the option either (1) after the last *FLAGS variable, or
10204 # (2) before a word containing "conftest.", or (3) at the end.
10205 # Note that $ac_compile itself does not contain backslashes and begins
10206 # with a dollar sign (not a hyphen), so the echo should work correctly.
10207 lt_compile=`echo "$ac_compile" | $SED \
10208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10210 -e 's:$: $lt_compiler_flag:'`
10211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10212 (eval "$lt_compile" 2>out/conftest.err)
10214 cat out/conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10218 # The compiler can only warn and ignore the option if not recognized
10219 # So say no if there are warnings
10220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10223 lt_cv_prog_compiler_c_o=yes
10228 # SGI C++ compiler will create directory out/ii_files/ for
10229 # template instantiation
10230 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10231 $RM out/* && rmdir out
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10238 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10243 hard_links="nottested"
10244 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10245 # do not overwrite the value of need_locks provided by the user
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10247 $as_echo_n "checking if we can lock with hard links... " >&6; }
10250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10252 ln conftest.a conftest.b 2>&5 || hard_links=no
10253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10255 $as_echo "$hard_links" >&6; }
10256 if test "$hard_links" = no; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10258 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10271 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10274 allow_undefined_flag=
10275 always_export_symbols=no
10277 archive_expsym_cmds=
10278 compiler_needs_object=no
10279 enable_shared_with_static_runtimes=no
10280 export_dynamic_flag_spec=
10281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10282 hardcode_automatic=no
10284 hardcode_direct_absolute=no
10285 hardcode_libdir_flag_spec=
10286 hardcode_libdir_separator=
10287 hardcode_minus_L=no
10288 hardcode_shlibpath_var=unsupported
10290 link_all_deplibs=unknown
10292 module_expsym_cmds=
10293 old_archive_from_new_cmds=
10294 old_archive_from_expsyms_cmds=
10295 thread_safe_flag_spec=
10296 whole_archive_flag_spec=
10297 # include_expsyms should be a list of space-separated symbols to be *always*
10298 # included in the symbol list
10300 # exclude_expsyms can be an extended regexp of symbols to exclude
10301 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10302 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10303 # as well as any symbol that contains `d'.
10304 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10305 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10306 # platforms (ab)use it in PIC code, but their linkers get confused if
10307 # the symbol is explicitly referenced. Since portable code cannot
10308 # rely on this symbol name, it's probably fine to never include it in
10309 # preloaded symbol tables.
10310 # Exclude shared library initialization/finalization symbols.
10311 extract_expsyms_cmds=
10314 cygwin* | mingw* | pw32* | cegcc*)
10315 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10316 # When not using gcc, we currently assume that we are using
10317 # Microsoft Visual C++.
10318 if test "$GCC" != yes; then
10323 # we just hope/assume this is gcc and not c89 (= MSVC++)
10329 linux* | k*bsd*-gnu | gnu*)
10330 link_all_deplibs=no
10336 # On some targets, GNU ld is compatible enough with the native linker
10337 # that we're better off using the native interface for both.
10338 lt_use_gnu_ld_interface=no
10339 if test "$with_gnu_ld" = yes; then
10342 # The AIX port of GNU ld has always aspired to compatibility
10343 # with the native linker. However, as the warning in the GNU ld
10344 # block says, versions before 2.19.5* couldn't really create working
10345 # shared libraries, regardless of the interface used.
10346 case `$LD -v 2>&1` in
10347 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10348 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10349 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10351 lt_use_gnu_ld_interface=yes
10356 lt_use_gnu_ld_interface=yes
10361 if test "$lt_use_gnu_ld_interface" = yes; then
10362 # If archive_cmds runs LD, not CC, wlarc should be empty
10365 # Set some defaults for GNU ld with shared library support. These
10366 # are reset later if shared libraries are not supported. Putting them
10367 # here allows them to be overridden if necessary.
10368 runpath_var=LD_RUN_PATH
10369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10370 export_dynamic_flag_spec='${wl}--export-dynamic'
10371 # ancient GNU ld didn't support --whole-archive et. al.
10372 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10373 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10375 whole_archive_flag_spec=
10377 supports_anon_versioning=no
10378 case `$LD -v 2>&1` in
10379 *GNU\ gold*) supports_anon_versioning=yes ;;
10380 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10381 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10382 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10383 *\ 2.11.*) ;; # other 2.11 versions
10384 *) supports_anon_versioning=yes ;;
10387 # See if GNU ld supports shared libraries.
10390 # On AIX/PPC, the GNU linker is very broken
10391 if test "$host_cpu" != ia64; then
10395 *** Warning: the GNU linker, at least up to release 2.19, is reported
10396 *** to be unable to reliably create shared libraries on AIX.
10397 *** Therefore, libtool is disabling shared libraries support. If you
10398 *** really care for shared libraries, you may want to install binutils
10399 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10400 *** You will then need to restart the configuration process.
10409 # see comment about AmigaOS4 .so support
10410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411 archive_expsym_cmds=''
10414 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)'
10415 hardcode_libdir_flag_spec='-L$libdir'
10416 hardcode_minus_L=yes
10422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10423 allow_undefined_flag=unsupported
10424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10425 # support --undefined. This deserves some investigation. FIXME
10426 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10432 cygwin* | mingw* | pw32* | cegcc*)
10433 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10434 # as there is no search path for DLLs.
10435 hardcode_libdir_flag_spec='-L$libdir'
10436 export_dynamic_flag_spec='${wl}--export-all-symbols'
10437 allow_undefined_flag=unsupported
10438 always_export_symbols=no
10439 enable_shared_with_static_runtimes=yes
10440 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'
10441 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10445 # If the export-symbols file already is a .def file (1st line
10446 # is EXPORTS), use it as is; otherwise, prepend...
10447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10448 cp $export_symbols $output_objdir/$soname.def;
10450 echo EXPORTS > $output_objdir/$soname.def;
10451 cat $export_symbols >> $output_objdir/$soname.def;
10453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461 link_all_deplibs=yes
10466 hardcode_shlibpath_var=no
10467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10468 export_dynamic_flag_spec='${wl}-E'
10469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10470 # Instead, shared libraries are loaded at an image base (0x10000000 by
10471 # default) and relocated if they conflict, which is a slow very memory
10472 # consuming and fragmenting process. To avoid this, we pick a random,
10473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10476 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'
10479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10481 if test "$host_os" = linux-dietlibc; then
10482 case $cc_basename in
10483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10487 && test "$tmp_diet" = no
10489 tmp_addflag=' $pic_flag'
10490 tmp_sharedflag='-shared'
10491 case $cc_basename,$host_cpu in
10492 pgcc*) # Portland Group C compiler
10493 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10494 tmp_addflag=' $pic_flag'
10496 pgf77* | pgf90* | pgf95* | pgfortran*)
10497 # Portland Group f77 and f90 compilers
10498 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'
10499 tmp_addflag=' $pic_flag -Mnomain' ;;
10500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10501 tmp_addflag=' -i_dynamic' ;;
10502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10503 tmp_addflag=' -i_dynamic -nofor_main' ;;
10504 ifc* | ifort*) # Intel Fortran compiler
10505 tmp_addflag=' -nofor_main' ;;
10506 lf95*) # Lahey Fortran 8.1
10507 whole_archive_flag_spec=
10508 tmp_sharedflag='--shared' ;;
10509 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10510 tmp_sharedflag='-qmkshrobj'
10512 nvcc*) # Cuda Compiler Driver 2.2
10513 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'
10514 compiler_needs_object=yes
10517 case `$CC -V 2>&1 | sed 5q` in
10518 *Sun\ C*) # Sun C 5.9
10519 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'
10520 compiler_needs_object=yes
10521 tmp_sharedflag='-G' ;;
10522 *Sun\ F*) # Sun Fortran 8.3
10523 tmp_sharedflag='-G' ;;
10525 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10527 if test "x$supports_anon_versioning" = xyes; then
10528 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10530 echo "local: *; };" >> $output_objdir/$libname.ver~
10531 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10534 case $cc_basename in
10535 xlf* | bgf* | bgxlf* | mpixlf*)
10536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10537 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10539 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10540 if test "x$supports_anon_versioning" = xyes; then
10541 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10543 echo "local: *; };" >> $output_objdir/$libname.ver~
10544 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10553 netbsd* | netbsdelf*-gnu)
10554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10555 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10564 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10568 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10569 *** create shared libraries on Solaris systems. Therefore, libtool
10570 *** is disabling shared libraries support. We urge you to upgrade GNU
10571 *** binutils to release 2.9.1 or newer. Another option is to modify
10572 *** your PATH or compiler configuration so that the native linker is
10573 *** used, and then restart.
10576 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10578 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10585 case `$LD -v 2>&1` in
10586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10590 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10591 *** reliably create shared libraries on SCO systems. Therefore, libtool
10592 *** is disabling shared libraries support. We urge you to upgrade GNU
10593 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10594 *** your PATH or compiler configuration so that the native linker is
10595 *** used, and then restart.
10600 # For security reasons, it is highly recommended that you always
10601 # use absolute paths for naming shared libraries, and exclude the
10602 # DT_RUNPATH tag from executables and libraries. But doing so
10603 # requires that you compile everything twice, which is a pain.
10604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10616 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10618 hardcode_direct=yes
10619 hardcode_shlibpath_var=no
10623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10624 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10632 if test "$ld_shlibs" = no; then
10634 hardcode_libdir_flag_spec=
10635 export_dynamic_flag_spec=
10636 whole_archive_flag_spec=
10639 # PORTME fill in a description of your system's linker (not GNU ld)
10642 allow_undefined_flag=unsupported
10643 always_export_symbols=yes
10644 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'
10645 # Note: this linker hardcodes the directories in LIBPATH if there
10646 # are no directories specified by -L.
10647 hardcode_minus_L=yes
10648 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10649 # Neither direct hardcoding nor static linking is supported with a
10651 hardcode_direct=unsupported
10656 if test "$host_cpu" = ia64; then
10657 # On IA64, the linker does run time linking by default, so we don't
10658 # have to do anything special.
10659 aix_use_runtimelinking=no
10660 exp_sym_flag='-Bexport'
10663 # If we're using GNU nm, then we don't want the "-C" option.
10664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10665 # Also, AIX nm treats weak defined symbols like other global
10666 # defined symbols, whereas GNU nm marks them as "W".
10667 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10668 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'
10670 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'
10672 aix_use_runtimelinking=no
10674 # Test if we are trying to use run time linking or normal
10675 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10676 # need to do runtime linking.
10677 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10678 for ld_flag in $LDFLAGS; do
10679 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10680 aix_use_runtimelinking=yes
10687 exp_sym_flag='-bexport'
10688 no_entry_flag='-bnoentry'
10691 # When large executables or shared objects are built, AIX ld can
10692 # have problems creating the table of contents. If linking a library
10693 # or program results in "error TOC overflow" add -mminimal-toc to
10694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10698 hardcode_direct=yes
10699 hardcode_direct_absolute=yes
10700 hardcode_libdir_separator=':'
10701 link_all_deplibs=yes
10702 file_list_spec='${wl}-f,'
10704 if test "$GCC" = yes; then
10705 case $host_os in aix4.[012]|aix4.[012].*)
10706 # We only want to do this on AIX 4.2 and lower, the check
10707 # below for broken collect2 doesn't work under 4.3+
10708 collect2name=`${CC} -print-prog-name=collect2`
10709 if test -f "$collect2name" &&
10710 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10712 # We have reworked collect2
10715 # We have old collect2
10716 hardcode_direct=unsupported
10717 # It fails to find uninstalled libraries when the uninstalled
10718 # path is not listed in the libpath. Setting hardcode_minus_L
10719 # to unsupported forces relinking
10720 hardcode_minus_L=yes
10721 hardcode_libdir_flag_spec='-L$libdir'
10722 hardcode_libdir_separator=
10726 shared_flag='-shared'
10727 if test "$aix_use_runtimelinking" = yes; then
10728 shared_flag="$shared_flag "'${wl}-G'
10730 link_all_deplibs=no
10733 if test "$host_cpu" = ia64; then
10734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10735 # chokes on -Wl,-G. The following line is correct:
10738 if test "$aix_use_runtimelinking" = yes; then
10739 shared_flag='${wl}-G'
10741 shared_flag='${wl}-bM:SRE'
10746 export_dynamic_flag_spec='${wl}-bexpall'
10747 # It seems that -bexpall does not export symbols beginning with
10748 # underscore (_), so it is better to generate a list of symbols to export.
10749 always_export_symbols=yes
10750 if test "$aix_use_runtimelinking" = yes; then
10751 # Warning - without using the other runtime loading flags (-brtl),
10752 # -berok will link without error, but may produce a broken library.
10753 allow_undefined_flag='-berok'
10754 # Determine the default libpath from the value encoded in an
10755 # empty executable.
10756 if test "${lt_cv_aix_libpath+set}" = set; then
10757 aix_libpath=$lt_cv_aix_libpath
10759 if ${lt_cv_aix_libpath_+:} false; then :
10760 $as_echo_n "(cached) " >&6
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10773 if ac_fn_c_try_link "$LINENO"; then :
10775 lt_aix_libpath_sed='
10776 /Import File Strings/,/^$/ {
10778 s/^0 *\([^ ]*\) *$/\1/
10782 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10783 # Check for a 64-bit object if we didn't find anything.
10784 if test -z "$lt_cv_aix_libpath_"; then
10785 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10788 rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790 if test -z "$lt_cv_aix_libpath_"; then
10791 lt_cv_aix_libpath_="/usr/lib:/lib"
10796 aix_libpath=$lt_cv_aix_libpath_
10799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10800 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"
10802 if test "$host_cpu" = ia64; then
10803 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10804 allow_undefined_flag="-z nodefs"
10805 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"
10807 # Determine the default libpath from the value encoded in an
10808 # empty executable.
10809 if test "${lt_cv_aix_libpath+set}" = set; then
10810 aix_libpath=$lt_cv_aix_libpath
10812 if ${lt_cv_aix_libpath_+:} false; then :
10813 $as_echo_n "(cached) " >&6
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10826 if ac_fn_c_try_link "$LINENO"; then :
10828 lt_aix_libpath_sed='
10829 /Import File Strings/,/^$/ {
10831 s/^0 *\([^ ]*\) *$/\1/
10835 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836 # Check for a 64-bit object if we didn't find anything.
10837 if test -z "$lt_cv_aix_libpath_"; then
10838 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10841 rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843 if test -z "$lt_cv_aix_libpath_"; then
10844 lt_cv_aix_libpath_="/usr/lib:/lib"
10849 aix_libpath=$lt_cv_aix_libpath_
10852 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10853 # Warning - without using the other run time loading flags,
10854 # -berok will link without error, but may produce a broken library.
10855 no_undefined_flag=' ${wl}-bernotok'
10856 allow_undefined_flag=' ${wl}-berok'
10857 if test "$with_gnu_ld" = yes; then
10858 # We only use this code for GNU lds that support --whole-archive.
10859 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10861 # Exported symbols can be pulled into shared objects from archives
10862 whole_archive_flag_spec='$convenience'
10864 archive_cmds_need_lc=yes
10865 # This is similar to how AIX traditionally builds its shared libraries.
10866 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'
10874 # see comment about AmigaOS4 .so support
10875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10876 archive_expsym_cmds=''
10879 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)'
10880 hardcode_libdir_flag_spec='-L$libdir'
10881 hardcode_minus_L=yes
10887 export_dynamic_flag_spec=-rdynamic
10890 cygwin* | mingw* | pw32* | cegcc*)
10891 # When not using gcc, we currently assume that we are using
10892 # Microsoft Visual C++.
10893 # hardcode_libdir_flag_spec is actually meaningless, as there is
10894 # no search path for DLLs.
10895 case $cc_basename in
10898 hardcode_libdir_flag_spec=' '
10899 allow_undefined_flag=unsupported
10900 always_export_symbols=yes
10902 # Tell ltmain to make .lib files, not .a files.
10904 # Tell ltmain to make .dll files, not .so files.
10906 # FIXME: Setting linknames here is a bad hack.
10907 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10909 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10911 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10913 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10915 # The linker will not automatically build a static lib if we build a DLL.
10916 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10917 enable_shared_with_static_runtimes=yes
10918 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10921 old_postinstall_cmds='chmod 644 $oldlib'
10922 postlink_cmds='lt_outputfile="@OUTPUT@"~
10923 lt_tool_outputfile="@TOOL_OUTPUT@"~
10924 case $lt_outputfile in
10927 lt_outputfile="$lt_outputfile.exe"
10928 lt_tool_outputfile="$lt_tool_outputfile.exe"
10931 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10932 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10933 $RM "$lt_outputfile.manifest";
10937 # Assume MSVC wrapper
10938 hardcode_libdir_flag_spec=' '
10939 allow_undefined_flag=unsupported
10940 # Tell ltmain to make .lib files, not .a files.
10942 # Tell ltmain to make .dll files, not .so files.
10944 # FIXME: Setting linknames here is a bad hack.
10945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10946 # The linker will automatically build a .lib file if we build a DLL.
10947 old_archive_from_new_cmds='true'
10948 # FIXME: Should let the user specify the lib program.
10949 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10950 enable_shared_with_static_runtimes=yes
10955 darwin* | rhapsody*)
10958 archive_cmds_need_lc=no
10960 hardcode_automatic=yes
10961 hardcode_shlibpath_var=unsupported
10962 if test "$lt_cv_ld_force_load" = "yes"; then
10963 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10966 whole_archive_flag_spec=''
10968 link_all_deplibs=yes
10969 allow_undefined_flag="$_lt_dar_allow_undefined"
10970 case $cc_basename in
10971 ifort*) _lt_dar_can_shared=yes ;;
10972 *) _lt_dar_can_shared=$GCC ;;
10974 if test "$_lt_dar_can_shared" = "yes"; then
10975 output_verbose_link_cmd=func_echo_all
10976 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10977 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10978 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}"
10979 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}"
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_libdir_flag_spec='-L$libdir'
10990 hardcode_shlibpath_var=no
10993 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10994 # support. Future versions do this automatically, but an explicit c++rt0.o
10995 # does not break anything, and helps significantly (at the cost of a little
10998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10999 hardcode_libdir_flag_spec='-R$libdir'
11000 hardcode_direct=yes
11001 hardcode_shlibpath_var=no
11004 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_direct=yes
11008 hardcode_minus_L=yes
11009 hardcode_shlibpath_var=no
11012 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11013 freebsd* | dragonfly*)
11014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11015 hardcode_libdir_flag_spec='-R$libdir'
11016 hardcode_direct=yes
11017 hardcode_shlibpath_var=no
11021 if test "$GCC" = yes; then
11022 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'
11024 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'
11026 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11027 hardcode_libdir_separator=:
11028 hardcode_direct=yes
11030 # hardcode_minus_L: Not really in the search PATH,
11031 # but as the default location of the library.
11032 hardcode_minus_L=yes
11033 export_dynamic_flag_spec='${wl}-E'
11037 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11038 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11042 if test "$with_gnu_ld" = no; then
11043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11044 hardcode_libdir_separator=:
11045 hardcode_direct=yes
11046 hardcode_direct_absolute=yes
11047 export_dynamic_flag_spec='${wl}-E'
11048 # hardcode_minus_L: Not really in the search PATH,
11049 # but as the default location of the library.
11050 hardcode_minus_L=yes
11055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11064 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11070 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11077 # Older versions of the 11.00 compiler do not understand -b yet
11078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11080 $as_echo_n "checking if $CC understands -b... " >&6; }
11081 if ${lt_cv_prog_compiler__b+:} false; then :
11082 $as_echo_n "(cached) " >&6
11084 lt_cv_prog_compiler__b=no
11085 save_LDFLAGS="$LDFLAGS"
11086 LDFLAGS="$LDFLAGS -b"
11087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11089 # The linker can only warn and ignore the option if not recognized
11090 # So say no if there are warnings
11091 if test -s conftest.err; then
11092 # Append any errors to the config.log.
11093 cat conftest.err 1>&5
11094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11096 if diff conftest.exp conftest.er2 >/dev/null; then
11097 lt_cv_prog_compiler__b=yes
11100 lt_cv_prog_compiler__b=yes
11104 LDFLAGS="$save_LDFLAGS"
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11110 if test x"$lt_cv_prog_compiler__b" = xyes; then
11111 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11119 if test "$with_gnu_ld" = no; then
11120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11121 hardcode_libdir_separator=:
11126 hardcode_shlibpath_var=no
11129 hardcode_direct=yes
11130 hardcode_direct_absolute=yes
11131 export_dynamic_flag_spec='${wl}-E'
11133 # hardcode_minus_L: Not really in the search PATH,
11134 # but as the default location of the library.
11135 hardcode_minus_L=yes
11141 irix5* | irix6* | nonstopux*)
11142 if test "$GCC" = yes; then
11143 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'
11144 # Try to use the -exported_symbol ld option, if it does not
11145 # work, assume that -exports_file does not work either and
11146 # implicitly export all symbols.
11147 # This should be the same for all languages, so no per-tag cache variable.
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11149 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11150 if ${lt_cv_irix_exported_symbol+:} false; then :
11151 $as_echo_n "(cached) " >&6
11153 save_LDFLAGS="$LDFLAGS"
11154 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 int foo (void) { return 0; }
11159 if ac_fn_c_try_link "$LINENO"; then :
11160 lt_cv_irix_exported_symbol=yes
11162 lt_cv_irix_exported_symbol=no
11164 rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166 LDFLAGS="$save_LDFLAGS"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11169 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11170 if test "$lt_cv_irix_exported_symbol" = yes; then
11171 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'
11174 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'
11175 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'
11177 archive_cmds_need_lc='no'
11178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11179 hardcode_libdir_separator=:
11181 link_all_deplibs=yes
11184 netbsd* | netbsdelf*-gnu)
11185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11188 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11190 hardcode_libdir_flag_spec='-R$libdir'
11191 hardcode_direct=yes
11192 hardcode_shlibpath_var=no
11196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11197 hardcode_direct=yes
11198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11199 hardcode_libdir_separator=:
11200 hardcode_shlibpath_var=no
11207 if test -f /usr/libexec/ld.so; then
11208 hardcode_direct=yes
11209 hardcode_shlibpath_var=no
11210 hardcode_direct_absolute=yes
11211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11213 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11215 export_dynamic_flag_spec='${wl}-E'
11218 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11220 hardcode_libdir_flag_spec='-R$libdir'
11223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11234 hardcode_libdir_flag_spec='-L$libdir'
11235 hardcode_minus_L=yes
11236 allow_undefined_flag=unsupported
11237 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'
11238 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11242 if test "$GCC" = yes; then
11243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11244 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'
11246 allow_undefined_flag=' -expect_unresolved \*'
11247 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'
11249 archive_cmds_need_lc='no'
11250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11251 hardcode_libdir_separator=:
11254 osf4* | osf5*) # as osf3* with the addition of -msym flag
11255 if test "$GCC" = yes; then
11256 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11257 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'
11258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11260 allow_undefined_flag=' -expect_unresolved \*'
11261 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'
11262 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~
11263 $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'
11265 # Both c and cxx compiler support -rpath directly
11266 hardcode_libdir_flag_spec='-rpath $libdir'
11268 archive_cmds_need_lc='no'
11269 hardcode_libdir_separator=:
11273 no_undefined_flag=' -z defs'
11274 if test "$GCC" = yes; then
11276 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11278 $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'
11280 case `$CC -V 2>&1` in
11283 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11289 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11291 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11295 hardcode_libdir_flag_spec='-R$libdir'
11296 hardcode_shlibpath_var=no
11298 solaris2.[0-5] | solaris2.[0-5].*) ;;
11300 # The compiler driver will combine and reorder linker options,
11301 # but understands `-z linker_flag'. GCC discards it without `$wl',
11302 # but is careful enough not to reorder.
11303 # Supported since Solaris 2.6 (maybe 2.5.1?)
11304 if test "$GCC" = yes; then
11305 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11307 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11311 link_all_deplibs=yes
11315 if test "x$host_vendor" = xsequent; then
11316 # Use $CC to link under sequent, because it throws in some extra .o
11317 # files that make .init and .fini sections work.
11318 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11322 hardcode_libdir_flag_spec='-L$libdir'
11323 hardcode_direct=yes
11324 hardcode_minus_L=yes
11325 hardcode_shlibpath_var=no
11329 case $host_vendor in
11331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_direct=yes # is this really true???
11335 ## LD is ld it makes a PLAMLIB
11336 ## CC just makes a GrossModule.
11337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11338 reload_cmds='$CC -r -o $output$reload_objs'
11342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11343 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11346 runpath_var='LD_RUN_PATH'
11347 hardcode_shlibpath_var=no
11351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352 hardcode_shlibpath_var=no
11353 export_dynamic_flag_spec='-Bexport'
11357 if test -d /usr/nec; then
11358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11359 hardcode_shlibpath_var=no
11360 runpath_var=LD_RUN_PATH
11361 hardcode_runpath_var=yes
11366 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11367 no_undefined_flag='${wl}-z,text'
11368 archive_cmds_need_lc=no
11369 hardcode_shlibpath_var=no
11370 runpath_var='LD_RUN_PATH'
11372 if test "$GCC" = yes; then
11373 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381 sysv5* | sco3.2v5* | sco5v6*)
11382 # Note: We can NOT use -z defs as we might desire, because we do not
11383 # link with -lc, and that would cause any symbols used from libc to
11384 # always be unresolved, which means just about no library would
11385 # ever link correctly. If we're not using GNU ld we use -z text
11386 # though, which does catch some bad symbols but isn't as heavy-handed
11388 no_undefined_flag='${wl}-z,text'
11389 allow_undefined_flag='${wl}-z,nodefs'
11390 archive_cmds_need_lc=no
11391 hardcode_shlibpath_var=no
11392 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11393 hardcode_libdir_separator=':'
11394 link_all_deplibs=yes
11395 export_dynamic_flag_spec='${wl}-Bexport'
11396 runpath_var='LD_RUN_PATH'
11398 if test "$GCC" = yes; then
11399 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11409 hardcode_libdir_flag_spec='-L$libdir'
11410 hardcode_shlibpath_var=no
11418 if test x$host_vendor = xsni; then
11420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11421 export_dynamic_flag_spec='${wl}-Blargedynsym'
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11428 $as_echo "$ld_shlibs" >&6; }
11429 test "$ld_shlibs" = no && can_build_shared=no
11431 with_gnu_ld=$with_gnu_ld
11448 # Do we need to explicitly link libc?
11450 case "x$archive_cmds_need_lc" in
11452 # Assume -lc should be added
11453 archive_cmds_need_lc=yes
11455 if test "$enable_shared" = yes && test "$GCC" = yes; then
11456 case $archive_cmds in
11458 # FIXME: we may have to deal with multi-command sequences.
11461 # Test whether the compiler implicitly links with -lc since on some
11462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11463 # to ld, don't add -lc before -lgcc.
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11465 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11466 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11467 $as_echo_n "(cached) " >&6
11470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11473 (eval $ac_compile) 2>&5
11475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476 test $ac_status = 0; } 2>conftest.err; then
11479 libobjs=conftest.$ac_objext
11481 wl=$lt_prog_compiler_wl
11482 pic_flag=$lt_prog_compiler_pic
11488 lt_save_allow_undefined_flag=$allow_undefined_flag
11489 allow_undefined_flag=
11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11491 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494 test $ac_status = 0; }
11496 lt_cv_archive_cmds_need_lc=no
11498 lt_cv_archive_cmds_need_lc=yes
11500 allow_undefined_flag=$lt_save_allow_undefined_flag
11502 cat conftest.err 1>&5
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11508 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11509 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11668 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11670 if test "$GCC" = yes; then
11672 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11673 *) lt_awk_arg="/^libraries:/" ;;
11676 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11677 *) lt_sed_strip_eq="s,=/,/,g" ;;
11679 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11680 case $lt_search_path_spec in
11682 # if the path contains ";" then we assume it to be the separator
11683 # otherwise default to the standard path separator (i.e. ":") - it is
11684 # assumed that no part of a normal pathname contains ";" but that should
11685 # okay in the real world where ";" in dirpaths is itself problematic.
11686 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11689 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11692 # Ok, now we have the path, separated by spaces, we can step through it
11693 # and add multilib dir if necessary.
11694 lt_tmp_lt_search_path_spec=
11695 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11696 for lt_sys_path in $lt_search_path_spec; do
11697 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11698 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11700 test -d "$lt_sys_path" && \
11701 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11704 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11705 BEGIN {RS=" "; FS="/|\n";} {
11708 for (lt_i = NF; lt_i > 0; lt_i--) {
11709 if ($lt_i != "" && $lt_i != ".") {
11710 if ($lt_i == "..") {
11713 if (lt_count == 0) {
11714 lt_foo="/" $lt_i lt_foo;
11721 if (lt_foo != "") { lt_freq[lt_foo]++; }
11722 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11724 # AWK program above erroneously prepends '/' to C:/dos/paths
11727 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11728 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11730 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11734 library_names_spec=
11735 libname_spec='lib$name'
11739 postuninstall_cmds=
11743 shlibpath_overrides_runpath=unknown
11745 dynamic_linker="$host_os ld.so"
11746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11747 need_lib_prefix=unknown
11748 hardcode_into_libs=no
11750 # when you set need_version to no, make sure it does not cause -set_version
11751 # flags to be left without arguments
11752 need_version=unknown
11756 version_type=linux # correct to gnu/linux during the next big refactor
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11758 shlibpath_var=LIBPATH
11760 # AIX 3 has no versioning support, so we append a major version to the name.
11761 soname_spec='${libname}${release}${shared_ext}$major'
11765 version_type=linux # correct to gnu/linux during the next big refactor
11768 hardcode_into_libs=yes
11769 if test "$host_cpu" = ia64; then
11770 # AIX 5 supports IA64
11771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11772 shlibpath_var=LD_LIBRARY_PATH
11774 # With GCC up to 2.95.x, collect2 would create an import file
11775 # for dependence libraries. The import file would start with
11776 # the line `#! .'. This would cause the generated library to
11777 # depend on `.', always an invalid library. This was fixed in
11778 # development snapshots of GCC prior to 3.0.
11780 aix4 | aix4.[01] | aix4.[01].*)
11781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11783 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11786 can_build_shared=no
11790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11791 # soname into executable. Probably we can add versioning support to
11792 # collect2, so additional links can be useful in future.
11793 if test "$aix_use_runtimelinking" = yes; then
11794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11795 # instead of lib<name>.a to let people know that these are not
11796 # typical AIX shared libraries.
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 # We preserve .a as extension for shared libraries through AIX4.2
11800 # and later when we are not doing run time linking.
11801 library_names_spec='${libname}${release}.a $libname.a'
11802 soname_spec='${libname}${release}${shared_ext}$major'
11804 shlibpath_var=LIBPATH
11811 # Since July 2007 AmigaOS4 officially supports .so libraries.
11812 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 library_names_spec='$libname.ixlibrary $libname.a'
11817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11818 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'
11824 library_names_spec='${libname}${shared_ext}'
11825 dynamic_linker="$host_os ld.so"
11826 shlibpath_var=LIBRARY_PATH
11830 version_type=linux # correct to gnu/linux during the next big refactor
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 soname_spec='${libname}${release}${shared_ext}$major'
11834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11838 # the default ld.so.conf also contains /usr/contrib/lib and
11839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11840 # libtool to hard-code these into programs
11843 cygwin* | mingw* | pw32* | cegcc*)
11844 version_type=windows
11849 case $GCC,$cc_basename in
11852 library_names_spec='$libname.dll.a'
11853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11854 postinstall_cmds='base_file=`basename \${file}`~
11855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11856 dldir=$destdir/`dirname \$dlpath`~
11857 test -d \$dldir || mkdir -p \$dldir~
11858 $install_prog $dir/$dlname \$dldir/$dlname~
11859 chmod a+x \$dldir/$dlname~
11860 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11861 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11864 dlpath=$dir/\$dldll~
11866 shlibpath_overrides_runpath=yes
11870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11873 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11876 # MinGW DLLs use traditional 'lib' prefix
11877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11880 # pw32 DLLs use 'pw' prefix rather than 'lib'
11881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11884 dynamic_linker='Win32 ld.exe'
11889 libname_spec='$name'
11890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11891 library_names_spec='${libname}.dll.lib'
11895 sys_lib_search_path_spec=
11898 for lt_path in $LIB
11901 # Let DOS variable expansion print the short 8.3 style file name.
11902 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11903 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11906 # Convert to MSYS style.
11907 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11910 # Convert to unix form, then to dos form, then back to unix form
11911 # but this time dos style (no spaces!) so that the unix form looks
11912 # like /cygdrive/c/PROGRA~1:/cygdr...
11913 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11914 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11915 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11918 sys_lib_search_path_spec="$LIB"
11919 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11920 # It is most probably a Windows format PATH.
11921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11923 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11925 # FIXME: find the short name or the path components, as spaces are
11926 # common. (e.g. "Program Files" -> "PROGRA~1")
11930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11931 postinstall_cmds='base_file=`basename \${file}`~
11932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11933 dldir=$destdir/`dirname \$dlpath`~
11934 test -d \$dldir || mkdir -p \$dldir~
11935 $install_prog $dir/$dlname \$dldir/$dlname'
11936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11937 dlpath=$dir/\$dldll~
11939 shlibpath_overrides_runpath=yes
11940 dynamic_linker='Win32 link.exe'
11944 # Assume MSVC wrapper
11945 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11946 dynamic_linker='Win32 ld.exe'
11949 # FIXME: first we should search . and the directory the executable is in
11953 darwin* | rhapsody*)
11954 dynamic_linker="$host_os dyld"
11955 version_type=darwin
11958 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11959 soname_spec='${libname}${release}${major}$shared_ext'
11960 shlibpath_overrides_runpath=yes
11961 shlibpath_var=DYLD_LIBRARY_PATH
11962 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11964 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11965 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11969 version_type=linux # correct to gnu/linux during the next big refactor
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11973 soname_spec='${libname}${release}${shared_ext}$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11977 freebsd* | dragonfly*)
11978 # DragonFly does not have aout. When/if they implement a new
11979 # versioning mechanism, adjust this.
11980 if test -x /usr/bin/objformat; then
11981 objformat=`/usr/bin/objformat`
11984 freebsd[23].*) objformat=aout ;;
11985 *) objformat=elf ;;
11988 version_type=freebsd-$objformat
11989 case $version_type in
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12000 shlibpath_var=LD_LIBRARY_PATH
12003 shlibpath_overrides_runpath=yes
12005 freebsd3.[01]* | freebsdelf3.[01]*)
12006 shlibpath_overrides_runpath=yes
12007 hardcode_into_libs=yes
12009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12011 shlibpath_overrides_runpath=no
12012 hardcode_into_libs=yes
12014 *) # from 4.6 on, and DragonFly
12015 shlibpath_overrides_runpath=yes
12016 hardcode_into_libs=yes
12022 version_type=linux # correct to gnu/linux during the next big refactor
12025 dynamic_linker="$host_os runtime_loader"
12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 shlibpath_var=LIBRARY_PATH
12029 shlibpath_overrides_runpath=yes
12030 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12031 hardcode_into_libs=yes
12034 hpux9* | hpux10* | hpux11*)
12035 # Give a soname corresponding to the major version so that dld.sl refuses to
12036 # link against other versions.
12043 hardcode_into_libs=yes
12044 dynamic_linker="$host_os dld.so"
12045 shlibpath_var=LD_LIBRARY_PATH
12046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 soname_spec='${libname}${release}${shared_ext}$major'
12049 if test "X$HPUX_IA64_MODE" = X32; then
12050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12058 hardcode_into_libs=yes
12059 dynamic_linker="$host_os dld.sl"
12060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12063 soname_spec='${libname}${release}${shared_ext}$major'
12064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12069 dynamic_linker="$host_os dld.sl"
12070 shlibpath_var=SHLIB_PATH
12071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12076 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12077 postinstall_cmds='chmod 555 $lib'
12078 # or fails outright, so override atomically:
12079 install_override_mode=555
12083 version_type=linux # correct to gnu/linux during the next big refactor
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12087 soname_spec='${libname}${release}${shared_ext}$major'
12088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12089 shlibpath_var=LD_LIBRARY_PATH
12090 shlibpath_overrides_runpath=no
12091 hardcode_into_libs=yes
12094 irix5* | irix6* | nonstopux*)
12096 nonstopux*) version_type=nonstopux ;;
12098 if test "$lt_cv_prog_gnu_ld" = yes; then
12099 version_type=linux # correct to gnu/linux during the next big refactor
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12109 irix5* | nonstopux*)
12110 libsuff= shlibsuff=
12113 case $LD in # libtool.m4 will add one of these switches to LD
12114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12115 libsuff= shlibsuff= libmagic=32-bit;;
12116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12117 libsuff=32 shlibsuff=N32 libmagic=N32;;
12118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12120 *) libsuff= shlibsuff= libmagic=never-match;;
12124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12125 shlibpath_overrides_runpath=no
12126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12128 hardcode_into_libs=yes
12131 # No shared lib support for Linux oldld, aout, or coff.
12132 linux*oldld* | linux*aout* | linux*coff*)
12136 # This must be glibc/ELF.
12137 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12138 version_type=linux # correct to gnu/linux during the next big refactor
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 soname_spec='${libname}${release}${shared_ext}$major'
12143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 shlibpath_overrides_runpath=no
12147 # Some binutils ld are patched to set DT_RUNPATH
12148 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12149 $as_echo_n "(cached) " >&6
12151 lt_cv_shlibpath_overrides_runpath=no
12152 save_LDFLAGS=$LDFLAGS
12153 save_libdir=$libdir
12154 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12155 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12167 if ac_fn_c_try_link "$LINENO"; then :
12168 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12169 lt_cv_shlibpath_overrides_runpath=yes
12172 rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LDFLAGS=$save_LDFLAGS
12175 libdir=$save_libdir
12179 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12181 # This implies no fast_install, which is unacceptable.
12182 # Some rework will be needed to allow for fast_install
12183 # before this can be enabled.
12184 hardcode_into_libs=yes
12186 # Append ld.so.conf contents to the search path
12187 if test -f /etc/ld.so.conf; then
12188 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' ' '`
12189 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12192 # We used to test for /lib/ld.so.1 and disable shared libraries on
12193 # powerpc, because MkLinux only supported shared libraries with the
12194 # GNU dynamic linker. Since this was broken with cross compilers,
12195 # most powerpc-linux boxes support dynamic linking these days and
12196 # people can always --disable-shared, the test was removed, and we
12197 # assume the GNU/Linux dynamic linker is in use.
12198 dynamic_linker='GNU/Linux ld.so'
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 shlibpath_overrides_runpath=no
12209 hardcode_into_libs=yes
12210 dynamic_linker='NetBSD ld.elf_so'
12217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12220 dynamic_linker='NetBSD (a.out) ld.so'
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12223 soname_spec='${libname}${release}${shared_ext}$major'
12224 dynamic_linker='NetBSD ld.elf_so'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=yes
12228 hardcode_into_libs=yes
12232 version_type=linux # correct to gnu/linux during the next big refactor
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12243 soname_spec='${libname}${release}${shared_ext}$major'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 shlibpath_overrides_runpath=no
12246 hardcode_into_libs=yes
12247 dynamic_linker='ldqnx.so'
12252 sys_lib_dlsearch_path_spec="/usr/lib"
12254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12257 *) need_version=no ;;
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12261 shlibpath_var=LD_LIBRARY_PATH
12262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12264 openbsd2.[89] | openbsd2.[89].*)
12265 shlibpath_overrides_runpath=no
12268 shlibpath_overrides_runpath=yes
12272 shlibpath_overrides_runpath=yes
12277 libname_spec='$name'
12280 library_names_spec='$libname${shared_ext} $libname.a'
12281 dynamic_linker='OS/2 ld.exe'
12282 shlibpath_var=LIBPATH
12285 osf3* | osf4* | osf5*)
12289 soname_spec='${libname}${release}${shared_ext}$major'
12290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12291 shlibpath_var=LD_LIBRARY_PATH
12292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12301 version_type=linux # correct to gnu/linux during the next big refactor
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305 soname_spec='${libname}${release}${shared_ext}$major'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 shlibpath_overrides_runpath=yes
12308 hardcode_into_libs=yes
12309 # ldd complains unless libraries are executable
12310 postinstall_cmds='chmod +x $lib'
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12319 if test "$with_gnu_ld" = yes; then
12326 version_type=linux # correct to gnu/linux during the next big refactor
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328 soname_spec='${libname}${release}${shared_ext}$major'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 case $host_vendor in
12332 shlibpath_overrides_runpath=no
12334 runpath_var=LD_RUN_PATH
12342 shlibpath_overrides_runpath=no
12343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12349 if test -d /usr/nec ;then
12350 version_type=linux # correct to gnu/linux during the next big refactor
12351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12352 soname_spec='$libname${shared_ext}.$major'
12353 shlibpath_var=LD_LIBRARY_PATH
12357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12358 version_type=freebsd-elf
12361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12362 soname_spec='${libname}${release}${shared_ext}$major'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=yes
12365 hardcode_into_libs=yes
12366 if test "$with_gnu_ld" = yes; then
12367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12376 sys_lib_dlsearch_path_spec='/usr/lib'
12380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12381 version_type=linux # correct to gnu/linux during the next big refactor
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath=no
12387 hardcode_into_libs=yes
12391 version_type=linux # correct to gnu/linux during the next big refactor
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 shlibpath_var=LD_LIBRARY_PATH
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12402 $as_echo "$dynamic_linker" >&6; }
12403 test "$dynamic_linker" = no && can_build_shared=no
12405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12406 if test "$GCC" = yes; then
12407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12509 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12511 if test -n "$hardcode_libdir_flag_spec" ||
12512 test -n "$runpath_var" ||
12513 test "X$hardcode_automatic" = "Xyes" ; then
12515 # We can hardcode non-existent directories.
12516 if test "$hardcode_direct" != no &&
12517 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12518 # have to relink, otherwise we might link with an installed library
12519 # when we should be linking with a yet-to-be-installed one
12520 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12521 test "$hardcode_minus_L" != no; then
12522 # Linking always hardcodes the temporary library directory.
12523 hardcode_action=relink
12525 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12526 hardcode_action=immediate
12529 # We cannot hardcode anything, or else we can only hardcode existing
12531 hardcode_action=unsupported
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12534 $as_echo "$hardcode_action" >&6; }
12536 if test "$hardcode_action" = relink ||
12537 test "$inherit_rpath" = yes; then
12538 # Fast installation is not supported
12539 enable_fast_install=no
12540 elif test "$shlibpath_overrides_runpath" = yes ||
12541 test "$enable_shared" = no; then
12542 # Fast installation is not necessary
12543 enable_fast_install=needless
12551 if test "x$enable_dlopen" != xyes; then
12552 enable_dlopen=unknown
12553 enable_dlopen_self=unknown
12554 enable_dlopen_self_static=unknown
12561 lt_cv_dlopen="load_add_on"
12563 lt_cv_dlopen_self=yes
12566 mingw* | pw32* | cegcc*)
12567 lt_cv_dlopen="LoadLibrary"
12572 lt_cv_dlopen="dlopen"
12577 # if libdl is installed we need to link against it
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12580 if ${ac_cv_lib_dl_dlopen+:} false; then :
12581 $as_echo_n "(cached) " >&6
12583 ac_check_lib_save_LIBS=$LIBS
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12603 if ac_fn_c_try_link "$LINENO"; then :
12604 ac_cv_lib_dl_dlopen=yes
12606 ac_cv_lib_dl_dlopen=no
12608 rm -f core conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12614 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12618 lt_cv_dlopen="dyld"
12620 lt_cv_dlopen_self=yes
12627 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12628 if test "x$ac_cv_func_shl_load" = xyes; then :
12629 lt_cv_dlopen="shl_load"
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12632 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12633 if ${ac_cv_lib_dld_shl_load+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 ac_check_lib_save_LIBS=$LIBS
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12641 /* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12651 return shl_load ();
12656 if ac_fn_c_try_link "$LINENO"; then :
12657 ac_cv_lib_dld_shl_load=yes
12659 ac_cv_lib_dld_shl_load=no
12661 rm -f core conftest.err conftest.$ac_objext \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12667 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12668 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12670 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12671 if test "x$ac_cv_func_dlopen" = xyes; then :
12672 lt_cv_dlopen="dlopen"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12676 if ${ac_cv_lib_dl_dlopen+:} false; then :
12677 $as_echo_n "(cached) " >&6
12679 ac_check_lib_save_LIBS=$LIBS
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12699 if ac_fn_c_try_link "$LINENO"; then :
12700 ac_cv_lib_dl_dlopen=yes
12702 ac_cv_lib_dl_dlopen=no
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12715 if ${ac_cv_lib_svld_dlopen+:} false; then :
12716 $as_echo_n "(cached) " >&6
12718 ac_check_lib_save_LIBS=$LIBS
12719 LIBS="-lsvld $LIBS"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12738 if ac_fn_c_try_link "$LINENO"; then :
12739 ac_cv_lib_svld_dlopen=yes
12741 ac_cv_lib_svld_dlopen=no
12743 rm -f core conftest.err conftest.$ac_objext \
12744 conftest$ac_exeext conftest.$ac_ext
12745 LIBS=$ac_check_lib_save_LIBS
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12748 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12749 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12753 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12754 if ${ac_cv_lib_dld_dld_link+:} false; then :
12755 $as_echo_n "(cached) " >&6
12757 ac_check_lib_save_LIBS=$LIBS
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12772 return dld_link ();
12777 if ac_fn_c_try_link "$LINENO"; then :
12778 ac_cv_lib_dld_dld_link=yes
12780 ac_cv_lib_dld_dld_link=no
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12788 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12810 if test "x$lt_cv_dlopen" != xno; then
12816 case $lt_cv_dlopen in
12818 save_CPPFLAGS="$CPPFLAGS"
12819 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12821 save_LDFLAGS="$LDFLAGS"
12822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12825 LIBS="$lt_cv_dlopen_libs $LIBS"
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12829 if ${lt_cv_dlopen_self+:} false; then :
12830 $as_echo_n "(cached) " >&6
12832 if test "$cross_compiling" = yes; then :
12833 lt_cv_dlopen_self=cross
12835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12836 lt_status=$lt_dlunknown
12837 cat > conftest.$ac_ext <<_LT_EOF
12838 #line $LINENO "configure"
12839 #include "confdefs.h"
12848 # define LT_DLGLOBAL RTLD_GLOBAL
12851 # define LT_DLGLOBAL DL_GLOBAL
12853 # define LT_DLGLOBAL 0
12857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12858 find out it does not work in some platform. */
12859 #ifndef LT_DLLAZY_OR_NOW
12861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12864 # define LT_DLLAZY_OR_NOW DL_LAZY
12867 # define LT_DLLAZY_OR_NOW RTLD_NOW
12870 # define LT_DLLAZY_OR_NOW DL_NOW
12872 # define LT_DLLAZY_OR_NOW 0
12879 /* When -fvisbility=hidden is used, assume the code has been annotated
12880 correspondingly for the symbols needed. */
12881 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12882 int fnord () __attribute__((visibility("default")));
12885 int fnord () { return 42; }
12888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12889 int status = $lt_dlunknown;
12893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12896 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12897 else puts (dlerror ());
12899 /* dlclose (self); */
12907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12908 (eval $ac_link) 2>&5
12910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12912 (./conftest; exit; ) >&5 2>/dev/null
12914 case x$lt_status in
12915 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12916 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12917 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12920 # compilation failed
12921 lt_cv_dlopen_self=no
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12929 $as_echo "$lt_cv_dlopen_self" >&6; }
12931 if test "x$lt_cv_dlopen_self" = xyes; then
12932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12934 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12935 if ${lt_cv_dlopen_self_static+:} false; then :
12936 $as_echo_n "(cached) " >&6
12938 if test "$cross_compiling" = yes; then :
12939 lt_cv_dlopen_self_static=cross
12941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12942 lt_status=$lt_dlunknown
12943 cat > conftest.$ac_ext <<_LT_EOF
12944 #line $LINENO "configure"
12945 #include "confdefs.h"
12954 # define LT_DLGLOBAL RTLD_GLOBAL
12957 # define LT_DLGLOBAL DL_GLOBAL
12959 # define LT_DLGLOBAL 0
12963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12964 find out it does not work in some platform. */
12965 #ifndef LT_DLLAZY_OR_NOW
12967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12970 # define LT_DLLAZY_OR_NOW DL_LAZY
12973 # define LT_DLLAZY_OR_NOW RTLD_NOW
12976 # define LT_DLLAZY_OR_NOW DL_NOW
12978 # define LT_DLLAZY_OR_NOW 0
12985 /* When -fvisbility=hidden is used, assume the code has been annotated
12986 correspondingly for the symbols needed. */
12987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12988 int fnord () __attribute__((visibility("default")));
12991 int fnord () { return 42; }
12994 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12995 int status = $lt_dlunknown;
12999 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13002 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13003 else puts (dlerror ());
13005 /* dlclose (self); */
13013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13014 (eval $ac_link) 2>&5
13016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13017 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13018 (./conftest; exit; ) >&5 2>/dev/null
13020 case x$lt_status in
13021 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13022 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13023 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13026 # compilation failed
13027 lt_cv_dlopen_self_static=no
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13035 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13038 CPPFLAGS="$save_CPPFLAGS"
13039 LDFLAGS="$save_LDFLAGS"
13044 case $lt_cv_dlopen_self in
13045 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13046 *) enable_dlopen_self=unknown ;;
13049 case $lt_cv_dlopen_self_static in
13050 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13051 *) enable_dlopen_self_static=unknown ;;
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13074 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13075 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13076 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13077 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079 $as_echo "yes" >&6; }
13081 # FIXME - insert some real tests, host_os isn't really good enough
13084 if test -n "$STRIP" ; then
13085 striplib="$STRIP -x"
13086 old_striplib="$STRIP -S"
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088 $as_echo "yes" >&6; }
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13112 # Report which library types will actually be built
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13116 $as_echo "$can_build_shared" >&6; }
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13119 $as_echo_n "checking whether to build shared libraries... " >&6; }
13120 test "$can_build_shared" = "no" && enable_shared=no
13122 # On AIX, shared libraries and static libraries use the same namespace, and
13123 # are all built from PIC.
13126 test "$enable_shared" = yes && enable_static=no
13127 if test -n "$RANLIB"; then
13128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13129 postinstall_cmds='$RANLIB $lib'
13134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13135 test "$enable_shared" = yes && enable_static=no
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13140 $as_echo "$enable_shared" >&6; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13143 $as_echo_n "checking whether to build static libraries... " >&6; }
13144 # Make sure either enable_shared or enable_static is yes.
13145 test "$enable_shared" = yes || enable_static=yes
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13147 $as_echo "$enable_static" >&6; }
13154 ac_cpp='$CPP $CPPFLAGS'
13155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13161 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13162 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13163 (test "X$CXX" != "Xg++"))) ; then
13165 ac_cpp='$CXXCPP $CPPFLAGS'
13166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13170 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13171 if test -z "$CXXCPP"; then
13172 if ${ac_cv_prog_CXXCPP+:} false; then :
13173 $as_echo_n "(cached) " >&6
13175 # Double quotes because CXXCPP needs to be expanded
13176 for CXXCPP in "$CXX -E" "/lib/cpp"
13178 ac_preproc_ok=false
13179 for ac_cxx_preproc_warn_flag in '' yes
13181 # Use a header file that comes with gcc, so configuring glibc
13182 # with a fresh cross-compiler works.
13183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13184 # <limits.h> exists even on freestanding compilers.
13185 # On the NeXT, cc -E runs the code through the compiler's parser,
13186 # not just through cpp. "Syntax error" is here to catch this case.
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 # include <limits.h>
13192 # include <assert.h>
13196 if ac_fn_cxx_try_cpp "$LINENO"; then :
13199 # Broken: fails on valid input.
13202 rm -f conftest.err conftest.i conftest.$ac_ext
13204 # OK, works on sane cases. Now check whether nonexistent headers
13205 # can be detected and how.
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13208 #include <ac_nonexistent.h>
13210 if ac_fn_cxx_try_cpp "$LINENO"; then :
13211 # Broken: success on invalid input.
13214 # Passes both tests.
13218 rm -f conftest.err conftest.i conftest.$ac_ext
13221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13222 rm -f conftest.i conftest.err conftest.$ac_ext
13223 if $ac_preproc_ok; then :
13228 ac_cv_prog_CXXCPP=$CXXCPP
13231 CXXCPP=$ac_cv_prog_CXXCPP
13233 ac_cv_prog_CXXCPP=$CXXCPP
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13236 $as_echo "$CXXCPP" >&6; }
13237 ac_preproc_ok=false
13238 for ac_cxx_preproc_warn_flag in '' yes
13240 # Use a header file that comes with gcc, so configuring glibc
13241 # with a fresh cross-compiler works.
13242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13243 # <limits.h> exists even on freestanding compilers.
13244 # On the NeXT, cc -E runs the code through the compiler's parser,
13245 # not just through cpp. "Syntax error" is here to catch this case.
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13249 # include <limits.h>
13251 # include <assert.h>
13255 if ac_fn_cxx_try_cpp "$LINENO"; then :
13258 # Broken: fails on valid input.
13261 rm -f conftest.err conftest.i conftest.$ac_ext
13263 # OK, works on sane cases. Now check whether nonexistent headers
13264 # can be detected and how.
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267 #include <ac_nonexistent.h>
13269 if ac_fn_cxx_try_cpp "$LINENO"; then :
13270 # Broken: success on invalid input.
13273 # Passes both tests.
13277 rm -f conftest.err conftest.i conftest.$ac_ext
13280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13281 rm -f conftest.i conftest.err conftest.$ac_ext
13282 if $ac_preproc_ok; then :
13285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13287 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13288 See \`config.log' for more details" "$LINENO" 5; }
13292 ac_cpp='$CPP $CPPFLAGS'
13293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13298 _lt_caught_CXX_error=yes
13302 ac_cpp='$CXXCPP $CPPFLAGS'
13303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13307 archive_cmds_need_lc_CXX=no
13308 allow_undefined_flag_CXX=
13309 always_export_symbols_CXX=no
13310 archive_expsym_cmds_CXX=
13311 compiler_needs_object_CXX=no
13312 export_dynamic_flag_spec_CXX=
13313 hardcode_direct_CXX=no
13314 hardcode_direct_absolute_CXX=no
13315 hardcode_libdir_flag_spec_CXX=
13316 hardcode_libdir_separator_CXX=
13317 hardcode_minus_L_CXX=no
13318 hardcode_shlibpath_var_CXX=unsupported
13319 hardcode_automatic_CXX=no
13320 inherit_rpath_CXX=no
13322 module_expsym_cmds_CXX=
13323 link_all_deplibs_CXX=unknown
13324 old_archive_cmds_CXX=$old_archive_cmds
13325 reload_flag_CXX=$reload_flag
13326 reload_cmds_CXX=$reload_cmds
13327 no_undefined_flag_CXX=
13328 whole_archive_flag_spec_CXX=
13329 enable_shared_with_static_runtimes_CXX=no
13331 # Source file extension for C++ test sources.
13334 # Object file extension for compiled C++ test sources.
13338 # No sense in running all these tests if we already determined that
13339 # the CXX compiler isn't working. Some variables (like enable_shared)
13340 # are currently assumed to apply to all compilers on this platform,
13341 # and will be corrupted by setting them based on a non-working compiler.
13342 if test "$_lt_caught_CXX_error" != yes; then
13343 # Code to be used in simple compile tests
13344 lt_simple_compile_test_code="int some_variable = 0;"
13346 # Code to be used in simple link tests
13347 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13349 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13356 # If no C compiler was specified, use CC.
13359 # If no C compiler flags were specified, use CFLAGS.
13360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13362 # Allow CC to be a program name with arguments.
13366 # save warnings/boilerplate of simple test code
13367 ac_outfile=conftest.$ac_objext
13368 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13370 _lt_compiler_boilerplate=`cat conftest.err`
13373 ac_outfile=conftest.$ac_objext
13374 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13376 _lt_linker_boilerplate=`cat conftest.err`
13380 # Allow CC to be a program name with arguments.
13382 lt_save_CFLAGS=$CFLAGS
13386 lt_save_with_gnu_ld=$with_gnu_ld
13387 lt_save_path_LD=$lt_cv_path_LD
13388 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13389 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13391 $as_unset lt_cv_prog_gnu_ld
13393 if test -n "${lt_cv_path_LDCXX+set}"; then
13394 lt_cv_path_LD=$lt_cv_path_LDCXX
13396 $as_unset lt_cv_path_LD
13398 test -z "${LDCXX+set}" || LD=$LDCXX
13403 for cc_temp in $compiler""; do
13405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13411 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13414 if test -n "$compiler"; then
13415 # We don't want -fno-exception when compiling C++ code, so set the
13416 # no_builtin_flag separately
13417 if test "$GXX" = yes; then
13418 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13420 lt_prog_compiler_no_builtin_flag_CXX=
13423 if test "$GXX" = yes; then
13424 # Set up default GNU C++ configuration
13428 # Check whether --with-gnu-ld was given.
13429 if test "${with_gnu_ld+set}" = set; then :
13430 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13436 if test "$GCC" = yes; then
13437 # Check if gcc -print-prog-name=ld gives a path.
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13439 $as_echo_n "checking for ld used by $CC... " >&6; }
13442 # gcc leaves a trailing carriage return which upsets mingw
13443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13445 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13448 # Accept absolute paths.
13450 re_direlt='/[^/][^/]*/\.\./'
13451 # Canonicalize the pathname of ld
13452 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13453 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13454 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13456 test -z "$LD" && LD="$ac_prog"
13459 # If it fails, then pretend we aren't using GCC.
13463 # If it is relative, then search for the first ld in PATH.
13464 with_gnu_ld=unknown
13467 elif test "$with_gnu_ld" = yes; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13469 $as_echo_n "checking for GNU ld... " >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13472 $as_echo_n "checking for non-GNU ld... " >&6; }
13474 if ${lt_cv_path_LD+:} false; then :
13475 $as_echo_n "(cached) " >&6
13477 if test -z "$LD"; then
13478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13479 for ac_dir in $PATH; do
13481 test -z "$ac_dir" && ac_dir=.
13482 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13483 lt_cv_path_LD="$ac_dir/$ac_prog"
13484 # Check to see if the program is GNU ld. I'd rather use --version,
13485 # but apparently some variants of GNU ld only accept -v.
13486 # Break only if it was the GNU/non-GNU ld that we prefer.
13487 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13488 *GNU* | *'with BFD'*)
13489 test "$with_gnu_ld" != no && break
13492 test "$with_gnu_ld" != yes && break
13499 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13503 LD="$lt_cv_path_LD"
13504 if test -n "$LD"; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13506 $as_echo "$LD" >&6; }
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13511 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13513 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13514 if ${lt_cv_prog_gnu_ld+:} false; then :
13515 $as_echo_n "(cached) " >&6
13517 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13518 case `$LD -v 2>&1 </dev/null` in
13519 *GNU* | *'with BFD'*)
13520 lt_cv_prog_gnu_ld=yes
13523 lt_cv_prog_gnu_ld=no
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13528 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13529 with_gnu_ld=$lt_cv_prog_gnu_ld
13537 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13538 # archiving commands below assume that GNU ld is being used.
13539 if test "$with_gnu_ld" = yes; then
13540 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13541 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'
13543 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13546 # If archive_cmds runs LD, not CC, wlarc should be empty
13547 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13548 # investigate it a little bit more. (MM)
13551 # ancient GNU ld didn't support --whole-archive et. al.
13552 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13553 $GREP 'no-whole-archive' > /dev/null; then
13554 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13556 whole_archive_flag_spec_CXX=
13562 # A generic and very simple default shared library creation
13563 # command for GNU C++ for the case where it uses the native
13564 # linker, instead of GNU ld. If possible, this setting should
13565 # overridden to take advantage of the native linker features on
13566 # the platform it is being used on.
13567 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13570 # Commands to make compiler produce verbose output that lists
13571 # what "hidden" libraries, object files and flags are used when
13572 # linking a shared library.
13573 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13581 # PORTME: fill in a description of your system's C++ link characteristics
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13583 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13587 # FIXME: insert proper C++ library support
13591 if test "$host_cpu" = ia64; then
13592 # On IA64, the linker does run time linking by default, so we don't
13593 # have to do anything special.
13594 aix_use_runtimelinking=no
13595 exp_sym_flag='-Bexport'
13598 aix_use_runtimelinking=no
13600 # Test if we are trying to use run time linking or normal
13601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13602 # need to do runtime linking.
13603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13604 for ld_flag in $LDFLAGS; do
13607 aix_use_runtimelinking=yes
13615 exp_sym_flag='-bexport'
13616 no_entry_flag='-bnoentry'
13619 # When large executables or shared objects are built, AIX ld can
13620 # have problems creating the table of contents. If linking a library
13621 # or program results in "error TOC overflow" add -mminimal-toc to
13622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13625 archive_cmds_CXX=''
13626 hardcode_direct_CXX=yes
13627 hardcode_direct_absolute_CXX=yes
13628 hardcode_libdir_separator_CXX=':'
13629 link_all_deplibs_CXX=yes
13630 file_list_spec_CXX='${wl}-f,'
13632 if test "$GXX" = yes; then
13633 case $host_os in aix4.[012]|aix4.[012].*)
13634 # We only want to do this on AIX 4.2 and lower, the check
13635 # below for broken collect2 doesn't work under 4.3+
13636 collect2name=`${CC} -print-prog-name=collect2`
13637 if test -f "$collect2name" &&
13638 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13640 # We have reworked collect2
13643 # We have old collect2
13644 hardcode_direct_CXX=unsupported
13645 # It fails to find uninstalled libraries when the uninstalled
13646 # path is not listed in the libpath. Setting hardcode_minus_L
13647 # to unsupported forces relinking
13648 hardcode_minus_L_CXX=yes
13649 hardcode_libdir_flag_spec_CXX='-L$libdir'
13650 hardcode_libdir_separator_CXX=
13653 shared_flag='-shared'
13654 if test "$aix_use_runtimelinking" = yes; then
13655 shared_flag="$shared_flag "'${wl}-G'
13659 if test "$host_cpu" = ia64; then
13660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13661 # chokes on -Wl,-G. The following line is correct:
13664 if test "$aix_use_runtimelinking" = yes; then
13665 shared_flag='${wl}-G'
13667 shared_flag='${wl}-bM:SRE'
13672 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13673 # It seems that -bexpall does not export symbols beginning with
13674 # underscore (_), so it is better to generate a list of symbols to
13676 always_export_symbols_CXX=yes
13677 if test "$aix_use_runtimelinking" = yes; then
13678 # Warning - without using the other runtime loading flags (-brtl),
13679 # -berok will link without error, but may produce a broken library.
13680 allow_undefined_flag_CXX='-berok'
13681 # Determine the default libpath from the value encoded in an empty
13683 if test "${lt_cv_aix_libpath+set}" = set; then
13684 aix_libpath=$lt_cv_aix_libpath
13686 if ${lt_cv_aix_libpath__CXX+:} false; then :
13687 $as_echo_n "(cached) " >&6
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13700 if ac_fn_cxx_try_link "$LINENO"; then :
13702 lt_aix_libpath_sed='
13703 /Import File Strings/,/^$/ {
13705 s/^0 *\([^ ]*\) *$/\1/
13709 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13710 # Check for a 64-bit object if we didn't find anything.
13711 if test -z "$lt_cv_aix_libpath__CXX"; then
13712 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 if test -z "$lt_cv_aix_libpath__CXX"; then
13718 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13723 aix_libpath=$lt_cv_aix_libpath__CXX
13726 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13728 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"
13730 if test "$host_cpu" = ia64; then
13731 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13732 allow_undefined_flag_CXX="-z nodefs"
13733 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"
13735 # Determine the default libpath from the value encoded in an
13736 # empty executable.
13737 if test "${lt_cv_aix_libpath+set}" = set; then
13738 aix_libpath=$lt_cv_aix_libpath
13740 if ${lt_cv_aix_libpath__CXX+:} false; then :
13741 $as_echo_n "(cached) " >&6
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13754 if ac_fn_cxx_try_link "$LINENO"; then :
13756 lt_aix_libpath_sed='
13757 /Import File Strings/,/^$/ {
13759 s/^0 *\([^ ]*\) *$/\1/
13763 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13764 # Check for a 64-bit object if we didn't find anything.
13765 if test -z "$lt_cv_aix_libpath__CXX"; then
13766 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13771 if test -z "$lt_cv_aix_libpath__CXX"; then
13772 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13777 aix_libpath=$lt_cv_aix_libpath__CXX
13780 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13781 # Warning - without using the other run time loading flags,
13782 # -berok will link without error, but may produce a broken library.
13783 no_undefined_flag_CXX=' ${wl}-bernotok'
13784 allow_undefined_flag_CXX=' ${wl}-berok'
13785 if test "$with_gnu_ld" = yes; then
13786 # We only use this code for GNU lds that support --whole-archive.
13787 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13789 # Exported symbols can be pulled into shared objects from archives
13790 whole_archive_flag_spec_CXX='$convenience'
13792 archive_cmds_need_lc_CXX=yes
13793 # This is similar to how AIX traditionally builds its shared
13795 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'
13801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13802 allow_undefined_flag_CXX=unsupported
13803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13804 # support --undefined. This deserves some investigation. FIXME
13805 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812 case $cc_basename in
13814 # FIXME: insert proper C++ library support
13820 cygwin* | mingw* | pw32* | cegcc*)
13821 case $GXX,$cc_basename in
13824 # hardcode_libdir_flag_spec is actually meaningless, as there is
13825 # no search path for DLLs.
13826 hardcode_libdir_flag_spec_CXX=' '
13827 allow_undefined_flag_CXX=unsupported
13828 always_export_symbols_CXX=yes
13829 file_list_spec_CXX='@'
13830 # Tell ltmain to make .lib files, not .a files.
13832 # Tell ltmain to make .dll files, not .so files.
13834 # FIXME: Setting linknames here is a bad hack.
13835 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13836 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13837 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13839 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13841 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13843 # The linker will not automatically build a static lib if we build a DLL.
13844 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13845 enable_shared_with_static_runtimes_CXX=yes
13847 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13848 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13849 lt_tool_outputfile="@TOOL_OUTPUT@"~
13850 case $lt_outputfile in
13853 lt_outputfile="$lt_outputfile.exe"
13854 lt_tool_outputfile="$lt_tool_outputfile.exe"
13857 func_to_tool_file "$lt_outputfile"~
13858 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13859 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13860 $RM "$lt_outputfile.manifest";
13865 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13866 # as there is no search path for DLLs.
13867 hardcode_libdir_flag_spec_CXX='-L$libdir'
13868 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13869 allow_undefined_flag_CXX=unsupported
13870 always_export_symbols_CXX=no
13871 enable_shared_with_static_runtimes_CXX=yes
13873 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13874 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'
13875 # If the export-symbols file already is a .def file (1st line
13876 # is EXPORTS), use it as is; otherwise, prepend...
13877 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13878 cp $export_symbols $output_objdir/$soname.def;
13880 echo EXPORTS > $output_objdir/$soname.def;
13881 cat $export_symbols >> $output_objdir/$soname.def;
13883 $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'
13890 darwin* | rhapsody*)
13893 archive_cmds_need_lc_CXX=no
13894 hardcode_direct_CXX=no
13895 hardcode_automatic_CXX=yes
13896 hardcode_shlibpath_var_CXX=unsupported
13897 if test "$lt_cv_ld_force_load" = "yes"; then
13898 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\"`'
13901 whole_archive_flag_spec_CXX=''
13903 link_all_deplibs_CXX=yes
13904 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13905 case $cc_basename in
13906 ifort*) _lt_dar_can_shared=yes ;;
13907 *) _lt_dar_can_shared=$GCC ;;
13909 if test "$_lt_dar_can_shared" = "yes"; then
13910 output_verbose_link_cmd=func_echo_all
13911 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}"
13912 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13913 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}"
13914 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}"
13915 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13916 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}"
13917 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}"
13927 case $cc_basename in
13929 # FIXME: insert proper C++ library support
13933 # Green Hills C++ Compiler
13934 # FIXME: insert proper C++ library support
13938 # FIXME: insert proper C++ library support
13945 # C++ shared libraries reported to be fairly broken before
13951 archive_cmds_need_lc_CXX=no
13954 freebsd* | dragonfly*)
13955 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13961 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13962 link_all_deplibs_CXX=yes
13966 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13967 hardcode_libdir_separator_CXX=:
13968 export_dynamic_flag_spec_CXX='${wl}-E'
13969 hardcode_direct_CXX=yes
13970 hardcode_minus_L_CXX=yes # Not in the search PATH,
13971 # but as the default
13972 # location of the library.
13974 case $cc_basename in
13976 # FIXME: insert proper C++ library support
13980 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'
13981 # Commands to make compiler produce verbose output that lists
13982 # what "hidden" libraries, object files and flags are used when
13983 # linking a shared library.
13985 # There doesn't appear to be a way to prevent this compiler from
13986 # explicitly linking system object files so we need to strip them
13987 # from the output so that they don't get included in the library
13989 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"'
13992 if test "$GXX" = yes; then
13993 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'
13995 # FIXME: insert proper C++ library support
14003 if test $with_gnu_ld = no; then
14004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14005 hardcode_libdir_separator_CXX=:
14011 export_dynamic_flag_spec_CXX='${wl}-E'
14017 hardcode_direct_CXX=no
14018 hardcode_shlibpath_var_CXX=no
14021 hardcode_direct_CXX=yes
14022 hardcode_direct_absolute_CXX=yes
14023 hardcode_minus_L_CXX=yes # Not in the search PATH,
14024 # but as the default
14025 # location of the library.
14029 case $cc_basename in
14031 # FIXME: insert proper C++ library support
14037 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14046 # Commands to make compiler produce verbose output that lists
14047 # what "hidden" libraries, object files and flags are used when
14048 # linking a shared library.
14050 # There doesn't appear to be a way to prevent this compiler from
14051 # explicitly linking system object files so we need to strip them
14052 # from the output so that they don't get included in the library
14054 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"'
14057 if test "$GXX" = yes; then
14058 if test $with_gnu_ld = no; then
14061 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14064 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14067 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'
14072 # FIXME: insert proper C++ library support
14080 hardcode_direct_CXX=no
14081 hardcode_shlibpath_var_CXX=no
14082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14083 export_dynamic_flag_spec_CXX='${wl}-E'
14084 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14085 # Instead, shared libraries are loaded at an image base (0x10000000 by
14086 # default) and relocated if they conflict, which is a slow very memory
14087 # consuming and fragmenting process. To avoid this, we pick a random,
14088 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14089 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14090 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'
14091 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'
14094 case $cc_basename in
14097 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'
14099 # Archives containing C++ object files must be created using
14100 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14101 # necessary to make sure instantiated templates are included
14103 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14106 if test "$GXX" = yes; then
14107 if test "$with_gnu_ld" = no; then
14108 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'
14110 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'
14113 link_all_deplibs_CXX=yes
14116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14117 hardcode_libdir_separator_CXX=:
14118 inherit_rpath_CXX=yes
14121 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14122 case $cc_basename in
14124 # Kuck and Associates, Inc. (KAI) C++ Compiler
14126 # KCC will only create a shared library if the output file
14127 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14128 # to its proper name (with version) after linking.
14129 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'
14130 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'
14131 # Commands to make compiler produce verbose output that lists
14132 # what "hidden" libraries, object files and flags are used when
14133 # linking a shared library.
14135 # There doesn't appear to be a way to prevent this compiler from
14136 # explicitly linking system object files so we need to strip them
14137 # from the output so that they don't get included in the library
14139 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"'
14141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14142 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14144 # Archives containing C++ object files must be created using
14145 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14146 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14151 # version 8.0 and above of icpc choke on multiply defined symbols
14152 # if we add $predep_objects and $postdep_objects, however 7.1 and
14153 # earlier do not add the objects themselves.
14154 case `$CC -V 2>&1` in
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 ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14159 *) # Version 8.0 or newer
14162 ia64*) tmp_idyn=' -i_dynamic';;
14164 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165 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'
14168 archive_cmds_need_lc_CXX=no
14169 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14170 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14171 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14174 # Portland Group C++ compiler
14176 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14177 prelink_cmds_CXX='tpldir=Template.dir~
14179 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14180 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14181 old_archive_cmds_CXX='tpldir=Template.dir~
14183 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14184 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14186 archive_cmds_CXX='tpldir=Template.dir~
14188 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14189 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14190 archive_expsym_cmds_CXX='tpldir=Template.dir~
14192 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14193 $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'
14195 *) # Version 6 and above use weak symbols
14196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14197 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'
14201 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14203 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'
14207 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14208 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'
14210 runpath_var=LD_RUN_PATH
14211 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14212 hardcode_libdir_separator_CXX=:
14214 # Commands to make compiler produce verbose output that lists
14215 # what "hidden" libraries, object files and flags are used when
14216 # linking a shared library.
14218 # There doesn't appear to be a way to prevent this compiler from
14219 # explicitly linking system object files so we need to strip them
14220 # from the output so that they don't get included in the library
14222 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'
14224 xl* | mpixl* | bgxl*)
14225 # IBM XL 8.0 on PPC, with GNU ld
14226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14229 if test "x$supports_anon_versioning" = xyes; then
14230 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14232 echo "local: *; };" >> $output_objdir/$libname.ver~
14233 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14237 case `$CC -V 2>&1 | sed 5q` in
14240 no_undefined_flag_CXX=' -zdefs'
14241 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14242 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'
14243 hardcode_libdir_flag_spec_CXX='-R$libdir'
14244 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'
14245 compiler_needs_object_CXX=yes
14247 # Not sure whether something based on
14248 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14250 output_verbose_link_cmd='func_echo_all'
14252 # Archives containing C++ object files must be created using
14253 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14254 # necessary to make sure instantiated templates are included
14256 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14264 # FIXME: insert proper C++ library support
14269 # FIXME: insert proper C++ library support
14274 case $cc_basename in
14276 # FIXME: insert proper C++ library support
14280 # FIXME: insert proper C++ library support
14287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14288 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14290 hardcode_libdir_flag_spec_CXX='-R$libdir'
14291 hardcode_direct_CXX=yes
14292 hardcode_shlibpath_var_CXX=no
14294 # Workaround some broken pre-1.5 toolchains
14295 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14303 # C++ shared libraries are fairly broken
14308 if test -f /usr/libexec/ld.so; then
14309 hardcode_direct_CXX=yes
14310 hardcode_shlibpath_var_CXX=no
14311 hardcode_direct_absolute_CXX=yes
14312 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14315 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14316 export_dynamic_flag_spec_CXX='${wl}-E'
14317 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14319 output_verbose_link_cmd=func_echo_all
14325 osf3* | osf4* | osf5*)
14326 case $cc_basename in
14328 # Kuck and Associates, Inc. (KAI) C++ Compiler
14330 # KCC will only create a shared library if the output file
14331 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14332 # to its proper name (with version) after linking.
14333 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'
14335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14336 hardcode_libdir_separator_CXX=:
14338 # Archives containing C++ object files must be created using
14339 # the KAI C++ compiler.
14341 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14342 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14346 # Rational C++ 2.4.1
14347 # FIXME: insert proper C++ library support
14353 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14354 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'
14355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14358 allow_undefined_flag_CXX=' -expect_unresolved \*'
14359 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'
14360 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14361 echo "-hidden">> $lib.exp~
14362 $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~
14364 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14368 hardcode_libdir_separator_CXX=:
14370 # Commands to make compiler produce verbose output that lists
14371 # what "hidden" libraries, object files and flags are used when
14372 # linking a shared library.
14374 # There doesn't appear to be a way to prevent this compiler from
14375 # explicitly linking system object files so we need to strip them
14376 # from the output so that they don't get included in the library
14378 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"'
14381 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14382 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14385 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'
14388 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'
14392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14393 hardcode_libdir_separator_CXX=:
14395 # Commands to make compiler produce verbose output that lists
14396 # what "hidden" libraries, object files and flags are used when
14397 # linking a shared library.
14398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14401 # FIXME: insert proper C++ library support
14409 # FIXME: insert proper C++ library support
14414 case $cc_basename in
14417 # FIXME: insert proper C++ library support
14422 # FIXME: insert proper C++ library support
14426 # FIXME: insert proper C++ library support
14433 case $cc_basename in
14435 # Sun C++ 4.2, 5.x and Centerline C++
14436 archive_cmds_need_lc_CXX=yes
14437 no_undefined_flag_CXX=' -zdefs'
14438 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14439 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14440 $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'
14442 hardcode_libdir_flag_spec_CXX='-R$libdir'
14443 hardcode_shlibpath_var_CXX=no
14445 solaris2.[0-5] | solaris2.[0-5].*) ;;
14447 # The compiler driver will combine and reorder linker options,
14448 # but understands `-z linker_flag'.
14449 # Supported since Solaris 2.6 (maybe 2.5.1?)
14450 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14453 link_all_deplibs_CXX=yes
14455 output_verbose_link_cmd='func_echo_all'
14457 # Archives containing C++ object files must be created using
14458 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14459 # necessary to make sure instantiated templates are included
14461 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14464 # Green Hills C++ Compiler
14465 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14467 # The C++ compiler must be used to create the archive.
14468 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14471 # GNU C++ compiler with Solaris linker
14472 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14473 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14474 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14475 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14476 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14477 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14479 # Commands to make compiler produce verbose output that lists
14480 # what "hidden" libraries, object files and flags are used when
14481 # linking a shared library.
14482 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14484 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14486 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14487 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14488 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14490 # Commands to make compiler produce verbose output that lists
14491 # what "hidden" libraries, object files and flags are used when
14492 # linking a shared library.
14493 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14496 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14498 solaris2.[0-5] | solaris2.[0-5].*) ;;
14500 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14508 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14509 no_undefined_flag_CXX='${wl}-z,text'
14510 archive_cmds_need_lc_CXX=no
14511 hardcode_shlibpath_var_CXX=no
14512 runpath_var='LD_RUN_PATH'
14514 case $cc_basename in
14516 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14520 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526 sysv5* | sco3.2v5* | sco5v6*)
14527 # Note: We can NOT use -z defs as we might desire, because we do not
14528 # link with -lc, and that would cause any symbols used from libc to
14529 # always be unresolved, which means just about no library would
14530 # ever link correctly. If we're not using GNU ld we use -z text
14531 # though, which does catch some bad symbols but isn't as heavy-handed
14533 no_undefined_flag_CXX='${wl}-z,text'
14534 allow_undefined_flag_CXX='${wl}-z,nodefs'
14535 archive_cmds_need_lc_CXX=no
14536 hardcode_shlibpath_var_CXX=no
14537 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14538 hardcode_libdir_separator_CXX=':'
14539 link_all_deplibs_CXX=yes
14540 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14541 runpath_var='LD_RUN_PATH'
14543 case $cc_basename in
14545 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14548 '"$old_archive_cmds_CXX"
14549 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14550 '"$reload_cmds_CXX"
14553 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14560 case $cc_basename in
14562 # NonStop-UX NCC 3.20
14563 # FIXME: insert proper C++ library support
14567 # FIXME: insert proper C++ library support
14574 # FIXME: insert proper C++ library support
14579 # FIXME: insert proper C++ library support
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14585 $as_echo "$ld_shlibs_CXX" >&6; }
14586 test "$ld_shlibs_CXX" = no && can_build_shared=no
14592 ## There is no encapsulation within the following macros, do not change
14593 ## the running order or otherwise move them around unless you know exactly
14594 ## what you are doing...
14595 # Dependencies to place before and after the object being linked:
14596 predep_objects_CXX=
14597 postdep_objects_CXX=
14600 compiler_lib_search_path_CXX=
14602 cat > conftest.$ac_ext <<_LT_EOF
14606 Foo (void) { a = 0; }
14613 _lt_libdeps_save_CFLAGS=$CFLAGS
14614 case "$CC $CFLAGS " in #(
14615 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14616 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14617 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14621 (eval $ac_compile) 2>&5
14623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }; then
14625 # Parse the compiler output and extract the necessary
14626 # objects, libraries and library flags.
14628 # Sentinel used to keep track of whether or not we are before
14629 # the conftest object file.
14630 pre_test_object_deps_done=no
14632 for p in `eval "$output_verbose_link_cmd"`; do
14633 case ${prev}${p} in
14636 # Some compilers place space between "-{L,R}" and the path.
14637 # Remove the space.
14638 if test $p = "-L" ||
14639 test $p = "-R"; then
14644 # Expand the sysroot to ease extracting the directories later.
14645 if test -z "$prev"; then
14647 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14648 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14649 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14653 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14655 if test "$pre_test_object_deps_done" = no; then
14658 # Internal compiler library paths should come after those
14659 # provided the user. The postdeps already come after the
14660 # user supplied libs so there is no need to process them.
14661 if test -z "$compiler_lib_search_path_CXX"; then
14662 compiler_lib_search_path_CXX="${prev}${p}"
14664 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14667 # The "-l" case would never come before the object being
14668 # linked, so don't bother handling this case.
14671 if test -z "$postdeps_CXX"; then
14672 postdeps_CXX="${prev}${p}"
14674 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14680 *.lto.$objext) ;; # Ignore GCC LTO objects
14682 # This assumes that the test object file only shows up
14683 # once in the compiler output.
14684 if test "$p" = "conftest.$objext"; then
14685 pre_test_object_deps_done=yes
14689 if test "$pre_test_object_deps_done" = no; then
14690 if test -z "$predep_objects_CXX"; then
14691 predep_objects_CXX="$p"
14693 predep_objects_CXX="$predep_objects_CXX $p"
14696 if test -z "$postdep_objects_CXX"; then
14697 postdep_objects_CXX="$p"
14699 postdep_objects_CXX="$postdep_objects_CXX $p"
14704 *) ;; # Ignore the rest.
14712 echo "libtool.m4: error: problem compiling CXX test program"
14715 $RM -f confest.$objext
14716 CFLAGS=$_lt_libdeps_save_CFLAGS
14718 # PORTME: override above test on systems where it is broken
14721 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14722 # hack all around it, let's just trust "g++" to DTRT.
14723 predep_objects_CXX=
14724 postdep_objects_CXX=
14729 case `$CC -V 2>&1 | sed 5q` in
14733 # The more standards-conforming stlport4 library is
14734 # incompatible with the Cstd library. Avoid specifying
14735 # it if it's in CXXFLAGS. Ignore libCrun as
14736 # -library=stlport4 depends on it.
14737 case " $CXX $CXXFLAGS " in
14738 *" -library=stlport4 "*)
14739 solaris_use_stlport4=yes
14743 if test "$solaris_use_stlport4" != yes; then
14744 postdeps_CXX='-library=Cstd -library=Crun'
14751 case $cc_basename in
14753 # The more standards-conforming stlport4 library is
14754 # incompatible with the Cstd library. Avoid specifying
14755 # it if it's in CXXFLAGS. Ignore libCrun as
14756 # -library=stlport4 depends on it.
14757 case " $CXX $CXXFLAGS " in
14758 *" -library=stlport4 "*)
14759 solaris_use_stlport4=yes
14763 # Adding this requires a known-good setup of shared libraries for
14764 # Sun compiler versions before 5.6, else PIC objects from an old
14765 # archive will be linked into the output, leading to subtle bugs.
14766 if test "$solaris_use_stlport4" != yes; then
14767 postdeps_CXX='-library=Cstd -library=Crun'
14775 case " $postdeps_CXX " in
14776 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14778 compiler_lib_search_dirs_CXX=
14779 if test -n "${compiler_lib_search_path_CXX}"; then
14780 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14813 lt_prog_compiler_wl_CXX=
14814 lt_prog_compiler_pic_CXX=
14815 lt_prog_compiler_static_CXX=
14818 # C++ specific cases for pic, static, wl, etc.
14819 if test "$GXX" = yes; then
14820 lt_prog_compiler_wl_CXX='-Wl,'
14821 lt_prog_compiler_static_CXX='-static'
14825 # All AIX code is PIC.
14826 if test "$host_cpu" = ia64; then
14827 # AIX 5 now supports IA64 processor
14828 lt_prog_compiler_static_CXX='-Bstatic'
14835 # see comment about AmigaOS4 .so support
14836 lt_prog_compiler_pic_CXX='-fPIC'
14839 # FIXME: we need at least 68020 code to build shared libraries, but
14840 # adding the `-m68020' flag to GCC prevents building anything better,
14842 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14848 # PIC is the default for these OSes.
14850 mingw* | cygwin* | os2* | pw32* | cegcc*)
14851 # This hack is so that the source file can tell whether it is being
14852 # built for inclusion in a dll (and should export symbols for example).
14853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14854 # (--disable-auto-import) libraries
14855 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14857 darwin* | rhapsody*)
14858 # PIC is the default on this platform
14859 # Common symbols not allowed in MH_DYLIB files
14860 lt_prog_compiler_pic_CXX='-fno-common'
14863 # DJGPP does not support shared libraries at all
14864 lt_prog_compiler_pic_CXX=
14867 # PIC is the default for Haiku.
14868 # The "-static" flag exists, but is broken.
14869 lt_prog_compiler_static_CXX=
14872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14873 # Instead, we relocate shared libraries at runtime.
14876 if test -d /usr/nec; then
14877 lt_prog_compiler_pic_CXX=-Kconform_pic
14881 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14882 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14883 # sets the default TLS model and affects inlining.
14888 lt_prog_compiler_pic_CXX='-fPIC'
14893 # QNX uses GNU C++, but need to define -shared option too, otherwise
14894 # it will coredump.
14895 lt_prog_compiler_pic_CXX='-fPIC -shared'
14898 lt_prog_compiler_pic_CXX='-fPIC'
14904 # All AIX code is PIC.
14905 if test "$host_cpu" = ia64; then
14906 # AIX 5 now supports IA64 processor
14907 lt_prog_compiler_static_CXX='-Bstatic'
14909 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14913 case $cc_basename in
14915 # Green Hills C++ Compiler
14916 # _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"
14920 mingw* | cygwin* | os2* | pw32* | cegcc*)
14921 # This hack is so that the source file can tell whether it is being
14922 # built for inclusion in a dll (and should export symbols for example).
14923 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14926 case $cc_basename in
14928 lt_prog_compiler_pic_CXX='-KPIC'
14931 # Green Hills C++ Compiler
14932 lt_prog_compiler_pic_CXX='-pic'
14938 freebsd* | dragonfly*)
14939 # FreeBSD uses GNU C++
14941 hpux9* | hpux10* | hpux11*)
14942 case $cc_basename in
14944 lt_prog_compiler_wl_CXX='-Wl,'
14945 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14946 if test "$host_cpu" != ia64; then
14947 lt_prog_compiler_pic_CXX='+Z'
14951 lt_prog_compiler_wl_CXX='-Wl,'
14952 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14958 lt_prog_compiler_pic_CXX='+Z'
14967 # This is c89, which is MS Visual C++ (no shared libs)
14968 # Anyone wants to do a port?
14970 irix5* | irix6* | nonstopux*)
14971 case $cc_basename in
14973 lt_prog_compiler_wl_CXX='-Wl,'
14974 lt_prog_compiler_static_CXX='-non_shared'
14975 # CC pic flag -KPIC is the default.
14981 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14982 case $cc_basename in
14985 lt_prog_compiler_wl_CXX='--backend -Wl,'
14986 lt_prog_compiler_pic_CXX='-fPIC'
14989 # old Intel C++ for x86_64 which still supported -KPIC.
14990 lt_prog_compiler_wl_CXX='-Wl,'
14991 lt_prog_compiler_pic_CXX='-KPIC'
14992 lt_prog_compiler_static_CXX='-static'
14995 # Intel C++, used to be incompatible with GCC.
14996 # ICC 10 doesn't accept -KPIC any more.
14997 lt_prog_compiler_wl_CXX='-Wl,'
14998 lt_prog_compiler_pic_CXX='-fPIC'
14999 lt_prog_compiler_static_CXX='-static'
15002 # Portland Group C++ compiler
15003 lt_prog_compiler_wl_CXX='-Wl,'
15004 lt_prog_compiler_pic_CXX='-fpic'
15005 lt_prog_compiler_static_CXX='-Bstatic'
15009 # Make sure the PIC flag is empty. It appears that all Alpha
15010 # Linux and Compaq Tru64 Unix objects are PIC.
15011 lt_prog_compiler_pic_CXX=
15012 lt_prog_compiler_static_CXX='-non_shared'
15014 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15015 # IBM XL 8.0, 9.0 on PPC and BlueGene
15016 lt_prog_compiler_wl_CXX='-Wl,'
15017 lt_prog_compiler_pic_CXX='-qpic'
15018 lt_prog_compiler_static_CXX='-qstaticlink'
15021 case `$CC -V 2>&1 | sed 5q` in
15024 lt_prog_compiler_pic_CXX='-KPIC'
15025 lt_prog_compiler_static_CXX='-Bstatic'
15026 lt_prog_compiler_wl_CXX='-Qoption ld '
15037 case $cc_basename in
15039 lt_prog_compiler_pic_CXX='-W c,exportall'
15045 netbsd* | netbsdelf*-gnu)
15048 # QNX uses GNU C++, but need to define -shared option too, otherwise
15049 # it will coredump.
15050 lt_prog_compiler_pic_CXX='-fPIC -shared'
15052 osf3* | osf4* | osf5*)
15053 case $cc_basename in
15055 lt_prog_compiler_wl_CXX='--backend -Wl,'
15058 # Rational C++ 2.4.1
15059 lt_prog_compiler_pic_CXX='-pic'
15062 # Digital/Compaq C++
15063 lt_prog_compiler_wl_CXX='-Wl,'
15064 # Make sure the PIC flag is empty. It appears that all Alpha
15065 # Linux and Compaq Tru64 Unix objects are PIC.
15066 lt_prog_compiler_pic_CXX=
15067 lt_prog_compiler_static_CXX='-non_shared'
15076 case $cc_basename in
15078 # Sun C++ 4.2, 5.x and Centerline C++
15079 lt_prog_compiler_pic_CXX='-KPIC'
15080 lt_prog_compiler_static_CXX='-Bstatic'
15081 lt_prog_compiler_wl_CXX='-Qoption ld '
15084 # Green Hills C++ Compiler
15085 lt_prog_compiler_pic_CXX='-PIC'
15092 case $cc_basename in
15095 lt_prog_compiler_pic_CXX='-pic'
15096 lt_prog_compiler_static_CXX='-Bstatic'
15100 lt_prog_compiler_pic_CXX='-pic'
15106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15107 case $cc_basename in
15109 lt_prog_compiler_wl_CXX='-Wl,'
15110 lt_prog_compiler_pic_CXX='-KPIC'
15111 lt_prog_compiler_static_CXX='-Bstatic'
15116 case $cc_basename in
15118 # NonStop-UX NCC 3.20
15119 lt_prog_compiler_pic_CXX='-KPIC'
15128 lt_prog_compiler_can_build_shared_CXX=no
15134 # For platforms which do not support PIC, -DPIC is meaningless:
15136 lt_prog_compiler_pic_CXX=
15139 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15145 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15146 $as_echo_n "(cached) " >&6
15148 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15151 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15152 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15155 # Check to make sure the PIC flag actually works.
15157 if test -n "$lt_prog_compiler_pic_CXX"; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15159 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15160 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15161 $as_echo_n "(cached) " >&6
15163 lt_cv_prog_compiler_pic_works_CXX=no
15164 ac_outfile=conftest.$ac_objext
15165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15166 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15167 # Insert the option either (1) after the last *FLAGS variable, or
15168 # (2) before a word containing "conftest.", or (3) at the end.
15169 # Note that $ac_compile itself does not contain backslashes and begins
15170 # with a dollar sign (not a hyphen), so the echo should work correctly.
15171 # The option is referenced via a variable to avoid confusing sed.
15172 lt_compile=`echo "$ac_compile" | $SED \
15173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15175 -e 's:$: $lt_compiler_flag:'`
15176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15177 (eval "$lt_compile" 2>conftest.err)
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 if (exit $ac_status) && test -s "$ac_outfile"; then
15182 # The compiler can only warn and ignore the option if not recognized
15183 # So say no if there are warnings other than the usual output.
15184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15187 lt_cv_prog_compiler_pic_works_CXX=yes
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15194 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15196 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15197 case $lt_prog_compiler_pic_CXX in
15199 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15202 lt_prog_compiler_pic_CXX=
15203 lt_prog_compiler_can_build_shared_CXX=no
15213 # Check to make sure the static flag actually works.
15215 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15217 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15218 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15219 $as_echo_n "(cached) " >&6
15221 lt_cv_prog_compiler_static_works_CXX=no
15222 save_LDFLAGS="$LDFLAGS"
15223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15226 # The linker can only warn and ignore the option if not recognized
15227 # So say no if there are warnings
15228 if test -s conftest.err; then
15229 # Append any errors to the config.log.
15230 cat conftest.err 1>&5
15231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15233 if diff conftest.exp conftest.er2 >/dev/null; then
15234 lt_cv_prog_compiler_static_works_CXX=yes
15237 lt_cv_prog_compiler_static_works_CXX=yes
15241 LDFLAGS="$save_LDFLAGS"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15245 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15247 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15250 lt_prog_compiler_static_CXX=
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; }
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15310 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15311 $as_echo_n "(cached) " >&6
15313 lt_cv_prog_compiler_c_o_CXX=no
15314 $RM -r conftest 2>/dev/null
15318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15320 lt_compiler_flag="-o out/conftest2.$ac_objext"
15321 # Insert the option either (1) after the last *FLAGS variable, or
15322 # (2) before a word containing "conftest.", or (3) at the end.
15323 # Note that $ac_compile itself does not contain backslashes and begins
15324 # with a dollar sign (not a hyphen), so the echo should work correctly.
15325 lt_compile=`echo "$ac_compile" | $SED \
15326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328 -e 's:$: $lt_compiler_flag:'`
15329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15330 (eval "$lt_compile" 2>out/conftest.err)
15332 cat out/conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15336 # The compiler can only warn and ignore the option if not recognized
15337 # So say no if there are warnings
15338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15341 lt_cv_prog_compiler_c_o_CXX=yes
15346 # SGI C++ compiler will create directory out/ii_files/ for
15347 # template instantiation
15348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15349 $RM out/* && rmdir out
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15361 hard_links="nottested"
15362 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15363 # do not overwrite the value of need_locks provided by the user
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15365 $as_echo_n "checking if we can lock with hard links... " >&6; }
15368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370 ln conftest.a conftest.b 2>&5 || hard_links=no
15371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15373 $as_echo "$hard_links" >&6; }
15374 if test "$hard_links" = no; then
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15388 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15389 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15392 # If we're using GNU nm, then we don't want the "-C" option.
15393 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15394 # Also, AIX nm treats weak defined symbols like other global defined
15395 # symbols, whereas GNU nm marks them as "W".
15396 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15397 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'
15399 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'
15403 export_symbols_cmds_CXX="$ltdll_cmds"
15405 cygwin* | mingw* | cegcc*)
15406 case $cc_basename in
15408 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15411 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'
15412 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15416 linux* | k*bsd*-gnu | gnu*)
15417 link_all_deplibs_CXX=no
15420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15425 $as_echo "$ld_shlibs_CXX" >&6; }
15426 test "$ld_shlibs_CXX" = no && can_build_shared=no
15428 with_gnu_ld_CXX=$with_gnu_ld
15436 # Do we need to explicitly link libc?
15438 case "x$archive_cmds_need_lc_CXX" in
15440 # Assume -lc should be added
15441 archive_cmds_need_lc_CXX=yes
15443 if test "$enable_shared" = yes && test "$GCC" = yes; then
15444 case $archive_cmds_CXX in
15446 # FIXME: we may have to deal with multi-command sequences.
15449 # Test whether the compiler implicitly links with -lc since on some
15450 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15451 # to ld, don't add -lc before -lgcc.
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15453 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15454 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15455 $as_echo_n "(cached) " >&6
15458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15461 (eval $ac_compile) 2>&5
15463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464 test $ac_status = 0; } 2>conftest.err; then
15467 libobjs=conftest.$ac_objext
15469 wl=$lt_prog_compiler_wl_CXX
15470 pic_flag=$lt_prog_compiler_pic_CXX
15476 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15477 allow_undefined_flag_CXX=
15478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15479 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482 test $ac_status = 0; }
15484 lt_cv_archive_cmds_need_lc_CXX=no
15486 lt_cv_archive_cmds_need_lc_CXX=yes
15488 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15490 cat conftest.err 1>&5
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15496 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15497 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15566 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15568 library_names_spec=
15569 libname_spec='lib$name'
15573 postuninstall_cmds=
15577 shlibpath_overrides_runpath=unknown
15579 dynamic_linker="$host_os ld.so"
15580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15581 need_lib_prefix=unknown
15582 hardcode_into_libs=no
15584 # when you set need_version to no, make sure it does not cause -set_version
15585 # flags to be left without arguments
15586 need_version=unknown
15590 version_type=linux # correct to gnu/linux during the next big refactor
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15592 shlibpath_var=LIBPATH
15594 # AIX 3 has no versioning support, so we append a major version to the name.
15595 soname_spec='${libname}${release}${shared_ext}$major'
15599 version_type=linux # correct to gnu/linux during the next big refactor
15602 hardcode_into_libs=yes
15603 if test "$host_cpu" = ia64; then
15604 # AIX 5 supports IA64
15605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15606 shlibpath_var=LD_LIBRARY_PATH
15608 # With GCC up to 2.95.x, collect2 would create an import file
15609 # for dependence libraries. The import file would start with
15610 # the line `#! .'. This would cause the generated library to
15611 # depend on `.', always an invalid library. This was fixed in
15612 # development snapshots of GCC prior to 3.0.
15614 aix4 | aix4.[01] | aix4.[01].*)
15615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15617 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15620 can_build_shared=no
15624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15625 # soname into executable. Probably we can add versioning support to
15626 # collect2, so additional links can be useful in future.
15627 if test "$aix_use_runtimelinking" = yes; then
15628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15629 # instead of lib<name>.a to let people know that these are not
15630 # typical AIX shared libraries.
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 # We preserve .a as extension for shared libraries through AIX4.2
15634 # and later when we are not doing run time linking.
15635 library_names_spec='${libname}${release}.a $libname.a'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15638 shlibpath_var=LIBPATH
15645 # Since July 2007 AmigaOS4 officially supports .so libraries.
15646 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 library_names_spec='$libname.ixlibrary $libname.a'
15651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15652 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'
15658 library_names_spec='${libname}${shared_ext}'
15659 dynamic_linker="$host_os ld.so"
15660 shlibpath_var=LIBRARY_PATH
15664 version_type=linux # correct to gnu/linux during the next big refactor
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15672 # the default ld.so.conf also contains /usr/contrib/lib and
15673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15674 # libtool to hard-code these into programs
15677 cygwin* | mingw* | pw32* | cegcc*)
15678 version_type=windows
15683 case $GCC,$cc_basename in
15686 library_names_spec='$libname.dll.a'
15687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15688 postinstall_cmds='base_file=`basename \${file}`~
15689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15690 dldir=$destdir/`dirname \$dlpath`~
15691 test -d \$dldir || mkdir -p \$dldir~
15692 $install_prog $dir/$dlname \$dldir/$dlname~
15693 chmod a+x \$dldir/$dlname~
15694 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15695 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15698 dlpath=$dir/\$dldll~
15700 shlibpath_overrides_runpath=yes
15704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15705 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15709 # MinGW DLLs use traditional 'lib' prefix
15710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15713 # pw32 DLLs use 'pw' prefix rather than 'lib'
15714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15717 dynamic_linker='Win32 ld.exe'
15722 libname_spec='$name'
15723 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15724 library_names_spec='${libname}.dll.lib'
15728 sys_lib_search_path_spec=
15731 for lt_path in $LIB
15734 # Let DOS variable expansion print the short 8.3 style file name.
15735 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15736 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15739 # Convert to MSYS style.
15740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15743 # Convert to unix form, then to dos form, then back to unix form
15744 # but this time dos style (no spaces!) so that the unix form looks
15745 # like /cygdrive/c/PROGRA~1:/cygdr...
15746 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15747 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15748 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15751 sys_lib_search_path_spec="$LIB"
15752 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15753 # It is most probably a Windows format PATH.
15754 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15756 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15758 # FIXME: find the short name or the path components, as spaces are
15759 # common. (e.g. "Program Files" -> "PROGRA~1")
15763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15764 postinstall_cmds='base_file=`basename \${file}`~
15765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15766 dldir=$destdir/`dirname \$dlpath`~
15767 test -d \$dldir || mkdir -p \$dldir~
15768 $install_prog $dir/$dlname \$dldir/$dlname'
15769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15770 dlpath=$dir/\$dldll~
15772 shlibpath_overrides_runpath=yes
15773 dynamic_linker='Win32 link.exe'
15777 # Assume MSVC wrapper
15778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15779 dynamic_linker='Win32 ld.exe'
15782 # FIXME: first we should search . and the directory the executable is in
15786 darwin* | rhapsody*)
15787 dynamic_linker="$host_os dyld"
15788 version_type=darwin
15791 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15792 soname_spec='${libname}${release}${major}$shared_ext'
15793 shlibpath_overrides_runpath=yes
15794 shlibpath_var=DYLD_LIBRARY_PATH
15795 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15797 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15801 version_type=linux # correct to gnu/linux during the next big refactor
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15806 shlibpath_var=LD_LIBRARY_PATH
15809 freebsd* | dragonfly*)
15810 # DragonFly does not have aout. When/if they implement a new
15811 # versioning mechanism, adjust this.
15812 if test -x /usr/bin/objformat; then
15813 objformat=`/usr/bin/objformat`
15816 freebsd[23].*) objformat=aout ;;
15817 *) objformat=elf ;;
15820 version_type=freebsd-$objformat
15821 case $version_type in
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15832 shlibpath_var=LD_LIBRARY_PATH
15835 shlibpath_overrides_runpath=yes
15837 freebsd3.[01]* | freebsdelf3.[01]*)
15838 shlibpath_overrides_runpath=yes
15839 hardcode_into_libs=yes
15841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15843 shlibpath_overrides_runpath=no
15844 hardcode_into_libs=yes
15846 *) # from 4.6 on, and DragonFly
15847 shlibpath_overrides_runpath=yes
15848 hardcode_into_libs=yes
15854 version_type=linux # correct to gnu/linux during the next big refactor
15857 dynamic_linker="$host_os runtime_loader"
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15859 soname_spec='${libname}${release}${shared_ext}$major'
15860 shlibpath_var=LIBRARY_PATH
15861 shlibpath_overrides_runpath=yes
15862 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15863 hardcode_into_libs=yes
15866 hpux9* | hpux10* | hpux11*)
15867 # Give a soname corresponding to the major version so that dld.sl refuses to
15868 # link against other versions.
15875 hardcode_into_libs=yes
15876 dynamic_linker="$host_os dld.so"
15877 shlibpath_var=LD_LIBRARY_PATH
15878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 if test "X$HPUX_IA64_MODE" = X32; then
15882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15890 hardcode_into_libs=yes
15891 dynamic_linker="$host_os dld.sl"
15892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895 soname_spec='${libname}${release}${shared_ext}$major'
15896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15901 dynamic_linker="$host_os dld.sl"
15902 shlibpath_var=SHLIB_PATH
15903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15909 postinstall_cmds='chmod 555 $lib'
15910 # or fails outright, so override atomically:
15911 install_override_mode=555
15915 version_type=linux # correct to gnu/linux during the next big refactor
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15919 soname_spec='${libname}${release}${shared_ext}$major'
15920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15926 irix5* | irix6* | nonstopux*)
15928 nonstopux*) version_type=nonstopux ;;
15930 if test "$lt_cv_prog_gnu_ld" = yes; then
15931 version_type=linux # correct to gnu/linux during the next big refactor
15938 soname_spec='${libname}${release}${shared_ext}$major'
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15941 irix5* | nonstopux*)
15942 libsuff= shlibsuff=
15945 case $LD in # libtool.m4 will add one of these switches to LD
15946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15947 libsuff= shlibsuff= libmagic=32-bit;;
15948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15949 libsuff=32 shlibsuff=N32 libmagic=N32;;
15950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15952 *) libsuff= shlibsuff= libmagic=never-match;;
15956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15957 shlibpath_overrides_runpath=no
15958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15960 hardcode_into_libs=yes
15963 # No shared lib support for Linux oldld, aout, or coff.
15964 linux*oldld* | linux*aout* | linux*coff*)
15968 # This must be glibc/ELF.
15969 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15970 version_type=linux # correct to gnu/linux during the next big refactor
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=no
15979 # Some binutils ld are patched to set DT_RUNPATH
15980 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15981 $as_echo_n "(cached) " >&6
15983 lt_cv_shlibpath_overrides_runpath=no
15984 save_LDFLAGS=$LDFLAGS
15985 save_libdir=$libdir
15986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15999 if ac_fn_cxx_try_link "$LINENO"; then :
16000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16001 lt_cv_shlibpath_overrides_runpath=yes
16004 rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16006 LDFLAGS=$save_LDFLAGS
16007 libdir=$save_libdir
16011 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16013 # This implies no fast_install, which is unacceptable.
16014 # Some rework will be needed to allow for fast_install
16015 # before this can be enabled.
16016 hardcode_into_libs=yes
16018 # Append ld.so.conf contents to the search path
16019 if test -f /etc/ld.so.conf; then
16020 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' ' '`
16021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16024 # We used to test for /lib/ld.so.1 and disable shared libraries on
16025 # powerpc, because MkLinux only supported shared libraries with the
16026 # GNU dynamic linker. Since this was broken with cross compilers,
16027 # most powerpc-linux boxes support dynamic linking these days and
16028 # people can always --disable-shared, the test was removed, and we
16029 # assume the GNU/Linux dynamic linker is in use.
16030 dynamic_linker='GNU/Linux ld.so'
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16038 soname_spec='${libname}${release}${shared_ext}$major'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=no
16041 hardcode_into_libs=yes
16042 dynamic_linker='NetBSD ld.elf_so'
16049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16052 dynamic_linker='NetBSD (a.out) ld.so'
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 dynamic_linker='NetBSD ld.elf_so'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes
16060 hardcode_into_libs=yes
16064 version_type=linux # correct to gnu/linux during the next big refactor
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=yes
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=no
16078 hardcode_into_libs=yes
16079 dynamic_linker='ldqnx.so'
16084 sys_lib_dlsearch_path_spec="/usr/lib"
16086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16089 *) need_version=no ;;
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16093 shlibpath_var=LD_LIBRARY_PATH
16094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096 openbsd2.[89] | openbsd2.[89].*)
16097 shlibpath_overrides_runpath=no
16100 shlibpath_overrides_runpath=yes
16104 shlibpath_overrides_runpath=yes
16109 libname_spec='$name'
16112 library_names_spec='$libname${shared_ext} $libname.a'
16113 dynamic_linker='OS/2 ld.exe'
16114 shlibpath_var=LIBPATH
16117 osf3* | osf4* | osf5*)
16121 soname_spec='${libname}${release}${shared_ext}$major'
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123 shlibpath_var=LD_LIBRARY_PATH
16124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16133 version_type=linux # correct to gnu/linux during the next big refactor
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 shlibpath_var=LD_LIBRARY_PATH
16139 shlibpath_overrides_runpath=yes
16140 hardcode_into_libs=yes
16141 # ldd complains unless libraries are executable
16142 postinstall_cmds='chmod +x $lib'
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath=yes
16151 if test "$with_gnu_ld" = yes; then
16158 version_type=linux # correct to gnu/linux during the next big refactor
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160 soname_spec='${libname}${release}${shared_ext}$major'
16161 shlibpath_var=LD_LIBRARY_PATH
16162 case $host_vendor in
16164 shlibpath_overrides_runpath=no
16166 runpath_var=LD_RUN_PATH
16174 shlibpath_overrides_runpath=no
16175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16181 if test -d /usr/nec ;then
16182 version_type=linux # correct to gnu/linux during the next big refactor
16183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16184 soname_spec='$libname${shared_ext}.$major'
16185 shlibpath_var=LD_LIBRARY_PATH
16189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16190 version_type=freebsd-elf
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16198 if test "$with_gnu_ld" = yes; then
16199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16208 sys_lib_dlsearch_path_spec='/usr/lib'
16212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16213 version_type=linux # correct to gnu/linux during the next big refactor
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 shlibpath_var=LD_LIBRARY_PATH
16218 shlibpath_overrides_runpath=no
16219 hardcode_into_libs=yes
16223 version_type=linux # correct to gnu/linux during the next big refactor
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 shlibpath_var=LD_LIBRARY_PATH
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16234 $as_echo "$dynamic_linker" >&6; }
16235 test "$dynamic_linker" = no && can_build_shared=no
16237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16238 if test "$GCC" = yes; then
16239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16242 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16243 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16245 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16246 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16287 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16288 hardcode_action_CXX=
16289 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16290 test -n "$runpath_var_CXX" ||
16291 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16293 # We can hardcode non-existent directories.
16294 if test "$hardcode_direct_CXX" != no &&
16295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16296 # have to relink, otherwise we might link with an installed library
16297 # when we should be linking with a yet-to-be-installed one
16298 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16299 test "$hardcode_minus_L_CXX" != no; then
16300 # Linking always hardcodes the temporary library directory.
16301 hardcode_action_CXX=relink
16303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16304 hardcode_action_CXX=immediate
16307 # We cannot hardcode anything, or else we can only hardcode existing
16309 hardcode_action_CXX=unsupported
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16312 $as_echo "$hardcode_action_CXX" >&6; }
16314 if test "$hardcode_action_CXX" = relink ||
16315 test "$inherit_rpath_CXX" = yes; then
16316 # Fast installation is not supported
16317 enable_fast_install=no
16318 elif test "$shlibpath_overrides_runpath" = yes ||
16319 test "$enable_shared" = no; then
16320 # Fast installation is not necessary
16321 enable_fast_install=needless
16330 fi # test -n "$compiler"
16333 CFLAGS=$lt_save_CFLAGS
16337 with_gnu_ld=$lt_save_with_gnu_ld
16338 lt_cv_path_LDCXX=$lt_cv_path_LD
16339 lt_cv_path_LD=$lt_save_path_LD
16340 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16341 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16342 fi # test "$_lt_caught_CXX_error" != yes
16345 ac_cpp='$CPP $CPPFLAGS'
16346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16364 ac_config_commands="$ac_config_commands libtool"
16369 # Only expand once:
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16385 $as_echo_n "checking for library containing dlopen... " >&6; }
16386 if ${ac_cv_search_dlopen+:} false; then :
16387 $as_echo_n "(cached) " >&6
16389 ac_func_search_save_LIBS=$LIBS
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16393 /* Override any GCC internal prototype to avoid an error.
16394 Use char because int might match the return type of a GCC
16395 builtin and then its argument prototype would still apply. */
16408 for ac_lib in '' dl; do
16409 if test -z "$ac_lib"; then
16410 ac_res="none required"
16413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16415 if ac_fn_c_try_link "$LINENO"; then :
16416 ac_cv_search_dlopen=$ac_res
16418 rm -f core conftest.err conftest.$ac_objext \
16420 if ${ac_cv_search_dlopen+:} false; then :
16424 if ${ac_cv_search_dlopen+:} false; then :
16427 ac_cv_search_dlopen=no
16429 rm conftest.$ac_ext
16430 LIBS=$ac_func_search_save_LIBS
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16433 $as_echo "$ac_cv_search_dlopen" >&6; }
16434 ac_res=$ac_cv_search_dlopen
16435 if test "$ac_res" != no; then :
16436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16438 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16440 if test "$ac_cv_search_dlopen" != "none required" ; then
16441 LIBADD_DLOPEN="-ldl"
16443 libltdl_cv_lib_dl_dlopen="yes"
16444 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16449 # include <dlfcn.h>
16460 if ac_fn_c_try_link "$LINENO"; then :
16462 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16464 libltdl_cv_func_dlopen="yes"
16465 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16468 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16469 if ${ac_cv_lib_svld_dlopen+:} false; then :
16470 $as_echo_n "(cached) " >&6
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lsvld $LIBS"
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16477 /* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16492 if ac_fn_c_try_link "$LINENO"; then :
16493 ac_cv_lib_svld_dlopen=yes
16495 ac_cv_lib_svld_dlopen=no
16497 rm -f core conftest.err conftest.$ac_objext \
16498 conftest$ac_exeext conftest.$ac_ext
16499 LIBS=$ac_check_lib_save_LIBS
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16502 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16503 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16505 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16507 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16508 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16512 rm -f core conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16516 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16518 lt_save_LIBS="$LIBS"
16519 LIBS="$LIBS $LIBADD_DLOPEN"
16520 for ac_func in dlerror
16522 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16523 if test "x$ac_cv_func_dlerror" = xyes; then :
16524 cat >>confdefs.h <<_ACEOF
16525 #define HAVE_DLERROR 1
16531 LIBS="$lt_save_LIBS"
16536 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16537 if test "x$ac_cv_func_shl_load" = xyes; then :
16539 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16541 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16544 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16545 if ${ac_cv_lib_dld_shl_load+:} false; then :
16546 $as_echo_n "(cached) " >&6
16548 ac_check_lib_save_LIBS=$LIBS
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16553 /* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
16563 return shl_load ();
16568 if ac_fn_c_try_link "$LINENO"; then :
16569 ac_cv_lib_dld_shl_load=yes
16571 ac_cv_lib_dld_shl_load=no
16573 rm -f core conftest.err conftest.$ac_objext \
16574 conftest$ac_exeext conftest.$ac_ext
16575 LIBS=$ac_check_lib_save_LIBS
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16578 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16579 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16581 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16583 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16584 LIBADD_SHL_LOAD="-ldld"
16593 # We only want this for pre-Mac OS X 10.4.
16594 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16595 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16597 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16599 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16604 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16606 cygwin* | mingw* | os2* | pw32*)
16607 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16609 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16615 cat >>confdefs.h <<_ACEOF
16616 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16619 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16624 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16625 if ${ac_cv_lib_dld_dld_link+:} false; then :
16626 $as_echo_n "(cached) " >&6
16628 ac_check_lib_save_LIBS=$LIBS
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16643 return dld_link ();
16648 if ac_fn_c_try_link "$LINENO"; then :
16649 ac_cv_lib_dld_dld_link=yes
16651 ac_cv_lib_dld_dld_link=no
16653 rm -f core conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655 LIBS=$ac_check_lib_save_LIBS
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16658 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16659 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16661 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16663 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16670 if test -n "$LT_DLLOADERS"
16672 for lt_loader in $LT_DLLOADERS; do
16673 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16676 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16681 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16685 ac_cpp='$CPP $CPPFLAGS'
16686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16693 if test x$use_libtool != xno; then
16694 DEFAULT_OBJECT_TYPE=".lo"
16695 DEFAULT_ARCHIVE_TYPE=".la"
16696 DEFAULT_SHARED_OBJECT_TYPE=".la"
16697 LIBTOOL="\$(LIBTOOL)"
16698 LIBTOOL_INSTALL_TARGET="libtool-install"
16699 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16700 LIBTOOL_CLEAN_TARGET="libtool-clean"
16701 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16702 FD_PLUGIN_DIR="src/plugins/fd"
16705 DEFAULT_OBJECT_TYPE=".o"
16706 DEFAULT_ARCHIVE_TYPE=".a"
16707 DEFAULT_SHARED_OBJECT_TYPE=".so"
16708 LIBTOOL="# \$(LIBTOOL)"
16709 LIBTOOL_INSTALL_TARGET=""
16710 LIBTOOL_UNINSTALL_TARGET=""
16711 LIBTOOL_CLEAN_TARGET=""
16712 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16727 # Check whether --enable-includes was given.
16728 if test "${enable_includes+set}" = set; then :
16729 enableval=$enable_includes;
16730 if test x$enableval = xyes; then
16731 install_includes=yes
16739 if test x$use_libtool != xno -a x$install_includes = xyes; then
16740 INCLUDE_INSTALL_TARGET="install-includes"
16741 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16743 INCLUDE_INSTALL_TARGET=""
16744 INCLUDE_UNINSTALL_TARGET=""
16752 *cygwin* ) CYGWIN=yes;;
16756 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16762 HAVE_SUN_OS_FALSE='#'
16764 HAVE_SUN_OS_TRUE='#'
16767 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16774 HAVE_SUN_OS_FALSE='#'
16776 HAVE_SUN_OS_TRUE='#'
16781 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16787 HAVE_HURD_OS_FALSE='#'
16789 HAVE_HURD_OS_TRUE='#'
16790 HAVE_HURD_OS_FALSE=
16792 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16799 HAVE_HURD_OS_FALSE='#'
16801 HAVE_HURD_OS_TRUE='#'
16802 HAVE_HURD_OS_FALSE=
16806 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16812 HAVE_OSF1_OS_FALSE='#'
16814 HAVE_OSF1_OS_TRUE='#'
16815 HAVE_OSF1_OS_FALSE=
16817 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16824 HAVE_OSF1_OS_FALSE='#'
16826 HAVE_OSF1_OS_TRUE='#'
16827 HAVE_OSF1_OS_FALSE=
16831 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16837 HAVE_AIX_OS_FALSE='#'
16839 HAVE_AIX_OS_TRUE='#'
16842 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16849 HAVE_AIX_OS_FALSE='#'
16851 HAVE_AIX_OS_TRUE='#'
16856 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16862 HAVE_HPUX_OS_FALSE='#'
16864 HAVE_HPUX_OS_TRUE='#'
16865 HAVE_HPUX_OS_FALSE=
16867 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16874 HAVE_HPUX_OS_FALSE='#'
16876 HAVE_HPUX_OS_TRUE='#'
16877 HAVE_HPUX_OS_FALSE=
16881 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16886 HAVE_LINUX_OS_TRUE=
16887 HAVE_LINUX_OS_FALSE='#'
16889 HAVE_LINUX_OS_TRUE='#'
16890 HAVE_LINUX_OS_FALSE=
16892 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16898 HAVE_LINUX_OS_TRUE=
16899 HAVE_LINUX_OS_FALSE='#'
16901 HAVE_LINUX_OS_TRUE='#'
16902 HAVE_LINUX_OS_FALSE=
16906 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16911 HAVE_FREEBSD_OS_TRUE=
16912 HAVE_FREEBSD_OS_FALSE='#'
16914 HAVE_FREEBSD_OS_TRUE='#'
16915 HAVE_FREEBSD_OS_FALSE=
16917 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16923 HAVE_FREEBSD_OS_TRUE=
16924 HAVE_FREEBSD_OS_FALSE='#'
16926 HAVE_FREEBSD_OS_TRUE='#'
16927 HAVE_FREEBSD_OS_FALSE=
16931 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16936 HAVE_NETBSD_OS_TRUE=
16937 HAVE_NETBSD_OS_FALSE='#'
16939 HAVE_NETBSD_OS_TRUE='#'
16940 HAVE_NETBSD_OS_FALSE=
16942 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16948 HAVE_NETBSD_OS_TRUE=
16949 HAVE_NETBSD_OS_FALSE='#'
16951 HAVE_NETBSD_OS_TRUE='#'
16952 HAVE_NETBSD_OS_FALSE=
16956 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16961 HAVE_OPENBSD_OS_TRUE=
16962 HAVE_OPENBSD_OS_FALSE='#'
16964 HAVE_OPENBSD_OS_TRUE='#'
16965 HAVE_OPENBSD_OS_FALSE=
16967 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16973 HAVE_OPENBSD_OS_TRUE=
16974 HAVE_OPENBSD_OS_FALSE='#'
16976 HAVE_OPENBSD_OS_TRUE='#'
16977 HAVE_OPENBSD_OS_FALSE=
16981 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16987 HAVE_BSDI_OS_FALSE='#'
16989 HAVE_BSDI_OS_TRUE='#'
16990 HAVE_BSDI_OS_FALSE=
16992 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16999 HAVE_BSDI_OS_FALSE='#'
17001 HAVE_BSDI_OS_TRUE='#'
17002 HAVE_BSDI_OS_FALSE=
17006 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17012 HAVE_SGI_OS_FALSE='#'
17014 HAVE_SGI_OS_TRUE='#'
17017 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17024 HAVE_SGI_OS_FALSE='#'
17026 HAVE_SGI_OS_TRUE='#'
17031 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17037 HAVE_IRIX_OS_FALSE='#'
17039 HAVE_IRIX_OS_TRUE='#'
17040 HAVE_IRIX_OS_FALSE=
17042 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17049 HAVE_IRIX_OS_FALSE='#'
17051 HAVE_IRIX_OS_TRUE='#'
17052 HAVE_IRIX_OS_FALSE=
17056 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17061 HAVE_DARWIN_OS_TRUE=
17062 HAVE_DARWIN_OS_FALSE='#'
17064 HAVE_DARWIN_OS_TRUE='#'
17065 HAVE_DARWIN_OS_FALSE=
17067 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17073 HAVE_DARWIN_OS_TRUE=
17074 HAVE_DARWIN_OS_FALSE='#'
17076 HAVE_DARWIN_OS_TRUE='#'
17077 HAVE_DARWIN_OS_FALSE=
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17083 $as_echo_n "checking for Operating System Distribution... " >&6; }
17084 if test "x$DISTNAME" != "x"
17086 echo "distname set to $DISTNAME"
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17099 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17102 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17105 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17108 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17111 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17114 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17117 elif test -f /etc/SuSE-release
17120 elif test -d /etc/SuSEconfig
17123 elif test -f /etc/mandrake-release
17126 elif test -f /etc/whitebox-release
17129 elif test -f /etc/redhat-release
17132 elif test -f /etc/gentoo-release
17135 elif test -f /etc/debian_version
17138 elif test -f /etc/slackware-version
17141 elif test x$host_vendor = xapple
17144 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17147 elif test -f /etc/engarde-version
17150 elif test -f /etc/arch-release
17153 elif test "$CYGWIN" = yes
17156 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17162 $as_echo "done" >&6; }
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17168 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17169 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17170 $as_echo_n "(cached) " >&6
17172 cat >conftest.make <<\_ACEOF
17175 @echo '@@@%%%=$(MAKE)=@@@%%%'
17177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17178 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17179 *@@@%%%=?*=@@@%%%*)
17180 eval ac_cv_prog_make_${ac_make}_set=yes;;
17182 eval ac_cv_prog_make_${ac_make}_set=no;;
17184 rm -f conftest.make
17186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17188 $as_echo "yes" >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192 $as_echo "no" >&6; }
17193 SET_MAKE="MAKE=${MAKE-make}"
17199 if test -n "$ac_aux_dir"; then
17200 case "$ac_aux_dir" in
17201 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17202 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17205 if test -z "$MKINSTALLDIRS"; then
17206 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17212 $as_echo_n "checking whether NLS is requested... " >&6; }
17213 # Check whether --enable-nls was given.
17214 if test "${enable_nls+set}" = set; then :
17215 enableval=$enable_nls; USE_NLS=$enableval
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17221 $as_echo "$USE_NLS" >&6; }
17228 # Prepare PATH_SEPARATOR.
17229 # The user is always right.
17230 if test "${PATH_SEPARATOR+set}" != set; then
17231 echo "#! /bin/sh" >conf$$.sh
17232 echo "exit 0" >>conf$$.sh
17234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17242 # Find out how to test for executable files. Don't use a zero-byte file,
17243 # as systems may use methods other than mode bits to determine executability.
17244 cat >conf$$.file <<_ASEOF
17248 chmod +x conf$$.file
17249 if test -x conf$$.file >/dev/null 2>&1; then
17250 ac_executable_p="test -x"
17252 ac_executable_p="test -f"
17256 # Extract the first word of "msgfmt", so it can be a program name with args.
17257 set dummy msgfmt; ac_word=$2
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17259 $as_echo_n "checking for $ac_word... " >&6; }
17260 if ${ac_cv_path_MSGFMT+:} false; then :
17261 $as_echo_n "(cached) " >&6
17265 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17269 for ac_dir in $PATH; do
17271 test -z "$ac_dir" && ac_dir=.
17272 for ac_exec_ext in '' $ac_executable_extensions; do
17273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17274 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17275 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17276 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17277 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17284 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17288 MSGFMT="$ac_cv_path_MSGFMT"
17289 if test "$MSGFMT" != ":"; then
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17291 $as_echo "$MSGFMT" >&6; }
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17294 $as_echo "no" >&6; }
17297 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17298 set dummy gmsgfmt; ac_word=$2
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17300 $as_echo_n "checking for $ac_word... " >&6; }
17301 if ${ac_cv_path_GMSGFMT+:} false; then :
17302 $as_echo_n "(cached) " >&6
17306 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17310 for as_dir in $PATH
17313 test -z "$as_dir" && as_dir=.
17314 for ac_exec_ext in '' $ac_executable_extensions; do
17315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17316 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17324 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17328 GMSGFMT=$ac_cv_path_GMSGFMT
17329 if test -n "$GMSGFMT"; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17331 $as_echo "$GMSGFMT" >&6; }
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17340 # Prepare PATH_SEPARATOR.
17341 # The user is always right.
17342 if test "${PATH_SEPARATOR+set}" != set; then
17343 echo "#! /bin/sh" >conf$$.sh
17344 echo "exit 0" >>conf$$.sh
17346 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17354 # Find out how to test for executable files. Don't use a zero-byte file,
17355 # as systems may use methods other than mode bits to determine executability.
17356 cat >conf$$.file <<_ASEOF
17360 chmod +x conf$$.file
17361 if test -x conf$$.file >/dev/null 2>&1; then
17362 ac_executable_p="test -x"
17364 ac_executable_p="test -f"
17368 # Extract the first word of "xgettext", so it can be a program name with args.
17369 set dummy xgettext; ac_word=$2
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17371 $as_echo_n "checking for $ac_word... " >&6; }
17372 if ${ac_cv_path_XGETTEXT+:} false; then :
17373 $as_echo_n "(cached) " >&6
17375 case "$XGETTEXT" in
17377 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17380 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17381 for ac_dir in $PATH; do
17383 test -z "$ac_dir" && ac_dir=.
17384 for ac_exec_ext in '' $ac_executable_extensions; do
17385 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17386 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17387 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17388 (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
17389 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17396 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17400 XGETTEXT="$ac_cv_path_XGETTEXT"
17401 if test "$XGETTEXT" != ":"; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17403 $as_echo "$XGETTEXT" >&6; }
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406 $as_echo "no" >&6; }
17412 # Prepare PATH_SEPARATOR.
17413 # The user is always right.
17414 if test "${PATH_SEPARATOR+set}" != set; then
17415 echo "#! /bin/sh" >conf$$.sh
17416 echo "exit 0" >>conf$$.sh
17418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17426 # Find out how to test for executable files. Don't use a zero-byte file,
17427 # as systems may use methods other than mode bits to determine executability.
17428 cat >conf$$.file <<_ASEOF
17432 chmod +x conf$$.file
17433 if test -x conf$$.file >/dev/null 2>&1; then
17434 ac_executable_p="test -x"
17436 ac_executable_p="test -f"
17440 # Extract the first word of "msgmerge", so it can be a program name with args.
17441 set dummy msgmerge; ac_word=$2
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17443 $as_echo_n "checking for $ac_word... " >&6; }
17444 if ${ac_cv_path_MSGMERGE+:} false; then :
17445 $as_echo_n "(cached) " >&6
17447 case "$MSGMERGE" in
17449 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17452 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17453 for ac_dir in $PATH; do
17455 test -z "$ac_dir" && ac_dir=.
17456 for ac_exec_ext in '' $ac_executable_extensions; do
17457 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17458 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17459 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17460 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17467 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17471 MSGMERGE="$ac_cv_path_MSGMERGE"
17472 if test "$MSGMERGE" != ":"; then
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17474 $as_echo "$MSGMERGE" >&6; }
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17477 $as_echo "no" >&6; }
17481 if test "$GMSGFMT" != ":"; then
17482 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17483 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17486 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17488 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17493 if test "$XGETTEXT" != ":"; then
17494 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17495 (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
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17499 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17505 ac_config_commands="$ac_config_commands default-1"
17509 if test "X$prefix" = "XNONE"; then
17510 acl_final_prefix="$ac_default_prefix"
17512 acl_final_prefix="$prefix"
17514 if test "X$exec_prefix" = "XNONE"; then
17515 acl_final_exec_prefix='${prefix}'
17517 acl_final_exec_prefix="$exec_prefix"
17519 acl_save_prefix="$prefix"
17520 prefix="$acl_final_prefix"
17521 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17522 prefix="$acl_save_prefix"
17525 # Check whether --with-gnu-ld was given.
17526 if test "${with_gnu_ld+set}" = set; then :
17527 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17532 # Prepare PATH_SEPARATOR.
17533 # The user is always right.
17534 if test "${PATH_SEPARATOR+set}" != set; then
17535 echo "#! /bin/sh" >conf$$.sh
17536 echo "exit 0" >>conf$$.sh
17538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17546 if test "$GCC" = yes; then
17547 # Check if gcc -print-prog-name=ld gives a path.
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17549 $as_echo_n "checking for ld used by GCC... " >&6; }
17552 # gcc leaves a trailing carriage return which upsets mingw
17553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17558 # Accept absolute paths.
17559 [\\/]* | [A-Za-z]:[\\/]*)
17560 re_direlt='/[^/][^/]*/\.\./'
17561 # Canonicalize the path of ld
17562 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17563 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17564 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17566 test -z "$LD" && LD="$ac_prog"
17569 # If it fails, then pretend we aren't using GCC.
17573 # If it is relative, then search for the first ld in PATH.
17574 with_gnu_ld=unknown
17577 elif test "$with_gnu_ld" = yes; then
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17579 $as_echo_n "checking for GNU ld... " >&6; }
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17582 $as_echo_n "checking for non-GNU ld... " >&6; }
17584 if ${acl_cv_path_LD+:} false; then :
17585 $as_echo_n "(cached) " >&6
17587 if test -z "$LD"; then
17588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17589 for ac_dir in $PATH; do
17590 test -z "$ac_dir" && ac_dir=.
17591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17592 acl_cv_path_LD="$ac_dir/$ac_prog"
17593 # Check to see if the program is GNU ld. I'd rather use --version,
17594 # but apparently some GNU ld's only accept -v.
17595 # Break only if it was the GNU/non-GNU ld that we prefer.
17596 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17597 *GNU* | *'with BFD'*)
17598 test "$with_gnu_ld" != no && break ;;
17600 test "$with_gnu_ld" != yes && break ;;
17606 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17610 LD="$acl_cv_path_LD"
17611 if test -n "$LD"; then
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17613 $as_echo "$LD" >&6; }
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17616 $as_echo "no" >&6; }
17618 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17621 if ${acl_cv_prog_gnu_ld+:} false; then :
17622 $as_echo_n "(cached) " >&6
17624 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17625 case `$LD -v 2>&1 </dev/null` in
17626 *GNU* | *'with BFD'*)
17627 acl_cv_prog_gnu_ld=yes ;;
17629 acl_cv_prog_gnu_ld=no ;;
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17633 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17634 with_gnu_ld=$acl_cv_prog_gnu_ld
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17640 $as_echo_n "checking for shared library run path origin... " >&6; }
17641 if ${acl_cv_rpath+:} false; then :
17642 $as_echo_n "(cached) " >&6
17645 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17646 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17648 rm -f ./conftest.sh
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17653 $as_echo "$acl_cv_rpath" >&6; }
17655 libext="$acl_cv_libext"
17656 shlibext="$acl_cv_shlibext"
17657 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17658 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17659 hardcode_direct="$acl_cv_hardcode_direct"
17660 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17661 # Check whether --enable-rpath was given.
17662 if test "${enable_rpath+set}" = set; then :
17663 enableval=$enable_rpath; :
17677 acl_save_prefix="$prefix"
17678 prefix="$acl_final_prefix"
17679 acl_save_exec_prefix="$exec_prefix"
17680 exec_prefix="$acl_final_exec_prefix"
17682 eval additional_includedir=\"$includedir\"
17683 eval additional_libdir=\"$libdir\"
17685 exec_prefix="$acl_save_exec_prefix"
17686 prefix="$acl_save_prefix"
17689 # Check whether --with-libiconv-prefix was given.
17690 if test "${with_libiconv_prefix+set}" = set; then :
17691 withval=$with_libiconv_prefix;
17692 if test "X$withval" = "Xno"; then
17695 if test "X$withval" = "X"; then
17697 acl_save_prefix="$prefix"
17698 prefix="$acl_final_prefix"
17699 acl_save_exec_prefix="$exec_prefix"
17700 exec_prefix="$acl_final_exec_prefix"
17702 eval additional_includedir=\"$includedir\"
17703 eval additional_libdir=\"$libdir\"
17705 exec_prefix="$acl_save_exec_prefix"
17706 prefix="$acl_save_prefix"
17709 additional_includedir="$withval/include"
17710 additional_libdir="$withval/lib"
17721 names_already_handled=
17722 names_next_round='iconv '
17723 while test -n "$names_next_round"; do
17724 names_this_round="$names_next_round"
17726 for name in $names_this_round; do
17728 for n in $names_already_handled; do
17729 if test "$n" = "$name"; then
17730 already_handled=yes
17734 if test -z "$already_handled"; then
17735 names_already_handled="$names_already_handled $name"
17736 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17737 eval value=\"\$HAVE_LIB$uppername\"
17738 if test -n "$value"; then
17739 if test "$value" = yes; then
17740 eval value=\"\$LIB$uppername\"
17741 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17742 eval value=\"\$LTLIB$uppername\"
17743 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17752 if test $use_additional = yes; then
17753 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17754 found_dir="$additional_libdir"
17755 found_so="$additional_libdir/lib$name.$shlibext"
17756 if test -f "$additional_libdir/lib$name.la"; then
17757 found_la="$additional_libdir/lib$name.la"
17760 if test -f "$additional_libdir/lib$name.$libext"; then
17761 found_dir="$additional_libdir"
17762 found_a="$additional_libdir/lib$name.$libext"
17763 if test -f "$additional_libdir/lib$name.la"; then
17764 found_la="$additional_libdir/lib$name.la"
17769 if test "X$found_dir" = "X"; then
17770 for x in $LDFLAGS $LTLIBICONV; do
17772 acl_save_prefix="$prefix"
17773 prefix="$acl_final_prefix"
17774 acl_save_exec_prefix="$exec_prefix"
17775 exec_prefix="$acl_final_exec_prefix"
17777 exec_prefix="$acl_save_exec_prefix"
17778 prefix="$acl_save_prefix"
17782 dir=`echo "X$x" | sed -e 's/^X-L//'`
17783 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17785 found_so="$dir/lib$name.$shlibext"
17786 if test -f "$dir/lib$name.la"; then
17787 found_la="$dir/lib$name.la"
17790 if test -f "$dir/lib$name.$libext"; then
17792 found_a="$dir/lib$name.$libext"
17793 if test -f "$dir/lib$name.la"; then
17794 found_la="$dir/lib$name.la"
17800 if test "X$found_dir" != "X"; then
17805 if test "X$found_dir" != "X"; then
17806 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17807 if test "X$found_so" != "X"; then
17808 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17809 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17812 for x in $ltrpathdirs; do
17813 if test "X$x" = "X$found_dir"; then
17818 if test -z "$haveit"; then
17819 ltrpathdirs="$ltrpathdirs $found_dir"
17821 if test "$hardcode_direct" = yes; then
17822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17824 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17825 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17827 for x in $rpathdirs; do
17828 if test "X$x" = "X$found_dir"; then
17833 if test -z "$haveit"; then
17834 rpathdirs="$rpathdirs $found_dir"
17838 for x in $LDFLAGS $LIBICONV; do
17840 acl_save_prefix="$prefix"
17841 prefix="$acl_final_prefix"
17842 acl_save_exec_prefix="$exec_prefix"
17843 exec_prefix="$acl_final_exec_prefix"
17845 exec_prefix="$acl_save_exec_prefix"
17846 prefix="$acl_save_prefix"
17848 if test "X$x" = "X-L$found_dir"; then
17853 if test -z "$haveit"; then
17854 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17856 if test "$hardcode_minus_L" != no; then
17857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17859 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17865 if test "X$found_a" != "X"; then
17866 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17868 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17871 additional_includedir=
17872 case "$found_dir" in
17874 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17875 additional_includedir="$basedir/include"
17878 if test "X$additional_includedir" != "X"; then
17879 if test "X$additional_includedir" != "X/usr/include"; then
17881 if test "X$additional_includedir" = "X/usr/local/include"; then
17882 if test -n "$GCC"; then
17884 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17888 if test -z "$haveit"; then
17889 for x in $CPPFLAGS $INCICONV; do
17891 acl_save_prefix="$prefix"
17892 prefix="$acl_final_prefix"
17893 acl_save_exec_prefix="$exec_prefix"
17894 exec_prefix="$acl_final_exec_prefix"
17896 exec_prefix="$acl_save_exec_prefix"
17897 prefix="$acl_save_prefix"
17899 if test "X$x" = "X-I$additional_includedir"; then
17904 if test -z "$haveit"; then
17905 if test -d "$additional_includedir"; then
17906 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17912 if test -n "$found_la"; then
17913 save_libdir="$libdir"
17914 case "$found_la" in
17915 */* | *\\*) . "$found_la" ;;
17916 *) . "./$found_la" ;;
17918 libdir="$save_libdir"
17919 for dep in $dependency_libs; do
17922 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17923 if test "X$additional_libdir" != "X/usr/lib"; then
17925 if test "X$additional_libdir" = "X/usr/local/lib"; then
17926 if test -n "$GCC"; then
17928 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17932 if test -z "$haveit"; then
17934 for x in $LDFLAGS $LIBICONV; do
17936 acl_save_prefix="$prefix"
17937 prefix="$acl_final_prefix"
17938 acl_save_exec_prefix="$exec_prefix"
17939 exec_prefix="$acl_final_exec_prefix"
17941 exec_prefix="$acl_save_exec_prefix"
17942 prefix="$acl_save_prefix"
17944 if test "X$x" = "X-L$additional_libdir"; then
17949 if test -z "$haveit"; then
17950 if test -d "$additional_libdir"; then
17951 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17955 for x in $LDFLAGS $LTLIBICONV; do
17957 acl_save_prefix="$prefix"
17958 prefix="$acl_final_prefix"
17959 acl_save_exec_prefix="$exec_prefix"
17960 exec_prefix="$acl_final_exec_prefix"
17962 exec_prefix="$acl_save_exec_prefix"
17963 prefix="$acl_save_prefix"
17965 if test "X$x" = "X-L$additional_libdir"; then
17970 if test -z "$haveit"; then
17971 if test -d "$additional_libdir"; then
17972 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17979 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17980 if test "$enable_rpath" != no; then
17982 for x in $rpathdirs; do
17983 if test "X$x" = "X$dir"; then
17988 if test -z "$haveit"; then
17989 rpathdirs="$rpathdirs $dir"
17992 for x in $ltrpathdirs; do
17993 if test "X$x" = "X$dir"; then
17998 if test -z "$haveit"; then
17999 ltrpathdirs="$ltrpathdirs $dir"
18004 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18007 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18010 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18017 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18018 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18024 if test "X$rpathdirs" != "X"; then
18025 if test -n "$hardcode_libdir_separator"; then
18027 for found_dir in $rpathdirs; do
18028 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18030 acl_save_libdir="$libdir"
18032 eval flag=\"$hardcode_libdir_flag_spec\"
18033 libdir="$acl_save_libdir"
18034 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18036 for found_dir in $rpathdirs; do
18037 acl_save_libdir="$libdir"
18038 libdir="$found_dir"
18039 eval flag=\"$hardcode_libdir_flag_spec\"
18040 libdir="$acl_save_libdir"
18041 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18045 if test "X$ltrpathdirs" != "X"; then
18046 for found_dir in $ltrpathdirs; do
18047 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18069 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18070 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18071 $as_echo_n "(cached) " >&6
18073 gt_save_CPPFLAGS="$CPPFLAGS"
18074 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18075 gt_save_LIBS="$LIBS"
18076 LIBS="$LIBS -framework CoreFoundation"
18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18079 #include <CFPreferences.h>
18083 CFPreferencesCopyAppValue(NULL, NULL)
18088 if ac_fn_c_try_link "$LINENO"; then :
18089 gt_cv_func_CFPreferencesCopyAppValue=yes
18091 gt_cv_func_CFPreferencesCopyAppValue=no
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 CPPFLAGS="$gt_save_CPPFLAGS"
18096 LIBS="$gt_save_LIBS"
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18099 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18100 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18102 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18106 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18107 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18108 $as_echo_n "(cached) " >&6
18110 gt_save_CPPFLAGS="$CPPFLAGS"
18111 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18112 gt_save_LIBS="$LIBS"
18113 LIBS="$LIBS -framework CoreFoundation"
18114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h. */
18116 #include <CFLocale.h>
18120 CFLocaleCopyCurrent();
18125 if ac_fn_c_try_link "$LINENO"; then :
18126 gt_cv_func_CFLocaleCopyCurrent=yes
18128 gt_cv_func_CFLocaleCopyCurrent=no
18130 rm -f core conftest.err conftest.$ac_objext \
18131 conftest$ac_exeext conftest.$ac_ext
18132 CPPFLAGS="$gt_save_CPPFLAGS"
18133 LIBS="$gt_save_LIBS"
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18136 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18137 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18139 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18143 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18144 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18151 $as_echo_n "checking whether NLS is requested... " >&6; }
18152 # Check whether --enable-nls was given.
18153 if test "${enable_nls+set}" = set; then :
18154 enableval=$enable_nls; USE_NLS=$enableval
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18160 $as_echo "$USE_NLS" >&6; }
18169 if test "$USE_NLS" = "yes"; then
18170 gt_use_preinstalled_gnugettext=no
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18178 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18179 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18180 $as_echo_n "(cached) " >&6
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18184 #include <libintl.h>
18185 extern int _nl_msg_cat_cntr;
18186 extern int *_nl_domain_bindings;
18190 bindtextdomain ("", "");
18191 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18196 if ac_fn_c_try_link "$LINENO"; then :
18197 gt_cv_func_gnugettext1_libc=yes
18199 gt_cv_func_gnugettext1_libc=no
18201 rm -f core conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18205 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18207 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18213 am_save_CPPFLAGS="$CPPFLAGS"
18215 for element in $INCICONV; do
18217 for x in $CPPFLAGS; do
18219 acl_save_prefix="$prefix"
18220 prefix="$acl_final_prefix"
18221 acl_save_exec_prefix="$exec_prefix"
18222 exec_prefix="$acl_final_exec_prefix"
18224 exec_prefix="$acl_save_exec_prefix"
18225 prefix="$acl_save_prefix"
18227 if test "X$x" = "X$element"; then
18232 if test -z "$haveit"; then
18233 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18239 $as_echo_n "checking for iconv... " >&6; }
18240 if ${am_cv_func_iconv+:} false; then :
18241 $as_echo_n "(cached) " >&6
18244 am_cv_func_iconv="no, consider installing GNU libiconv"
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18248 #include <stdlib.h>
18253 iconv_t cd = iconv_open("","");
18254 iconv(cd,NULL,NULL,NULL,NULL);
18260 if ac_fn_c_try_link "$LINENO"; then :
18261 am_cv_func_iconv=yes
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 if test "$am_cv_func_iconv" != yes; then
18266 am_save_LIBS="$LIBS"
18267 LIBS="$LIBS $LIBICONV"
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270 #include <stdlib.h>
18275 iconv_t cd = iconv_open("","");
18276 iconv(cd,NULL,NULL,NULL,NULL);
18282 if ac_fn_c_try_link "$LINENO"; then :
18283 am_cv_lib_iconv=yes
18284 am_cv_func_iconv=yes
18286 rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288 LIBS="$am_save_LIBS"
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18293 $as_echo "$am_cv_func_iconv" >&6; }
18294 if test "$am_cv_func_iconv" = yes; then
18296 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18299 if test "$am_cv_lib_iconv" = yes; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18301 $as_echo_n "checking how to link with libiconv... " >&6; }
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18303 $as_echo "$LIBICONV" >&6; }
18305 CPPFLAGS="$am_save_CPPFLAGS"
18317 acl_save_prefix="$prefix"
18318 prefix="$acl_final_prefix"
18319 acl_save_exec_prefix="$exec_prefix"
18320 exec_prefix="$acl_final_exec_prefix"
18322 eval additional_includedir=\"$includedir\"
18323 eval additional_libdir=\"$libdir\"
18325 exec_prefix="$acl_save_exec_prefix"
18326 prefix="$acl_save_prefix"
18329 # Check whether --with-libintl-prefix was given.
18330 if test "${with_libintl_prefix+set}" = set; then :
18331 withval=$with_libintl_prefix;
18332 if test "X$withval" = "Xno"; then
18335 if test "X$withval" = "X"; then
18337 acl_save_prefix="$prefix"
18338 prefix="$acl_final_prefix"
18339 acl_save_exec_prefix="$exec_prefix"
18340 exec_prefix="$acl_final_exec_prefix"
18342 eval additional_includedir=\"$includedir\"
18343 eval additional_libdir=\"$libdir\"
18345 exec_prefix="$acl_save_exec_prefix"
18346 prefix="$acl_save_prefix"
18349 additional_includedir="$withval/include"
18350 additional_libdir="$withval/lib"
18361 names_already_handled=
18362 names_next_round='intl '
18363 while test -n "$names_next_round"; do
18364 names_this_round="$names_next_round"
18366 for name in $names_this_round; do
18368 for n in $names_already_handled; do
18369 if test "$n" = "$name"; then
18370 already_handled=yes
18374 if test -z "$already_handled"; then
18375 names_already_handled="$names_already_handled $name"
18376 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18377 eval value=\"\$HAVE_LIB$uppername\"
18378 if test -n "$value"; then
18379 if test "$value" = yes; then
18380 eval value=\"\$LIB$uppername\"
18381 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18382 eval value=\"\$LTLIB$uppername\"
18383 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18392 if test $use_additional = yes; then
18393 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18394 found_dir="$additional_libdir"
18395 found_so="$additional_libdir/lib$name.$shlibext"
18396 if test -f "$additional_libdir/lib$name.la"; then
18397 found_la="$additional_libdir/lib$name.la"
18400 if test -f "$additional_libdir/lib$name.$libext"; then
18401 found_dir="$additional_libdir"
18402 found_a="$additional_libdir/lib$name.$libext"
18403 if test -f "$additional_libdir/lib$name.la"; then
18404 found_la="$additional_libdir/lib$name.la"
18409 if test "X$found_dir" = "X"; then
18410 for x in $LDFLAGS $LTLIBINTL; do
18412 acl_save_prefix="$prefix"
18413 prefix="$acl_final_prefix"
18414 acl_save_exec_prefix="$exec_prefix"
18415 exec_prefix="$acl_final_exec_prefix"
18417 exec_prefix="$acl_save_exec_prefix"
18418 prefix="$acl_save_prefix"
18422 dir=`echo "X$x" | sed -e 's/^X-L//'`
18423 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18425 found_so="$dir/lib$name.$shlibext"
18426 if test -f "$dir/lib$name.la"; then
18427 found_la="$dir/lib$name.la"
18430 if test -f "$dir/lib$name.$libext"; then
18432 found_a="$dir/lib$name.$libext"
18433 if test -f "$dir/lib$name.la"; then
18434 found_la="$dir/lib$name.la"
18440 if test "X$found_dir" != "X"; then
18445 if test "X$found_dir" != "X"; then
18446 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18447 if test "X$found_so" != "X"; then
18448 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18449 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18452 for x in $ltrpathdirs; do
18453 if test "X$x" = "X$found_dir"; then
18458 if test -z "$haveit"; then
18459 ltrpathdirs="$ltrpathdirs $found_dir"
18461 if test "$hardcode_direct" = yes; then
18462 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18464 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18465 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18467 for x in $rpathdirs; do
18468 if test "X$x" = "X$found_dir"; then
18473 if test -z "$haveit"; then
18474 rpathdirs="$rpathdirs $found_dir"
18478 for x in $LDFLAGS $LIBINTL; do
18480 acl_save_prefix="$prefix"
18481 prefix="$acl_final_prefix"
18482 acl_save_exec_prefix="$exec_prefix"
18483 exec_prefix="$acl_final_exec_prefix"
18485 exec_prefix="$acl_save_exec_prefix"
18486 prefix="$acl_save_prefix"
18488 if test "X$x" = "X-L$found_dir"; then
18493 if test -z "$haveit"; then
18494 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18496 if test "$hardcode_minus_L" != no; then
18497 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18499 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18505 if test "X$found_a" != "X"; then
18506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18508 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18511 additional_includedir=
18512 case "$found_dir" in
18514 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18515 additional_includedir="$basedir/include"
18518 if test "X$additional_includedir" != "X"; then
18519 if test "X$additional_includedir" != "X/usr/include"; then
18521 if test "X$additional_includedir" = "X/usr/local/include"; then
18522 if test -n "$GCC"; then
18524 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18528 if test -z "$haveit"; then
18529 for x in $CPPFLAGS $INCINTL; do
18531 acl_save_prefix="$prefix"
18532 prefix="$acl_final_prefix"
18533 acl_save_exec_prefix="$exec_prefix"
18534 exec_prefix="$acl_final_exec_prefix"
18536 exec_prefix="$acl_save_exec_prefix"
18537 prefix="$acl_save_prefix"
18539 if test "X$x" = "X-I$additional_includedir"; then
18544 if test -z "$haveit"; then
18545 if test -d "$additional_includedir"; then
18546 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18552 if test -n "$found_la"; then
18553 save_libdir="$libdir"
18554 case "$found_la" in
18555 */* | *\\*) . "$found_la" ;;
18556 *) . "./$found_la" ;;
18558 libdir="$save_libdir"
18559 for dep in $dependency_libs; do
18562 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18563 if test "X$additional_libdir" != "X/usr/lib"; then
18565 if test "X$additional_libdir" = "X/usr/local/lib"; then
18566 if test -n "$GCC"; then
18568 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18572 if test -z "$haveit"; then
18574 for x in $LDFLAGS $LIBINTL; do
18576 acl_save_prefix="$prefix"
18577 prefix="$acl_final_prefix"
18578 acl_save_exec_prefix="$exec_prefix"
18579 exec_prefix="$acl_final_exec_prefix"
18581 exec_prefix="$acl_save_exec_prefix"
18582 prefix="$acl_save_prefix"
18584 if test "X$x" = "X-L$additional_libdir"; then
18589 if test -z "$haveit"; then
18590 if test -d "$additional_libdir"; then
18591 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18595 for x in $LDFLAGS $LTLIBINTL; do
18597 acl_save_prefix="$prefix"
18598 prefix="$acl_final_prefix"
18599 acl_save_exec_prefix="$exec_prefix"
18600 exec_prefix="$acl_final_exec_prefix"
18602 exec_prefix="$acl_save_exec_prefix"
18603 prefix="$acl_save_prefix"
18605 if test "X$x" = "X-L$additional_libdir"; then
18610 if test -z "$haveit"; then
18611 if test -d "$additional_libdir"; then
18612 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18619 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18620 if test "$enable_rpath" != no; then
18622 for x in $rpathdirs; do
18623 if test "X$x" = "X$dir"; then
18628 if test -z "$haveit"; then
18629 rpathdirs="$rpathdirs $dir"
18632 for x in $ltrpathdirs; do
18633 if test "X$x" = "X$dir"; then
18638 if test -z "$haveit"; then
18639 ltrpathdirs="$ltrpathdirs $dir"
18644 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18650 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18651 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18657 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18658 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18664 if test "X$rpathdirs" != "X"; then
18665 if test -n "$hardcode_libdir_separator"; then
18667 for found_dir in $rpathdirs; do
18668 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18670 acl_save_libdir="$libdir"
18672 eval flag=\"$hardcode_libdir_flag_spec\"
18673 libdir="$acl_save_libdir"
18674 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18676 for found_dir in $rpathdirs; do
18677 acl_save_libdir="$libdir"
18678 libdir="$found_dir"
18679 eval flag=\"$hardcode_libdir_flag_spec\"
18680 libdir="$acl_save_libdir"
18681 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18685 if test "X$ltrpathdirs" != "X"; then
18686 for found_dir in $ltrpathdirs; do
18687 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18692 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18693 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18694 $as_echo_n "(cached) " >&6
18696 gt_save_CPPFLAGS="$CPPFLAGS"
18697 CPPFLAGS="$CPPFLAGS $INCINTL"
18698 gt_save_LIBS="$LIBS"
18699 LIBS="$LIBS $LIBINTL"
18700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h. */
18702 #include <libintl.h>
18703 extern int _nl_msg_cat_cntr;
18708 const char *_nl_expand_alias (const char *);
18712 bindtextdomain ("", "");
18713 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18718 if ac_fn_c_try_link "$LINENO"; then :
18719 gt_cv_func_gnugettext1_libintl=yes
18721 gt_cv_func_gnugettext1_libintl=no
18723 rm -f core conftest.err conftest.$ac_objext \
18724 conftest$ac_exeext conftest.$ac_ext
18725 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18726 LIBS="$LIBS $LIBICONV"
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18729 #include <libintl.h>
18730 extern int _nl_msg_cat_cntr;
18735 const char *_nl_expand_alias (const char *);
18739 bindtextdomain ("", "");
18740 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18745 if ac_fn_c_try_link "$LINENO"; then :
18746 LIBINTL="$LIBINTL $LIBICONV"
18747 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18748 gt_cv_func_gnugettext1_libintl=yes
18751 rm -f core conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18754 CPPFLAGS="$gt_save_CPPFLAGS"
18755 LIBS="$gt_save_LIBS"
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18758 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18761 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18762 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18763 && test "$PACKAGE" != gettext-runtime \
18764 && test "$PACKAGE" != gettext-tools; }; then
18765 gt_use_preinstalled_gnugettext=yes
18774 if test -n "$INTL_MACOSX_LIBS"; then
18775 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18776 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18777 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18778 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18782 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18783 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18785 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18793 $as_echo_n "checking whether to use NLS... " >&6; }
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18795 $as_echo "$USE_NLS" >&6; }
18796 if test "$USE_NLS" = "yes"; then
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18798 $as_echo_n "checking where the gettext function comes from... " >&6; }
18799 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18800 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18801 gt_source="external libintl"
18806 gt_source="included intl directory"
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18809 $as_echo "$gt_source" >&6; }
18812 if test "$USE_NLS" = "yes"; then
18814 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18815 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18817 $as_echo_n "checking how to link with libintl... " >&6; }
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18819 $as_echo "$LIBINTL" >&6; }
18821 for element in $INCINTL; do
18823 for x in $CPPFLAGS; do
18825 acl_save_prefix="$prefix"
18826 prefix="$acl_final_prefix"
18827 acl_save_exec_prefix="$exec_prefix"
18828 exec_prefix="$acl_final_exec_prefix"
18830 exec_prefix="$acl_save_exec_prefix"
18831 prefix="$acl_save_prefix"
18833 if test "X$x" = "X$element"; then
18838 if test -z "$haveit"; then
18839 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18846 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18849 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18858 INTLLIBS="$LIBINTL"
18866 os_name=`uname -s 2>/dev/null`
18867 if test x${prefix} = xNONE ; then
18868 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18869 sysconfdir=/etc/bacula
18872 if test `eval echo ${libdir}` = NONE/lib ; then
18875 os_processor=`uname -p 2>/dev/null`
18876 case ${os_processor} in
18891 if test `eval echo ${includedir}` = NONE/include ; then
18892 includedir=/usr/include
18895 if test `eval echo ${datarootdir}` = NONE/share ; then
18896 datarootdir=/usr/share
18901 if test x${exec_prefix} = xNONE ; then
18902 exec_prefix=${prefix}
18905 sysconfdir=`eval echo ${sysconfdir}`
18906 datarootdir=`eval echo ${datarootdir}`
18907 docdir=`eval echo ${docdir}`
18908 htmldir=`eval echo ${htmldir}`
18909 libdir=`eval echo ${libdir}`
18910 includedir=`eval echo ${includedir}`
18911 localedir=`eval echo ${datarootdir}/locale`
18912 cat >>confdefs.h <<_ACEOF
18913 #define SYSCONFDIR "$sysconfdir"
18916 cat >>confdefs.h <<_ACEOF
18917 #define LOCALEDIR "$localedir"
18921 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18922 sbindir=${exec_prefix}/sbin
18924 sbindir=`eval echo ${sbindir}`
18926 if test x$mandir = x'${prefix}/man' ; then
18927 mandir=/usr/share/man
18930 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18931 htmldir=`eval echo ${docdir}html`
18934 if test x$docdir = x'/usr/share/doc/' ; then
18935 docdir=`eval echo ${docdir}bacula`
18939 for ac_prog in msgfmt
18941 # Extract the first word of "$ac_prog", so it can be a program name with args.
18942 set dummy $ac_prog; ac_word=$2
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18944 $as_echo_n "checking for $ac_word... " >&6; }
18945 if ${ac_cv_path_MSGFMT+:} false; then :
18946 $as_echo_n "(cached) " >&6
18950 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18954 for as_dir in $PATH
18957 test -z "$as_dir" && as_dir=.
18958 for ac_exec_ext in '' $ac_executable_extensions; do
18959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18960 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18971 MSGFMT=$ac_cv_path_MSGFMT
18972 if test -n "$MSGFMT"; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18974 $as_echo "$MSGFMT" >&6; }
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18981 test -n "$MSGFMT" && break
18983 test -n "$MSGFMT" || MSGFMT="no"
18985 if test "$MSGFMT" = "no"
18987 echo 'msgfmt program not found, disabling NLS !'
18989 USE_INCLUDED_LIBINTL=no
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18993 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18994 if ${ac_cv_gnu_library_2+:} false; then :
18995 $as_echo_n "(cached) " >&6
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
19000 #include <features.h>
19001 #ifdef __GNU_LIBRARY__
19002 #if (__GLIBC__ >= 2)
19008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19009 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19010 ac_cv_gnu_library_2=yes
19012 ac_cv_gnu_library_2=no
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19020 $as_echo "$ac_cv_gnu_library_2" >&6; }
19022 GLIBC2="$ac_cv_gnu_library_2"
19025 if test -n "$ac_tool_prefix"; then
19026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19029 $as_echo_n "checking for $ac_word... " >&6; }
19030 if ${ac_cv_prog_RANLIB+:} false; then :
19031 $as_echo_n "(cached) " >&6
19033 if test -n "$RANLIB"; then
19034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19037 for as_dir in $PATH
19040 test -z "$as_dir" && as_dir=.
19041 for ac_exec_ext in '' $ac_executable_extensions; do
19042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19053 RANLIB=$ac_cv_prog_RANLIB
19054 if test -n "$RANLIB"; then
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19056 $as_echo "$RANLIB" >&6; }
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19064 if test -z "$ac_cv_prog_RANLIB"; then
19065 ac_ct_RANLIB=$RANLIB
19066 # Extract the first word of "ranlib", so it can be a program name with args.
19067 set dummy ranlib; ac_word=$2
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19069 $as_echo_n "checking for $ac_word... " >&6; }
19070 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19071 $as_echo_n "(cached) " >&6
19073 if test -n "$ac_ct_RANLIB"; then
19074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077 for as_dir in $PATH
19080 test -z "$as_dir" && as_dir=.
19081 for ac_exec_ext in '' $ac_executable_extensions; do
19082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19083 ac_cv_prog_ac_ct_RANLIB="ranlib"
19084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19094 if test -n "$ac_ct_RANLIB"; then
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19096 $as_echo "$ac_ct_RANLIB" >&6; }
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19099 $as_echo "no" >&6; }
19102 if test "x$ac_ct_RANLIB" = x; then
19105 case $cross_compiling:$ac_tool_warned in
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19109 ac_tool_warned=yes ;;
19111 RANLIB=$ac_ct_RANLIB
19114 RANLIB="$ac_cv_prog_RANLIB"
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19119 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19120 if ${ac_cv_lib_cposix_strerror+:} false; then :
19121 $as_echo_n "(cached) " >&6
19123 ac_check_lib_save_LIBS=$LIBS
19124 LIBS="-lcposix $LIBS"
19125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h. */
19128 /* Override any GCC internal prototype to avoid an error.
19129 Use char because int might match the return type of a GCC
19130 builtin and then its argument prototype would still apply. */
19138 return strerror ();
19143 if ac_fn_c_try_link "$LINENO"; then :
19144 ac_cv_lib_cposix_strerror=yes
19146 ac_cv_lib_cposix_strerror=no
19148 rm -f core conftest.err conftest.$ac_objext \
19149 conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19153 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19154 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19155 LIBS="$LIBS -lcposix"
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19161 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19162 if ${ac_cv_c_const+:} false; then :
19163 $as_echo_n "(cached) " >&6
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19172 #ifndef __cplusplus
19173 /* Ultrix mips cc rejects this sort of thing. */
19174 typedef int charset[2];
19175 const charset cs = { 0, 0 };
19176 /* SunOS 4.1.1 cc rejects this. */
19177 char const *const *pcpcc;
19179 /* NEC SVR4.0.2 mips cc rejects this. */
19180 struct point {int x, y;};
19181 static struct point const zero = {0,0};
19182 /* AIX XL C 1.02.0.0 rejects this.
19183 It does not let you subtract one const X* pointer from another in
19184 an arm of an if-expression whose if-part is not a constant
19186 const char *g = "string";
19187 pcpcc = &g + (g ? g-g : 0);
19188 /* HPUX 7.0 cc rejects these. */
19190 ppc = (char**) pcpcc;
19191 pcpcc = (char const *const *) ppc;
19192 { /* SCO 3.2v4 cc rejects this sort of thing. */
19195 char const *s = 0 ? (char *) 0 : (char const *) 0;
19200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19201 int x[] = {25, 17};
19202 const int *foo = &x[0];
19205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19206 typedef const int *iptr;
19210 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19212 struct s { int j; const int *ap[3]; } bx;
19213 struct s *b = &bx; b->j = 5;
19215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19216 const int foo = 10;
19217 if (!foo) return 0;
19219 return !cs[0] && !zero.x;
19226 if ac_fn_c_try_compile "$LINENO"; then :
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19234 $as_echo "$ac_cv_c_const" >&6; }
19235 if test $ac_cv_c_const = no; then
19237 $as_echo "#define const /**/" >>confdefs.h
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19243 $as_echo_n "checking for signed... " >&6; }
19244 if ${bh_cv_c_signed+:} false; then :
19245 $as_echo_n "(cached) " >&6
19247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248 /* end confdefs.h. */
19258 if ac_fn_c_try_compile "$LINENO"; then :
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19266 $as_echo "$bh_cv_c_signed" >&6; }
19267 if test $bh_cv_c_signed = no; then
19269 $as_echo "#define signed /**/" >>confdefs.h
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19274 $as_echo_n "checking for inline... " >&6; }
19275 if ${ac_cv_c_inline+:} false; then :
19276 $as_echo_n "(cached) " >&6
19279 for ac_kw in inline __inline__ __inline; do
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19282 #ifndef __cplusplus
19284 static $ac_kw foo_t static_foo () {return 0; }
19285 $ac_kw foo_t foo () {return 0; }
19289 if ac_fn_c_try_compile "$LINENO"; then :
19290 ac_cv_c_inline=$ac_kw
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293 test "$ac_cv_c_inline" != no && break
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19298 $as_echo "$ac_cv_c_inline" >&6; }
19300 case $ac_cv_c_inline in
19303 case $ac_cv_c_inline in
19305 *) ac_val=$ac_cv_c_inline;;
19307 cat >>confdefs.h <<_ACEOF
19308 #ifndef __cplusplus
19309 #define inline $ac_val
19315 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19316 if test "x$ac_cv_type_off_t" = xyes; then :
19320 cat >>confdefs.h <<_ACEOF
19321 #define off_t long int
19326 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19327 if test "x$ac_cv_type_size_t" = xyes; then :
19331 cat >>confdefs.h <<_ACEOF
19332 #define size_t unsigned int
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19339 $as_echo_n "checking for long long... " >&6; }
19340 if ${ac_cv_type_long_long+:} false; then :
19341 $as_echo_n "(cached) " >&6
19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19345 long long ll = 1LL; int i = 63;
19349 long long llmax = (long long) -1;
19350 return ll << i | ll >> i | llmax / ll | llmax % ll;
19355 if ac_fn_c_try_link "$LINENO"; then :
19356 ac_cv_type_long_long=yes
19358 ac_cv_type_long_long=no
19360 rm -f core conftest.err conftest.$ac_objext \
19361 conftest$ac_exeext conftest.$ac_ext
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19364 $as_echo "$ac_cv_type_long_long" >&6; }
19365 if test $ac_cv_type_long_long = yes; then
19367 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19373 $as_echo_n "checking for long double... " >&6; }
19374 if ${gt_cv_c_long_double+:} false; then :
19375 $as_echo_n "(cached) " >&6
19377 if test "$GCC" = yes; then
19378 gt_cv_c_long_double=yes
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19383 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19384 long double foo = 0.0;
19385 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19386 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19396 if ac_fn_c_try_compile "$LINENO"; then :
19397 gt_cv_c_long_double=yes
19399 gt_cv_c_long_double=no
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19405 $as_echo "$gt_cv_c_long_double" >&6; }
19406 if test $gt_cv_c_long_double = yes; then
19408 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19414 $as_echo_n "checking for wchar_t... " >&6; }
19415 if ${gt_cv_c_wchar_t+:} false; then :
19416 $as_echo_n "(cached) " >&6
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19420 #include <stddef.h>
19421 wchar_t foo = (wchar_t)'\0';
19430 if ac_fn_c_try_compile "$LINENO"; then :
19431 gt_cv_c_wchar_t=yes
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19438 $as_echo "$gt_cv_c_wchar_t" >&6; }
19439 if test $gt_cv_c_wchar_t = yes; then
19441 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19447 $as_echo_n "checking for wint_t... " >&6; }
19448 if ${gt_cv_c_wint_t+:} false; then :
19449 $as_echo_n "(cached) " >&6
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19454 wint_t foo = (wchar_t)'\0';
19463 if ac_fn_c_try_compile "$LINENO"; then :
19468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19471 $as_echo "$gt_cv_c_wint_t" >&6; }
19472 if test $gt_cv_c_wint_t = yes; then
19474 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19480 $as_echo_n "checking for inttypes.h... " >&6; }
19481 if ${gl_cv_header_inttypes_h+:} false; then :
19482 $as_echo_n "(cached) " >&6
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19486 #include <sys/types.h>
19487 #include <inttypes.h>
19491 uintmax_t i = (uintmax_t) -1;
19496 if ac_fn_c_try_compile "$LINENO"; then :
19497 gl_cv_header_inttypes_h=yes
19499 gl_cv_header_inttypes_h=no
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19504 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19505 if test $gl_cv_header_inttypes_h = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19515 $as_echo_n "checking for stdint.h... " >&6; }
19516 if ${gl_cv_header_stdint_h+:} false; then :
19517 $as_echo_n "(cached) " >&6
19519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520 /* end confdefs.h. */
19521 #include <sys/types.h>
19522 #include <stdint.h>
19526 uintmax_t i = (uintmax_t) -1;
19531 if ac_fn_c_try_compile "$LINENO"; then :
19532 gl_cv_header_stdint_h=yes
19534 gl_cv_header_stdint_h=no
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19539 $as_echo "$gl_cv_header_stdint_h" >&6; }
19540 if test $gl_cv_header_stdint_h = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_STDINT_H_WITH_UINTMAX 1
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19552 $as_echo_n "checking for intmax_t... " >&6; }
19553 if ${gt_cv_c_intmax_t+:} false; then :
19554 $as_echo_n "(cached) " >&6
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19559 #include <stddef.h>
19560 #include <stdlib.h>
19561 #if HAVE_STDINT_H_WITH_UINTMAX
19562 #include <stdint.h>
19564 #if HAVE_INTTYPES_H_WITH_UINTMAX
19565 #include <inttypes.h>
19576 if ac_fn_c_try_compile "$LINENO"; then :
19577 gt_cv_c_intmax_t=yes
19579 gt_cv_c_intmax_t=no
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19584 $as_echo "$gt_cv_c_intmax_t" >&6; }
19585 if test $gt_cv_c_intmax_t = yes; then
19587 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19594 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19595 if ${gt_cv_func_printf_posix+:} false; then :
19596 $as_echo_n "(cached) " >&6
19599 if test "$cross_compiling" = yes; then :
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19604 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19610 $EGREP "notposix" >/dev/null 2>&1; then :
19611 gt_cv_func_printf_posix="guessing no"
19613 gt_cv_func_printf_posix="guessing yes"
19619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19623 #include <string.h>
19624 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19625 dollar expansion (possibly an autoconf bug). */
19626 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19627 static char buf[100];
19630 sprintf (buf, format, 33, 55);
19631 return (strcmp (buf, "55 33") != 0);
19634 if ac_fn_c_try_run "$LINENO"; then :
19635 gt_cv_func_printf_posix=yes
19637 gt_cv_func_printf_posix=no
19639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19640 conftest.$ac_objext conftest.beam conftest.$ac_ext
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19646 $as_echo "$gt_cv_func_printf_posix" >&6; }
19647 case $gt_cv_func_printf_posix in
19650 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19656 # for constant arguments. Useless!
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19658 $as_echo_n "checking for working alloca.h... " >&6; }
19659 if ${ac_cv_working_alloca_h+:} false; then :
19660 $as_echo_n "(cached) " >&6
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h. */
19664 #include <alloca.h>
19668 char *p = (char *) alloca (2 * sizeof (int));
19674 if ac_fn_c_try_link "$LINENO"; then :
19675 ac_cv_working_alloca_h=yes
19677 ac_cv_working_alloca_h=no
19679 rm -f core conftest.err conftest.$ac_objext \
19680 conftest$ac_exeext conftest.$ac_ext
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19683 $as_echo "$ac_cv_working_alloca_h" >&6; }
19684 if test $ac_cv_working_alloca_h = yes; then
19686 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19691 $as_echo_n "checking for alloca... " >&6; }
19692 if ${ac_cv_func_alloca_works+:} false; then :
19693 $as_echo_n "(cached) " >&6
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19698 # define alloca __builtin_alloca
19701 # include <malloc.h>
19702 # define alloca _alloca
19704 # ifdef HAVE_ALLOCA_H
19705 # include <alloca.h>
19710 # ifndef alloca /* predefined by HP cc +Olibcalls */
19711 void *alloca (size_t);
19721 char *p = (char *) alloca (1);
19727 if ac_fn_c_try_link "$LINENO"; then :
19728 ac_cv_func_alloca_works=yes
19730 ac_cv_func_alloca_works=no
19732 rm -f core conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19736 $as_echo "$ac_cv_func_alloca_works" >&6; }
19738 if test $ac_cv_func_alloca_works = yes; then
19740 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19743 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19744 # that cause trouble. Some versions do not even contain alloca or
19745 # contain a buggy version. If you still want to use their alloca,
19746 # use ar to extract alloca.o from them instead of compiling alloca.c.
19748 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19750 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19754 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19755 if ${ac_cv_os_cray+:} false; then :
19756 $as_echo_n "(cached) " >&6
19758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759 /* end confdefs.h. */
19760 #if defined CRAY && ! defined CRAY2
19767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19768 $EGREP "webecray" >/dev/null 2>&1; then :
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19777 $as_echo "$ac_cv_os_cray" >&6; }
19778 if test $ac_cv_os_cray = yes; then
19779 for ac_func in _getb67 GETB67 getb67; do
19780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19781 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19782 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19784 cat >>confdefs.h <<_ACEOF
19785 #define CRAY_STACKSEG_END $ac_func
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19795 $as_echo_n "checking stack direction for C alloca... " >&6; }
19796 if ${ac_cv_c_stack_direction+:} false; then :
19797 $as_echo_n "(cached) " >&6
19799 if test "$cross_compiling" = yes; then :
19800 ac_cv_c_stack_direction=0
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19804 $ac_includes_default
19806 find_stack_direction (int *addr, int depth)
19808 int dir, dummy = 0;
19811 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19812 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19813 return dir + dummy;
19817 main (int argc, char **argv)
19819 return find_stack_direction (0, argc + !argv + 20) < 0;
19822 if ac_fn_c_try_run "$LINENO"; then :
19823 ac_cv_c_stack_direction=1
19825 ac_cv_c_stack_direction=-1
19827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19828 conftest.$ac_objext conftest.beam conftest.$ac_ext
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19833 $as_echo "$ac_cv_c_stack_direction" >&6; }
19834 cat >>confdefs.h <<_ACEOF
19835 #define STACK_DIRECTION $ac_cv_c_stack_direction
19844 for ac_header in $ac_header_list
19846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19850 cat >>confdefs.h <<_ACEOF
19851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19865 for ac_func in getpagesize
19867 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19868 if test "x$ac_cv_func_getpagesize" = xyes; then :
19869 cat >>confdefs.h <<_ACEOF
19870 #define HAVE_GETPAGESIZE 1
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19877 $as_echo_n "checking for working mmap... " >&6; }
19878 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19879 $as_echo_n "(cached) " >&6
19881 if test "$cross_compiling" = yes; then :
19882 ac_cv_func_mmap_fixed_mapped=no
19884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h. */
19886 $ac_includes_default
19887 /* malloc might have been renamed as rpl_malloc. */
19890 /* Thanks to Mike Haertel and Jim Avera for this test.
19891 Here is a matrix of mmap possibilities:
19892 mmap private not fixed
19893 mmap private fixed at somewhere currently unmapped
19894 mmap private fixed at somewhere already mapped
19895 mmap shared not fixed
19896 mmap shared fixed at somewhere currently unmapped
19897 mmap shared fixed at somewhere already mapped
19898 For private mappings, we should verify that changes cannot be read()
19899 back from the file, nor mmap's back from the file at a different
19900 address. (There have been systems where private was not correctly
19901 implemented like the infamous i386 svr4.0, and systems where the
19902 VM page cache was not coherent with the file system buffer cache
19903 like early versions of FreeBSD and possibly contemporary NetBSD.)
19904 For shared mappings, we should conversely verify that changes get
19905 propagated back to all the places they're supposed to be.
19907 Grep wants private fixed already mapped.
19908 The main things grep needs to know about mmap are:
19909 * does it exist and is it safe to write into the mmap'd area
19910 * how to use it (BSD variants) */
19913 #include <sys/mman.h>
19915 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19919 /* This mess was copied from the GNU getpagesize.h. */
19920 #ifndef HAVE_GETPAGESIZE
19921 # ifdef _SC_PAGESIZE
19922 # define getpagesize() sysconf(_SC_PAGESIZE)
19923 # else /* no _SC_PAGESIZE */
19924 # ifdef HAVE_SYS_PARAM_H
19925 # include <sys/param.h>
19926 # ifdef EXEC_PAGESIZE
19927 # define getpagesize() EXEC_PAGESIZE
19928 # else /* no EXEC_PAGESIZE */
19930 # define getpagesize() NBPG * CLSIZE
19933 # endif /* no CLSIZE */
19934 # else /* no NBPG */
19936 # define getpagesize() NBPC
19937 # else /* no NBPC */
19939 # define getpagesize() PAGESIZE
19940 # endif /* PAGESIZE */
19941 # endif /* no NBPC */
19942 # endif /* no NBPG */
19943 # endif /* no EXEC_PAGESIZE */
19944 # else /* no HAVE_SYS_PARAM_H */
19945 # define getpagesize() 8192 /* punt totally */
19946 # endif /* no HAVE_SYS_PARAM_H */
19947 # endif /* no _SC_PAGESIZE */
19949 #endif /* no HAVE_GETPAGESIZE */
19954 char *data, *data2, *data3;
19955 const char *cdata2;
19959 pagesize = getpagesize ();
19961 /* First, make a file with some known garbage in it. */
19962 data = (char *) malloc (pagesize);
19965 for (i = 0; i < pagesize; ++i)
19966 *(data + i) = rand ();
19968 fd = creat ("conftest.mmap", 0600);
19971 if (write (fd, data, pagesize) != pagesize)
19975 /* Next, check that the tail of a page is zero-filled. File must have
19976 non-zero length, otherwise we risk SIGBUS for entire page. */
19977 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19981 if (write (fd2, cdata2, 1) != 1)
19983 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19984 if (data2 == MAP_FAILED)
19986 for (i = 0; i < pagesize; ++i)
19990 if (munmap (data2, pagesize))
19993 /* Next, try to mmap the file at a fixed address which already has
19994 something else allocated at it. If we can, also make sure that
19995 we see the same garbage. */
19996 fd = open ("conftest.mmap", O_RDWR);
19999 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20000 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20002 for (i = 0; i < pagesize; ++i)
20003 if (*(data + i) != *(data2 + i))
20006 /* Finally, make sure that changes to the mapped area do not
20007 percolate back to the file as seen by read(). (This is a bug on
20008 some variants of i386 svr4.0.) */
20009 for (i = 0; i < pagesize; ++i)
20010 *(data2 + i) = *(data2 + i) + 1;
20011 data3 = (char *) malloc (pagesize);
20014 if (read (fd, data3, pagesize) != pagesize)
20016 for (i = 0; i < pagesize; ++i)
20017 if (*(data + i) != *(data3 + i))
20023 if ac_fn_c_try_run "$LINENO"; then :
20024 ac_cv_func_mmap_fixed_mapped=yes
20026 ac_cv_func_mmap_fixed_mapped=no
20028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20029 conftest.$ac_objext conftest.beam conftest.$ac_ext
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20034 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20035 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20037 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20040 rm -f conftest.mmap conftest.txt
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20044 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20045 if ${ac_cv_gnu_library_2_1+:} false; then :
20046 $as_echo_n "(cached) " >&6
20048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h. */
20051 #include <features.h>
20052 #ifdef __GNU_LIBRARY__
20053 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20060 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20061 ac_cv_gnu_library_2_1=yes
20063 ac_cv_gnu_library_2_1=no
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20071 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20073 GLIBC21="$ac_cv_gnu_library_2_1"
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20079 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20080 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20081 $as_echo_n "(cached) " >&6
20084 if test "$cross_compiling" = yes; then :
20086 # Guess based on the CPU.
20087 case "$host_cpu" in
20088 alpha* | i3456786 | m68k | s390*)
20089 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20091 gt_cv_int_divbyzero_sigfpe="guessing no";;
20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096 /* end confdefs.h. */
20098 #include <stdlib.h>
20099 #include <signal.h>
20103 sigfpe_handler (int sig)
20105 sigfpe_handler (sig) int sig;
20108 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20109 exit (sig != SIGFPE);
20119 signal (SIGFPE, sigfpe_handler);
20120 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20121 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20122 signal (SIGTRAP, sigfpe_handler);
20124 /* Linux/SPARC yields signal SIGILL. */
20125 #if defined (__sparc__) && defined (__linux__)
20126 signal (SIGILL, sigfpe_handler);
20135 if ac_fn_c_try_run "$LINENO"; then :
20136 gt_cv_int_divbyzero_sigfpe=yes
20138 gt_cv_int_divbyzero_sigfpe=no
20140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20141 conftest.$ac_objext conftest.beam conftest.$ac_ext
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20147 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20148 case "$gt_cv_int_divbyzero_sigfpe" in
20153 cat >>confdefs.h <<_ACEOF
20154 #define INTDIV0_RAISES_SIGFPE $value
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20160 $as_echo_n "checking for unsigned long long... " >&6; }
20161 if ${ac_cv_type_unsigned_long_long+:} false; then :
20162 $as_echo_n "(cached) " >&6
20164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20166 unsigned long long ull = 1ULL; int i = 63;
20170 unsigned long long ullmax = (unsigned long long) -1;
20171 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20176 if ac_fn_c_try_link "$LINENO"; then :
20177 ac_cv_type_unsigned_long_long=yes
20179 ac_cv_type_unsigned_long_long=no
20181 rm -f core conftest.err conftest.$ac_objext \
20182 conftest$ac_exeext conftest.$ac_ext
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20185 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20186 if test $ac_cv_type_unsigned_long_long = yes; then
20188 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20195 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20197 test $ac_cv_type_unsigned_long_long = yes \
20198 && ac_type='unsigned long long' \
20199 || ac_type='unsigned long'
20201 cat >>confdefs.h <<_ACEOF
20202 #define uintmax_t $ac_type
20207 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20213 $as_echo_n "checking for inttypes.h... " >&6; }
20214 if ${gt_cv_header_inttypes_h+:} false; then :
20215 $as_echo_n "(cached) " >&6
20218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20219 /* end confdefs.h. */
20220 #include <sys/types.h>
20221 #include <inttypes.h>
20230 if ac_fn_c_try_compile "$LINENO"; then :
20231 gt_cv_header_inttypes_h=yes
20233 gt_cv_header_inttypes_h=no
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20239 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20240 if test $gt_cv_header_inttypes_h = yes; then
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_INTTYPES_H 1
20250 if test $gt_cv_header_inttypes_h = yes; then
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20252 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20253 if ${gt_cv_inttypes_pri_broken+:} false; then :
20254 $as_echo_n "(cached) " >&6
20257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20258 /* end confdefs.h. */
20259 #include <inttypes.h>
20272 if ac_fn_c_try_compile "$LINENO"; then :
20273 gt_cv_inttypes_pri_broken=no
20275 gt_cv_inttypes_pri_broken=yes
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20281 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20283 if test "$gt_cv_inttypes_pri_broken" = yes; then
20285 cat >>confdefs.h <<_ACEOF
20286 #define PRI_MACROS_BROKEN 1
20292 for ac_header in stdint.h
20294 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20295 if test "x$ac_cv_header_stdint_h" = xyes; then :
20296 cat >>confdefs.h <<_ACEOF
20297 #define HAVE_STDINT_H 1
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20305 $as_echo_n "checking for SIZE_MAX... " >&6; }
20307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h. */
20310 #include <limits.h>
20312 #include <stdint.h>
20319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20320 $EGREP "Found it" >/dev/null 2>&1; then :
20325 if test -z "$result"; then
20326 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20333 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20340 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20347 if test "$fits_in_uint" = 1; then
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20350 #include <stddef.h>
20352 extern unsigned long foo;
20362 if ac_fn_c_try_compile "$LINENO"; then :
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367 if test -z "$result"; then
20368 if test "$fits_in_uint" = 1; then
20369 result="$res_hi$res_lo"U
20371 result="$res_hi$res_lo"UL
20374 result='~(size_t)0'
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20378 $as_echo "$result" >&6; }
20379 if test "$result" != yes; then
20381 cat >>confdefs.h <<_ACEOF
20382 #define SIZE_MAX $result
20390 for ac_header in stdint.h
20392 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20393 if test "x$ac_cv_header_stdint_h" = xyes; then :
20394 cat >>confdefs.h <<_ACEOF
20395 #define HAVE_STDINT_H 1
20409 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20410 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20414 $as_echo "#define ptrdiff_t long" >>confdefs.h
20419 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20420 stdlib.h string.h unistd.h sys/param.h
20422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20425 cat >>confdefs.h <<_ACEOF
20426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20433 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20434 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20435 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20441 cat >>confdefs.h <<_ACEOF
20442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20451 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20452 if ${ac_cv_have_decl__snprintf+:} false; then :
20453 $as_echo_n "(cached) " >&6
20455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456 /* end confdefs.h. */
20463 char *p = (char *) _snprintf;
20470 if ac_fn_c_try_compile "$LINENO"; then :
20471 ac_cv_have_decl__snprintf=yes
20473 ac_cv_have_decl__snprintf=no
20475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20478 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20479 if test $ac_cv_have_decl__snprintf = yes; then
20485 cat >>confdefs.h <<_ACEOF
20486 #define HAVE_DECL__SNPRINTF $gt_value
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20492 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20493 if ${ac_cv_have_decl__snwprintf+:} false; then :
20494 $as_echo_n "(cached) " >&6
20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h. */
20504 char *p = (char *) _snwprintf;
20511 if ac_fn_c_try_compile "$LINENO"; then :
20512 ac_cv_have_decl__snwprintf=yes
20514 ac_cv_have_decl__snwprintf=no
20516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20519 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20520 if test $ac_cv_have_decl__snwprintf = yes; then
20526 cat >>confdefs.h <<_ACEOF
20527 #define HAVE_DECL__SNWPRINTF $gt_value
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20534 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20535 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20536 $as_echo_n "(cached) " >&6
20538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539 /* end confdefs.h. */
20545 #ifndef feof_unlocked
20546 char *p = (char *) feof_unlocked;
20553 if ac_fn_c_try_compile "$LINENO"; then :
20554 ac_cv_have_decl_feof_unlocked=yes
20556 ac_cv_have_decl_feof_unlocked=no
20558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20561 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20562 if test $ac_cv_have_decl_feof_unlocked = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20575 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20576 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20577 $as_echo_n "(cached) " >&6
20579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h. */
20586 #ifndef fgets_unlocked
20587 char *p = (char *) fgets_unlocked;
20594 if ac_fn_c_try_compile "$LINENO"; then :
20595 ac_cv_have_decl_fgets_unlocked=yes
20597 ac_cv_have_decl_fgets_unlocked=no
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20602 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20603 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20616 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20617 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20618 $as_echo_n "(cached) " >&6
20620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h. */
20627 #ifndef getc_unlocked
20628 char *p = (char *) getc_unlocked;
20635 if ac_fn_c_try_compile "$LINENO"; then :
20636 ac_cv_have_decl_getc_unlocked=yes
20638 ac_cv_have_decl_getc_unlocked=no
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20643 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20644 if test $ac_cv_have_decl_getc_unlocked = yes; then
20650 cat >>confdefs.h <<_ACEOF
20651 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20656 case $gt_cv_func_printf_posix in
20657 *yes) HAVE_POSIX_PRINTF=1 ;;
20658 *) HAVE_POSIX_PRINTF=0 ;;
20661 if test "$ac_cv_func_asprintf" = yes; then
20667 if test "$ac_cv_func_snprintf" = yes; then
20673 if test "$ac_cv_func_wprintf" = yes; then
20685 am_save_CPPFLAGS="$CPPFLAGS"
20687 for element in $INCICONV; do
20689 for x in $CPPFLAGS; do
20691 acl_save_prefix="$prefix"
20692 prefix="$acl_final_prefix"
20693 acl_save_exec_prefix="$exec_prefix"
20694 exec_prefix="$acl_final_exec_prefix"
20696 exec_prefix="$acl_save_exec_prefix"
20697 prefix="$acl_save_prefix"
20699 if test "X$x" = "X$element"; then
20704 if test -z "$haveit"; then
20705 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20711 $as_echo_n "checking for iconv... " >&6; }
20712 if ${am_cv_func_iconv+:} false; then :
20713 $as_echo_n "(cached) " >&6
20716 am_cv_func_iconv="no, consider installing GNU libiconv"
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720 #include <stdlib.h>
20725 iconv_t cd = iconv_open("","");
20726 iconv(cd,NULL,NULL,NULL,NULL);
20732 if ac_fn_c_try_link "$LINENO"; then :
20733 am_cv_func_iconv=yes
20735 rm -f core conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
20737 if test "$am_cv_func_iconv" != yes; then
20738 am_save_LIBS="$LIBS"
20739 LIBS="$LIBS $LIBICONV"
20740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741 /* end confdefs.h. */
20742 #include <stdlib.h>
20747 iconv_t cd = iconv_open("","");
20748 iconv(cd,NULL,NULL,NULL,NULL);
20754 if ac_fn_c_try_link "$LINENO"; then :
20755 am_cv_lib_iconv=yes
20756 am_cv_func_iconv=yes
20758 rm -f core conftest.err conftest.$ac_objext \
20759 conftest$ac_exeext conftest.$ac_ext
20760 LIBS="$am_save_LIBS"
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20765 $as_echo "$am_cv_func_iconv" >&6; }
20766 if test "$am_cv_func_iconv" = yes; then
20768 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20771 if test "$am_cv_lib_iconv" = yes; then
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20773 $as_echo_n "checking how to link with libiconv... " >&6; }
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20775 $as_echo "$LIBICONV" >&6; }
20777 CPPFLAGS="$am_save_CPPFLAGS"
20784 if test "$am_cv_func_iconv" = yes; then
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20786 $as_echo_n "checking for iconv declaration... " >&6; }
20787 if ${am_cv_proto_iconv+:} false; then :
20788 $as_echo_n "(cached) " >&6
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20794 #include <stdlib.h>
20800 #if defined(__STDC__) || defined(__cplusplus)
20801 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20814 if ac_fn_c_try_compile "$LINENO"; then :
20815 am_cv_proto_iconv_arg1=""
20817 am_cv_proto_iconv_arg1="const"
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20820 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);"
20823 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20825 }$am_cv_proto_iconv" >&5
20827 }$am_cv_proto_iconv" >&6; }
20829 cat >>confdefs.h <<_ACEOF
20830 #define ICONV_CONST $am_cv_proto_iconv_arg1
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20837 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20838 if ${am_cv_langinfo_codeset+:} false; then :
20839 $as_echo_n "(cached) " >&6
20841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h. */
20843 #include <langinfo.h>
20847 char* cs = nl_langinfo(CODESET);
20852 if ac_fn_c_try_link "$LINENO"; then :
20853 am_cv_langinfo_codeset=yes
20855 am_cv_langinfo_codeset=no
20857 rm -f core conftest.err conftest.$ac_objext \
20858 conftest$ac_exeext conftest.$ac_ext
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20862 $as_echo "$am_cv_langinfo_codeset" >&6; }
20863 if test $am_cv_langinfo_codeset = yes; then
20865 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20869 if test $ac_cv_header_locale_h = yes; then
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20872 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20873 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20874 $as_echo_n "(cached) " >&6
20876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h. */
20878 #include <locale.h>
20887 if ac_fn_c_try_link "$LINENO"; then :
20888 gt_cv_val_LC_MESSAGES=yes
20890 gt_cv_val_LC_MESSAGES=no
20892 rm -f core conftest.err conftest.$ac_objext \
20893 conftest$ac_exeext conftest.$ac_ext
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20896 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20897 if test $gt_cv_val_LC_MESSAGES = yes; then
20899 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20905 if test -n "$INTL_MACOSX_LIBS"; then
20906 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20909 for ac_prog in bison
20911 # Extract the first word of "$ac_prog", so it can be a program name with args.
20912 set dummy $ac_prog; ac_word=$2
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20914 $as_echo_n "checking for $ac_word... " >&6; }
20915 if ${ac_cv_prog_INTLBISON+:} false; then :
20916 $as_echo_n "(cached) " >&6
20918 if test -n "$INTLBISON"; then
20919 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20922 for as_dir in $PATH
20925 test -z "$as_dir" && as_dir=.
20926 for ac_exec_ext in '' $ac_executable_extensions; do
20927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20928 ac_cv_prog_INTLBISON="$ac_prog"
20929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20938 INTLBISON=$ac_cv_prog_INTLBISON
20939 if test -n "$INTLBISON"; then
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20941 $as_echo "$INTLBISON" >&6; }
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20944 $as_echo "no" >&6; }
20948 test -n "$INTLBISON" && break
20951 if test -z "$INTLBISON"; then
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20955 $as_echo_n "checking version of bison... " >&6; }
20956 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20957 case $ac_prog_version in
20958 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20959 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20960 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20961 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20964 $as_echo "$ac_prog_version" >&6; }
20966 if test $ac_verc_fail = yes; then
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20986 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20987 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20988 $as_echo_n "(cached) " >&6
20990 gt_save_CPPFLAGS="$CPPFLAGS"
20991 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20992 gt_save_LIBS="$LIBS"
20993 LIBS="$LIBS -framework CoreFoundation"
20994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h. */
20996 #include <CFPreferences.h>
21000 CFPreferencesCopyAppValue(NULL, NULL)
21005 if ac_fn_c_try_link "$LINENO"; then :
21006 gt_cv_func_CFPreferencesCopyAppValue=yes
21008 gt_cv_func_CFPreferencesCopyAppValue=no
21010 rm -f core conftest.err conftest.$ac_objext \
21011 conftest$ac_exeext conftest.$ac_ext
21012 CPPFLAGS="$gt_save_CPPFLAGS"
21013 LIBS="$gt_save_LIBS"
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21016 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21017 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21019 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21023 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21024 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21025 $as_echo_n "(cached) " >&6
21027 gt_save_CPPFLAGS="$CPPFLAGS"
21028 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21029 gt_save_LIBS="$LIBS"
21030 LIBS="$LIBS -framework CoreFoundation"
21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h. */
21033 #include <CFLocale.h>
21037 CFLocaleCopyCurrent();
21042 if ac_fn_c_try_link "$LINENO"; then :
21043 gt_cv_func_CFLocaleCopyCurrent=yes
21045 gt_cv_func_CFLocaleCopyCurrent=no
21047 rm -f core conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21049 CPPFLAGS="$gt_save_CPPFLAGS"
21050 LIBS="$gt_save_LIBS"
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21053 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21054 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21056 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21060 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21061 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21068 $as_echo_n "checking whether NLS is requested... " >&6; }
21069 # Check whether --enable-nls was given.
21070 if test "${enable_nls+set}" = set; then :
21071 enableval=$enable_nls; USE_NLS=$enableval
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21077 $as_echo "$USE_NLS" >&6; }
21082 BUILD_INCLUDED_LIBINTL=no
21083 USE_INCLUDED_LIBINTL=no
21089 if test "$USE_NLS" = "yes"; then
21090 gt_use_preinstalled_gnugettext=no
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21093 $as_echo_n "checking whether included gettext is requested... " >&6; }
21095 # Check whether --with-included-gettext was given.
21096 if test "${with_included_gettext+set}" = set; then :
21097 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21099 nls_cv_force_use_gnu_gettext=no
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21103 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21105 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21106 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21114 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21115 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21116 $as_echo_n "(cached) " >&6
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21120 #include <libintl.h>
21121 extern int _nl_msg_cat_cntr;
21122 extern int *_nl_domain_bindings;
21126 bindtextdomain ("", "");
21127 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21132 if ac_fn_c_try_link "$LINENO"; then :
21133 gt_cv_func_gnugettext1_libc=yes
21135 gt_cv_func_gnugettext1_libc=no
21137 rm -f core conftest.err conftest.$ac_objext \
21138 conftest$ac_exeext conftest.$ac_ext
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21141 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21143 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21149 acl_save_prefix="$prefix"
21150 prefix="$acl_final_prefix"
21151 acl_save_exec_prefix="$exec_prefix"
21152 exec_prefix="$acl_final_exec_prefix"
21154 eval additional_includedir=\"$includedir\"
21155 eval additional_libdir=\"$libdir\"
21157 exec_prefix="$acl_save_exec_prefix"
21158 prefix="$acl_save_prefix"
21161 # Check whether --with-libintl-prefix was given.
21162 if test "${with_libintl_prefix+set}" = set; then :
21163 withval=$with_libintl_prefix;
21164 if test "X$withval" = "Xno"; then
21167 if test "X$withval" = "X"; then
21169 acl_save_prefix="$prefix"
21170 prefix="$acl_final_prefix"
21171 acl_save_exec_prefix="$exec_prefix"
21172 exec_prefix="$acl_final_exec_prefix"
21174 eval additional_includedir=\"$includedir\"
21175 eval additional_libdir=\"$libdir\"
21177 exec_prefix="$acl_save_exec_prefix"
21178 prefix="$acl_save_prefix"
21181 additional_includedir="$withval/include"
21182 additional_libdir="$withval/lib"
21193 names_already_handled=
21194 names_next_round='intl '
21195 while test -n "$names_next_round"; do
21196 names_this_round="$names_next_round"
21198 for name in $names_this_round; do
21200 for n in $names_already_handled; do
21201 if test "$n" = "$name"; then
21202 already_handled=yes
21206 if test -z "$already_handled"; then
21207 names_already_handled="$names_already_handled $name"
21208 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21209 eval value=\"\$HAVE_LIB$uppername\"
21210 if test -n "$value"; then
21211 if test "$value" = yes; then
21212 eval value=\"\$LIB$uppername\"
21213 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21214 eval value=\"\$LTLIB$uppername\"
21215 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21224 if test $use_additional = yes; then
21225 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21226 found_dir="$additional_libdir"
21227 found_so="$additional_libdir/lib$name.$shlibext"
21228 if test -f "$additional_libdir/lib$name.la"; then
21229 found_la="$additional_libdir/lib$name.la"
21232 if test -f "$additional_libdir/lib$name.$libext"; then
21233 found_dir="$additional_libdir"
21234 found_a="$additional_libdir/lib$name.$libext"
21235 if test -f "$additional_libdir/lib$name.la"; then
21236 found_la="$additional_libdir/lib$name.la"
21241 if test "X$found_dir" = "X"; then
21242 for x in $LDFLAGS $LTLIBINTL; do
21244 acl_save_prefix="$prefix"
21245 prefix="$acl_final_prefix"
21246 acl_save_exec_prefix="$exec_prefix"
21247 exec_prefix="$acl_final_exec_prefix"
21249 exec_prefix="$acl_save_exec_prefix"
21250 prefix="$acl_save_prefix"
21254 dir=`echo "X$x" | sed -e 's/^X-L//'`
21255 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21257 found_so="$dir/lib$name.$shlibext"
21258 if test -f "$dir/lib$name.la"; then
21259 found_la="$dir/lib$name.la"
21262 if test -f "$dir/lib$name.$libext"; then
21264 found_a="$dir/lib$name.$libext"
21265 if test -f "$dir/lib$name.la"; then
21266 found_la="$dir/lib$name.la"
21272 if test "X$found_dir" != "X"; then
21277 if test "X$found_dir" != "X"; then
21278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21279 if test "X$found_so" != "X"; then
21280 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21284 for x in $ltrpathdirs; do
21285 if test "X$x" = "X$found_dir"; then
21290 if test -z "$haveit"; then
21291 ltrpathdirs="$ltrpathdirs $found_dir"
21293 if test "$hardcode_direct" = yes; then
21294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21296 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21299 for x in $rpathdirs; do
21300 if test "X$x" = "X$found_dir"; then
21305 if test -z "$haveit"; then
21306 rpathdirs="$rpathdirs $found_dir"
21310 for x in $LDFLAGS $LIBINTL; do
21312 acl_save_prefix="$prefix"
21313 prefix="$acl_final_prefix"
21314 acl_save_exec_prefix="$exec_prefix"
21315 exec_prefix="$acl_final_exec_prefix"
21317 exec_prefix="$acl_save_exec_prefix"
21318 prefix="$acl_save_prefix"
21320 if test "X$x" = "X-L$found_dir"; then
21325 if test -z "$haveit"; then
21326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21328 if test "$hardcode_minus_L" != no; then
21329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21337 if test "X$found_a" != "X"; then
21338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21340 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21343 additional_includedir=
21344 case "$found_dir" in
21346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21347 additional_includedir="$basedir/include"
21350 if test "X$additional_includedir" != "X"; then
21351 if test "X$additional_includedir" != "X/usr/include"; then
21353 if test "X$additional_includedir" = "X/usr/local/include"; then
21354 if test -n "$GCC"; then
21356 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21360 if test -z "$haveit"; then
21361 for x in $CPPFLAGS $INCINTL; do
21363 acl_save_prefix="$prefix"
21364 prefix="$acl_final_prefix"
21365 acl_save_exec_prefix="$exec_prefix"
21366 exec_prefix="$acl_final_exec_prefix"
21368 exec_prefix="$acl_save_exec_prefix"
21369 prefix="$acl_save_prefix"
21371 if test "X$x" = "X-I$additional_includedir"; then
21376 if test -z "$haveit"; then
21377 if test -d "$additional_includedir"; then
21378 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21384 if test -n "$found_la"; then
21385 save_libdir="$libdir"
21386 case "$found_la" in
21387 */* | *\\*) . "$found_la" ;;
21388 *) . "./$found_la" ;;
21390 libdir="$save_libdir"
21391 for dep in $dependency_libs; do
21394 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21395 if test "X$additional_libdir" != "X/usr/lib"; then
21397 if test "X$additional_libdir" = "X/usr/local/lib"; then
21398 if test -n "$GCC"; then
21400 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21404 if test -z "$haveit"; then
21406 for x in $LDFLAGS $LIBINTL; do
21408 acl_save_prefix="$prefix"
21409 prefix="$acl_final_prefix"
21410 acl_save_exec_prefix="$exec_prefix"
21411 exec_prefix="$acl_final_exec_prefix"
21413 exec_prefix="$acl_save_exec_prefix"
21414 prefix="$acl_save_prefix"
21416 if test "X$x" = "X-L$additional_libdir"; then
21421 if test -z "$haveit"; then
21422 if test -d "$additional_libdir"; then
21423 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21427 for x in $LDFLAGS $LTLIBINTL; do
21429 acl_save_prefix="$prefix"
21430 prefix="$acl_final_prefix"
21431 acl_save_exec_prefix="$exec_prefix"
21432 exec_prefix="$acl_final_exec_prefix"
21434 exec_prefix="$acl_save_exec_prefix"
21435 prefix="$acl_save_prefix"
21437 if test "X$x" = "X-L$additional_libdir"; then
21442 if test -z "$haveit"; then
21443 if test -d "$additional_libdir"; then
21444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21451 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21452 if test "$enable_rpath" != no; then
21454 for x in $rpathdirs; do
21455 if test "X$x" = "X$dir"; then
21460 if test -z "$haveit"; then
21461 rpathdirs="$rpathdirs $dir"
21464 for x in $ltrpathdirs; do
21465 if test "X$x" = "X$dir"; then
21470 if test -z "$haveit"; then
21471 ltrpathdirs="$ltrpathdirs $dir"
21476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21479 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21482 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21483 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21489 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21496 if test "X$rpathdirs" != "X"; then
21497 if test -n "$hardcode_libdir_separator"; then
21499 for found_dir in $rpathdirs; do
21500 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21502 acl_save_libdir="$libdir"
21504 eval flag=\"$hardcode_libdir_flag_spec\"
21505 libdir="$acl_save_libdir"
21506 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21508 for found_dir in $rpathdirs; do
21509 acl_save_libdir="$libdir"
21510 libdir="$found_dir"
21511 eval flag=\"$hardcode_libdir_flag_spec\"
21512 libdir="$acl_save_libdir"
21513 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21517 if test "X$ltrpathdirs" != "X"; then
21518 for found_dir in $ltrpathdirs; do
21519 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21524 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21525 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21526 $as_echo_n "(cached) " >&6
21528 gt_save_CPPFLAGS="$CPPFLAGS"
21529 CPPFLAGS="$CPPFLAGS $INCINTL"
21530 gt_save_LIBS="$LIBS"
21531 LIBS="$LIBS $LIBINTL"
21532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21533 /* end confdefs.h. */
21534 #include <libintl.h>
21535 extern int _nl_msg_cat_cntr;
21540 const char *_nl_expand_alias (const char *);
21544 bindtextdomain ("", "");
21545 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21550 if ac_fn_c_try_link "$LINENO"; then :
21551 gt_cv_func_gnugettext1_libintl=yes
21553 gt_cv_func_gnugettext1_libintl=no
21555 rm -f core conftest.err conftest.$ac_objext \
21556 conftest$ac_exeext conftest.$ac_ext
21557 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21558 LIBS="$LIBS $LIBICONV"
21559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21560 /* end confdefs.h. */
21561 #include <libintl.h>
21562 extern int _nl_msg_cat_cntr;
21567 const char *_nl_expand_alias (const char *);
21571 bindtextdomain ("", "");
21572 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21577 if ac_fn_c_try_link "$LINENO"; then :
21578 LIBINTL="$LIBINTL $LIBICONV"
21579 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21580 gt_cv_func_gnugettext1_libintl=yes
21583 rm -f core conftest.err conftest.$ac_objext \
21584 conftest$ac_exeext conftest.$ac_ext
21586 CPPFLAGS="$gt_save_CPPFLAGS"
21587 LIBS="$gt_save_LIBS"
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21590 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21593 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21594 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21595 && test "$PACKAGE" != gettext-runtime \
21596 && test "$PACKAGE" != gettext-tools; }; then
21597 gt_use_preinstalled_gnugettext=yes
21605 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21606 nls_cv_use_gnu_gettext=yes
21610 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21611 BUILD_INCLUDED_LIBINTL=yes
21612 USE_INCLUDED_LIBINTL=yes
21613 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21614 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21615 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21619 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21620 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21625 if test -n "$INTL_MACOSX_LIBS"; then
21626 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21627 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21628 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21629 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21633 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21634 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21636 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21644 $as_echo_n "checking whether to use NLS... " >&6; }
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21646 $as_echo "$USE_NLS" >&6; }
21647 if test "$USE_NLS" = "yes"; then
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21649 $as_echo_n "checking where the gettext function comes from... " >&6; }
21650 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21651 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21652 gt_source="external libintl"
21657 gt_source="included intl directory"
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21660 $as_echo "$gt_source" >&6; }
21663 if test "$USE_NLS" = "yes"; then
21665 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21666 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21668 $as_echo_n "checking how to link with libintl... " >&6; }
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21670 $as_echo "$LIBINTL" >&6; }
21672 for element in $INCINTL; do
21674 for x in $CPPFLAGS; do
21676 acl_save_prefix="$prefix"
21677 prefix="$acl_final_prefix"
21678 acl_save_exec_prefix="$exec_prefix"
21679 exec_prefix="$acl_final_exec_prefix"
21681 exec_prefix="$acl_save_exec_prefix"
21682 prefix="$acl_save_prefix"
21684 if test "X$x" = "X$element"; then
21689 if test -z "$haveit"; then
21690 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21697 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21700 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21708 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21709 BUILD_INCLUDED_LIBINTL=yes
21716 nls_cv_header_intl=
21717 nls_cv_header_libgt=
21729 if test "$USE_INCLUDED_LIBINTL" = yes; then
21730 INTLOBJS="\$(GETTOBJS)"
21734 INTL_LIBTOOL_SUFFIX_PREFIX=
21738 INTLLIBS="$LIBINTL"
21747 support_smartalloc=yes
21748 support_readline=yes
21754 support_static_tools=no
21755 support_static_fd=no
21756 support_static_sd=no
21757 support_static_dir=no
21758 support_static_cons=no
21759 build_client_only=no
21763 batch_insert_db_backends=""
21767 # Check whether --enable-bat was given.
21768 if test "${enable_bat+set}" = set; then :
21769 enableval=$enable_bat;
21770 if test x$enableval = xyes; then
21772 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21782 if test x$support_bat = xyes; then
21783 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21785 if test $pkg = 0; then
21786 BAT_DIR=src/qt-console
21788 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21806 # Check whether --enable-smartalloc was given.
21807 if test "${enable_smartalloc+set}" = set; then :
21808 enableval=$enable_smartalloc;
21809 if test x$enableval = xno; then
21810 support_smartalloc=no
21817 if test x$support_smartalloc = xyes; then
21819 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21823 # Check whether --enable-lockmgr was given.
21824 if test "${enable_lockmgr+set}" = set; then :
21825 enableval=$enable_lockmgr;
21826 if test x$enableval = xyes; then
21827 support_lockmgr=yes
21834 if test x$support_lockmgr = xyes; then
21836 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21841 # Check whether --enable-static-tools was given.
21842 if test "${enable_static_tools+set}" = set; then :
21843 enableval=$enable_static_tools;
21844 if test x$enableval = xyes; then
21845 if test x$use_libtool = xyes; then
21846 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21847 please rerun configure with --disable-libtool" "$LINENO" 5
21849 support_static_tools=yes
21857 if test x$support_static_tools = xyes; then
21858 TTOOL_LDFLAGS="-static"
21862 # Check whether --enable-static-fd was given.
21863 if test "${enable_static_fd+set}" = set; then :
21864 enableval=$enable_static_fd;
21865 if test x$enableval = xyes; then
21866 if test x$use_libtool = xyes; then
21867 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21868 please rerun configure with --disable-libtool" "$LINENO" 5
21870 support_static_fd=yes
21878 if test x$support_static_fd = xyes; then
21879 STATIC_FD="static-bacula-fd"
21883 # Check whether --enable-static-sd was given.
21884 if test "${enable_static_sd+set}" = set; then :
21885 enableval=$enable_static_sd;
21886 if test x$enableval = xyes; then
21887 if test x$use_libtool = xyes; then
21888 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21889 please rerun configure with --disable-libtool" "$LINENO" 5
21891 support_static_sd=yes
21899 if test x$support_static_sd = xyes; then
21900 STATIC_SD="static-bacula-sd"
21904 # Check whether --enable-static-dir was given.
21905 if test "${enable_static_dir+set}" = set; then :
21906 enableval=$enable_static_dir;
21907 if test x$enableval = xyes; then
21908 if test x$use_libtool = xyes; then
21909 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21910 please rerun configure with --disable-libtool" "$LINENO" 5
21912 support_static_dir=yes
21920 if test x$support_static_dir = xyes; then
21921 STATIC_DIR="static-bacula-dir"
21925 # Check whether --enable-static-cons was given.
21926 if test "${enable_static_cons+set}" = set; then :
21927 enableval=$enable_static_cons;
21928 if test x$enableval = xyes; then
21929 if test x$use_libtool = xyes; then
21930 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21931 please rerun configure with --disable-libtool" "$LINENO" 5
21933 support_static_cons=yes
21941 if test x$support_static_cons = xyes; then
21942 STATIC_CONS="static-bconsole"
21946 # Check whether --enable-client-only was given.
21947 if test "${enable_client_only+set}" = set; then :
21948 enableval=$enable_client_only;
21949 if test x$enableval = xyes; then
21950 build_client_only=yes
21958 if test x$build_client_only = xno; then
21965 # Check whether --enable-build-dird was given.
21966 if test "${enable_build_dird+set}" = set; then :
21967 enableval=$enable_build_dird;
21968 if test x$enableval = xno; then
21976 DIRD_DIR="src/dird"
21977 DIR_TOOLS="DIRTOOLS"
21982 # Check whether --enable-build-stored was given.
21983 if test "${enable_build_stored+set}" = set; then :
21984 enableval=$enable_build_stored;
21985 if test x$enableval = xno; then
21992 if test x$build_stored = xyes; then
21993 STORED_DIR="src/stored"
21999 # Check whether --enable-conio was given.
22000 if test "${enable_conio+set}" = set; then :
22001 enableval=$enable_conio;
22002 if test x$enableval = xno; then
22012 # Check whether --enable-ipv6 was given.
22013 if test "${enable_ipv6+set}" = set; then :
22014 enableval=$enable_ipv6;
22015 if test x$enableval = xno; then
22023 if test x$support_ipv6 = xyes; then
22024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22026 #include <sys/types.h>
22027 #include <sys/socket.h>
22028 #include <netinet/in.h>
22032 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22037 if ac_fn_c_try_link "$LINENO"; then :
22038 support_in6addr_any=yes
22040 support_in6addr_any=no
22042 rm -f core conftest.err conftest.$ac_objext \
22043 conftest$ac_exeext conftest.$ac_ext
22045 if test x$support_in6addr_any = xno ; then
22046 in6addr_any="const struct in6_addr in6addr_any"
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h. */
22053 #include <sys/types.h>
22054 #include <sys/socket.h>
22055 #include <netinet/in.h>
22059 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22064 if ac_fn_c_try_link "$LINENO"; then :
22069 rm -f core conftest.err conftest.$ac_objext \
22070 conftest$ac_exeext conftest.$ac_ext
22073 if test x$support_ipv6 = xyes; then
22075 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22078 if test x$support_in6addr_any = xno ; then
22080 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22086 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22087 if test "x$ac_cv_header_curses_h" = xyes; then :
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22090 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22091 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22092 $as_echo_n "(cached) " >&6
22094 ac_check_lib_save_LIBS=$LIBS
22095 LIBS="-ltinfo $LIBS"
22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097 /* end confdefs.h. */
22099 /* Override any GCC internal prototype to avoid an error.
22100 Use char because int might match the return type of a GCC
22101 builtin and then its argument prototype would still apply. */
22114 if ac_fn_c_try_link "$LINENO"; then :
22115 ac_cv_lib_tinfo_tgetent=yes
22117 ac_cv_lib_tinfo_tgetent=no
22119 rm -f core conftest.err conftest.$ac_objext \
22120 conftest$ac_exeext conftest.$ac_ext
22121 LIBS=$ac_check_lib_save_LIBS
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22124 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22125 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22130 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22131 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22132 $as_echo_n "(cached) " >&6
22134 ac_check_lib_save_LIBS=$LIBS
22135 LIBS="-lncurses $LIBS"
22136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22137 /* end confdefs.h. */
22139 /* Override any GCC internal prototype to avoid an error.
22140 Use char because int might match the return type of a GCC
22141 builtin and then its argument prototype would still apply. */
22154 if ac_fn_c_try_link "$LINENO"; then :
22155 ac_cv_lib_ncurses_tgetent=yes
22157 ac_cv_lib_ncurses_tgetent=no
22159 rm -f core conftest.err conftest.$ac_objext \
22160 conftest$ac_exeext conftest.$ac_ext
22161 LIBS=$ac_check_lib_save_LIBS
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22164 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22165 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22166 TERM_LIB="-lncurses"
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22170 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22171 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22172 $as_echo_n "(cached) " >&6
22174 ac_check_lib_save_LIBS=$LIBS
22175 LIBS="-ltermcap $LIBS"
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22179 /* Override any GCC internal prototype to avoid an error.
22180 Use char because int might match the return type of a GCC
22181 builtin and then its argument prototype would still apply. */
22194 if ac_fn_c_try_link "$LINENO"; then :
22195 ac_cv_lib_termcap_tgetent=yes
22197 ac_cv_lib_termcap_tgetent=no
22199 rm -f core conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext conftest.$ac_ext
22201 LIBS=$ac_check_lib_save_LIBS
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22204 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22205 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22206 TERM_LIB="-ltermcap"
22217 for ac_header in curses.h
22219 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22220 if test "x$ac_cv_header_curses_h" = xyes; then :
22221 cat >>confdefs.h <<_ACEOF
22222 #define HAVE_CURSES_H 1
22229 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22230 if test "x$ac_cv_header_term_h" = xyes; then :
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22232 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22233 if ${ac_cv_lib_curses_tgetent+:} false; then :
22234 $as_echo_n "(cached) " >&6
22236 ac_check_lib_save_LIBS=$LIBS
22237 LIBS="-lcurses $LIBS"
22238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22239 /* end confdefs.h. */
22241 /* Override any GCC internal prototype to avoid an error.
22242 Use char because int might match the return type of a GCC
22243 builtin and then its argument prototype would still apply. */
22256 if ac_fn_c_try_link "$LINENO"; then :
22257 ac_cv_lib_curses_tgetent=yes
22259 ac_cv_lib_curses_tgetent=no
22261 rm -f core conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext conftest.$ac_ext
22263 LIBS=$ac_check_lib_save_LIBS
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22266 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22267 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22268 TERM_LIB="-lcurses"
22282 if test x$support_conio = xyes; then
22283 if test x$TERM_LIB != x; then
22284 CONS_LIBS=$TERM_LIB
22288 support_readline=no
22290 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22293 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22298 # Check whether --enable-readline was given.
22299 if test "${enable_readline+set}" = set; then :
22300 enableval=$enable_readline;
22301 if test x$enableval = xno; then
22302 support_readline=no
22311 if test x$support_readline = xyes; then
22313 # Check whether --with-readline was given.
22314 if test "${with_readline+set}" = set; then :
22315 withval=$with_readline;
22316 case "$with_readline" in
22321 if test -f ${with_readline}/readline.h; then
22322 CONS_INC="-I${with_readline}"
22323 CONS_LDFLAGS="-L$with_readline"
22324 elif test -f ${with_readline}/include/readline/readline.h; then
22325 CONS_INC="-I${with_readline}/include/readline"
22326 CONS_LDFLAGS="-L${with_readline}/lib"
22327 with_readline="${with_readline}/include/readline"
22329 with_readline="/usr/include/readline"
22332 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22333 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22334 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22337 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22339 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22345 echo "readline.h not found. readline turned off ..."
22357 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22358 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22361 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22364 CONS_INC="-I/usr/include/readline"
22365 CONS_LIBS="-lreadline ${TERM_LIB}"
22369 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22370 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22374 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22377 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22378 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22379 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22380 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22385 echo "readline.h not found. readline turned off ..."
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22413 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22414 if ${ac_cv_header_stat_broken+:} false; then :
22415 $as_echo_n "(cached) " >&6
22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418 /* end confdefs.h. */
22419 #include <sys/types.h>
22420 #include <sys/stat.h>
22422 #if defined S_ISBLK && defined S_IFDIR
22423 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22426 #if defined S_ISBLK && defined S_IFCHR
22427 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22430 #if defined S_ISLNK && defined S_IFREG
22431 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22434 #if defined S_ISSOCK && defined S_IFREG
22435 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22439 if ac_fn_c_try_compile "$LINENO"; then :
22440 ac_cv_header_stat_broken=no
22442 ac_cv_header_stat_broken=yes
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22447 $as_echo "$ac_cv_header_stat_broken" >&6; }
22448 if test $ac_cv_header_stat_broken = yes; then
22450 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22454 ac_header_dirent=no
22455 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22456 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22458 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22459 if eval \${$as_ac_Header+:} false; then :
22460 $as_echo_n "(cached) " >&6
22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463 /* end confdefs.h. */
22464 #include <sys/types.h>
22476 if ac_fn_c_try_compile "$LINENO"; then :
22477 eval "$as_ac_Header=yes"
22479 eval "$as_ac_Header=no"
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483 eval ac_res=\$$as_ac_Header
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22485 $as_echo "$ac_res" >&6; }
22486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22487 cat >>confdefs.h <<_ACEOF
22488 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22491 ac_header_dirent=$ac_hdr; break
22495 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22496 if test $ac_header_dirent = dirent.h; then
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22498 $as_echo_n "checking for library containing opendir... " >&6; }
22499 if ${ac_cv_search_opendir+:} false; then :
22500 $as_echo_n "(cached) " >&6
22502 ac_func_search_save_LIBS=$LIBS
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h. */
22506 /* Override any GCC internal prototype to avoid an error.
22507 Use char because int might match the return type of a GCC
22508 builtin and then its argument prototype would still apply. */
22521 for ac_lib in '' dir; do
22522 if test -z "$ac_lib"; then
22523 ac_res="none required"
22526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22528 if ac_fn_c_try_link "$LINENO"; then :
22529 ac_cv_search_opendir=$ac_res
22531 rm -f core conftest.err conftest.$ac_objext \
22533 if ${ac_cv_search_opendir+:} false; then :
22537 if ${ac_cv_search_opendir+:} false; then :
22540 ac_cv_search_opendir=no
22542 rm conftest.$ac_ext
22543 LIBS=$ac_func_search_save_LIBS
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22546 $as_echo "$ac_cv_search_opendir" >&6; }
22547 ac_res=$ac_cv_search_opendir
22548 if test "$ac_res" != no; then :
22549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22555 $as_echo_n "checking for library containing opendir... " >&6; }
22556 if ${ac_cv_search_opendir+:} false; then :
22557 $as_echo_n "(cached) " >&6
22559 ac_func_search_save_LIBS=$LIBS
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22563 /* Override any GCC internal prototype to avoid an error.
22564 Use char because int might match the return type of a GCC
22565 builtin and then its argument prototype would still apply. */
22578 for ac_lib in '' x; do
22579 if test -z "$ac_lib"; then
22580 ac_res="none required"
22583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22585 if ac_fn_c_try_link "$LINENO"; then :
22586 ac_cv_search_opendir=$ac_res
22588 rm -f core conftest.err conftest.$ac_objext \
22590 if ${ac_cv_search_opendir+:} false; then :
22594 if ${ac_cv_search_opendir+:} false; then :
22597 ac_cv_search_opendir=no
22599 rm conftest.$ac_ext
22600 LIBS=$ac_func_search_save_LIBS
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22603 $as_echo "$ac_cv_search_opendir" >&6; }
22604 ac_res=$ac_cv_search_opendir
22605 if test "$ac_res" != no; then :
22606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22612 for ac_func in strcasecmp select setenv putenv tcgetattr
22614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22616 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22617 cat >>confdefs.h <<_ACEOF
22618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22624 for ac_func in lstat lchown lchmod futimes fchmod fchown
22626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22629 cat >>confdefs.h <<_ACEOF
22630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22636 for ac_func in nanosleep nl_langinfo
22638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22641 cat >>confdefs.h <<_ACEOF
22642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22648 for ac_func in be64toh htobe64
22650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22651 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22652 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22653 cat >>confdefs.h <<_ACEOF
22654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22660 for ac_header in varargs.h
22662 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22663 if test "x$ac_cv_header_varargs_h" = xyes; then :
22664 cat >>confdefs.h <<_ACEOF
22665 #define HAVE_VARARGS_H 1
22674 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22675 if test "x$ac_cv_func_socket" = xyes; then :
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22677 $as_echo "using libc's socket" >&6; }
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22680 $as_echo_n "checking for socket in -lxnet... " >&6; }
22681 if ${ac_cv_lib_xnet_socket+:} false; then :
22682 $as_echo_n "(cached) " >&6
22684 ac_check_lib_save_LIBS=$LIBS
22685 LIBS="-lxnet $LIBS"
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h. */
22689 /* Override any GCC internal prototype to avoid an error.
22690 Use char because int might match the return type of a GCC
22691 builtin and then its argument prototype would still apply. */
22704 if ac_fn_c_try_link "$LINENO"; then :
22705 ac_cv_lib_xnet_socket=yes
22707 ac_cv_lib_xnet_socket=no
22709 rm -f core conftest.err conftest.$ac_objext \
22710 conftest$ac_exeext conftest.$ac_ext
22711 LIBS=$ac_check_lib_save_LIBS
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22714 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22715 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22716 cat >>confdefs.h <<_ACEOF
22717 #define HAVE_LIBXNET 1
22720 LIBS="-lxnet $LIBS"
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22725 $as_echo_n "checking for socket in -lsocket... " >&6; }
22726 if ${ac_cv_lib_socket_socket+:} false; then :
22727 $as_echo_n "(cached) " >&6
22729 ac_check_lib_save_LIBS=$LIBS
22730 LIBS="-lsocket $LIBS"
22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h. */
22734 /* Override any GCC internal prototype to avoid an error.
22735 Use char because int might match the return type of a GCC
22736 builtin and then its argument prototype would still apply. */
22749 if ac_fn_c_try_link "$LINENO"; then :
22750 ac_cv_lib_socket_socket=yes
22752 ac_cv_lib_socket_socket=no
22754 rm -f core conftest.err conftest.$ac_objext \
22755 conftest$ac_exeext conftest.$ac_ext
22756 LIBS=$ac_check_lib_save_LIBS
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22759 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22760 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22761 cat >>confdefs.h <<_ACEOF
22762 #define HAVE_LIBSOCKET 1
22765 LIBS="-lsocket $LIBS"
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22770 $as_echo_n "checking for socket in -linet... " >&6; }
22771 if ${ac_cv_lib_inet_socket+:} false; then :
22772 $as_echo_n "(cached) " >&6
22774 ac_check_lib_save_LIBS=$LIBS
22775 LIBS="-linet $LIBS"
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h. */
22779 /* Override any GCC internal prototype to avoid an error.
22780 Use char because int might match the return type of a GCC
22781 builtin and then its argument prototype would still apply. */
22794 if ac_fn_c_try_link "$LINENO"; then :
22795 ac_cv_lib_inet_socket=yes
22797 ac_cv_lib_inet_socket=no
22799 rm -f core conftest.err conftest.$ac_objext \
22800 conftest$ac_exeext conftest.$ac_ext
22801 LIBS=$ac_check_lib_save_LIBS
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22804 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22805 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22806 cat >>confdefs.h <<_ACEOF
22807 #define HAVE_LIBINET 1
22810 LIBS="-linet $LIBS"
22820 # Check whether --with-tcp-wrappers was given.
22821 if test "${with_tcp_wrappers+set}" = set; then :
22822 withval=$with_tcp_wrappers;
22823 if test "x$withval" != "xno" ; then
22825 LIBS="$saved_LIBS -lwrap"
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22827 $as_echo_n "checking for library containing nanosleep... " >&6; }
22828 if ${ac_cv_search_nanosleep+:} false; then :
22829 $as_echo_n "(cached) " >&6
22831 ac_func_search_save_LIBS=$LIBS
22832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h. */
22835 /* Override any GCC internal prototype to avoid an error.
22836 Use char because int might match the return type of a GCC
22837 builtin and then its argument prototype would still apply. */
22845 return nanosleep ();
22850 for ac_lib in '' rt; do
22851 if test -z "$ac_lib"; then
22852 ac_res="none required"
22855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22857 if ac_fn_c_try_link "$LINENO"; then :
22858 ac_cv_search_nanosleep=$ac_res
22860 rm -f core conftest.err conftest.$ac_objext \
22862 if ${ac_cv_search_nanosleep+:} false; then :
22866 if ${ac_cv_search_nanosleep+:} false; then :
22869 ac_cv_search_nanosleep=no
22871 rm conftest.$ac_ext
22872 LIBS=$ac_func_search_save_LIBS
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22875 $as_echo "$ac_cv_search_nanosleep" >&6; }
22876 ac_res=$ac_cv_search_nanosleep
22877 if test "$ac_res" != no; then :
22878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22883 $as_echo_n "checking for libwrap... " >&6; }
22884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h. */
22887 #include <sys/types.h>
22889 int deny_severity = 0;
22890 int allow_severity = 0;
22891 struct request_info *req;
22903 if ac_fn_c_try_link "$LINENO"; then :
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22906 $as_echo "yes" >&6; }
22908 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22916 LIBS="$saved_LIBS -lwrap -lnsl"
22917 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22919 /* end confdefs.h. */
22921 #include <sys/types.h>
22923 int deny_severity = 0;
22924 int allow_severity = 0;
22925 struct request_info *req;
22937 if ac_fn_c_try_link "$LINENO"; then :
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22940 $as_echo "yes" >&6; }
22942 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22950 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22954 rm -f core conftest.err conftest.$ac_objext \
22955 conftest$ac_exeext conftest.$ac_ext
22959 rm -f core conftest.err conftest.$ac_objext \
22960 conftest$ac_exeext conftest.$ac_ext
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22968 $as_echo_n "checking for OpenSSL... " >&6; }
22970 # Check whether --with-openssl was given.
22971 if test "${with_openssl+set}" = set; then :
22972 withval=$with_openssl;
22973 with_openssl_directory=${withval}
22979 if test "x$with_openssl_directory" != "xno"; then
22980 OPENSSL_LIBS="-lssl -lcrypto"
22983 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22985 # Make sure the $with_openssl_directory also makes sense
22987 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22988 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22989 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22993 saved_LIBS="${LIBS}"
22994 saved_CFLAGS="${CFLAGS}"
22995 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22996 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h. */
23001 #include <openssl/ssl.h>
23007 CRYPTO_set_id_callback(NULL);
23013 if ac_fn_c_try_link "$LINENO"; then :
23016 support_crypto="yes"
23021 support_crypto="no"
23025 rm -f core conftest.err conftest.$ac_objext \
23026 conftest$ac_exeext conftest.$ac_ext
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23031 #include <openssl/evp.h>
23043 if ac_fn_c_try_link "$LINENO"; then :
23045 ac_cv_openssl_sha2="yes"
23049 ac_cv_openssl_sha2="no"
23053 rm -f core conftest.err conftest.$ac_objext \
23054 conftest$ac_exeext conftest.$ac_ext
23056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h. */
23059 #include <openssl/evp.h>
23071 if ac_fn_c_try_link "$LINENO"; then :
23073 ac_cv_openssl_export="no"
23077 ac_cv_openssl_export="yes"
23081 rm -f core conftest.err conftest.$ac_objext \
23082 conftest$ac_exeext conftest.$ac_ext
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23085 $as_echo "$support_tls" >&6; }
23086 if test "$support_tls" = "yes"; then
23088 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23091 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23094 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23098 if test "$ac_cv_openssl_sha2" = "yes"; then
23100 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23104 if test "$ac_cv_openssl_export" = "yes"; then
23106 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23110 if test "$support_crypto" = "yes"; then
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23112 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23113 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23114 $as_echo_n "(cached) " >&6
23116 ac_check_lib_save_LIBS=$LIBS
23117 LIBS="-lcrypto $LIBS"
23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119 /* end confdefs.h. */
23121 /* Override any GCC internal prototype to avoid an error.
23122 Use char because int might match the return type of a GCC
23123 builtin and then its argument prototype would still apply. */
23127 char EVP_PKEY_encrypt_old ();
23131 return EVP_PKEY_encrypt_old ();
23136 if ac_fn_c_try_link "$LINENO"; then :
23137 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23139 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23141 rm -f core conftest.err conftest.$ac_objext \
23142 conftest$ac_exeext conftest.$ac_ext
23143 LIBS=$ac_check_lib_save_LIBS
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23146 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23147 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23149 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23155 LIBS="${saved_LIBS}"
23156 CFLAGS="${saved_CFLAGS}"
23159 support_crypto="no"
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23161 $as_echo "$support_tls" >&6; }
23164 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23173 $as_echo_n "checking for library containing dlopen... " >&6; }
23174 if ${ac_cv_search_dlopen+:} false; then :
23175 $as_echo_n "(cached) " >&6
23177 ac_func_search_save_LIBS=$LIBS
23178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179 /* end confdefs.h. */
23181 /* Override any GCC internal prototype to avoid an error.
23182 Use char because int might match the return type of a GCC
23183 builtin and then its argument prototype would still apply. */
23196 for ac_lib in '' dl; do
23197 if test -z "$ac_lib"; then
23198 ac_res="none required"
23201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23203 if ac_fn_c_try_link "$LINENO"; then :
23204 ac_cv_search_dlopen=$ac_res
23206 rm -f core conftest.err conftest.$ac_objext \
23208 if ${ac_cv_search_dlopen+:} false; then :
23212 if ${ac_cv_search_dlopen+:} false; then :
23215 ac_cv_search_dlopen=no
23217 rm conftest.$ac_ext
23218 LIBS=$ac_func_search_save_LIBS
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23221 $as_echo "$ac_cv_search_dlopen" >&6; }
23222 ac_res=$ac_cv_search_dlopen
23223 if test "$ac_res" != no; then :
23224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23229 working_dir=`eval echo /opt/bacula/working`
23231 # Check whether --with-working-dir was given.
23232 if test "${with_working_dir+set}" = set; then :
23233 withval=$with_working_dir;
23234 if test "x$withval" != "xno" ; then
23235 working_dir=$withval
23246 # Check whether --with-archivedir was given.
23247 if test "${with_archivedir+set}" = set; then :
23248 withval=$with_archivedir;
23249 if test "x$withval" != "xno" ; then
23250 archivedir=$withval
23259 basename=`hostname`
23261 # Check whether --with-basename was given.
23262 if test "${with_basename+set}" = set; then :
23263 withval=$with_basename;
23264 if test "x$withval" != "xno" ; then
23274 hostname=`uname -n | cut -d '.' -f 1`
23275 if test x${hostname} = x ; then
23276 hostname="localhost"
23278 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23279 if test ! $? = 0; then
23280 hostname="localhost"
23283 # Check whether --with-hostname was given.
23284 if test "${with_hostname+set}" = set; then :
23285 withval=$with_hostname;
23286 if test "x$withval" != "xno" ; then
23297 scriptdir=`eval echo ${sysconfdir}`
23299 # Check whether --with-scriptdir was given.
23300 if test "${with_scriptdir+set}" = set; then :
23301 withval=$with_scriptdir;
23302 if test "x$withval" != "xno" ; then
23313 bsrdir=`eval echo /opt/bacula/bsr`
23315 # Check whether --with-bsrdir was given.
23316 if test "${with_bsrdir+set}" = set; then :
23317 withval=$with_bsrdir;
23318 if test "x$withval" != "xno" ; then
23328 logdir=`eval echo /opt/bacula/log`
23330 # Check whether --with-logdir was given.
23331 if test "${with_logdir+set}" = set; then :
23332 withval=$with_logdir;
23333 if test "x$withval" != "xno" ; then
23344 # ------------------------------------------
23345 # Where to place plugindir (plugin files)
23346 # ------------------------------------------
23347 plugindir=`eval echo ${libdir}`
23349 # Check whether --with-plugindir was given.
23350 if test "${with_plugindir+set}" = set; then :
23351 withval=$with_plugindir;
23352 if test "x$withval" != "xno" ; then
23363 dump_email=root@localhost
23365 # Check whether --with-dump-email was given.
23366 if test "${with_dump_email+set}" = set; then :
23367 withval=$with_dump_email;
23368 if test "x$withval" != "xno" ; then
23369 dump_email=$withval
23378 job_email=root@localhost
23380 # Check whether --with-job-email was given.
23381 if test "${with_job_email+set}" = set; then :
23382 withval=$with_job_email;
23383 if test "x$withval" != "xno" ; then
23393 smtp_host=localhost
23395 # Check whether --with-smtp_host was given.
23396 if test "${with_smtp_host+set}" = set; then :
23397 withval=$with_smtp_host;
23398 if test "x$withval" != "xno" ; then
23410 # Check whether --with-pid-dir was given.
23411 if test "${with_pid_dir+set}" = set; then :
23412 withval=$with_pid_dir;
23413 if test "x$withval" != "xno" ; then
23421 cat >>confdefs.h <<_ACEOF
23422 #define _PATH_BACULA_PIDDIR "$piddir"
23427 subsysdir=/var/run/subsys
23428 if test -d /var/run/subsys; then
23429 subsysdir=/var/run/subsys
23430 elif test -d /var/lock/subsys; then
23431 subsysdir=/var/lock/subsys
23433 subsysdir=/var/run/subsys
23436 # Check whether --with-subsys-dir was given.
23437 if test "${with_subsys_dir+set}" = set; then :
23438 withval=$with_subsys_dir;
23439 if test "x$withval" != "xno" ; then
23451 # Check whether --with-baseport was given.
23452 if test "${with_baseport+set}" = set; then :
23453 withval=$with_baseport;
23454 if test "x$withval" != "xno" ; then
23463 dir_port=`expr $baseport`
23464 fd_port=`expr $baseport + 1`
23465 sd_port=`expr $fd_port + 1`
23473 # Check whether --with-dir-password was given.
23474 if test "${with_dir_password+set}" = set; then :
23475 withval=$with_dir_password;
23476 if test "x$withval" != "xno" ; then
23477 dir_password=$withval
23484 if test "x$dir_password" = "x" ; then
23485 if test "x$OPENSSL" = "xnone" ; then
23486 key=`autoconf/randpass 33`
23488 key=`openssl rand -base64 33`
23495 # Check whether --with-fd-password was given.
23496 if test "${with_fd_password+set}" = set; then :
23497 withval=$with_fd_password;
23498 if test "x$withval" != "xno" ; then
23499 fd_password=$withval
23506 if test "x$fd_password" = "x" ; then
23507 if test "x$OPENSSL" = "xnone" ; then
23508 key=`autoconf/randpass 37`
23510 key=`openssl rand -base64 33`
23517 # Check whether --with-sd-password was given.
23518 if test "${with_sd_password+set}" = set; then :
23519 withval=$with_sd_password;
23520 if test "x$withval" != "xno" ; then
23521 sd_password=$withval
23528 if test "x$sd_password" = "x" ; then
23529 if test "x$OPENSSL" = "xnone" ; then
23530 key=`autoconf/randpass 41`
23532 key=`openssl rand -base64 33`
23539 # Check whether --with-mon-dir-password was given.
23540 if test "${with_mon_dir_password+set}" = set; then :
23541 withval=$with_mon_dir_password;
23542 if test "x$withval" != "xno" ; then
23543 mon_dir_password=$withval
23550 if test "x$mon_dir_password" = "x" ; then
23551 if test "x$OPENSSL" = "xnone" ; then
23552 key=`autoconf/randpass 33`
23554 key=`openssl rand -base64 33`
23556 mon_dir_password=$key
23561 # Check whether --with-mon-fd-password was given.
23562 if test "${with_mon_fd_password+set}" = set; then :
23563 withval=$with_mon_fd_password;
23564 if test "x$withval" != "xno" ; then
23565 mon_fd_password=$withval
23572 if test "x$mon_fd_password" = "x" ; then
23573 if test "x$OPENSSL" = "xnone" ; then
23574 key=`autoconf/randpass 37`
23576 key=`openssl rand -base64 33`
23578 mon_fd_password=$key
23583 # Check whether --with-mon-sd-password was given.
23584 if test "${with_mon_sd_password+set}" = set; then :
23585 withval=$with_mon_sd_password;
23586 if test "x$withval" != "xno" ; then
23587 mon_sd_password=$withval
23594 if test "x$mon_sd_password" = "x" ; then
23595 if test "x$OPENSSL" = "xnone" ; then
23596 key=`autoconf/randpass 41`
23598 key=`openssl rand -base64 33`
23600 mon_sd_password=$key
23612 # Check whether --with-db_name was given.
23613 if test "${with_db_name+set}" = set; then :
23614 withval=$with_db_name;
23615 if test "x$withval" != "x" ; then
23626 # Check whether --with-db_user was given.
23627 if test "${with_db_user+set}" = set; then :
23628 withval=$with_db_user;
23629 if test "x$withval" != "x" ; then
23640 # Check whether --with-db_password was given.
23641 if test "${with_db_password+set}" = set; then :
23642 withval=$with_db_password;
23643 if test "x$withval" != "x" ; then
23644 db_password=$withval
23654 # Check whether --with-db_port was given.
23655 if test "${with_db_port+set}" = set; then :
23656 withval=$with_db_port;
23657 if test "x$withval" != "x" ; then
23668 # Check whether --with-db_ssl_options was given.
23669 if test "${with_db_ssl_options+set}" = set; then :
23670 withval=$with_db_ssl_options;
23671 if test "x$withval" != "x" ; then
23672 db_ssl_options=$withval
23681 # Handle users and groups for each daemon
23685 # Check whether --with-dir_user was given.
23686 if test "${with_dir_user+set}" = set; then :
23687 withval=$with_dir_user;
23688 if test "x$withval" != "x" ; then
23698 # Check whether --with-dir_group was given.
23699 if test "${with_dir_group+set}" = set; then :
23700 withval=$with_dir_group;
23701 if test "x$withval" != "x" ; then
23711 # Check whether --with-sd_user was given.
23712 if test "${with_sd_user+set}" = set; then :
23713 withval=$with_sd_user;
23714 if test "x$withval" != "x" ; then
23724 # Check whether --with-sd_group was given.
23725 if test "${with_sd_group+set}" = set; then :
23726 withval=$with_sd_group;
23727 if test "x$withval" != "x" ; then
23737 # Check whether --with-fd_user was given.
23738 if test "${with_fd_user+set}" = set; then :
23739 withval=$with_fd_user;
23740 if test "x$withval" != "x" ; then
23750 # Check whether --with-fd_group was given.
23751 if test "${with_fd_group+set}" = set; then :
23752 withval=$with_fd_group;
23753 if test "x$withval" != "x" ; then
23770 # Check whether --with-sbin-perm was given.
23771 if test "${with_sbin_perm+set}" = set; then :
23772 withval=$with_sbin_perm;
23773 if test "x$withval" != "x" ; then
23783 support_batch_insert=yes
23784 # Check whether --enable-batch-insert was given.
23785 if test "${enable_batch_insert+set}" = set; then :
23786 enableval=$enable_batch_insert;
23787 if test x$enableval = xno; then
23788 support_batch_insert=no
23795 if test x$support_batch_insert = xyes; then
23797 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23806 $as_echo_n "checking for PostgreSQL support... " >&6; }
23808 # Check whether --with-postgresql was given.
23809 if test "${with_postgresql+set}" = set; then :
23810 withval=$with_postgresql;
23811 if test "$withval" != "no"; then
23812 if test "$withval" = "yes"; then
23813 PG_CONFIG=`which pg_config 2>/dev/null`
23814 if test -n "$PG_CONFIG"; then
23815 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23816 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23817 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23818 elif test -f /usr/local/include/libpq-fe.h; then
23819 POSTGRESQL_INCDIR=/usr/local/include
23820 if test -d /usr/local/lib64; then
23821 POSTGRESQL_LIBDIR=/usr/local/lib64
23823 POSTGRESQL_LIBDIR=/usr/local/lib
23825 POSTGRESQL_BINDIR=/usr/local/bin
23826 elif test -f /usr/include/libpq-fe.h; then
23827 POSTGRESQL_INCDIR=/usr/include
23828 if test -d /usr/lib64; then
23829 POSTGRESQL_LIBDIR=/usr/lib64
23831 POSTGRESQL_LIBDIR=/usr/lib
23833 POSTGRESQL_BINDIR=/usr/bin
23834 elif test -f /usr/include/pgsql/libpq-fe.h; then
23835 POSTGRESQL_INCDIR=/usr/include/pgsql
23836 if test -d /usr/lib64/pgsql; then
23837 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23839 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23841 POSTGRESQL_BINDIR=/usr/bin
23842 elif test -f /usr/include/postgresql/libpq-fe.h; then
23843 POSTGRESQL_INCDIR=/usr/include/postgresql
23844 if test -d /usr/lib64/postgresql; then
23845 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23847 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23849 POSTGRESQL_BINDIR=/usr/bin
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23852 $as_echo "no" >&6; }
23853 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23855 elif test -f $withval/include/libpq-fe.h; then
23856 POSTGRESQL_INCDIR=$withval/include
23857 POSTGRESQL_LIBDIR=$withval/lib
23858 POSTGRESQL_BINDIR=$withval/bin
23859 elif test -f $withval/include/postgresql/libpq-fe.h; then
23860 POSTGRESQL_INCDIR=$withval/include/postgresql
23861 if test -d $withval/lib64; then
23862 POSTGRESQL_LIBDIR=$withval/lib64
23864 POSTGRESQL_LIBDIR=$withval/lib
23866 POSTGRESQL_BINDIR=$withval/bin
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23869 $as_echo "no" >&6; }
23870 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23873 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23876 $as_echo "yes" >&6; }
23878 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23879 if test x$use_libtool != xno; then
23880 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23882 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23884 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23885 if test "x$ac_cv_func_crypt" = xyes; then :
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23889 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23890 if ${ac_cv_lib_crypt_crypt+:} false; then :
23891 $as_echo_n "(cached) " >&6
23893 ac_check_lib_save_LIBS=$LIBS
23894 LIBS="-lcrypt $LIBS"
23895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h. */
23898 /* Override any GCC internal prototype to avoid an error.
23899 Use char because int might match the return type of a GCC
23900 builtin and then its argument prototype would still apply. */
23913 if ac_fn_c_try_link "$LINENO"; then :
23914 ac_cv_lib_crypt_crypt=yes
23916 ac_cv_lib_crypt_crypt=no
23918 rm -f core conftest.err conftest.$ac_objext \
23919 conftest$ac_exeext conftest.$ac_ext
23920 LIBS=$ac_check_lib_save_LIBS
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23923 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23924 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23925 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23930 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23931 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23933 if test -z "${db_backends}"; then
23934 db_backends="PostgreSQL"
23936 db_backends="${db_backends} PostgreSQL"
23938 if test -z "${DB_BACKENDS}"; then
23939 DB_BACKENDS="postgresql"
23941 DB_BACKENDS="${DB_BACKENDS} postgresql"
23944 if test "x$support_batch_insert" = "xyes"; then
23945 saved_LDFLAGS="${LDFLAGS}"
23946 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23947 saved_LIBS="${LIBS}"
23948 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23949 LIBS="${saved_LIBS} -lcrypt"
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23953 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23954 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23955 $as_echo_n "(cached) " >&6
23957 ac_check_lib_save_LIBS=$LIBS
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23962 /* Override any GCC internal prototype to avoid an error.
23963 Use char because int might match the return type of a GCC
23964 builtin and then its argument prototype would still apply. */
23968 char PQisthreadsafe ();
23972 return PQisthreadsafe ();
23977 if ac_fn_c_try_link "$LINENO"; then :
23978 ac_cv_lib_pq_PQisthreadsafe=yes
23980 ac_cv_lib_pq_PQisthreadsafe=no
23982 rm -f core conftest.err conftest.$ac_objext \
23983 conftest$ac_exeext conftest.$ac_ext
23984 LIBS=$ac_check_lib_save_LIBS
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23987 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23988 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23990 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23995 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23996 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23997 $as_echo_n "(cached) " >&6
23999 ac_check_lib_save_LIBS=$LIBS
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h. */
24004 /* Override any GCC internal prototype to avoid an error.
24005 Use char because int might match the return type of a GCC
24006 builtin and then its argument prototype would still apply. */
24010 char PQputCopyData ();
24014 return PQputCopyData ();
24019 if ac_fn_c_try_link "$LINENO"; then :
24020 ac_cv_lib_pq_PQputCopyData=yes
24022 ac_cv_lib_pq_PQputCopyData=no
24024 rm -f core conftest.err conftest.$ac_objext \
24025 conftest$ac_exeext conftest.$ac_ext
24026 LIBS=$ac_check_lib_save_LIBS
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24029 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24030 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24032 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24036 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24037 if test $support_batch_insert = yes ; then
24039 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24041 if test -z "${batch_insert_db_backends}"; then
24042 batch_insert_db_backends="PostgreSQL"
24044 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24049 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24051 echo "WARNING: Your PostgreSQL client library is too old to detect "
24052 echo "if it was compiled with --enable-thread-safety, consider to "
24053 echo "upgrade it in order to avoid problems with Batch insert mode"
24056 LDFLAGS="${saved_LDFLAGS}"
24057 LIBS="${saved_LIBS}"
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067 $as_echo "no" >&6; }
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24079 $as_echo_n "checking for MySQL support... " >&6; }
24081 # Check whether --with-mysql was given.
24082 if test "${with_mysql+set}" = set; then :
24083 withval=$with_mysql;
24084 if test "$withval" != "no"; then
24085 if test "$withval" = "yes"; then
24087 # This code is very broken on older systems
24089 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24090 # if test "x${MYSQL_CONFIG}" != x; then
24091 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24092 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24093 # if test $? = 0 ; then
24094 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24095 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24097 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24098 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24101 # if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24102 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24103 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24104 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24105 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24106 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24108 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24110 MYSQL_BINDIR=/usr/local/mysql/bin
24111 elif test -f /usr/include/mysql/mysql.h; then
24112 MYSQL_INCDIR=/usr/include/mysql
24113 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24114 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24115 MYSQL_LIBDIR=/usr/lib64/mysql
24116 elif test -f /usr/lib64/libmysqlclient_r.a \
24117 -o -f /usr/lib64/libmysqlclient_r.so; then
24118 MYSQL_LIBDIR=/usr/lib64
24119 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24120 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24121 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24122 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24123 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24124 MYSQL_LIBDIR=/usr/lib/mysql
24126 MYSQL_LIBDIR=/usr/lib
24128 MYSQL_BINDIR=/usr/bin
24129 elif test -f /usr/include/mysql.h; then
24130 MYSQL_INCDIR=/usr/include
24131 if test -f /usr/lib64/libmysqlclient_r.a \
24132 -o -f /usr/lib64/libmysqlclient_r.so; then
24133 MYSQL_LIBDIR=/usr/lib64
24135 MYSQL_LIBDIR=/usr/lib
24137 MYSQL_BINDIR=/usr/bin
24138 elif test -f /usr/local/include/mysql/mysql.h; then
24139 MYSQL_INCDIR=/usr/local/include/mysql
24140 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24141 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24142 MYSQL_LIBDIR=/usr/local/lib64/mysql
24144 MYSQL_LIBDIR=/usr/local/lib/mysql
24146 MYSQL_BINDIR=/usr/local/bin
24147 elif test -f /usr/local/include/mysql.h; then
24148 MYSQL_INCDIR=/usr/local/include
24149 if test -f /usr/local/lib64/libmysqlclient_r.a \
24150 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24151 MYSQL_LIBDIR=/usr/local/lib64
24153 MYSQL_LIBDIR=/usr/local/lib
24155 MYSQL_BINDIR=/usr/local/bin
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24158 $as_echo "no" >&6; }
24159 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24162 if test -f $withval/include/mysql/mysql.h; then
24163 MYSQL_INCDIR=$withval/include/mysql
24164 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24165 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24166 MYSQL_LIBDIR=$withval/lib64/mysql
24167 elif test -f $withval/lib64/libmysqlclient_r.a \
24168 -o -f $withval/lib64/libmysqlclient_r.so; then
24169 MYSQL_LIBDIR=$withval/lib64
24170 elif test -f $withval/lib/libmysqlclient_r.a \
24171 -o -f $withval/lib/libmysqlclient_r.so; then
24172 MYSQL_LIBDIR=$withval/lib
24174 MYSQL_LIBDIR=$withval/lib/mysql
24176 MYSQL_BINDIR=$withval/bin
24177 elif test -f $withval/include/mysql.h; then
24178 MYSQL_INCDIR=$withval/include
24179 if test -f $withval/lib64/libmysqlclient_r.a \
24180 -o -f $withval/lib64/libmysqlclient_r.so; then
24181 MYSQL_LIBDIR=$withval/lib64
24183 MYSQL_LIBDIR=$withval/lib
24185 MYSQL_BINDIR=$withval/bin
24186 elif test -f $withval/mysql.h; then
24187 MYSQL_INCDIR=$withval
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24189 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24190 case $MYSQL_INCDIR in
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24193 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24194 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24195 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24197 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24198 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24200 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24204 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24205 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24206 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24208 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24209 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24211 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24214 if test -z "${MYSQL_LIBDIR}" ; then
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24216 $as_echo "no" >&6; }
24217 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 $as_echo "no" >&6; }
24222 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24225 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24226 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24227 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24228 if test x$use_libtool != xno; then
24229 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24231 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24233 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24235 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24238 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24241 $as_echo "yes" >&6; }
24243 if test -z "${db_backends}" ; then
24244 db_backends="MySQL"
24246 db_backends="${db_backends} MySQL"
24248 if test -z "${DB_BACKENDS}" ; then
24249 DB_BACKENDS="mysql"
24251 DB_BACKENDS="${DB_BACKENDS} mysql"
24254 if test "x$support_batch_insert" = "xyes"; then
24255 saved_LDFLAGS="${LDFLAGS}"
24256 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24257 saved_LIBS="${LIBS}"
24258 LIBS="${saved_LIBS} -lz"
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24261 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24262 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24263 $as_echo_n "(cached) " >&6
24265 ac_check_lib_save_LIBS=$LIBS
24266 LIBS="-lmysqlclient_r $LIBS"
24267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h. */
24270 /* Override any GCC internal prototype to avoid an error.
24271 Use char because int might match the return type of a GCC
24272 builtin and then its argument prototype would still apply. */
24276 char mysql_thread_safe ();
24280 return mysql_thread_safe ();
24285 if ac_fn_c_try_link "$LINENO"; then :
24286 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24288 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24290 rm -f core conftest.err conftest.$ac_objext \
24291 conftest$ac_exeext conftest.$ac_ext
24292 LIBS=$ac_check_lib_save_LIBS
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24295 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24296 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24298 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24302 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24303 if test -z "${batch_insert_db_backends}"; then
24304 batch_insert_db_backends="MySQL"
24306 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24310 LDFLAGS="${saved_LDFLAGS}"
24311 LIBS="${saved_LIBS}"
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24315 $as_echo "no" >&6; }
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24321 $as_echo "no" >&6; }
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24327 $as_echo_n "checking for MySQL embedded support... " >&6; }
24329 # Check whether --with-embedded-mysql was given.
24330 if test "${with_embedded_mysql+set}" = set; then :
24331 withval=$with_embedded_mysql;
24332 if test "$withval" != "no"; then
24333 if test "$withval" = "yes"; then
24334 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24335 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24336 if test -d /usr/local/mysql/lib64/mysql; then
24337 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24339 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24341 MYSQL_BINDIR=/usr/local/mysql/bin
24342 elif test -f /usr/include/mysql/mysql.h; then
24343 MYSQL_INCDIR=/usr/include/mysql
24344 if test -d /usr/lib64/mysql; then
24345 MYSQL_LIBDIR=/usr/lib64/mysql
24347 MYSQL_LIBDIR=/usr/lib/mysql
24349 MYSQL_BINDIR=/usr/bin
24350 elif test -f /usr/include/mysql.h; then
24351 MYSQL_INCDIR=/usr/include
24352 if test -d /usr/lib64; then
24353 MYSQL_LIBDIR=/usr/lib64
24355 MYSQL_LIBDIR=/usr/lib
24357 MYSQL_BINDIR=/usr/bin
24358 elif test -f /usr/local/include/mysql/mysql.h; then
24359 MYSQL_INCDIR=/usr/local/include/mysql
24360 if test -d /usr/local/lib64/mysql; then
24361 MYSQL_LIBDIR=/usr/local/lib64/mysql
24363 MYSQL_LIBDIR=/usr/local/lib/mysql
24365 MYSQL_BINDIR=/usr/local/bin
24366 elif test -f /usr/local/include/mysql.h; then
24367 MYSQL_INCDIR=/usr/local/include
24368 if test -d /usr/local/lib64; then
24369 MYSQL_LIBDIR=/usr/local/lib64
24371 MYSQL_LIBDIR=/usr/local/lib
24373 MYSQL_BINDIR=/usr/local/bin
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24376 $as_echo "no" >&6; }
24377 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24380 if test -f $withval/include/mysql/mysql.h; then
24381 MYSQL_INCDIR=$withval/include/mysql
24382 if test -d $withval/lib64/mysql; then
24383 MYSQL_LIBDIR=$withval/lib64/mysql
24385 MYSQL_LIBDIR=$withval/lib/mysql
24387 MYSQL_BINDIR=$withval/bin
24388 elif test -f $withval/include/mysql.h; then
24389 MYSQL_INCDIR=$withval/include
24390 if test -d $withval/lib64; then
24391 MYSQL_LIBDIR=$withval/lib64
24393 MYSQL_LIBDIR=$withval/lib
24395 MYSQL_BINDIR=$withval/bin
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398 $as_echo "no" >&6; }
24399 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24402 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24403 if test x$use_libtool != xno; then
24404 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24406 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24408 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24409 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24412 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24415 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24418 $as_echo "yes" >&6; }
24420 if test -z "${db_backends}"; then
24421 db_backends="MySQL"
24423 db_backends="${db_backends} MySQL"
24425 if test -z "${DB_BACKENDS}"; then
24426 DB_BACKENDS="mysql"
24428 DB_BACKENDS="${DB_BACKENDS} mysql"
24431 if test "x$support_batch_insert" = "xyes"; then
24432 saved_LDFLAGS="${LDFLAGS}"
24433 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24434 saved_LIBS="${LIBS}"
24435 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24438 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24439 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24440 $as_echo_n "(cached) " >&6
24442 ac_check_lib_save_LIBS=$LIBS
24443 LIBS="-lmysqlclient_r $LIBS"
24444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445 /* end confdefs.h. */
24447 /* Override any GCC internal prototype to avoid an error.
24448 Use char because int might match the return type of a GCC
24449 builtin and then its argument prototype would still apply. */
24453 char mysql_thread_safe ();
24457 return mysql_thread_safe ();
24462 if ac_fn_c_try_link "$LINENO"; then :
24463 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24465 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24467 rm -f core conftest.err conftest.$ac_objext \
24468 conftest$ac_exeext conftest.$ac_ext
24469 LIBS=$ac_check_lib_save_LIBS
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24472 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24473 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24475 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24479 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24480 if test -z "${batch_insert_db_backends}"; then
24481 batch_insert_db_backends="MySQL"
24483 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24487 LDFLAGS="${saved_LDFLAGS}"
24488 LIBS="${saved_LIBS}"
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24492 $as_echo "no" >&6; }
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24498 $as_echo "no" >&6; }
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24511 $as_echo_n "checking for SQLite3 support... " >&6; }
24513 # Check whether --with-sqlite3 was given.
24514 if test "${with_sqlite3+set}" = set; then :
24515 withval=$with_sqlite3;
24516 if test "$withval" != "no"; then
24517 if test "$withval" = "yes"; then
24518 if test -f /usr/local/include/sqlite3.h; then
24519 SQLITE_INCDIR=/usr/local/include
24520 if test -d /usr/local/lib64; then
24521 SQLITE_LIBDIR=/usr/local/lib64
24523 SQLITE_LIBDIR=/usr/local/lib
24525 SQLITE_BINDIR=/usr/local/bin
24526 elif test -f /usr/include/sqlite3.h; then
24527 SQLITE_INCDIR=/usr/include
24528 if test -d /usr/lib64; then
24529 SQLITE_LIBDIR=/usr/lib64
24531 SQLITE_LIBDIR=/usr/lib
24533 SQLITE_BINDIR=/usr/bin
24534 elif test -f $prefix/include/sqlite3.h; then
24535 SQLITE_INCDIR=$prefix/include
24536 if test -d $prefix/lib64; then
24537 SQLITE_LIBDIR=$prefix/lib64
24539 SQLITE_LIBDIR=$prefix/lib
24541 SQLITE_BINDIR=$prefix/bin
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24544 $as_echo "no" >&6; }
24545 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24548 if test -f $withval/sqlite3.h; then
24549 SQLITE_INCDIR=$withval
24550 SQLITE_LIBDIR=$withval
24551 SQLITE_BINDIR=$withval
24552 elif test -f $withval/include/sqlite3.h; then
24553 SQLITE_INCDIR=$withval/include
24554 if test -d $withval/lib64; then
24555 SQLITE_LIBDIR=$withval/lib64
24557 SQLITE_LIBDIR=$withval/lib
24559 SQLITE_BINDIR=$withval/bin
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24562 $as_echo "no" >&6; }
24563 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24566 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24567 if test x$use_libtool != xno; then
24568 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24570 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24572 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24573 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24576 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24579 $as_echo "yes" >&6; }
24581 if test -z "${db_backends}"; then
24582 db_backends="SQLite3"
24584 db_backends="${db_backends} SQLite3"
24586 if test -z "${DB_BACKENDS}"; then
24587 DB_BACKENDS="sqlite3"
24589 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24592 if test "x$support_batch_insert" = "xyes"; then
24593 saved_LDFLAGS="${LDFLAGS}"
24594 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24597 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24598 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24599 $as_echo_n "(cached) " >&6
24601 ac_check_lib_save_LIBS=$LIBS
24602 LIBS="-lsqlite3 $LIBS"
24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604 /* end confdefs.h. */
24606 /* Override any GCC internal prototype to avoid an error.
24607 Use char because int might match the return type of a GCC
24608 builtin and then its argument prototype would still apply. */
24612 char sqlite3_threadsafe ();
24616 return sqlite3_threadsafe ();
24621 if ac_fn_c_try_link "$LINENO"; then :
24622 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24624 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24626 rm -f core conftest.err conftest.$ac_objext \
24627 conftest$ac_exeext conftest.$ac_ext
24628 LIBS=$ac_check_lib_save_LIBS
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24631 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24632 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24634 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24638 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24639 if test -z "${batch_insert_db_backends}"; then
24640 batch_insert_db_backends="SQLite3"
24642 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24646 LDFLAGS="${saved_LDFLAGS}"
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24650 $as_echo "no" >&6; }
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24656 $as_echo "no" >&6; }
24666 if test -z "${batch_insert_db_backends}"; then
24667 batch_insert_db_backends="None"
24670 if test "x${db_backends}" = "x" ; then
24673 echo "You have not specified either --enable-client-only or one of the"
24674 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24675 echo "This is not permitted. Please reconfigure."
24677 echo "Aborting the configuration ..."
24683 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24685 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24686 if test x$use_libtool = xno; then
24687 SHARED_CATALOG_TARGETS=""
24689 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24693 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24695 if test x$use_libtool = xno; then
24698 echo "You have specified two or more of the"
24699 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24700 echo "This is not permitted when not using libtool Please reconfigure."
24702 echo "Aborting the configuration ..."
24708 SHARED_CATALOG_TARGETS=""
24709 for db_type in ${DB_BACKENDS}
24711 if test -z "${SHARED_CATALOG_TARGETS}"; then
24712 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24714 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24720 if test x$use_libtool = xyes; then
24730 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24733 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24734 if test -z "$CCOPTS"; then
24735 CCOPTS='-g -O2 -Wall'
24742 largefile_support="no"
24744 # Check whether --enable-largefile was given.
24745 if test "${enable_largefile+set}" = set; then :
24746 enableval=$enable_largefile;
24749 if test "$enable_largefile" != no; then
24750 if test -n "$ac_tool_prefix"; then
24751 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24752 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24754 $as_echo_n "checking for $ac_word... " >&6; }
24755 if ${ac_cv_prog_GETCONF+:} false; then :
24756 $as_echo_n "(cached) " >&6
24758 if test -n "$GETCONF"; then
24759 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24762 for as_dir in $PATH
24765 test -z "$as_dir" && as_dir=.
24766 for ac_exec_ext in '' $ac_executable_extensions; do
24767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24768 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24778 GETCONF=$ac_cv_prog_GETCONF
24779 if test -n "$GETCONF"; then
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24781 $as_echo "$GETCONF" >&6; }
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24784 $as_echo "no" >&6; }
24789 if test -z "$ac_cv_prog_GETCONF"; then
24790 ac_ct_GETCONF=$GETCONF
24791 # Extract the first word of "getconf", so it can be a program name with args.
24792 set dummy getconf; ac_word=$2
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24794 $as_echo_n "checking for $ac_word... " >&6; }
24795 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24796 $as_echo_n "(cached) " >&6
24798 if test -n "$ac_ct_GETCONF"; then
24799 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24802 for as_dir in $PATH
24805 test -z "$as_dir" && as_dir=.
24806 for ac_exec_ext in '' $ac_executable_extensions; do
24807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24808 ac_cv_prog_ac_ct_GETCONF="getconf"
24809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24818 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24819 if test -n "$ac_ct_GETCONF"; then
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24821 $as_echo "$ac_ct_GETCONF" >&6; }
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24824 $as_echo "no" >&6; }
24827 if test "x$ac_ct_GETCONF" = x; then
24830 case $cross_compiling:$ac_tool_warned in
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24834 ac_tool_warned=yes ;;
24836 GETCONF=$ac_ct_GETCONF
24839 GETCONF="$ac_cv_prog_GETCONF"
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24843 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24844 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24845 $as_echo_n "(cached) " >&6
24847 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24848 ac_cv_sys_largefile_CFLAGS=no
24850 # IRIX 6.2 and later require cc -n32.
24851 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24852 if test "$GCC" != yes; then
24853 ac_cv_sys_largefile_CFLAGS=-n32
24856 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24868 if ac_fn_c_try_link "$LINENO"; then :
24871 ac_cv_sys_largefile_CFLAGS=no
24873 rm -f core conftest.err conftest.$ac_objext \
24874 conftest$ac_exeext conftest.$ac_ext
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24880 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24882 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24883 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24884 $as_echo_n "(cached) " >&6
24886 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24887 ac_cv_sys_largefile_LDFLAGS=no
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24892 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24894 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24895 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24896 $as_echo_n "(cached) " >&6
24898 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24899 ac_cv_sys_largefile_LIBS=no
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24904 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24906 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24909 -D_FILE_OFFSET_BITS=*) ;;
24910 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24911 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24916 case "$CPPFLAGS" in
24917 '') CPPFLAGS="$ac_flag" ;;
24918 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24926 '') CFLAGS="$ac_flag" ;;
24927 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24932 case "$ac_cv_sys_largefile_LDFLAGS" in
24936 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24937 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24940 case "$ac_cv_sys_largefile_LIBS" in
24944 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24945 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24949 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24950 if ${ac_cv_sys_file_offset_bits+:} false; then :
24951 $as_echo_n "(cached) " >&6
24953 ac_cv_sys_file_offset_bits=no
24954 ac_cv_sys_file_offset_bits=64
24955 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24957 -D_FILE_OFFSET_BITS)
24958 ac_cv_sys_file_offset_bits=1 ;;
24959 -D_FILE_OFFSET_BITS=*)
24960 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24966 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24967 if test "$ac_cv_sys_file_offset_bits" != no; then
24969 cat >>confdefs.h <<_ACEOF
24970 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24975 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24976 if ${ac_cv_sys_largefile_source+:} false; then :
24977 $as_echo_n "(cached) " >&6
24979 ac_cv_sys_largefile_source=no
24980 ac_cv_sys_largefile_source=1
24981 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24983 -D_LARGEFILE_SOURCE)
24984 ac_cv_sys_largefile_source=1 ;;
24985 -D_LARGEFILE_SOURCE=*)
24986 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24992 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24993 if test "$ac_cv_sys_largefile_source" != no; then
24995 cat >>confdefs.h <<_ACEOF
24996 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25001 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25002 if ${ac_cv_sys_large_files+:} false; then :
25003 $as_echo_n "(cached) " >&6
25005 ac_cv_sys_large_files=no
25006 ac_cv_sys_large_files=1
25007 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25010 ac_cv_sys_large_files=1 ;;
25012 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25018 $as_echo "$ac_cv_sys_large_files" >&6; }
25019 if test "$ac_cv_sys_large_files" != no; then
25021 cat >>confdefs.h <<_ACEOF
25022 #define _LARGE_FILES $ac_cv_sys_large_files
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25030 $as_echo_n "checking for X... " >&6; }
25033 # Check whether --with-x was given.
25034 if test "${with_x+set}" = set; then :
25038 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25039 if test "x$with_x" = xno; then
25040 # The user explicitly disabled X.
25043 case $x_includes,$x_libraries in #(
25044 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25045 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25046 $as_echo_n "(cached) " >&6
25048 # One or both of the vars are not set, and there is no cached value.
25049 ac_x_includes=no ac_x_libraries=no
25050 rm -f -r conftest.dir
25051 if mkdir conftest.dir; then
25053 cat >Imakefile <<'_ACEOF'
25055 @echo incroot='${INCROOT}'
25057 @echo usrlibdir='${USRLIBDIR}'
25059 @echo libdir='${LIBDIR}'
25061 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25062 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25063 for ac_var in incroot usrlibdir libdir; do
25064 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25066 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25067 for ac_extension in a so sl dylib la dll; do
25068 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25069 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25070 ac_im_usrlibdir=$ac_im_libdir; break
25073 # Screen out bogus values from the imake configuration. They are
25074 # bogus both because they are the default anyway, and because
25075 # using them would break gcc on systems where it needs fixed includes.
25076 case $ac_im_incroot in
25077 /usr/include) ac_x_includes= ;;
25078 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25080 case $ac_im_usrlibdir in
25081 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25082 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25086 rm -f -r conftest.dir
25089 # Standard set of common directories for X headers.
25090 # Check X11 before X11Rn because it is often a symlink to the current release.
25104 /usr/local/X11/include
25105 /usr/local/X11R7/include
25106 /usr/local/X11R6/include
25107 /usr/local/X11R5/include
25108 /usr/local/X11R4/include
25110 /usr/local/include/X11
25111 /usr/local/include/X11R7
25112 /usr/local/include/X11R6
25113 /usr/local/include/X11R5
25114 /usr/local/include/X11R4
25118 /usr/XFree86/include/X11
25122 /usr/unsupported/include
25123 /usr/athena/include
25124 /usr/local/x11r5/include
25125 /usr/lpp/Xamples/include
25127 /usr/openwin/include
25128 /usr/openwin/share/include'
25130 if test "$ac_x_includes" = no; then
25131 # Guess where to find include files, by looking for Xlib.h.
25132 # First, try using that file with no special directory specified.
25133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25134 /* end confdefs.h. */
25135 #include <X11/Xlib.h>
25137 if ac_fn_c_try_cpp "$LINENO"; then :
25138 # We can compile using X headers with no special include directory.
25141 for ac_dir in $ac_x_header_dirs; do
25142 if test -r "$ac_dir/X11/Xlib.h"; then
25143 ac_x_includes=$ac_dir
25148 rm -f conftest.err conftest.i conftest.$ac_ext
25149 fi # $ac_x_includes = no
25151 if test "$ac_x_libraries" = no; then
25152 # Check for the libraries.
25153 # See if we find them without any special options.
25154 # Don't add to $LIBS permanently.
25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h. */
25159 #include <X11/Xlib.h>
25168 if ac_fn_c_try_link "$LINENO"; then :
25170 # We can link X programs with no special library path.
25174 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25176 # Don't even attempt the hair of trying to link an X program!
25177 for ac_extension in a so sl dylib la dll; do
25178 if test -r "$ac_dir/libX11.$ac_extension"; then
25179 ac_x_libraries=$ac_dir
25185 rm -f core conftest.err conftest.$ac_objext \
25186 conftest$ac_exeext conftest.$ac_ext
25187 fi # $ac_x_libraries = no
25189 case $ac_x_includes,$ac_x_libraries in #(
25190 no,* | *,no | *\'*)
25191 # Didn't find X, or a directory has "'" in its name.
25192 ac_cv_have_x="have_x=no";; #(
25194 # Record where we found X for the cache.
25195 ac_cv_have_x="have_x=yes\
25196 ac_x_includes='$ac_x_includes'\
25197 ac_x_libraries='$ac_x_libraries'"
25203 eval "$ac_cv_have_x"
25206 if test "$have_x" != yes; then
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25208 $as_echo "$have_x" >&6; }
25211 # If each of the values was on the command line, it overrides each guess.
25212 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25213 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25214 # Update the cache value to reflect the command line values.
25215 ac_cv_have_x="have_x=yes\
25216 ac_x_includes='$x_includes'\
25217 ac_x_libraries='$x_libraries'"
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25219 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25222 if test "$no_x" = yes; then
25223 # Not all programs may use this symbol, but it does not hurt to define it.
25225 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25227 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25229 if test -n "$x_includes"; then
25230 X_CFLAGS="$X_CFLAGS -I$x_includes"
25233 # It would also be nice to do this for all -L options, not just this one.
25234 if test -n "$x_libraries"; then
25235 X_LIBS="$X_LIBS -L$x_libraries"
25236 # For Solaris; some versions of Sun CC require a space after -R and
25237 # others require no space. Words are not sufficient . . . .
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25239 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25240 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25241 ac_xsave_c_werror_flag=$ac_c_werror_flag
25242 ac_c_werror_flag=yes
25243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25244 /* end confdefs.h. */
25254 if ac_fn_c_try_link "$LINENO"; then :
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25256 $as_echo "no" >&6; }
25257 X_LIBS="$X_LIBS -R$x_libraries"
25259 LIBS="$ac_xsave_LIBS -R $x_libraries"
25260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h. */
25271 if ac_fn_c_try_link "$LINENO"; then :
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25273 $as_echo "yes" >&6; }
25274 X_LIBS="$X_LIBS -R $x_libraries"
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25277 $as_echo "neither works" >&6; }
25279 rm -f core conftest.err conftest.$ac_objext \
25280 conftest$ac_exeext conftest.$ac_ext
25282 rm -f core conftest.err conftest.$ac_objext \
25283 conftest$ac_exeext conftest.$ac_ext
25284 ac_c_werror_flag=$ac_xsave_c_werror_flag
25285 LIBS=$ac_xsave_LIBS
25288 # Check for system-dependent libraries X programs must link with.
25289 # Do this before checking for the system-independent R6 libraries
25290 # (-lICE), since we may need -lsocket or whatever for X linking.
25292 if test "$ISC" = yes; then
25293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25295 # Martyn Johnson says this is needed for Ultrix, if the X
25296 # libraries were built with DECnet support. And Karl Berry says
25297 # the Alpha needs dnet_stub (dnet does not exist).
25298 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h. */
25302 /* Override any GCC internal prototype to avoid an error.
25303 Use char because int might match the return type of a GCC
25304 builtin and then its argument prototype would still apply. */
25308 char XOpenDisplay ();
25312 return XOpenDisplay ();
25317 if ac_fn_c_try_link "$LINENO"; then :
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25321 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25322 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25323 $as_echo_n "(cached) " >&6
25325 ac_check_lib_save_LIBS=$LIBS
25326 LIBS="-ldnet $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. */
25340 return dnet_ntoa ();
25345 if ac_fn_c_try_link "$LINENO"; then :
25346 ac_cv_lib_dnet_dnet_ntoa=yes
25348 ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5
25355 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25356 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25357 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25360 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25362 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25363 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25364 $as_echo_n "(cached) " >&6
25366 ac_check_lib_save_LIBS=$LIBS
25367 LIBS="-ldnet_stub $LIBS"
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25371 /* Override any GCC internal prototype to avoid an error.
25372 Use char because int might match the return type of a GCC
25373 builtin and then its argument prototype would still apply. */
25381 return dnet_ntoa ();
25386 if ac_fn_c_try_link "$LINENO"; then :
25387 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25389 ac_cv_lib_dnet_stub_dnet_ntoa=no
25391 rm -f core conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
25393 LIBS=$ac_check_lib_save_LIBS
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25396 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25397 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25398 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25403 rm -f core conftest.err conftest.$ac_objext \
25404 conftest$ac_exeext conftest.$ac_ext
25405 LIBS="$ac_xsave_LIBS"
25407 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25408 # to get the SysV transport functions.
25409 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25411 # The nsl library prevents programs from opening the X display
25412 # on Irix 5.2, according to T.E. Dickey.
25413 # The functions gethostbyname, getservbyname, and inet_addr are
25414 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25415 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25416 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25420 if test $ac_cv_func_gethostbyname = no; then
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25422 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25423 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25424 $as_echo_n "(cached) " >&6
25426 ac_check_lib_save_LIBS=$LIBS
25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h. */
25431 /* Override any GCC internal prototype to avoid an error.
25432 Use char because int might match the return type of a GCC
25433 builtin and then its argument prototype would still apply. */
25437 char gethostbyname ();
25441 return gethostbyname ();
25446 if ac_fn_c_try_link "$LINENO"; then :
25447 ac_cv_lib_nsl_gethostbyname=yes
25449 ac_cv_lib_nsl_gethostbyname=no
25451 rm -f core conftest.err conftest.$ac_objext \
25452 conftest$ac_exeext conftest.$ac_ext
25453 LIBS=$ac_check_lib_save_LIBS
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25456 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25457 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25461 if test $ac_cv_lib_nsl_gethostbyname = no; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25463 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25464 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25465 $as_echo_n "(cached) " >&6
25467 ac_check_lib_save_LIBS=$LIBS
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h. */
25472 /* Override any GCC internal prototype to avoid an error.
25473 Use char because int might match the return type of a GCC
25474 builtin and then its argument prototype would still apply. */
25478 char gethostbyname ();
25482 return gethostbyname ();
25487 if ac_fn_c_try_link "$LINENO"; then :
25488 ac_cv_lib_bsd_gethostbyname=yes
25490 ac_cv_lib_bsd_gethostbyname=no
25492 rm -f core conftest.err conftest.$ac_objext \
25493 conftest$ac_exeext conftest.$ac_ext
25494 LIBS=$ac_check_lib_save_LIBS
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25497 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25498 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25505 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25506 # socket/setsockopt and other routines are undefined under SCO ODT
25507 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25508 # on later versions), says Simon Leinen: it contains gethostby*
25509 # variants that don't use the name server (or something). -lsocket
25510 # must be given before -lnsl if both are needed. We assume that
25511 # if connect needs -lnsl, so does gethostbyname.
25512 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25513 if test "x$ac_cv_func_connect" = xyes; then :
25517 if test $ac_cv_func_connect = no; then
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25519 $as_echo_n "checking for connect in -lsocket... " >&6; }
25520 if ${ac_cv_lib_socket_connect+:} false; then :
25521 $as_echo_n "(cached) " >&6
25523 ac_check_lib_save_LIBS=$LIBS
25524 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25528 /* Override any GCC internal prototype to avoid an error.
25529 Use char because int might match the return type of a GCC
25530 builtin and then its argument prototype would still apply. */
25543 if ac_fn_c_try_link "$LINENO"; then :
25544 ac_cv_lib_socket_connect=yes
25546 ac_cv_lib_socket_connect=no
25548 rm -f core conftest.err conftest.$ac_objext \
25549 conftest$ac_exeext conftest.$ac_ext
25550 LIBS=$ac_check_lib_save_LIBS
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25553 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25554 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25555 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25560 # Guillermo Gomez says -lposix is necessary on A/UX.
25561 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25562 if test "x$ac_cv_func_remove" = xyes; then :
25566 if test $ac_cv_func_remove = no; then
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25568 $as_echo_n "checking for remove in -lposix... " >&6; }
25569 if ${ac_cv_lib_posix_remove+:} false; then :
25570 $as_echo_n "(cached) " >&6
25572 ac_check_lib_save_LIBS=$LIBS
25573 LIBS="-lposix $LIBS"
25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h. */
25577 /* Override any GCC internal prototype to avoid an error.
25578 Use char because int might match the return type of a GCC
25579 builtin and then its argument prototype would still apply. */
25592 if ac_fn_c_try_link "$LINENO"; then :
25593 ac_cv_lib_posix_remove=yes
25595 ac_cv_lib_posix_remove=no
25597 rm -f core conftest.err conftest.$ac_objext \
25598 conftest$ac_exeext conftest.$ac_ext
25599 LIBS=$ac_check_lib_save_LIBS
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25602 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25603 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25609 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25610 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25611 if test "x$ac_cv_func_shmat" = xyes; then :
25615 if test $ac_cv_func_shmat = no; then
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25617 $as_echo_n "checking for shmat in -lipc... " >&6; }
25618 if ${ac_cv_lib_ipc_shmat+:} false; then :
25619 $as_echo_n "(cached) " >&6
25621 ac_check_lib_save_LIBS=$LIBS
25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624 /* end confdefs.h. */
25626 /* Override any GCC internal prototype to avoid an error.
25627 Use char because int might match the return type of a GCC
25628 builtin and then its argument prototype would still apply. */
25641 if ac_fn_c_try_link "$LINENO"; then :
25642 ac_cv_lib_ipc_shmat=yes
25644 ac_cv_lib_ipc_shmat=no
25646 rm -f core conftest.err conftest.$ac_objext \
25647 conftest$ac_exeext conftest.$ac_ext
25648 LIBS=$ac_check_lib_save_LIBS
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25651 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25652 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25653 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25659 # Check for libraries that X11R6 Xt/Xaw programs need.
25660 ac_save_LDFLAGS=$LDFLAGS
25661 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25662 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25663 # check for ICE first), but we must link in the order -lSM -lICE or
25664 # we get undefined symbols. So assume we have SM if we have ICE.
25665 # These have to be linked with before -lX11, unlike the other
25666 # libraries we check for below, so use a different variable.
25667 # John Interrante, Karl Berry
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25669 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25670 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25671 $as_echo_n "(cached) " >&6
25673 ac_check_lib_save_LIBS=$LIBS
25674 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25676 /* end confdefs.h. */
25678 /* Override any GCC internal prototype to avoid an error.
25679 Use char because int might match the return type of a GCC
25680 builtin and then its argument prototype would still apply. */
25684 char IceConnectionNumber ();
25688 return IceConnectionNumber ();
25693 if ac_fn_c_try_link "$LINENO"; then :
25694 ac_cv_lib_ICE_IceConnectionNumber=yes
25696 ac_cv_lib_ICE_IceConnectionNumber=no
25698 rm -f core conftest.err conftest.$ac_objext \
25699 conftest$ac_exeext conftest.$ac_ext
25700 LIBS=$ac_check_lib_save_LIBS
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25703 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25704 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25705 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25708 LDFLAGS=$ac_save_LDFLAGS
25746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25749 cat >>confdefs.h <<_ACEOF
25750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25758 $as_echo_n "checking for ANSI C header files... " >&6; }
25759 if ${ac_cv_header_stdc+:} false; then :
25760 $as_echo_n "(cached) " >&6
25762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25764 #include <stdlib.h>
25765 #include <stdarg.h>
25766 #include <string.h>
25777 if ac_fn_c_try_compile "$LINENO"; then :
25778 ac_cv_header_stdc=yes
25780 ac_cv_header_stdc=no
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25784 if test $ac_cv_header_stdc = yes; then
25785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787 /* end confdefs.h. */
25788 #include <string.h>
25791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25792 $EGREP "memchr" >/dev/null 2>&1; then :
25795 ac_cv_header_stdc=no
25801 if test $ac_cv_header_stdc = yes; then
25802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25804 /* end confdefs.h. */
25805 #include <stdlib.h>
25808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25809 $EGREP "free" >/dev/null 2>&1; then :
25812 ac_cv_header_stdc=no
25818 if test $ac_cv_header_stdc = yes; then
25819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25820 if test "$cross_compiling" = yes; then :
25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824 /* end confdefs.h. */
25826 #include <stdlib.h>
25827 #if ((' ' & 0x0FF) == 0x020)
25828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25831 # define ISLOWER(c) \
25832 (('a' <= (c) && (c) <= 'i') \
25833 || ('j' <= (c) && (c) <= 'r') \
25834 || ('s' <= (c) && (c) <= 'z'))
25835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25843 for (i = 0; i < 256; i++)
25844 if (XOR (islower (i), ISLOWER (i))
25845 || toupper (i) != TOUPPER (i))
25850 if ac_fn_c_try_run "$LINENO"; then :
25853 ac_cv_header_stdc=no
25855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25856 conftest.$ac_objext conftest.beam conftest.$ac_ext
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25862 $as_echo "$ac_cv_header_stdc" >&6; }
25863 if test $ac_cv_header_stdc = yes; then
25865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25870 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25871 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25872 $as_echo_n "(cached) " >&6
25874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875 /* end confdefs.h. */
25876 #include <sys/types.h>
25880 return makedev(0, 0);
25885 if ac_fn_c_try_link "$LINENO"; then :
25886 ac_cv_header_sys_types_h_makedev=yes
25888 ac_cv_header_sys_types_h_makedev=no
25890 rm -f core conftest.err conftest.$ac_objext \
25891 conftest$ac_exeext conftest.$ac_ext
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25895 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25897 if test $ac_cv_header_sys_types_h_makedev = no; then
25898 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25899 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25901 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25907 if test $ac_cv_header_sys_mkdev_h = no; then
25908 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25909 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25911 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25919 ac_header_dirent=no
25920 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25921 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25923 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25924 if eval \${$as_ac_Header+:} false; then :
25925 $as_echo_n "(cached) " >&6
25927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25928 /* end confdefs.h. */
25929 #include <sys/types.h>
25941 if ac_fn_c_try_compile "$LINENO"; then :
25942 eval "$as_ac_Header=yes"
25944 eval "$as_ac_Header=no"
25946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25948 eval ac_res=\$$as_ac_Header
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25950 $as_echo "$ac_res" >&6; }
25951 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25952 cat >>confdefs.h <<_ACEOF
25953 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25956 ac_header_dirent=$ac_hdr; break
25960 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25961 if test $ac_header_dirent = dirent.h; then
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25963 $as_echo_n "checking for library containing opendir... " >&6; }
25964 if ${ac_cv_search_opendir+:} false; then :
25965 $as_echo_n "(cached) " >&6
25967 ac_func_search_save_LIBS=$LIBS
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h. */
25971 /* Override any GCC internal prototype to avoid an error.
25972 Use char because int might match the return type of a GCC
25973 builtin and then its argument prototype would still apply. */
25986 for ac_lib in '' dir; do
25987 if test -z "$ac_lib"; then
25988 ac_res="none required"
25991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25993 if ac_fn_c_try_link "$LINENO"; then :
25994 ac_cv_search_opendir=$ac_res
25996 rm -f core conftest.err conftest.$ac_objext \
25998 if ${ac_cv_search_opendir+:} false; then :
26002 if ${ac_cv_search_opendir+:} false; then :
26005 ac_cv_search_opendir=no
26007 rm conftest.$ac_ext
26008 LIBS=$ac_func_search_save_LIBS
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26011 $as_echo "$ac_cv_search_opendir" >&6; }
26012 ac_res=$ac_cv_search_opendir
26013 if test "$ac_res" != no; then :
26014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26020 $as_echo_n "checking for library containing opendir... " >&6; }
26021 if ${ac_cv_search_opendir+:} false; then :
26022 $as_echo_n "(cached) " >&6
26024 ac_func_search_save_LIBS=$LIBS
26025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026 /* end confdefs.h. */
26028 /* Override any GCC internal prototype to avoid an error.
26029 Use char because int might match the return type of a GCC
26030 builtin and then its argument prototype would still apply. */
26043 for ac_lib in '' x; do
26044 if test -z "$ac_lib"; then
26045 ac_res="none required"
26048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26050 if ac_fn_c_try_link "$LINENO"; then :
26051 ac_cv_search_opendir=$ac_res
26053 rm -f core conftest.err conftest.$ac_objext \
26055 if ${ac_cv_search_opendir+:} false; then :
26059 if ${ac_cv_search_opendir+:} false; then :
26062 ac_cv_search_opendir=no
26064 rm conftest.$ac_ext
26065 LIBS=$ac_func_search_save_LIBS
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26068 $as_echo "$ac_cv_search_opendir" >&6; }
26069 ac_res=$ac_cv_search_opendir
26070 if test "$ac_res" != no; then :
26071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26078 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26079 if ${ac_cv_header_stat_broken+:} false; then :
26080 $as_echo_n "(cached) " >&6
26082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26083 /* end confdefs.h. */
26084 #include <sys/types.h>
26085 #include <sys/stat.h>
26087 #if defined S_ISBLK && defined S_IFDIR
26088 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26091 #if defined S_ISBLK && defined S_IFCHR
26092 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26095 #if defined S_ISLNK && defined S_IFREG
26096 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26099 #if defined S_ISSOCK && defined S_IFREG
26100 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26104 if ac_fn_c_try_compile "$LINENO"; then :
26105 ac_cv_header_stat_broken=no
26107 ac_cv_header_stat_broken=yes
26109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26112 $as_echo "$ac_cv_header_stat_broken" >&6; }
26113 if test $ac_cv_header_stat_broken = yes; then
26115 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26121 if ${ac_cv_header_sys_wait_h+:} false; then :
26122 $as_echo_n "(cached) " >&6
26124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26125 /* end confdefs.h. */
26126 #include <sys/types.h>
26127 #include <sys/wait.h>
26128 #ifndef WEXITSTATUS
26129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26140 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26145 if ac_fn_c_try_compile "$LINENO"; then :
26146 ac_cv_header_sys_wait_h=yes
26148 ac_cv_header_sys_wait_h=no
26150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26154 if test $ac_cv_header_sys_wait_h = yes; then
26156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26161 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26162 if ${ac_cv_header_time+:} false; then :
26163 $as_echo_n "(cached) " >&6
26165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26166 /* end confdefs.h. */
26167 #include <sys/types.h>
26168 #include <sys/time.h>
26174 if ((struct tm *) 0)
26180 if ac_fn_c_try_compile "$LINENO"; then :
26181 ac_cv_header_time=yes
26183 ac_cv_header_time=no
26185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26188 $as_echo "$ac_cv_header_time" >&6; }
26189 if test $ac_cv_header_time = yes; then
26191 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26195 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26196 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26198 cat >>confdefs.h <<_ACEOF
26199 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26203 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26208 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26209 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26211 cat >>confdefs.h <<_ACEOF
26212 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26216 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26219 case " $LIBOBJS " in
26220 *" fileblocks.$ac_objext "* ) ;;
26221 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26229 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26230 if ${ac_cv_struct_tm+:} false; then :
26231 $as_echo_n "(cached) " >&6
26233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h. */
26235 #include <sys/types.h>
26242 int *p = &tm.tm_sec;
26248 if ac_fn_c_try_compile "$LINENO"; then :
26249 ac_cv_struct_tm=time.h
26251 ac_cv_struct_tm=sys/time.h
26253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26256 $as_echo "$ac_cv_struct_tm" >&6; }
26257 if test $ac_cv_struct_tm = sys/time.h; then
26259 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26263 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26264 #include <$ac_cv_struct_tm>
26267 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26269 cat >>confdefs.h <<_ACEOF
26270 #define HAVE_STRUCT_TM_TM_ZONE 1
26276 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26278 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26281 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26283 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26289 cat >>confdefs.h <<_ACEOF
26290 #define HAVE_DECL_TZNAME $ac_have_decl
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26294 $as_echo_n "checking for tzname... " >&6; }
26295 if ${ac_cv_var_tzname+:} false; then :
26296 $as_echo_n "(cached) " >&6
26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h. */
26301 #if !HAVE_DECL_TZNAME
26302 extern char *tzname[];
26308 return tzname[0][0];
26313 if ac_fn_c_try_link "$LINENO"; then :
26314 ac_cv_var_tzname=yes
26316 ac_cv_var_tzname=no
26318 rm -f core conftest.err conftest.$ac_objext \
26319 conftest$ac_exeext conftest.$ac_ext
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26322 $as_echo "$ac_cv_var_tzname" >&6; }
26323 if test $ac_cv_var_tzname = yes; then
26325 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26332 $as_echo_n "checking for utime.h... " >&6; }
26333 if ${ba_cv_header_utime_h+:} false; then :
26334 $as_echo_n "(cached) " >&6
26337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h. */
26340 #include <sys/types.h>
26353 if ac_fn_c_try_compile "$LINENO"; then :
26355 ba_cv_header_utime_h=yes
26359 ba_cv_header_utime_h=no
26363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26368 $as_echo "$ba_cv_header_utime_h" >&6; }
26369 test $ba_cv_header_utime_h = yes &&
26370 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26374 $as_echo_n "checking for socklen_t... " >&6; }
26375 if ${ba_cv_header_socklen_t+:} false; then :
26376 $as_echo_n "(cached) " >&6
26379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h. */
26382 #include <sys/types.h>
26383 #include <sys/socket.h>
26395 if ac_fn_c_try_compile "$LINENO"; then :
26397 ba_cv_header_socklen_t=yes
26401 ba_cv_header_socklen_t=no
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26410 $as_echo "$ba_cv_header_socklen_t" >&6; }
26411 test $ba_cv_header_socklen_t = yes &&
26412 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26416 ac_cpp='$CXXCPP $CPPFLAGS'
26417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26422 $as_echo_n "checking for ioctl_req_t... " >&6; }
26423 if ${ba_cv_header_ioctl_req_t+:} false; then :
26424 $as_echo_n "(cached) " >&6
26427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h. */
26430 #include <unistd.h>
26431 #include <sys/types.h>
26432 #include <sys/ioctl.h>
26438 int (*d_ioctl)(int fd, unsigned long int request, ...);
26445 if ac_fn_cxx_try_compile "$LINENO"; then :
26447 ba_cv_header_ioctl_req_t=yes
26451 ba_cv_header_ioctl_req_t=no
26455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26460 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26461 test $ba_cv_header_ioctl_req_t = yes &&
26462 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26466 ac_cpp='$CPP $CPPFLAGS'
26467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26473 ac_cpp='$CXXCPP $CPPFLAGS'
26474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26479 $as_echo_n "checking for typeof... " >&6; }
26480 if ${ba_cv_have_typeof+:} false; then :
26481 $as_echo_n "(cached) " >&6
26484 if test "$cross_compiling" = yes; then :
26486 ba_cv_have_typeof=no
26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26491 /* end confdefs.h. */
26493 main(){char *a = 0; a = (typeof a)a;}
26496 if ac_fn_cxx_try_run "$LINENO"; then :
26498 ba_cv_have_typeof=yes
26502 ba_cv_have_typeof=no
26505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26506 conftest.$ac_objext conftest.beam conftest.$ac_ext
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26513 $as_echo "$ba_cv_have_typeof" >&6; }
26514 test $ba_cv_have_typeof = yes &&
26515 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26518 ac_cpp='$CPP $CPPFLAGS'
26519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26525 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26526 if ${ac_cv_c_const+:} false; then :
26527 $as_echo_n "(cached) " >&6
26529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h. */
26536 #ifndef __cplusplus
26537 /* Ultrix mips cc rejects this sort of thing. */
26538 typedef int charset[2];
26539 const charset cs = { 0, 0 };
26540 /* SunOS 4.1.1 cc rejects this. */
26541 char const *const *pcpcc;
26543 /* NEC SVR4.0.2 mips cc rejects this. */
26544 struct point {int x, y;};
26545 static struct point const zero = {0,0};
26546 /* AIX XL C 1.02.0.0 rejects this.
26547 It does not let you subtract one const X* pointer from another in
26548 an arm of an if-expression whose if-part is not a constant
26550 const char *g = "string";
26551 pcpcc = &g + (g ? g-g : 0);
26552 /* HPUX 7.0 cc rejects these. */
26554 ppc = (char**) pcpcc;
26555 pcpcc = (char const *const *) ppc;
26556 { /* SCO 3.2v4 cc rejects this sort of thing. */
26559 char const *s = 0 ? (char *) 0 : (char const *) 0;
26564 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26565 int x[] = {25, 17};
26566 const int *foo = &x[0];
26569 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26570 typedef const int *iptr;
26574 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26575 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26576 struct s { int j; const int *ap[3]; } bx;
26577 struct s *b = &bx; b->j = 5;
26579 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26580 const int foo = 10;
26581 if (!foo) return 0;
26583 return !cs[0] && !zero.x;
26590 if ac_fn_c_try_compile "$LINENO"; then :
26595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26598 $as_echo "$ac_cv_c_const" >&6; }
26599 if test $ac_cv_c_const = no; then
26601 $as_echo "#define const /**/" >>confdefs.h
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26607 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26608 if ${ac_cv_c_bigendian+:} false; then :
26609 $as_echo_n "(cached) " >&6
26611 ac_cv_c_bigendian=unknown
26612 # See if we're dealing with a universal compiler.
26613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26614 /* end confdefs.h. */
26615 #ifndef __APPLE_CC__
26616 not a universal capable compiler
26621 if ac_fn_c_try_compile "$LINENO"; then :
26623 # Check for potential -arch flags. It is not universal unless
26624 # there are at least two -arch flags with different values.
26627 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26628 if test -n "$ac_prev"; then
26630 i?86 | x86_64 | ppc | ppc64)
26631 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26634 ac_cv_c_bigendian=universal
26640 elif test "x$ac_word" = "x-arch"; then
26645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26646 if test $ac_cv_c_bigendian = unknown; then
26647 # See if sys/param.h defines the BYTE_ORDER macro.
26648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26649 /* end confdefs.h. */
26650 #include <sys/types.h>
26651 #include <sys/param.h>
26656 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26657 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26659 bogus endian macros
26666 if ac_fn_c_try_compile "$LINENO"; then :
26667 # It does; now see whether it defined to BIG_ENDIAN or not.
26668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26669 /* end confdefs.h. */
26670 #include <sys/types.h>
26671 #include <sys/param.h>
26676 #if BYTE_ORDER != BIG_ENDIAN
26684 if ac_fn_c_try_compile "$LINENO"; then :
26685 ac_cv_c_bigendian=yes
26687 ac_cv_c_bigendian=no
26689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26693 if test $ac_cv_c_bigendian = unknown; then
26694 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h. */
26697 #include <limits.h>
26702 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26703 bogus endian macros
26710 if ac_fn_c_try_compile "$LINENO"; then :
26711 # It does; now see whether it defined to _BIG_ENDIAN or not.
26712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26713 /* end confdefs.h. */
26714 #include <limits.h>
26719 #ifndef _BIG_ENDIAN
26727 if ac_fn_c_try_compile "$LINENO"; then :
26728 ac_cv_c_bigendian=yes
26730 ac_cv_c_bigendian=no
26732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736 if test $ac_cv_c_bigendian = unknown; then
26737 # Compile a test program.
26738 if test "$cross_compiling" = yes; then :
26739 # Try to guess by grepping values from an object file.
26740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26741 /* end confdefs.h. */
26742 short int ascii_mm[] =
26743 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26744 short int ascii_ii[] =
26745 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26746 int use_ascii (int i) {
26747 return ascii_mm[i] + ascii_ii[i];
26749 short int ebcdic_ii[] =
26750 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26751 short int ebcdic_mm[] =
26752 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26753 int use_ebcdic (int i) {
26754 return ebcdic_mm[i] + ebcdic_ii[i];
26761 return use_ascii (foo) == use_ebcdic (foo);
26766 if ac_fn_c_try_compile "$LINENO"; then :
26767 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26768 ac_cv_c_bigendian=yes
26770 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26771 if test "$ac_cv_c_bigendian" = unknown; then
26772 ac_cv_c_bigendian=no
26774 # finding both strings is unlikely to happen, but who knows?
26775 ac_cv_c_bigendian=unknown
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26783 $ac_includes_default
26788 /* Are we little or big endian? From Harbison&Steele. */
26792 char c[sizeof (long int)];
26795 return u.c[sizeof (long int) - 1] == 1;
26801 if ac_fn_c_try_run "$LINENO"; then :
26802 ac_cv_c_bigendian=no
26804 ac_cv_c_bigendian=yes
26806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26807 conftest.$ac_objext conftest.beam conftest.$ac_ext
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26813 $as_echo "$ac_cv_c_bigendian" >&6; }
26814 case $ac_cv_c_bigendian in #(
26817 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26821 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26825 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26829 as_fn_error $? "unknown endianness
26830 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26835 $as_echo_n "checking how to get filesystem type... " >&6; }
26837 # The order of these tests is important.
26838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h. */
26841 #include <sys/statvfs.h>
26842 #include <sys/fstyp.h>
26845 if ac_fn_c_try_cpp "$LINENO"; then :
26846 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26850 rm -f conftest.err conftest.i conftest.$ac_ext
26851 if test $fstype = no; then
26852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853 /* end confdefs.h. */
26855 #include <sys/statfs.h>
26856 #include <sys/fstyp.h>
26859 if ac_fn_c_try_cpp "$LINENO"; then :
26860 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26864 rm -f conftest.err conftest.i conftest.$ac_ext
26866 if test $fstype = no; then
26867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26868 /* end confdefs.h. */
26870 #include <sys/statfs.h>
26871 #include <sys/vmount.h>
26874 if ac_fn_c_try_cpp "$LINENO"; then :
26875 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26879 rm -f conftest.err conftest.i conftest.$ac_ext
26881 if test $fstype = no; then
26882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26883 /* end confdefs.h. */
26885 #include <mntent.h>
26888 if ac_fn_c_try_cpp "$LINENO"; then :
26889 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26893 rm -f conftest.err conftest.i conftest.$ac_ext
26895 if test $fstype = no; then
26896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26897 /* end confdefs.h. */
26898 #include <sys/mount.h>
26901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26902 $EGREP "f_type;" >/dev/null 2>&1; then :
26903 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26909 if test $fstype = no; then
26910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26911 /* end confdefs.h. */
26913 #include <sys/mount.h>
26914 #include <sys/fs_types.h>
26917 if ac_fn_c_try_cpp "$LINENO"; then :
26918 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26922 rm -f conftest.err conftest.i conftest.$ac_ext
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26925 $as_echo "$fstype" >&6; }
26927 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26928 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26930 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26937 ac_cpp='$CXXCPP $CPPFLAGS'
26938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26942 for ac_func in backtrace
26944 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26945 if test "x$ac_cv_func_backtrace" = xyes; then :
26946 cat >>confdefs.h <<_ACEOF
26947 #define HAVE_BACKTRACE 1
26954 ac_cpp='$CPP $CPPFLAGS'
26955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26961 $as_echo_n "checking return type of signal handlers... " >&6; }
26962 if ${ac_cv_type_signal+:} false; then :
26963 $as_echo_n "(cached) " >&6
26965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26966 /* end confdefs.h. */
26967 #include <sys/types.h>
26968 #include <signal.h>
26973 return *(signal (0, 0)) (0) == 1;
26978 if ac_fn_c_try_compile "$LINENO"; then :
26979 ac_cv_type_signal=int
26981 ac_cv_type_signal=void
26983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26986 $as_echo "$ac_cv_type_signal" >&6; }
26988 cat >>confdefs.h <<_ACEOF
26989 #define RETSIGTYPE $ac_cv_type_signal
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26995 $as_echo_n "checking for type of signal functions... " >&6; }
26996 if ${bash_cv_signal_vintage+:} false; then :
26997 $as_echo_n "(cached) " >&6
27000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27001 /* end confdefs.h. */
27002 #include <signal.h>
27008 struct sigaction sa;
27009 sigemptyset(&ss); sigsuspend(&ss);
27010 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27011 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27017 if ac_fn_c_try_link "$LINENO"; then :
27018 bash_cv_signal_vintage="posix"
27021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27022 /* end confdefs.h. */
27023 #include <signal.h>
27028 int mask = sigmask(SIGINT);
27029 sigsetmask(mask); sigblock(mask); sigpause(mask);
27035 if ac_fn_c_try_link "$LINENO"; then :
27036 bash_cv_signal_vintage="4.2bsd"
27039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27040 /* end confdefs.h. */
27042 #include <signal.h>
27043 RETSIGTYPE foo() { }
27048 int mask = sigmask(SIGINT);
27049 sigset(SIGINT, foo); sigrelse(SIGINT);
27050 sighold(SIGINT); sigpause(SIGINT);
27056 if ac_fn_c_try_link "$LINENO"; then :
27057 bash_cv_signal_vintage="svr3"
27059 bash_cv_signal_vintage="v7"
27062 rm -f core conftest.err conftest.$ac_objext \
27063 conftest$ac_exeext conftest.$ac_ext
27066 rm -f core conftest.err conftest.$ac_objext \
27067 conftest$ac_exeext conftest.$ac_ext
27070 rm -f core conftest.err conftest.$ac_objext \
27071 conftest$ac_exeext conftest.$ac_ext
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27076 $as_echo "$bash_cv_signal_vintage" >&6; }
27077 if test "$bash_cv_signal_vintage" = "posix"; then
27078 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27080 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27081 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27083 elif test "$bash_cv_signal_vintage" = "svr3"; then
27084 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27088 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27089 if test "x$ac_cv_type_mode_t" = xyes; then :
27093 cat >>confdefs.h <<_ACEOF
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27100 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27101 if ${ac_cv_type_uid_t+:} false; then :
27102 $as_echo_n "(cached) " >&6
27104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105 /* end confdefs.h. */
27106 #include <sys/types.h>
27109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27110 $EGREP "uid_t" >/dev/null 2>&1; then :
27111 ac_cv_type_uid_t=yes
27113 ac_cv_type_uid_t=no
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27119 $as_echo "$ac_cv_type_uid_t" >&6; }
27120 if test $ac_cv_type_uid_t = no; then
27122 $as_echo "#define uid_t int" >>confdefs.h
27125 $as_echo "#define gid_t int" >>confdefs.h
27129 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27130 if test "x$ac_cv_type_size_t" = xyes; then :
27134 cat >>confdefs.h <<_ACEOF
27135 #define size_t unsigned int
27140 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27141 if test "x$ac_cv_type_pid_t" = xyes; then :
27145 cat >>confdefs.h <<_ACEOF
27151 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27152 if test "x$ac_cv_type_off_t" = xyes; then :
27156 cat >>confdefs.h <<_ACEOF
27157 #define off_t long int
27163 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27164 if test "x$ac_cv_type_intptr_t" = xyes; then :
27166 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27169 for ac_type in 'int' 'long int' 'long long int'; do
27170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27172 $ac_includes_default
27176 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27177 test_array [0] = 0;
27178 return test_array [0];
27184 if ac_fn_c_try_compile "$LINENO"; then :
27186 cat >>confdefs.h <<_ACEOF
27187 #define intptr_t $ac_type
27192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27193 test -z "$ac_type" && break
27199 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27200 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27202 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27205 for ac_type in 'unsigned int' 'unsigned long int' \
27206 'unsigned long long int'; do
27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27209 $ac_includes_default
27213 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27214 test_array [0] = 0;
27215 return test_array [0];
27221 if ac_fn_c_try_compile "$LINENO"; then :
27223 cat >>confdefs.h <<_ACEOF
27224 #define uintptr_t $ac_type
27229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27230 test -z "$ac_type" && break
27235 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27236 if test "x$ac_cv_type_ino_t" = xyes; then :
27240 cat >>confdefs.h <<_ACEOF
27241 #define ino_t unsigned long
27246 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27247 if test "x$ac_cv_type_dev_t" = xyes; then :
27251 cat >>confdefs.h <<_ACEOF
27252 #define dev_t unsigned long
27257 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27258 if test "x$ac_cv_type_daddr_t" = xyes; then :
27262 cat >>confdefs.h <<_ACEOF
27263 #define daddr_t long
27268 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27269 if test "x$ac_cv_type_major_t" = xyes; then :
27273 cat >>confdefs.h <<_ACEOF
27274 #define major_t int
27279 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27280 if test "x$ac_cv_type_minor_t" = xyes; then :
27284 cat >>confdefs.h <<_ACEOF
27285 #define minor_t int
27290 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27291 if test "x$ac_cv_type_ssize_t" = xyes; then :
27295 cat >>confdefs.h <<_ACEOF
27296 #define ssize_t int
27301 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27302 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27304 cat >>confdefs.h <<_ACEOF
27305 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27309 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27312 case " $LIBOBJS " in
27313 *" fileblocks.$ac_objext "* ) ;;
27314 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27321 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27322 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27324 cat >>confdefs.h <<_ACEOF
27325 #define HAVE_STRUCT_STAT_ST_RDEV 1
27329 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27335 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27336 if ${ac_cv_struct_tm+:} false; then :
27337 $as_echo_n "(cached) " >&6
27339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340 /* end confdefs.h. */
27341 #include <sys/types.h>
27348 int *p = &tm.tm_sec;
27354 if ac_fn_c_try_compile "$LINENO"; then :
27355 ac_cv_struct_tm=time.h
27357 ac_cv_struct_tm=sys/time.h
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27362 $as_echo "$ac_cv_struct_tm" >&6; }
27363 if test $ac_cv_struct_tm = sys/time.h; then
27365 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27370 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27371 if ${ac_cv_c_const+:} false; then :
27372 $as_echo_n "(cached) " >&6
27374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27375 /* end confdefs.h. */
27381 #ifndef __cplusplus
27382 /* Ultrix mips cc rejects this sort of thing. */
27383 typedef int charset[2];
27384 const charset cs = { 0, 0 };
27385 /* SunOS 4.1.1 cc rejects this. */
27386 char const *const *pcpcc;
27388 /* NEC SVR4.0.2 mips cc rejects this. */
27389 struct point {int x, y;};
27390 static struct point const zero = {0,0};
27391 /* AIX XL C 1.02.0.0 rejects this.
27392 It does not let you subtract one const X* pointer from another in
27393 an arm of an if-expression whose if-part is not a constant
27395 const char *g = "string";
27396 pcpcc = &g + (g ? g-g : 0);
27397 /* HPUX 7.0 cc rejects these. */
27399 ppc = (char**) pcpcc;
27400 pcpcc = (char const *const *) ppc;
27401 { /* SCO 3.2v4 cc rejects this sort of thing. */
27404 char const *s = 0 ? (char *) 0 : (char const *) 0;
27409 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27410 int x[] = {25, 17};
27411 const int *foo = &x[0];
27414 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27415 typedef const int *iptr;
27419 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27420 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27421 struct s { int j; const int *ap[3]; } bx;
27422 struct s *b = &bx; b->j = 5;
27424 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27425 const int foo = 10;
27426 if (!foo) return 0;
27428 return !cs[0] && !zero.x;
27435 if ac_fn_c_try_compile "$LINENO"; then :
27440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27443 $as_echo "$ac_cv_c_const" >&6; }
27444 if test $ac_cv_c_const = no; then
27446 $as_echo "#define const /**/" >>confdefs.h
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27451 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27452 if ${ac_cv_c_restrict+:} false; then :
27453 $as_echo_n "(cached) " >&6
27455 ac_cv_c_restrict=no
27456 # The order here caters to the fact that C++ does not require restrict.
27457 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459 /* end confdefs.h. */
27460 typedef int * int_ptr;
27461 int foo (int_ptr $ac_kw ip) {
27468 int * $ac_kw t = s;
27475 if ac_fn_c_try_compile "$LINENO"; then :
27476 ac_cv_c_restrict=$ac_kw
27478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27479 test "$ac_cv_c_restrict" != no && break
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27484 $as_echo "$ac_cv_c_restrict" >&6; }
27486 case $ac_cv_c_restrict in
27488 no) $as_echo "#define restrict /**/" >>confdefs.h
27490 *) cat >>confdefs.h <<_ACEOF
27491 #define restrict $ac_cv_c_restrict
27497 # The cast to long int works around a bug in the HP C Compiler
27498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27500 # This bug is HP SR number 8606223364.
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27502 $as_echo_n "checking size of char... " >&6; }
27503 if ${ac_cv_sizeof_char+:} false; then :
27504 $as_echo_n "(cached) " >&6
27506 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27509 if test "$ac_cv_type_char" = yes; then
27510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27512 as_fn_error 77 "cannot compute sizeof (char)
27513 See \`config.log' for more details" "$LINENO" 5; }
27515 ac_cv_sizeof_char=0
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27521 $as_echo "$ac_cv_sizeof_char" >&6; }
27525 cat >>confdefs.h <<_ACEOF
27526 #define SIZEOF_CHAR $ac_cv_sizeof_char
27530 # The cast to long int works around a bug in the HP C Compiler
27531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27533 # This bug is HP SR number 8606223364.
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27535 $as_echo_n "checking size of short int... " >&6; }
27536 if ${ac_cv_sizeof_short_int+:} false; then :
27537 $as_echo_n "(cached) " >&6
27539 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27542 if test "$ac_cv_type_short_int" = yes; then
27543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27545 as_fn_error 77 "cannot compute sizeof (short int)
27546 See \`config.log' for more details" "$LINENO" 5; }
27548 ac_cv_sizeof_short_int=0
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27554 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27558 cat >>confdefs.h <<_ACEOF
27559 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27563 # The cast to long int works around a bug in the HP C Compiler
27564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27566 # This bug is HP SR number 8606223364.
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27568 $as_echo_n "checking size of int... " >&6; }
27569 if ${ac_cv_sizeof_int+:} false; then :
27570 $as_echo_n "(cached) " >&6
27572 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27575 if test "$ac_cv_type_int" = yes; then
27576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27578 as_fn_error 77 "cannot compute sizeof (int)
27579 See \`config.log' for more details" "$LINENO" 5; }
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27587 $as_echo "$ac_cv_sizeof_int" >&6; }
27591 cat >>confdefs.h <<_ACEOF
27592 #define SIZEOF_INT $ac_cv_sizeof_int
27596 # The cast to long int works around a bug in the HP C Compiler
27597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27599 # This bug is HP SR number 8606223364.
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27601 $as_echo_n "checking size of long int... " >&6; }
27602 if ${ac_cv_sizeof_long_int+:} false; then :
27603 $as_echo_n "(cached) " >&6
27605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27608 if test "$ac_cv_type_long_int" = yes; then
27609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27611 as_fn_error 77 "cannot compute sizeof (long int)
27612 See \`config.log' for more details" "$LINENO" 5; }
27614 ac_cv_sizeof_long_int=0
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27620 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27624 cat >>confdefs.h <<_ACEOF
27625 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27629 # The cast to long int works around a bug in the HP C Compiler
27630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27632 # This bug is HP SR number 8606223364.
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27634 $as_echo_n "checking size of long long int... " >&6; }
27635 if ${ac_cv_sizeof_long_long_int+:} false; then :
27636 $as_echo_n "(cached) " >&6
27638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27641 if test "$ac_cv_type_long_long_int" = yes; then
27642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27644 as_fn_error 77 "cannot compute sizeof (long long int)
27645 See \`config.log' for more details" "$LINENO" 5; }
27647 ac_cv_sizeof_long_long_int=0
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27653 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27657 cat >>confdefs.h <<_ACEOF
27658 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27662 # The cast to long int works around a bug in the HP C Compiler
27663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27665 # This bug is HP SR number 8606223364.
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27667 $as_echo_n "checking size of int *... " >&6; }
27668 if ${ac_cv_sizeof_int_p+:} false; then :
27669 $as_echo_n "(cached) " >&6
27671 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27674 if test "$ac_cv_type_int_p" = yes; then
27675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27677 as_fn_error 77 "cannot compute sizeof (int *)
27678 See \`config.log' for more details" "$LINENO" 5; }
27680 ac_cv_sizeof_int_p=0
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27686 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27690 cat >>confdefs.h <<_ACEOF
27691 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27697 $as_echo_n "checking for u_int type... " >&6; }
27698 if ${ac_cv_have_u_int+:} false; then :
27699 $as_echo_n "(cached) " >&6
27702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27703 /* end confdefs.h. */
27705 #include <sys/types.h>
27717 if ac_fn_c_try_compile "$LINENO"; then :
27719 ac_cv_have_u_int="yes"
27723 ac_cv_have_u_int="no"
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27732 $as_echo "$ac_cv_have_u_int" >&6; }
27733 if test "x$ac_cv_have_u_int" = "xyes" ; then
27734 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27740 $as_echo_n "checking for intmax_t type... " >&6; }
27741 if ${ac_cv_have_intmax_t+:} false; then :
27742 $as_echo_n "(cached) " >&6
27745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27746 /* end confdefs.h. */
27748 #include <sys/types.h>
27760 if ac_fn_c_try_compile "$LINENO"; then :
27762 ac_cv_have_intmax_t="yes"
27766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h. */
27769 #include <stdint.h>
27781 if ac_fn_c_try_compile "$LINENO"; then :
27783 ac_cv_have_intmax_t="yes"
27787 ac_cv_have_intmax_t="no"
27791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27800 $as_echo "$ac_cv_have_intmax_t" >&6; }
27801 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27802 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27808 $as_echo_n "checking for u_intmax_t type... " >&6; }
27809 if ${ac_cv_have_u_intmax_t+:} false; then :
27810 $as_echo_n "(cached) " >&6
27813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814 /* end confdefs.h. */
27816 #include <sys/types.h>
27822 u_intmax_t a; a = 1;
27828 if ac_fn_c_try_compile "$LINENO"; then :
27830 ac_cv_have_u_intmax_t="yes"
27834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27835 /* end confdefs.h. */
27837 #include <stdint.h>
27843 u_intmax_t a; a = 1;
27849 if ac_fn_c_try_compile "$LINENO"; then :
27851 ac_cv_have_u_intmax_t="yes"
27855 ac_cv_have_u_intmax_t="no"
27859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27868 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27869 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27870 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27876 $as_echo_n "checking for intXX_t types... " >&6; }
27877 if ${ac_cv_have_intxx_t+:} false; then :
27878 $as_echo_n "(cached) " >&6
27881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27882 /* end confdefs.h. */
27884 #include <sys/types.h>
27890 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27896 if ac_fn_c_try_compile "$LINENO"; then :
27898 ac_cv_have_intxx_t="yes"
27902 ac_cv_have_intxx_t="no"
27906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27911 $as_echo "$ac_cv_have_intxx_t" >&6; }
27912 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27913 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27919 $as_echo_n "checking for int64_t type... " >&6; }
27920 if ${ac_cv_have_int64_t+:} false; then :
27921 $as_echo_n "(cached) " >&6
27924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27925 /* end confdefs.h. */
27927 #include <sys/types.h>
27939 if ac_fn_c_try_compile "$LINENO"; then :
27941 ac_cv_have_int64_t="yes"
27945 ac_cv_have_int64_t="no"
27949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27954 $as_echo "$ac_cv_have_int64_t" >&6; }
27955 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27956 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27962 $as_echo_n "checking for u_intXX_t types... " >&6; }
27963 if ${ac_cv_have_u_intxx_t+:} false; then :
27964 $as_echo_n "(cached) " >&6
27967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27968 /* end confdefs.h. */
27970 #include <sys/types.h>
27976 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27982 if ac_fn_c_try_compile "$LINENO"; then :
27984 ac_cv_have_u_intxx_t="yes"
27988 ac_cv_have_u_intxx_t="no"
27992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27997 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27998 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27999 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28005 $as_echo_n "checking for u_int64_t types... " >&6; }
28006 if ${ac_cv_have_u_int64_t+:} false; then :
28007 $as_echo_n "(cached) " >&6
28010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28011 /* end confdefs.h. */
28013 #include <sys/types.h>
28019 u_int64_t a; a = 1;
28025 if ac_fn_c_try_compile "$LINENO"; then :
28027 ac_cv_have_u_int64_t="yes"
28031 ac_cv_have_u_int64_t="no"
28035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28040 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28041 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28042 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28047 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28048 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28051 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28053 /* end confdefs.h. */
28055 #include <sys/bitypes.h>
28061 int8_t a; int16_t b; int32_t c;
28062 u_int8_t e; u_int16_t f; u_int32_t g;
28063 a = b = c = e = f = g = 1;
28069 if ac_fn_c_try_compile "$LINENO"; then :
28071 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28073 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28075 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28078 $as_echo "yes" >&6; }
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28083 $as_echo "no" >&6; }
28087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28090 if test -z "$have_u_intxx_t" ; then
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28092 $as_echo_n "checking for uintXX_t types... " >&6; }
28093 if ${ac_cv_have_uintxx_t+:} false; then :
28094 $as_echo_n "(cached) " >&6
28097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098 /* end confdefs.h. */
28100 #include <sys/types.h>
28106 uint8_t a; uint16_t b;
28107 uint32_t c; a = b = c = 1;
28113 if ac_fn_c_try_compile "$LINENO"; then :
28115 ac_cv_have_uintxx_t="yes"
28119 ac_cv_have_uintxx_t="no"
28123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28128 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28129 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28130 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28135 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28136 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28139 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28141 /* end confdefs.h. */
28143 #include <sys/bitypes.h>
28149 int64_t a; u_int64_t b;
28156 if ac_fn_c_try_compile "$LINENO"; then :
28158 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28160 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28163 $as_echo "yes" >&6; }
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28168 $as_echo "no" >&6; }
28172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 if (test -z "$have_uintxx_t" && \
28176 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28179 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28181 /* end confdefs.h. */
28183 #include <sys/bitypes.h>
28189 uint8_t a; uint16_t b;
28190 uint32_t c; a = b = c = 1;
28196 if ac_fn_c_try_compile "$LINENO"; then :
28198 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28201 $as_echo "yes" >&6; }
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28206 $as_echo "no" >&6; }
28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28232 cat >>confdefs.h <<_ACEOF
28233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28237 echo 'configure: cannot find needed function.'; exit 1
28243 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28246 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28248 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28253 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28256 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28258 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28263 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28264 if test "x$ac_cv_func_closefrom" = xyes; then :
28266 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28270 for ac_func in getpagesize
28272 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28273 if test "x$ac_cv_func_getpagesize" = xyes; then :
28274 cat >>confdefs.h <<_ACEOF
28275 #define HAVE_GETPAGESIZE 1
28278 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28283 for ac_func in malloc_trim
28285 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28286 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28287 cat >>confdefs.h <<_ACEOF
28288 #define HAVE_MALLOC_TRIM 1
28291 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28297 for ac_func in fchdir
28299 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28300 if test "x$ac_cv_func_fchdir" = xyes; then :
28301 cat >>confdefs.h <<_ACEOF
28302 #define HAVE_FCHDIR 1
28304 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28309 for ac_func in strtoll
28311 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28312 if test "x$ac_cv_func_strtoll" = xyes; then :
28313 cat >>confdefs.h <<_ACEOF
28314 #define HAVE_STRTOLL 1
28316 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28321 for ac_func in posix_fadvise
28323 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28324 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_POSIX_FADVISE 1
28332 for ac_func in posix_fallocate
28334 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28335 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28336 cat >>confdefs.h <<_ACEOF
28337 #define HAVE_POSIX_FALLOCATE 1
28343 for ac_func in fdatasync
28345 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28346 if test "x$ac_cv_func_fdatasync" = xyes; then :
28347 cat >>confdefs.h <<_ACEOF
28348 #define HAVE_FDATASYNC 1
28355 for ac_func in chflags
28357 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28358 if test "x$ac_cv_func_chflags" = xyes; then :
28359 cat >>confdefs.h <<_ACEOF
28360 #define HAVE_CHFLAGS 1
28367 for ac_func in snprintf vsnprintf gethostid fseeko
28369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28372 cat >>confdefs.h <<_ACEOF
28373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28381 $as_echo_n "checking for va_copy... " >&6; }
28382 if ${ba_cv_va_copy+:} false; then :
28383 $as_echo_n "(cached) " >&6
28386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28387 /* end confdefs.h. */
28389 #include <stdarg.h>
28390 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28391 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28397 call_use_va_copy(1,2,3)
28403 if ac_fn_c_try_link "$LINENO"; then :
28413 rm -f core conftest.err conftest.$ac_objext \
28414 conftest$ac_exeext conftest.$ac_ext
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28419 $as_echo "$ba_cv_va_copy" >&6; }
28420 test $ba_cv_va_copy = yes &&
28421 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28424 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28429 cat >>confdefs.h <<_ACEOF
28430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28437 # If resolver functions are not in libc check for -lnsl or -lresolv.
28438 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28439 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28441 $as_echo "using libc's resolver" >&6; }
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28444 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28445 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28446 $as_echo_n "(cached) " >&6
28448 ac_check_lib_save_LIBS=$LIBS
28450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28451 /* end confdefs.h. */
28453 /* Override any GCC internal prototype to avoid an error.
28454 Use char because int might match the return type of a GCC
28455 builtin and then its argument prototype would still apply. */
28459 char gethostbyname_r ();
28463 return gethostbyname_r ();
28468 if ac_fn_c_try_link "$LINENO"; then :
28469 ac_cv_lib_nsl_gethostbyname_r=yes
28471 ac_cv_lib_nsl_gethostbyname_r=no
28473 rm -f core conftest.err conftest.$ac_objext \
28474 conftest$ac_exeext conftest.$ac_ext
28475 LIBS=$ac_check_lib_save_LIBS
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28478 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28479 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28480 cat >>confdefs.h <<_ACEOF
28481 #define HAVE_LIBNSL 1
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28489 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28490 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28491 $as_echo_n "(cached) " >&6
28493 ac_check_lib_save_LIBS=$LIBS
28494 LIBS="-lresolv $LIBS"
28495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28496 /* end confdefs.h. */
28498 /* Override any GCC internal prototype to avoid an error.
28499 Use char because int might match the return type of a GCC
28500 builtin and then its argument prototype would still apply. */
28504 char gethostbyname_r ();
28508 return gethostbyname_r ();
28513 if ac_fn_c_try_link "$LINENO"; then :
28514 ac_cv_lib_resolv_gethostbyname_r=yes
28516 ac_cv_lib_resolv_gethostbyname_r=no
28518 rm -f core conftest.err conftest.$ac_objext \
28519 conftest$ac_exeext conftest.$ac_ext
28520 LIBS=$ac_check_lib_save_LIBS
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28523 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28524 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28525 cat >>confdefs.h <<_ACEOF
28526 #define HAVE_LIBRESOLV 1
28529 LIBS="-lresolv $LIBS"
28536 for ac_func in inet_pton
28538 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28539 if test "x$ac_cv_func_inet_pton" = xyes; then :
28540 cat >>confdefs.h <<_ACEOF
28541 #define HAVE_INET_PTON 1
28543 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28548 for ac_func in inet_ntop
28550 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28551 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28552 cat >>confdefs.h <<_ACEOF
28553 #define HAVE_INET_NTOP 1
28555 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28560 for ac_func in gethostbyname2
28562 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28563 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28564 cat >>confdefs.h <<_ACEOF
28565 #define HAVE_GETHOSTBYNAME2 1
28567 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28572 for ac_func in getnameinfo
28574 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28575 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28576 cat >>confdefs.h <<_ACEOF
28577 #define HAVE_GETNAMEINFO 1
28579 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28587 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28588 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28589 $as_echo_n "(cached) " >&6
28592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28593 /* end confdefs.h. */
28595 #include <sys/socket.h>
28601 struct sockaddr s; s.sa_len;
28607 if ac_fn_c_try_compile "$LINENO"; then :
28609 ac_cv_struct_sockaddr_sa_len=yes
28612 ac_cv_struct_sockaddr_sa_len=no
28616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28621 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28623 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28625 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28630 $as_echo_n "checking for working getaddrinfo... " >&6; }
28631 if ${ac_cv_working_getaddrinfo+:} false; then :
28632 $as_echo_n "(cached) " >&6
28635 if test "$cross_compiling" = yes; then :
28637 ac_cv_working_getaddrinfo="yes"
28641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28642 /* end confdefs.h. */
28645 #include <string.h>
28646 #include <sys/types.h>
28647 #include <sys/socket.h>
28650 struct addrinfo hints, *ai;
28653 memset(&hints, 0, sizeof(hints));
28654 hints.ai_family = AF_UNSPEC;
28655 hints.ai_socktype = SOCK_STREAM;
28656 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28660 if (ai->ai_addr->sa_family != AF_INET) {
28667 if ac_fn_c_try_run "$LINENO"; then :
28669 ac_cv_working_getaddrinfo="yes"
28673 ac_cv_working_getaddrinfo="no"
28676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28677 conftest.$ac_objext conftest.beam conftest.$ac_ext
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28684 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28685 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28686 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28688 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28693 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28694 if test "$ac_cv_func_gai_strerror" != "yes"; then
28695 ac_cv_working_getaddrinfo="no"
28698 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28703 for ac_func in strftime
28705 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28706 if test "x$ac_cv_func_strftime" = xyes; then :
28707 cat >>confdefs.h <<_ACEOF
28708 #define HAVE_STRFTIME 1
28712 # strftime is in -lintl on SCO UNIX.
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28714 $as_echo_n "checking for strftime in -lintl... " >&6; }
28715 if ${ac_cv_lib_intl_strftime+:} false; then :
28716 $as_echo_n "(cached) " >&6
28718 ac_check_lib_save_LIBS=$LIBS
28719 LIBS="-lintl $LIBS"
28720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28721 /* end confdefs.h. */
28723 /* Override any GCC internal prototype to avoid an error.
28724 Use char because int might match the return type of a GCC
28725 builtin and then its argument prototype would still apply. */
28733 return strftime ();
28738 if ac_fn_c_try_link "$LINENO"; then :
28739 ac_cv_lib_intl_strftime=yes
28741 ac_cv_lib_intl_strftime=no
28743 rm -f core conftest.err conftest.$ac_objext \
28744 conftest$ac_exeext conftest.$ac_ext
28745 LIBS=$ac_check_lib_save_LIBS
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28748 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28749 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28750 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28752 LIBS="-lintl $LIBS"
28758 for ac_func in vprintf
28760 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28761 if test "x$ac_cv_func_vprintf" = xyes; then :
28762 cat >>confdefs.h <<_ACEOF
28763 #define HAVE_VPRINTF 1
28766 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28767 if test "x$ac_cv_func__doprnt" = xyes; then :
28769 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28777 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28778 # for constant arguments. Useless!
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28780 $as_echo_n "checking for working alloca.h... " >&6; }
28781 if ${ac_cv_working_alloca_h+:} false; then :
28782 $as_echo_n "(cached) " >&6
28784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28785 /* end confdefs.h. */
28786 #include <alloca.h>
28790 char *p = (char *) alloca (2 * sizeof (int));
28796 if ac_fn_c_try_link "$LINENO"; then :
28797 ac_cv_working_alloca_h=yes
28799 ac_cv_working_alloca_h=no
28801 rm -f core conftest.err conftest.$ac_objext \
28802 conftest$ac_exeext conftest.$ac_ext
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28805 $as_echo "$ac_cv_working_alloca_h" >&6; }
28806 if test $ac_cv_working_alloca_h = yes; then
28808 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28813 $as_echo_n "checking for alloca... " >&6; }
28814 if ${ac_cv_func_alloca_works+:} false; then :
28815 $as_echo_n "(cached) " >&6
28817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28818 /* end confdefs.h. */
28820 # define alloca __builtin_alloca
28823 # include <malloc.h>
28824 # define alloca _alloca
28826 # ifdef HAVE_ALLOCA_H
28827 # include <alloca.h>
28832 # ifndef alloca /* predefined by HP cc +Olibcalls */
28833 void *alloca (size_t);
28843 char *p = (char *) alloca (1);
28849 if ac_fn_c_try_link "$LINENO"; then :
28850 ac_cv_func_alloca_works=yes
28852 ac_cv_func_alloca_works=no
28854 rm -f core conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28858 $as_echo "$ac_cv_func_alloca_works" >&6; }
28860 if test $ac_cv_func_alloca_works = yes; then
28862 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28865 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28866 # that cause trouble. Some versions do not even contain alloca or
28867 # contain a buggy version. If you still want to use their alloca,
28868 # use ar to extract alloca.o from them instead of compiling alloca.c.
28870 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28872 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28876 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28877 if ${ac_cv_os_cray+:} false; then :
28878 $as_echo_n "(cached) " >&6
28880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28881 /* end confdefs.h. */
28882 #if defined CRAY && ! defined CRAY2
28889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28890 $EGREP "webecray" >/dev/null 2>&1; then :
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28899 $as_echo "$ac_cv_os_cray" >&6; }
28900 if test $ac_cv_os_cray = yes; then
28901 for ac_func in _getb67 GETB67 getb67; do
28902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28906 cat >>confdefs.h <<_ACEOF
28907 #define CRAY_STACKSEG_END $ac_func
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28917 $as_echo_n "checking stack direction for C alloca... " >&6; }
28918 if ${ac_cv_c_stack_direction+:} false; then :
28919 $as_echo_n "(cached) " >&6
28921 if test "$cross_compiling" = yes; then :
28922 ac_cv_c_stack_direction=0
28924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28925 /* end confdefs.h. */
28926 $ac_includes_default
28928 find_stack_direction (int *addr, int depth)
28930 int dir, dummy = 0;
28933 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28934 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28935 return dir + dummy;
28939 main (int argc, char **argv)
28941 return find_stack_direction (0, argc + !argv + 20) < 0;
28944 if ac_fn_c_try_run "$LINENO"; then :
28945 ac_cv_c_stack_direction=1
28947 ac_cv_c_stack_direction=-1
28949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28950 conftest.$ac_objext conftest.beam conftest.$ac_ext
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28955 $as_echo "$ac_cv_c_stack_direction" >&6; }
28956 cat >>confdefs.h <<_ACEOF
28957 #define STACK_DIRECTION $ac_cv_c_stack_direction
28963 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28964 # -lseq on Dynix/PTX, -lgen on Unixware.
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28966 $as_echo_n "checking for library containing getmntent... " >&6; }
28967 if ${ac_cv_search_getmntent+:} false; then :
28968 $as_echo_n "(cached) " >&6
28970 ac_func_search_save_LIBS=$LIBS
28971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28972 /* end confdefs.h. */
28974 /* Override any GCC internal prototype to avoid an error.
28975 Use char because int might match the return type of a GCC
28976 builtin and then its argument prototype would still apply. */
28984 return getmntent ();
28989 for ac_lib in '' sun seq gen; do
28990 if test -z "$ac_lib"; then
28991 ac_res="none required"
28994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28996 if ac_fn_c_try_link "$LINENO"; then :
28997 ac_cv_search_getmntent=$ac_res
28999 rm -f core conftest.err conftest.$ac_objext \
29001 if ${ac_cv_search_getmntent+:} false; then :
29005 if ${ac_cv_search_getmntent+:} false; then :
29008 ac_cv_search_getmntent=no
29010 rm conftest.$ac_ext
29011 LIBS=$ac_func_search_save_LIBS
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29014 $as_echo "$ac_cv_search_getmntent" >&6; }
29015 ac_res=$ac_cv_search_getmntent
29016 if test "$ac_res" != no; then :
29017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29018 ac_cv_func_getmntent=yes
29020 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29023 ac_cv_func_getmntent=no
29027 for ac_func in getmntinfo
29029 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29030 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29031 cat >>confdefs.h <<_ACEOF
29032 #define HAVE_GETMNTINFO 1
29034 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29040 $as_echo_n "checking whether closedir returns void... " >&6; }
29041 if ${ac_cv_func_closedir_void+:} false; then :
29042 $as_echo_n "(cached) " >&6
29044 if test "$cross_compiling" = yes; then :
29045 ac_cv_func_closedir_void=yes
29047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29048 /* end confdefs.h. */
29049 $ac_includes_default
29050 #include <$ac_header_dirent>
29051 #ifndef __cplusplus
29058 return closedir (opendir (".")) != 0;
29063 if ac_fn_c_try_run "$LINENO"; then :
29064 ac_cv_func_closedir_void=no
29066 ac_cv_func_closedir_void=yes
29068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29069 conftest.$ac_objext conftest.beam conftest.$ac_ext
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29074 $as_echo "$ac_cv_func_closedir_void" >&6; }
29075 if test $ac_cv_func_closedir_void = yes; then
29077 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29082 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29083 if ${ac_cv_func_setpgrp_void+:} false; then :
29084 $as_echo_n "(cached) " >&6
29086 if test "$cross_compiling" = yes; then :
29087 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29090 /* end confdefs.h. */
29091 $ac_includes_default
29095 /* If this system has a BSD-style setpgrp which takes arguments,
29096 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29097 exit successfully. */
29098 return setpgrp (1,1) != -1;
29103 if ac_fn_c_try_run "$LINENO"; then :
29104 ac_cv_func_setpgrp_void=no
29106 ac_cv_func_setpgrp_void=yes
29108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29109 conftest.$ac_objext conftest.beam conftest.$ac_ext
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29114 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29115 if test $ac_cv_func_setpgrp_void = yes; then
29117 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29120 # AC_FUNC_FNMATCH dnl use local version
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29123 $as_echo_n "checking for gettext in -lintl... " >&6; }
29124 if ${ac_cv_lib_intl_gettext+:} false; then :
29125 $as_echo_n "(cached) " >&6
29127 ac_check_lib_save_LIBS=$LIBS
29128 LIBS="-lintl $LIBS"
29129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29130 /* end confdefs.h. */
29132 /* Override any GCC internal prototype to avoid an error.
29133 Use char because int might match the return type of a GCC
29134 builtin and then its argument prototype would still apply. */
29147 if ac_fn_c_try_link "$LINENO"; then :
29148 ac_cv_lib_intl_gettext=yes
29150 ac_cv_lib_intl_gettext=no
29152 rm -f core conftest.err conftest.$ac_objext \
29153 conftest$ac_exeext conftest.$ac_ext
29154 LIBS=$ac_check_lib_save_LIBS
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29157 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29158 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29159 LIBS="$LIBS -lintl"
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29164 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29165 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29166 $as_echo_n "(cached) " >&6
29168 ac_check_lib_save_LIBS=$LIBS
29170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29171 /* end confdefs.h. */
29173 /* Override any GCC internal prototype to avoid an error.
29174 Use char because int might match the return type of a GCC
29175 builtin and then its argument prototype would still apply. */
29183 return getpwnam ();
29188 if ac_fn_c_try_link "$LINENO"; then :
29189 ac_cv_lib_sun_getpwnam=yes
29191 ac_cv_lib_sun_getpwnam=no
29193 rm -f core conftest.err conftest.$ac_objext \
29194 conftest$ac_exeext conftest.$ac_ext
29195 LIBS=$ac_check_lib_save_LIBS
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29198 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29199 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29200 cat >>confdefs.h <<_ACEOF
29201 #define HAVE_LIBSUN 1
29209 for ac_header in zlib.h
29211 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29212 if test "x$ac_cv_header_zlib_h" = xyes; then :
29213 cat >>confdefs.h <<_ACEOF
29214 #define HAVE_ZLIB_H 1
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29222 $as_echo_n "checking for deflate in -lz... " >&6; }
29223 if ${ac_cv_lib_z_deflate+:} false; then :
29224 $as_echo_n "(cached) " >&6
29226 ac_check_lib_save_LIBS=$LIBS
29228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29229 /* end confdefs.h. */
29231 /* Override any GCC internal prototype to avoid an error.
29232 Use char because int might match the return type of a GCC
29233 builtin and then its argument prototype would still apply. */
29246 if ac_fn_c_try_link "$LINENO"; then :
29247 ac_cv_lib_z_deflate=yes
29249 ac_cv_lib_z_deflate=no
29251 rm -f core conftest.err conftest.$ac_objext \
29252 conftest$ac_exeext conftest.$ac_ext
29253 LIBS=$ac_check_lib_save_LIBS
29255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29256 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29257 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29262 if test x$ZLIBS = x-lz; then
29263 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29272 # Check whether --enable-afs was given.
29273 if test "${enable_afs+set}" = set; then :
29274 enableval=$enable_afs;
29275 if test x$enableval = xyes; then
29277 elif test x$enableval = xno; then
29286 if test x$support_afs = xyes -o x$support_afs = xauto; then
29288 # Check whether --with-afsdir was given.
29289 if test "${with_afsdir+set}" = set; then :
29290 withval=$with_afsdir; with_afsdir=$withval
29295 if test x$with_afsdir = x; then
29296 for root in /usr /usr/local; do
29297 if test -d ${root}/include/afs/ ; then
29298 with_afsdir=${root}
29301 if test -d ${root}/include/openafs/afs/ ; then
29302 with_afsdir=${root}
29308 if test -d ${with_afsdir}/include/afs/ ; then
29309 AFS_CFLAGS="-I${with_afsdir}/include"
29311 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29312 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29316 saved_CFLAGS="${CFLAGS}"
29317 saved_CPPFLAGS="${CPPFLAGS}"
29318 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29319 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29321 for ac_header in afs/afsint.h
29323 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29324 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29325 cat >>confdefs.h <<_ACEOF
29326 #define HAVE_AFS_AFSINT_H 1
29333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29334 /* end confdefs.h. */
29336 #include <afs/afsint.h>
29337 #include <afs/venus.h>
29340 if ac_fn_c_try_cpp "$LINENO"; then :
29342 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29346 rm -f conftest.err conftest.i conftest.$ac_ext
29348 CFLAGS="${saved_CFLAGS}"
29349 CPPFLAGS="${saved_CPPFLAGS}"
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29352 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29353 for dir in ${with_afsdir}/lib \
29354 ${with_afsdir}/lib/afs \
29355 ${with_afsdir}/lib/openafs \
29356 ${with_afsdir}/lib64 \
29357 ${with_afsdir}/lib64/afs \
29358 ${with_afsdir}/lib64/openafs
29360 for arch_type in .a .so
29362 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29364 if test $pkg = 0; then
29366 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29372 if test $have_afs = yes; then
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29374 $as_echo "yes" >&6; }
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29377 $as_echo "no" >&6; }
29380 if test x$support_afs = xyes -a $have_afs != yes; then
29381 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29382 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29384 if test $have_afs = yes; then
29386 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29389 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29398 # Check whether --enable-lzo was given.
29399 if test "${enable_lzo+set}" = set; then :
29400 enableval=$enable_lzo;
29401 if test x$enableval = xno; then
29414 if test x$support_lzo = xyes; then
29416 # Check whether --with-lzo was given.
29417 if test "${with_lzo+set}" = set; then :
29419 case "$with_lzo" in
29424 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29425 LZO_INC="-I${with_lzo}/include"
29426 LZO_LDFLAGS="-L${with_lzo}/lib"
29427 with_lzo="${with_lzo}/include"
29429 with_lzo="/usr/include"
29432 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29433 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29437 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29439 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29445 echo "lzoconf.h not found. lzo turned off ..."
29457 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29458 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29460 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29461 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29464 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29465 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29466 $as_echo_n "(cached) " >&6
29468 ac_check_lib_save_LIBS=$LIBS
29469 LIBS="-llzo2 $LIBS"
29470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29471 /* end confdefs.h. */
29473 /* Override any GCC internal prototype to avoid an error.
29474 Use char because int might match the return type of a GCC
29475 builtin and then its argument prototype would still apply. */
29479 char lzo1x_1_compress ();
29483 return lzo1x_1_compress ();
29488 if ac_fn_c_try_link "$LINENO"; then :
29489 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29491 ac_cv_lib_lzo2_lzo1x_1_compress=no
29493 rm -f core conftest.err conftest.$ac_objext \
29494 conftest$ac_exeext conftest.$ac_ext
29495 LIBS=$ac_check_lib_save_LIBS
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29498 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29499 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29503 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29527 # Check whether --enable-acl was given.
29528 if test "${enable_acl+set}" = set; then :
29529 enableval=$enable_acl;
29530 if test x$enableval = xyes; then
29532 elif test x$enableval = xno; then
29541 have_extended_acl=no
29542 if test x$support_acl = xyes -o x$support_acl = xauto; then
29543 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29544 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29546 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29552 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29553 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29561 if test $have_acl = no; then
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29563 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29564 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29565 $as_echo_n "(cached) " >&6
29567 ac_check_lib_save_LIBS=$LIBS
29569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29570 /* end confdefs.h. */
29572 /* Override any GCC internal prototype to avoid an error.
29573 Use char because int might match the return type of a GCC
29574 builtin and then its argument prototype would still apply. */
29578 char acl_get_file ();
29582 return acl_get_file ();
29587 if ac_fn_c_try_link "$LINENO"; then :
29588 ac_cv_lib_acl_acl_get_file=yes
29590 ac_cv_lib_acl_acl_get_file=no
29592 rm -f core conftest.err conftest.$ac_objext \
29593 conftest$ac_exeext conftest.$ac_ext
29594 LIBS=$ac_check_lib_save_LIBS
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29597 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29598 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29601 if test $have_afs = yes; then
29602 if test -d /usr/lib64/; then
29603 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29605 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29608 FDLIBS="-lacl $FDLIBS"
29616 if test $have_acl = no -a \
29617 x${HAVE_OSF1_OS_TRUE} = x; then
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29619 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29620 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29621 $as_echo_n "(cached) " >&6
29623 ac_check_lib_save_LIBS=$LIBS
29624 LIBS="-lpacl $LIBS"
29625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h. */
29628 /* Override any GCC internal prototype to avoid an error.
29629 Use char because int might match the return type of a GCC
29630 builtin and then its argument prototype would still apply. */
29634 char acl_get_file ();
29638 return acl_get_file ();
29643 if ac_fn_c_try_link "$LINENO"; then :
29644 ac_cv_lib_pacl_acl_get_file=yes
29646 ac_cv_lib_pacl_acl_get_file=no
29648 rm -f core conftest.err conftest.$ac_objext \
29649 conftest$ac_exeext conftest.$ac_ext
29650 LIBS=$ac_check_lib_save_LIBS
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29653 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29654 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29657 FDLIBS="-lpacl $FDLIBS"
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29664 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29665 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29666 if test $? = 0; then
29668 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29671 $as_echo "yes" >&6; }
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29674 $as_echo "no" >&6; }
29678 if test $have_acl = yes -a \
29679 x${HAVE_DARWIN_OS_TRUE} = x; then
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29681 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29682 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29683 if test $? = 0; then
29685 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29688 $as_echo "yes" >&6; }
29690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29691 $as_echo "no" >&6; }
29695 if test $have_acl = yes -a \
29696 x${HAVE_FREEBSD_OS_TRUE} = x; then
29697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29698 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29699 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29700 if test $? = 0; then
29702 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29705 $as_echo "yes" >&6; }
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29708 $as_echo "no" >&6; }
29712 if test $have_acl = no -a \
29713 x${HAVE_SUN_OS_TRUE} = x; then
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29715 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29716 if ${ac_cv_lib_sec_acltotext+:} false; then :
29717 $as_echo_n "(cached) " >&6
29719 ac_check_lib_save_LIBS=$LIBS
29721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29722 /* end confdefs.h. */
29724 /* Override any GCC internal prototype to avoid an error.
29725 Use char because int might match the return type of a GCC
29726 builtin and then its argument prototype would still apply. */
29734 return acltotext ();
29739 if ac_fn_c_try_link "$LINENO"; then :
29740 ac_cv_lib_sec_acltotext=yes
29742 ac_cv_lib_sec_acltotext=no
29744 rm -f core conftest.err conftest.$ac_objext \
29745 conftest$ac_exeext conftest.$ac_ext
29746 LIBS=$ac_check_lib_save_LIBS
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29749 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29750 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29753 FDLIBS="-lsec $FDLIBS"
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29756 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29757 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29758 $as_echo_n "(cached) " >&6
29760 ac_check_lib_save_LIBS=$LIBS
29762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29763 /* end confdefs.h. */
29765 /* Override any GCC internal prototype to avoid an error.
29766 Use char because int might match the return type of a GCC
29767 builtin and then its argument prototype would still apply. */
29771 char acl_totext ();
29775 return acl_totext ();
29780 if ac_fn_c_try_link "$LINENO"; then :
29781 ac_cv_lib_sec_acl_totext=yes
29783 ac_cv_lib_sec_acl_totext=no
29785 rm -f core conftest.err conftest.$ac_objext \
29786 conftest$ac_exeext conftest.$ac_ext
29787 LIBS=$ac_check_lib_save_LIBS
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29790 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29791 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29793 have_extended_acl=yes
29804 if test $have_acl = no -a \
29805 x${HAVE_AIX_OS_TRUE} = x; then
29806 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29807 if test "x$ac_cv_func_acl_get" = xyes; then :
29811 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29812 if test "x$ac_cv_func_aclx_get" = xyes; then :
29814 have_extended_acl=yes
29825 if test x$support_acl = xyes -a $have_acl != yes; then
29826 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29827 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29829 if test $have_acl = yes; then
29831 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29835 if test $have_extended_acl = yes; then
29837 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29844 # Check whether --enable-xattr was given.
29845 if test "${enable_xattr+set}" = set; then :
29846 enableval=$enable_xattr;
29847 if test x$enableval = xyes; then
29849 elif test x$enableval = xno; then
29858 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29859 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29860 x${HAVE_NETBSD_OS_TRUE} = x -o \
29861 x${HAVE_OPENBSD_OS_TRUE} = x; then
29862 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29863 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29865 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29870 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29871 if test "x$ac_cv_header_libutil_h" = xyes; then :
29873 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29878 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29881 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29882 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29883 cat >>confdefs.h <<_ACEOF
29884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29889 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29892 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29895 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29903 if test $have_xattr = no; then
29904 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29908 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29909 cat >>confdefs.h <<_ACEOF
29910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29915 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29918 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29921 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29930 if test $have_xattr = yes; then
29931 have_extattr_string_in_libc=no
29932 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29937 cat >>confdefs.h <<_ACEOF
29938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29941 have_extattr_string_in_libc=yes
29943 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29946 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29954 if test $have_extattr_string_in_libc = no; then
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29956 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29957 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29958 $as_echo_n "(cached) " >&6
29960 ac_check_lib_save_LIBS=$LIBS
29961 LIBS="-lutil $LIBS"
29962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29963 /* end confdefs.h. */
29965 /* Override any GCC internal prototype to avoid an error.
29966 Use char because int might match the return type of a GCC
29967 builtin and then its argument prototype would still apply. */
29971 char extattr_namespace_to_string extattr_string_to_namespace ();
29975 return extattr_namespace_to_string extattr_string_to_namespace ();
29980 if ac_fn_c_try_link "$LINENO"; then :
29981 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29983 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29985 rm -f core conftest.err conftest.$ac_objext \
29986 conftest$ac_exeext conftest.$ac_ext
29987 LIBS=$ac_check_lib_save_LIBS
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29990 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29991 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29994 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29997 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29999 FDLIBS="-lutil $FDLIBS"
30008 if test $have_xattr = no -a \
30009 x${HAVE_AIX_OS_TRUE} = x; then
30010 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30011 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30013 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30018 for ac_func in llistea lgetea lsetea
30020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30023 cat >>confdefs.h <<_ACEOF
30024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30029 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30032 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30035 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30043 if test $have_xattr = no; then
30044 for ac_func in listea getea setea
30046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30047 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30048 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30049 cat >>confdefs.h <<_ACEOF
30050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30055 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30058 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30061 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30071 if test $have_xattr = no -a \
30072 x${HAVE_OSF1_OS_TRUE} = x; then
30073 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30074 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30076 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30081 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30086 cat >>confdefs.h <<_ACEOF
30087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30092 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30095 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30098 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30101 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30104 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30113 if test $have_xattr = no -a \
30114 x${HAVE_SUN_OS_TRUE} = x; then
30115 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30116 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30118 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30123 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30124 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30126 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30131 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30132 if test "x$ac_cv_header_attr_h" = xyes; then :
30134 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30140 for ac_func in openat fstatat unlinkat fchownat futimesat
30142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30143 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30144 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30145 cat >>confdefs.h <<_ACEOF
30146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30151 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30154 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30157 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30160 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30163 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30171 if test $have_xattr = yes; then
30172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30173 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30174 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30175 $as_echo_n "(cached) " >&6
30177 ac_check_lib_save_LIBS=$LIBS
30178 LIBS="-lnvpair $LIBS"
30179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30180 /* end confdefs.h. */
30182 /* Override any GCC internal prototype to avoid an error.
30183 Use char because int might match the return type of a GCC
30184 builtin and then its argument prototype would still apply. */
30188 char nvlist_next_nvpair ();
30192 return nvlist_next_nvpair ();
30197 if ac_fn_c_try_link "$LINENO"; then :
30198 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30200 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30202 rm -f core conftest.err conftest.$ac_objext \
30203 conftest$ac_exeext conftest.$ac_ext
30204 LIBS=$ac_check_lib_save_LIBS
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30207 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30208 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30211 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30213 FDLIBS="-lnvpair $FDLIBS"
30221 if test $have_xattr = no; then
30222 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30223 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30225 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30230 for ac_func in llistxattr lgetxattr lsetxattr
30232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30235 cat >>confdefs.h <<_ACEOF
30236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30241 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30244 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30247 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30255 if test $have_xattr = no; then
30256 for ac_func in listxattr getxattr setxattr
30258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30261 cat >>confdefs.h <<_ACEOF
30262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30267 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30270 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30273 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30283 if test x$support_xattr = xyes -a $have_xattr != yes; then
30284 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30285 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30287 if test $have_xattr = yes; then
30289 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30297 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30298 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30299 $as_echo_n "(cached) " >&6
30301 ac_check_lib_save_LIBS=$LIBS
30302 LIBS="-lpthread $LIBS"
30303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h. */
30306 /* Override any GCC internal prototype to avoid an error.
30307 Use char because int might match the return type of a GCC
30308 builtin and then its argument prototype would still apply. */
30312 char pthread_create ();
30316 return pthread_create ();
30321 if ac_fn_c_try_link "$LINENO"; then :
30322 ac_cv_lib_pthread_pthread_create=yes
30324 ac_cv_lib_pthread_pthread_create=no
30326 rm -f core conftest.err conftest.$ac_objext \
30327 conftest$ac_exeext conftest.$ac_ext
30328 LIBS=$ac_check_lib_save_LIBS
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30331 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30332 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30333 PTHREAD_LIB="-lpthread"
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30337 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30338 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30339 $as_echo_n "(cached) " >&6
30341 ac_check_lib_save_LIBS=$LIBS
30342 LIBS="-lpthreads $LIBS"
30343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30344 /* end confdefs.h. */
30346 /* Override any GCC internal prototype to avoid an error.
30347 Use char because int might match the return type of a GCC
30348 builtin and then its argument prototype would still apply. */
30352 char pthread_create ();
30356 return pthread_create ();
30361 if ac_fn_c_try_link "$LINENO"; then :
30362 ac_cv_lib_pthreads_pthread_create=yes
30364 ac_cv_lib_pthreads_pthread_create=no
30366 rm -f core conftest.err conftest.$ac_objext \
30367 conftest$ac_exeext conftest.$ac_ext
30368 LIBS=$ac_check_lib_save_LIBS
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30371 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30372 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30373 PTHREAD_LIB="-lpthreads"
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30377 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30378 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30379 $as_echo_n "(cached) " >&6
30381 ac_check_lib_save_LIBS=$LIBS
30383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30384 /* end confdefs.h. */
30386 /* Override any GCC internal prototype to avoid an error.
30387 Use char because int might match the return type of a GCC
30388 builtin and then its argument prototype would still apply. */
30392 char pthread_create ();
30396 return pthread_create ();
30401 if ac_fn_c_try_link "$LINENO"; then :
30402 ac_cv_lib_c_r_pthread_create=yes
30404 ac_cv_lib_c_r_pthread_create=no
30406 rm -f core conftest.err conftest.$ac_objext \
30407 conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30411 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30412 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30413 PTHREAD_LIB="-lc_r"
30416 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30417 if test "x$ac_cv_func_pthread_create" = xyes; then :
30434 for ac_header in sys/prctl.h sys/capability.h
30436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30439 cat >>confdefs.h <<_ACEOF
30440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30447 for ac_func in prctl setreuid
30449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30452 cat >>confdefs.h <<_ACEOF
30453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30460 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30461 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30462 $as_echo_n "(cached) " >&6
30464 ac_check_lib_save_LIBS=$LIBS
30466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30467 /* end confdefs.h. */
30469 /* Override any GCC internal prototype to avoid an error.
30470 Use char because int might match the return type of a GCC
30471 builtin and then its argument prototype would still apply. */
30475 char cap_set_proc ();
30479 return cap_set_proc ();
30484 if ac_fn_c_try_link "$LINENO"; then :
30485 ac_cv_lib_cap_cap_set_proc=yes
30487 ac_cv_lib_cap_cap_set_proc=no
30489 rm -f core conftest.err conftest.$ac_objext \
30490 conftest$ac_exeext conftest.$ac_ext
30491 LIBS=$ac_check_lib_save_LIBS
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30494 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30495 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30501 if test x$CAP_LIBS = x-lcap; then
30503 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30509 $as_echo "#define FDLIBS 1" >>confdefs.h
30512 CFLAGS=${CFLAGS--O}
30514 if test x$have_gcc = xyes ; then
30515 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30516 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30518 LDFLAGS=${LDFLAGS--O}
30519 CPPFLAGS="$CPPFLAGS"
30548 COMPRESS_MANPAGES=yes
30550 case "$DISTNAME" in
30553 PSCMD="ps -e -o pid,comm"
30554 PFILES="${PFILES} platforms/aix/Makefile"
30555 TAPEDRIVE="/dev/rmt0.1"
30559 PTHREAD_LIB="-lpthread -lexc"
30560 if test "${CC}" = "gcc" ; then
30567 TAPEDRIVE="/dev/nrmt0"
30570 DISTVER=`uname -a |awk '{print $3}'`
30571 TAPEDRIVE="/dev/nrmt0"
30572 PTHREAD_LIB="-pthread"
30573 CFLAGS="${CFLAGS} -pthread"
30574 PSCMD="ps -ax -o pid,command"
30577 PFILES="${PFILES} \
30578 platforms/bsdi/Makefile \
30579 platforms/bsdi/bacula-fd \
30580 platforms/bsdi/bacula-sd \
30581 platforms/bsdi/bacula-dir"
30582 largefile_support="yes"
30585 DISTVER=`uname -a |awk '{print $3}'`
30586 TAPEDRIVE="/dev/nrst0"
30588 WCFLAGS="-mwindows"
30589 WLDFLAGS="-mwindows"
30593 TAPEDRIVE="/dev/nst0"
30594 PSCMD="ps -e -o pid,command"
30596 PFILES="${PFILES} \
30597 platforms/darwin/Makefile"
30601 TAPEDRIVE="/dev/nst0"
30602 PSCMD="ps -e -o pid,command"
30604 PFILES="${PFILES} \
30605 platforms/osx/Makefile"
30608 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30611 DISTVER=`cat /etc/debian_version`
30612 if test -f /etc/lsb-release ; then
30614 if test "x$DISTRIB_ID" != "x" ; then
30615 DISTNAME=$DISTRIB_ID
30617 if test "x$DISTRIB_RELEASE" != "x" ; then
30618 DISTVER=$DISTRIB_RELEASE
30621 if test "$DISTNAME" = "Ubuntu" ; then
30624 TAPEDRIVE="/dev/nst0"
30625 PSCMD="ps -e -o pid,command"
30626 if test "$DISTNAME" = "ubuntu" ; then
30627 PFILES="${PFILES} \
30628 platforms/ubuntu/Makefile \
30629 platforms/ubuntu/bacula-fd \
30630 platforms/ubuntu/bacula-sd \
30631 platforms/ubuntu/bacula-dir"
30633 PFILES="${PFILES} \
30634 platforms/debian/Makefile \
30635 platforms/debian/bacula-fd \
30636 platforms/debian/bacula-sd \
30637 platforms/debian/bacula-dir"
30641 DISTVER=`uname -a |awk '{print $3}'`
30642 VER=`echo $DISTVER | cut -c 1`
30643 if test x$VER = x4 ; then
30644 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30645 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30649 TAPEDRIVE="/dev/nrsa0"
30650 PSCMD="ps -ax -o pid,command"
30651 PFILES="${PFILES} \
30652 platforms/freebsd/Makefile \
30653 platforms/freebsd/bacula-fd \
30654 platforms/freebsd/bacula-sd \
30655 platforms/freebsd/bacula-dir"
30656 largefile_support="yes"
30660 TAPEDRIVE="/dev/nst0"
30661 PSCMD="ps -e -o pid,command"
30662 PFILES="${PFILES} \
30663 platforms/hurd/Makefile \
30664 platforms/hurd/bacula-fd \
30665 platforms/hurd/bacula-sd \
30666 platforms/hurd/bacula-dir"
30669 PSCMD="UNIX95=1; ps -e -o pid,comm"
30670 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30672 TAPEDRIVE="/dev/rmt/0hnb"
30673 PTHREAD_LIB="-lpthread"
30674 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30679 TAPEDRIVE="/dev/rmt/0cbn"
30680 PSCMD="ps -e -o pid,comm"
30681 PFILES="${PFILES} \
30682 platforms/irix/Makefile \
30683 platforms/irix/bacula-fd \
30684 platforms/irix/bacula-sd \
30685 platforms/irix/bacula-dir"
30688 DISTVER=`uname -a |awk '{print $3}'`
30691 TAPEDRIVE="/dev/nrst0"
30692 PSCMD="ps -ax -o pid,command"
30693 PTHREAD_LIB="-pthread"
30694 CFLAGS="${CFLAGS} -pthread"
30697 DISTVER=`uname -a |awk '{print $3}'`
30700 TAPEDRIVE="/dev/nrst0"
30701 PSCMD="ps -ax -o pid,command"
30702 PTHREAD_LIB="-pthread"
30703 CFLAGS="${CFLAGS} -pthread"
30704 PFILES="${PFILES} \
30705 platforms/openbsd/Makefile \
30706 platforms/openbsd/bacula-fd \
30707 platforms/openbsd/bacula-sd \
30708 platforms/openbsd/bacula-dir"
30711 if test -f /etc/whitebox-release ; then
30712 f=/etc/whitebox-release
30714 f=/etc/redhat-release
30716 if test `cat $f | grep release |\
30717 cut -f 3 -d ' '`x = "Enterprise"x ; then
30718 DISTVER="Enterprise "`cat $f | grep release |\
30721 DISTVER=`cat /etc/redhat-release | grep release |\
30724 TAPEDRIVE="/dev/nst0"
30725 PSCMD="ps -e -o pid,command"
30726 PFILES="${PFILES} \
30727 platforms/redhat/Makefile \
30728 platforms/redhat/bacula-fd \
30729 platforms/redhat/bacula-sd \
30730 platforms/redhat/bacula-dir
30734 DISTVER=`cat /etc/mandrake-release | grep release |\
30736 TAPEDRIVE="/dev/nst0"
30737 PSCMD="ps -e -o pid,command"
30738 PFILES="${PFILES} \
30739 platforms/mandrake/Makefile \
30740 platforms/mandrake/bacula-fd \
30741 platforms/mandrake/bacula-sd \
30742 platforms/mandrake/bacula-dir \
30746 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30747 TAPEDRIVE="/dev/nst0"
30748 PSCMD="ps -e -o pid,command"
30749 PFILES="${PFILES} \
30750 platforms/gentoo/Makefile \
30751 platforms/gentoo/bacula-init \
30752 platforms/gentoo/bacula-fd \
30753 platforms/gentoo/bacula-sd \
30754 platforms/gentoo/bacula-dir"
30757 DISTVER=`cat /etc/slackware-version`
30758 TAPEDRIVE="/dev/nst0"
30759 PSCMD="ps -e -o pid,command"
30760 PFILES="${PFILES} \
30761 platforms/slackware/Makefile \
30762 platforms/slackware/rc.bacula-fd \
30763 platforms/slackware/rc.bacula-sd \
30764 platforms/slackware/rc.bacula-dir\
30765 platforms/slackware/functions.bacula"
30769 TAPEDRIVE="/dev/rmt/0cbn"
30770 PSCMD="ps -e -o pid,comm"
30771 PFILES="${PFILES} \
30772 platforms/solaris/Makefile \
30773 platforms/solaris/bacula-fd \
30774 platforms/solaris/bacula-sd \
30775 platforms/solaris/bacula-dir"
30779 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30781 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30785 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30791 LIBS="$LIBS -lresolv -lrt"
30794 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30796 TAPEDRIVE="/dev/nst0"
30797 PSCMD="ps -e -o pid,command"
30798 PFILES="${PFILES} \
30799 platforms/suse/Makefile \
30800 platforms/suse/bacula-fd \
30801 platforms/suse/bacula-sd \
30802 platforms/suse/bacula-dir \
30803 platforms/suse/bacula"
30808 TAPEDRIVE="/dev/nst0"
30809 PSCMD="ps -e -o pid,command"
30810 PFILES="${PFILES} \
30811 platforms/suse/Makefile \
30812 platforms/suse/bacula-fd \
30813 platforms/suse/bacula-sd \
30814 platforms/suse/bacula-dir"
30818 TAPEDRIVE="/dev/nst0"
30821 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30826 $as_echo_n "checking for systemd support... " >&6; }
30828 # Check whether --with-systemd was given.
30829 if test "${with_systemd+set}" = set; then :
30830 withval=$with_systemd;
30831 if test "$withval" != "no"; then
30832 if test "$withval" = "yes"; then
30833 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30835 SYSTEMD_UNITDIR="${withval}"
30838 PFILES="${PFILES} \
30839 platforms/systemd/Makefile \
30840 platforms/systemd/bacula-dir.service \
30841 platforms/systemd/bacula-fd.service \
30842 platforms/systemd/bacula-sd.service"
30844 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30847 $as_echo "yes" >&6; }
30848 support_systemd="yes"
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30851 $as_echo "no" >&6; }
30852 support_systemd="no"
30857 support_systemd="no"
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30859 $as_echo "no" >&6; }
30868 LIBS="$PTHREAD_LIB $LIBS"
30870 cat >>confdefs.h <<_ACEOF
30874 cat >>confdefs.h <<_ACEOF
30886 MCOMMON=./autoconf/Make.common
30889 if test "x${subsysdir}" = "x${sbindir}" ; then
30892 echo "You have set both --sbindir and --with-subsys-dir"
30893 echo " equal to: ${subsysdir} "
30894 echo "This is not permitted. Please reconfigure."
30896 echo "Aborting configuration ..."
30903 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/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 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 updatedb/update_sqlite3_tables updatedb/update_postgresql_tables updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_13 updatedb/update_postgresql_tables_12_to_13 updatedb/update_mysql_tables_13_to_14 updatedb/update_postgresql_tables_13_to_14 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30905 ac_config_commands="$ac_config_commands default"
30907 cat >confcache <<\_ACEOF
30908 # This file is a shell script that caches the results of configure
30909 # tests run on this system so they can be shared between configure
30910 # scripts and configure runs, see configure's option --config-cache.
30911 # It is not useful on other systems. If it contains results you don't
30912 # want to keep, you may remove or edit it.
30914 # config.status only pays attention to the cache file if you give it
30915 # the --recheck option to rerun configure.
30917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30919 # following values.
30923 # The following way of writing the cache mishandles newlines in values,
30924 # but we know of no workaround that is simple, portable, and efficient.
30925 # So, we kill variables containing newlines.
30926 # Ultrix sh set writes to stderr and can't be redirected directly,
30927 # and sets the high bit in the cache file unless we assign to the vars.
30929 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30930 eval ac_val=\$$ac_var
30934 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30938 _ | IFS | as_nl) ;; #(
30939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30940 *) { eval $ac_var=; unset $ac_var;} ;;
30946 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30947 *${as_nl}ac_space=\ *)
30948 # `set' does not quote correctly, so add quotes: double-quote
30949 # substitution turns \\\\ into \\, and sed turns \\ into \.
30952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30955 # `set' quotes correctly as required by POSIX, so do not add quotes.
30956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30970 if test -w "$cache_file"; then
30971 if test "x$cache_file" != "x/dev/null"; then
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30973 $as_echo "$as_me: updating cache $cache_file" >&6;}
30974 if test ! -f "$cache_file" || test -h "$cache_file"; then
30975 cat confcache >"$cache_file"
30977 case $cache_file in #(
30979 mv -f confcache "$cache_file"$$ &&
30980 mv -f "$cache_file"$$ "$cache_file" ;; #(
30982 mv -f confcache "$cache_file" ;;
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30988 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30994 # Let make expand exec_prefix.
30995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30997 DEFS=-DHAVE_CONFIG_H
31002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31003 # 1. Remove the extension, and $U if already installed.
31004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31007 # will be set to the directory where LIBOBJS objects are built.
31008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31011 LIBOBJS=$ac_libobjs
31013 LTLIBOBJS=$ac_ltlibobjs
31018 : "${CONFIG_STATUS=./config.status}"
31020 ac_clean_files_save=$ac_clean_files
31021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31027 # Generated by $as_me.
31028 # Run this file to recreate the current configuration.
31029 # Compiler output produced by configure, useful for debugging
31030 # configure, is in config.log if it exists.
31033 ac_cs_recheck=false
31036 SHELL=\${CONFIG_SHELL-$SHELL}
31039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31040 ## -------------------- ##
31041 ## M4sh Initialization. ##
31042 ## -------------------- ##
31044 # Be more Bourne compatible
31045 DUALCASE=1; export DUALCASE # for MKS sh
31046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31050 # is contrary to our usage. Disable this feature.
31051 alias -g '${1+"$@"}'='"$@"'
31052 setopt NO_GLOB_SUBST
31054 case `(set -o) 2>/dev/null` in #(
31066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31070 # Prefer a ksh shell builtin over an external printf program on Solaris,
31071 # but without wasting forks for bash or zsh.
31072 if test -z "$BASH_VERSION$ZSH_VERSION" \
31073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31074 as_echo='print -r --'
31075 as_echo_n='print -rn --'
31076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31077 as_echo='printf %s\n'
31078 as_echo_n='printf %s'
31080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31081 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31082 as_echo_n='/usr/ucb/echo -n'
31084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31085 as_echo_n_body='eval
31089 expr "X$arg" : "X\\(.*\\)$as_nl";
31090 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31092 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31094 export as_echo_n_body
31095 as_echo_n='sh -c $as_echo_n_body as_echo'
31097 export as_echo_body
31098 as_echo='sh -c $as_echo_body as_echo'
31101 # The user is always right.
31102 if test "${PATH_SEPARATOR+set}" != set; then
31104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31112 # We need space, tab and new line, in precisely that order. Quoting is
31113 # there to prevent editors from complaining about space-tab.
31114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31115 # splitting by setting IFS to empty value.)
31118 # Find who we are. Look in the path if we contain no directory separator.
31121 *[\\/]* ) as_myself=$0 ;;
31122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31123 for as_dir in $PATH
31126 test -z "$as_dir" && as_dir=.
31127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31133 # We did not find ourselves, most probably we were run as `sh COMMAND'
31134 # in which case we are not to be found in the path.
31135 if test "x$as_myself" = x; then
31138 if test ! -f "$as_myself"; then
31139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31143 # Unset variables that we do not need and which cause bugs (e.g. in
31144 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31145 # suppresses any "Segmentation fault" message there. '((' could
31146 # trigger a bug in pdksh 5.2.14.
31147 for as_var in BASH_ENV ENV MAIL MAILPATH
31148 do eval test x\${$as_var+set} = xset \
31149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31162 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31165 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31166 # ----------------------------------------
31167 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31168 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31169 # script with STATUS, using 1 if that was 0.
31172 as_status=$1; test $as_status -eq 0 && as_status=1
31174 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31177 $as_echo "$as_me: error: $2" >&2
31178 as_fn_exit $as_status
31182 # as_fn_set_status STATUS
31183 # -----------------------
31184 # Set $? to STATUS, without forking.
31185 as_fn_set_status ()
31188 } # as_fn_set_status
31190 # as_fn_exit STATUS
31191 # -----------------
31192 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31196 as_fn_set_status $1
31202 # Portably unset VAR.
31205 { eval $1=; unset $1;}
31207 as_unset=as_fn_unset
31208 # as_fn_append VAR VALUE
31209 # ----------------------
31210 # Append the text in VALUE to the end of the definition contained in VAR. Take
31211 # advantage of any shell optimizations that allow amortized linear growth over
31212 # repeated appends, instead of the typical quadratic growth present in naive
31214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31215 eval 'as_fn_append ()
31226 # as_fn_arith ARG...
31227 # ------------------
31228 # Perform arithmetic evaluation on the ARGs, and store the result in the
31229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31230 # must be portable across $(()) and expr.
31231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31232 eval 'as_fn_arith ()
31239 as_val=`expr "$@" || test $? -eq 1`
31244 if expr a : '\(a\)' >/dev/null 2>&1 &&
31245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31252 as_basename=basename
31257 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31263 as_me=`$as_basename -- "$0" ||
31264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31265 X"$0" : 'X\(//\)$' \| \
31266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31268 sed '/^.*\/\([^/][^/]*\)\/*$/{
31282 # Avoid depending upon Character Ranges.
31283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31286 as_cr_digits='0123456789'
31287 as_cr_alnum=$as_cr_Letters$as_cr_digits
31289 ECHO_C= ECHO_N= ECHO_T=
31290 case `echo -n x` in #(((((
31292 case `echo 'xy\c'` in
31293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31295 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31302 rm -f conf$$ conf$$.exe conf$$.file
31303 if test -d conf$$.dir; then
31304 rm -f conf$$.dir/conf$$.file
31307 mkdir conf$$.dir 2>/dev/null
31309 if (echo >conf$$.file) 2>/dev/null; then
31310 if ln -s conf$$.file conf$$ 2>/dev/null; then
31312 # ... but there are two gotchas:
31313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31315 # In both cases, we have to default to `cp -pR'.
31316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31318 elif ln conf$$.file conf$$ 2>/dev/null; then
31326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31327 rmdir conf$$.dir 2>/dev/null
31332 # Create "$as_dir" as a directory, including parents if necessary.
31337 -*) as_dir=./$as_dir;;
31339 test -d "$as_dir" || eval $as_mkdir_p || {
31343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31344 *) as_qdir=$as_dir;;
31346 as_dirs="'$as_qdir' $as_dirs"
31347 as_dir=`$as_dirname -- "$as_dir" ||
31348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31349 X"$as_dir" : 'X\(//\)[^/]' \| \
31350 X"$as_dir" : 'X\(//\)$' \| \
31351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31352 $as_echo X"$as_dir" |
31353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31357 /^X\(\/\/\)[^/].*/{
31370 test -d "$as_dir" && break
31372 test -z "$as_dirs" || eval "mkdir $as_dirs"
31373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31377 if mkdir -p . 2>/dev/null; then
31378 as_mkdir_p='mkdir -p "$as_dir"'
31380 test -d ./-p && rmdir ./-p
31385 # as_fn_executable_p FILE
31386 # -----------------------
31387 # Test if FILE is an executable regular file.
31388 as_fn_executable_p ()
31390 test -f "$1" && test -x "$1"
31391 } # as_fn_executable_p
31392 as_test_x='test -x'
31393 as_executable_p=as_fn_executable_p
31395 # Sed expression to map a string onto a valid CPP name.
31396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31398 # Sed expression to map a string onto a valid variable name.
31399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31403 ## ----------------------------------- ##
31404 ## Main body of $CONFIG_STATUS script. ##
31405 ## ----------------------------------- ##
31407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31410 # Save the log message, to keep $0 and so on meaningful, and to
31411 # report actual input values of CONFIG_FILES etc. instead of their
31412 # values after options handling.
31414 This file was extended by bacula $as_me 7.2.1, which was
31415 generated by GNU Autoconf 2.69. Invocation command line was
31417 CONFIG_FILES = $CONFIG_FILES
31418 CONFIG_HEADERS = $CONFIG_HEADERS
31419 CONFIG_LINKS = $CONFIG_LINKS
31420 CONFIG_COMMANDS = $CONFIG_COMMANDS
31423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31428 case $ac_config_files in *"
31429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31432 case $ac_config_headers in *"
31433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31438 # Files that config.status was made for.
31439 config_files="$ac_config_files"
31440 config_headers="$ac_config_headers"
31441 config_commands="$ac_config_commands"
31445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31447 \`$as_me' instantiates files and other configuration actions
31448 from templates according to the current configuration. Unless the files
31449 and actions are specified as TAGs, all are instantiated by default.
31451 Usage: $0 [OPTION]... [TAG]...
31453 -h, --help print this help, then exit
31454 -V, --version print version number and configuration settings, then exit
31455 --config print configuration, then exit
31456 -q, --quiet, --silent
31457 do not print progress messages
31458 -d, --debug don't remove temporary files
31459 --recheck update $as_me by reconfiguring in the same conditions
31460 --file=FILE[:TEMPLATE]
31461 instantiate the configuration file FILE
31462 --header=FILE[:TEMPLATE]
31463 instantiate the configuration header FILE
31465 Configuration files:
31468 Configuration headers:
31471 Configuration commands:
31474 Report bugs to the package provider."
31477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31478 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31480 bacula config.status 7.2.1
31481 configured by $0, generated by GNU Autoconf 2.69,
31482 with options \\"\$ac_cs_config\\"
31484 Copyright (C) 2012 Free Software Foundation, Inc.
31485 This config.status script is free software; the Free Software Foundation
31486 gives unlimited permission to copy, distribute and modify it."
31492 test -n "\$AWK" || AWK=awk
31495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31496 # The default lists apply if the user does not specify any file.
31502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31503 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31507 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31519 # Handling of the options.
31520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31523 $as_echo "$ac_cs_version"; exit ;;
31524 --config | --confi | --conf | --con | --co | --c )
31525 $as_echo "$ac_cs_config"; exit ;;
31526 --debug | --debu | --deb | --de | --d | -d )
31528 --file | --fil | --fi | --f )
31531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31532 '') as_fn_error $? "missing file argument" ;;
31534 as_fn_append CONFIG_FILES " '$ac_optarg'"
31535 ac_need_defaults=false;;
31536 --header | --heade | --head | --hea )
31539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31541 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31542 ac_need_defaults=false;;
31544 # Conflict between --help and --header
31545 as_fn_error $? "ambiguous option: \`$1'
31546 Try \`$0 --help' for more information.";;
31547 --help | --hel | -h )
31548 $as_echo "$ac_cs_usage"; exit ;;
31549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31553 # This is an error.
31554 -*) as_fn_error $? "unrecognized option: \`$1'
31555 Try \`$0 --help' for more information." ;;
31557 *) as_fn_append ac_config_targets " $1"
31558 ac_need_defaults=false ;;
31564 ac_configure_extra_args=
31566 if $ac_cs_silent; then
31568 ac_configure_extra_args="$ac_configure_extra_args --silent"
31572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31573 if \$ac_cs_recheck; then
31574 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31576 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31577 CONFIG_SHELL='$SHELL'
31578 export CONFIG_SHELL
31583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31588 ## Running $as_me. ##
31594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31600 # The HP-UX ksh and POSIX shell print the target directory to stdout
31601 # if CDPATH is set.
31602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31604 sed_quote_subst='$sed_quote_subst'
31605 double_quote_subst='$double_quote_subst'
31606 delay_variable_subst='$delay_variable_subst'
31607 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31608 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31610 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31611 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31612 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31613 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31614 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31615 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31616 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31617 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31618 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31619 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31620 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31621 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31622 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31623 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31624 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31625 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31626 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31627 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31628 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31629 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31630 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31631 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31632 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31633 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31634 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31635 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31636 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31637 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31638 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31639 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31640 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31641 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31642 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31643 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31644 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31645 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31646 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31647 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31648 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31649 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31650 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31651 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31652 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31653 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31654 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31655 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31656 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31657 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31658 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31659 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31660 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31661 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31662 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31663 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"`'
31664 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31665 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31666 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31667 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31668 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31669 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31670 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31671 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31672 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31673 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31674 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31675 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31676 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31677 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31678 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31679 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31680 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31681 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31682 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31683 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31684 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31685 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31686 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31687 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31688 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31689 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31690 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31691 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31692 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31693 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31694 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31695 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31696 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31697 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31698 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31699 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31700 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31701 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31702 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31703 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31704 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31705 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31706 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31707 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31708 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31709 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31710 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31711 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31712 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31713 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31714 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31715 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31716 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31717 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31718 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31719 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31720 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31721 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31722 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31723 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31724 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31725 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31726 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31727 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31728 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31729 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31730 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31731 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31732 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31733 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31734 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31735 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31736 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31737 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31738 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31739 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31740 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31741 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31742 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31743 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31744 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31745 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31747 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31748 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31750 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31752 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31753 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31754 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31755 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31756 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31757 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31758 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31759 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31762 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31765 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31766 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31767 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31771 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31772 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31773 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31774 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31775 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31776 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31777 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31778 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31779 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31780 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31781 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31782 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31783 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31784 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31785 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31786 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31787 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31788 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31789 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31790 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31793 LTCFLAGS='$LTCFLAGS'
31794 compiler='$compiler_DEFAULT'
31796 # A function that is used when there is no print builtin or printf.
31797 func_fallback_echo ()
31799 eval 'cat <<_LTECHO_EOF
31804 # Quote evaled strings.
31819 deplibs_check_method \
31824 sharedlib_from_linklib_cmd \
31827 archiver_list_spec \
31833 lt_cv_sys_global_symbol_pipe \
31834 lt_cv_sys_global_symbol_to_cdecl \
31835 lt_cv_sys_global_symbol_to_c_name_address \
31836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31837 nm_file_list_spec \
31838 lt_prog_compiler_no_builtin_flag \
31839 lt_prog_compiler_pic \
31840 lt_prog_compiler_wl \
31841 lt_prog_compiler_static \
31842 lt_cv_prog_compiler_c_o \
31851 export_dynamic_flag_spec \
31852 whole_archive_flag_spec \
31853 compiler_needs_object \
31855 allow_undefined_flag \
31856 no_undefined_flag \
31857 hardcode_libdir_flag_spec \
31858 hardcode_libdir_separator \
31862 variables_saved_for_relink \
31864 library_names_spec \
31866 install_override_mode \
31870 compiler_lib_search_dirs \
31875 compiler_lib_search_path \
31879 lt_prog_compiler_no_builtin_flag_CXX \
31880 lt_prog_compiler_pic_CXX \
31881 lt_prog_compiler_wl_CXX \
31882 lt_prog_compiler_static_CXX \
31883 lt_cv_prog_compiler_c_o_CXX \
31884 export_dynamic_flag_spec_CXX \
31885 whole_archive_flag_spec_CXX \
31886 compiler_needs_object_CXX \
31888 allow_undefined_flag_CXX \
31889 no_undefined_flag_CXX \
31890 hardcode_libdir_flag_spec_CXX \
31891 hardcode_libdir_separator_CXX \
31892 exclude_expsyms_CXX \
31893 include_expsyms_CXX \
31894 file_list_spec_CXX \
31895 compiler_lib_search_dirs_CXX \
31896 predep_objects_CXX \
31897 postdep_objects_CXX \
31900 compiler_lib_search_path_CXX; do
31901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31902 *[\\\\\\\`\\"\\\$]*)
31903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31911 # Double-quote double-evaled strings.
31912 for var in reload_cmds \
31913 old_postinstall_cmds \
31914 old_postuninstall_cmds \
31916 extract_expsyms_cmds \
31917 old_archive_from_new_cmds \
31918 old_archive_from_expsyms_cmds \
31920 archive_expsym_cmds \
31922 module_expsym_cmds \
31923 export_symbols_cmds \
31927 postuninstall_cmds \
31929 sys_lib_search_path_spec \
31930 sys_lib_dlsearch_path_spec \
31932 old_archive_cmds_CXX \
31933 old_archive_from_new_cmds_CXX \
31934 old_archive_from_expsyms_cmds_CXX \
31936 archive_expsym_cmds_CXX \
31938 module_expsym_cmds_CXX \
31939 export_symbols_cmds_CXX \
31941 postlink_cmds_CXX; do
31942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31943 *[\\\\\\\`\\"\\\$]*)
31944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31952 ac_aux_dir='$ac_aux_dir'
31953 xsi_shell='$xsi_shell'
31954 lt_shell_append='$lt_shell_append'
31956 # See if we are running on zsh, and set the options which allow our
31957 # commands through without removal of \ escapes INIT.
31958 if test -n "\${ZSH_VERSION+set}" ; then
31959 setopt NO_GLOB_SUBST
31965 TIMESTAMP='$TIMESTAMP'
31973 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31974 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31976 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31977 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31978 LINGUAS="${LINGUAS-%UNSET%}"
31983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31985 # Handling of arguments.
31986 for ac_config_target in $ac_config_targets
31988 case $ac_config_target in
31989 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31990 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31991 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31992 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31994 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31995 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31996 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31997 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31998 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31999 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32000 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32001 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32002 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32003 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32004 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32005 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32006 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32007 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32008 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32009 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32010 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32011 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32012 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32013 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32015 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32016 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32017 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32018 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32019 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32020 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32021 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32022 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32023 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32024 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32025 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32026 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32027 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32028 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32029 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32030 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32031 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32032 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32033 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32034 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32035 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32036 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32037 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32038 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32039 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32040 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32041 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32042 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32043 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32044 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32045 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32046 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32047 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32048 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32049 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32050 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32051 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32052 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32053 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32054 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32055 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32056 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32057 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32058 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32059 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32060 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32061 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32062 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32063 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32064 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32065 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32066 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32067 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32068 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32069 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32070 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32071 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32072 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32073 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32074 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32075 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32076 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32077 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32078 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32079 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32080 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32081 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32082 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32083 "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32084 "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32085 "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32086 "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32087 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32088 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32089 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32090 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32091 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32092 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32093 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32094 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32095 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32096 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32097 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32099 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32104 # If the user did not use the arguments to specify the items to instantiate,
32105 # then the envvar interface is used. Set only those that are not.
32106 # We use the long form for the default assignment because of an extremely
32107 # bizarre bug on SunOS 4.1.3.
32108 if $ac_need_defaults; then
32109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32114 # Have a temporary directory for convenience. Make it in the build tree
32115 # simply because there is no reason against having it here, and in addition,
32116 # creating and moving files from /tmp can sometimes cause problems.
32117 # Hook for its removal unless debugging.
32118 # Note that there is a small window in which the directory will not be cleaned:
32119 # after its creation but before its name has been assigned to `$tmp'.
32123 trap 'exit_status=$?
32124 : "${ac_tmp:=$tmp}"
32125 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32127 trap 'as_fn_exit 1' 1 2 13 15
32129 # Create a (secure) tmp directory for tmp files.
32132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32136 tmp=./conf$$-$RANDOM
32137 (umask 077 && mkdir "$tmp")
32138 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32141 # Set up the scripts for CONFIG_FILES section.
32142 # No need to generate them if there are no CONFIG_FILES.
32143 # This happens for instance with `./config.status config.h'.
32144 if test -n "$CONFIG_FILES"; then
32146 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32147 ac_cs_awk_getline=:
32148 ac_cs_awk_pipe_init=
32149 ac_cs_awk_read_file='
32150 while ((getline aline < (F[key])) > 0)
32153 ac_cs_awk_pipe_fini=
32155 ac_cs_awk_getline=false
32156 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32157 ac_cs_awk_read_file='
32159 print "cat " F[key] " &&"
32160 '$ac_cs_awk_pipe_init
32161 # The final `:' finishes the AND list.
32162 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32164 ac_cr=`echo X | tr X '\015'`
32165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32166 # But we know of no other shell where ac_cr would be empty at this
32167 # point, so we can use a bashism as a fallback.
32168 if test "x$ac_cr" = x; then
32169 eval ac_cr=\$\'\\r\'
32171 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32175 ac_cs_awk_cr=$ac_cr
32178 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32181 # Create commands to substitute file output variables.
32183 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32184 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32185 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32188 } >conf$$files.sh &&
32189 . ./conf$$files.sh ||
32190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32191 rm -f conf$$files.sh
32194 echo "cat >conf$$subs.awk <<_ACEOF" &&
32195 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32197 } >conf$$subs.sh ||
32198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32199 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32201 for ac_last_try in false false false false false :; do
32202 . ./conf$$subs.sh ||
32203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32205 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32206 if test $ac_delim_n = $ac_delim_num; then
32208 elif $ac_last_try; then
32209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32214 rm -f conf$$subs.sh
32216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32217 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32221 s/^/S["/; s/!.*/"]=/
32231 s/\(.\{148\}\)..*/\1/
32233 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32245 s/\(.\{148\}\)..*/\1/
32247 s/["\\]/\\&/g; s/^/"/; s/$/"/
32251 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32256 ' <conf$$subs.awk | sed '
32261 ' >>$CONFIG_STATUS || ac_write_fail=1
32262 rm -f conf$$subs.awk
32263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32265 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32266 for (key in S) S_is_set[key] = 1
32268 \$ac_cs_awk_pipe_init
32272 nfields = split(line, field, "@")
32274 len = length(field[1])
32275 for (i = 2; i < nfields; i++) {
32277 keylen = length(key)
32278 if (S_is_set[key]) {
32280 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32281 len += length(value) + length(field[++i])
32286 if (nfields == 3 && !substed) {
32288 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32289 \$ac_cs_awk_read_file
32295 \$ac_cs_awk_pipe_fini
32298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32299 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32300 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32303 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32304 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32307 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32308 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32309 # trailing colons and then remove the whole line if VPATH becomes empty
32310 # (actually we leave an empty line to preserve line numbers).
32311 if test "x$srcdir" = x.; then
32312 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32331 fi # test -n "$CONFIG_FILES"
32333 # Set up the scripts for CONFIG_HEADERS section.
32334 # No need to generate them if there are no CONFIG_HEADERS.
32335 # This happens for instance with `./config.status Makefile'.
32336 if test -n "$CONFIG_HEADERS"; then
32337 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32341 # Transform confdefs.h into an awk script `defines.awk', embedded as
32342 # here-document in config.status, that substitutes the proper values into
32343 # config.h.in to produce config.h.
32345 # Create a delimiter string that does not exist in confdefs.h, to ease
32346 # handling of long lines.
32348 for ac_last_try in false false :; do
32349 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32350 if test -z "$ac_tt"; then
32352 elif $ac_last_try; then
32353 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32359 # For the awk script, D is an array of macro values keyed by name,
32360 # likewise P contains macro parameters if any. Preserve backslash
32361 # newline sequences.
32363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32365 s/.\{148\}/&'"$ac_delim"'/g
32368 s/^[ ]*#[ ]*define[ ][ ]*/ /
32375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32382 D["\1"]=" \3\\\\\\n"\\/p
32384 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32389 s/.\{148\}/&'"$ac_delim"'/g
32394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32399 ' <confdefs.h | sed '
32400 s/'"$ac_delim"'/"\\\
32401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32404 for (key in D) D_is_set[key] = 1
32407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32409 split(line, arg, " ")
32410 if (arg[1] == "#") {
32414 defundef = substr(arg[1], 2)
32417 split(mac1, mac2, "(") #)
32419 prefix = substr(line, 1, index(line, defundef) - 1)
32420 if (D_is_set[macro]) {
32421 # Preserve the white space surrounding the "#".
32422 print prefix "define", macro P[macro] D[macro]
32425 # Replace #undef with comments. This is necessary, for example,
32426 # in the case of _POSIX_SOURCE, which is predefined and required
32427 # on some systems where configure will not decide to define it.
32428 if (defundef == "undef") {
32429 print "/*", prefix defundef, macro, "*/"
32437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32438 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32439 fi # test -n "$CONFIG_HEADERS"
32442 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32447 :[FHLC]) ac_mode=$ac_tag; continue;;
32449 case $ac_mode$ac_tag in
32451 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32452 :[FH]-) ac_tag=-:-;;
32453 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32470 -) ac_f="$ac_tmp/stdin";;
32471 *) # Look for the file first in the build tree, then in the source tree
32472 # (if the path is not absolute). The absolute path cannot be DOS-style,
32473 # because $ac_f cannot contain `:'.
32477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32479 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32482 as_fn_append ac_file_inputs " '$ac_f'"
32485 # Let's still pretend it is `configure' which instantiates (i.e., don't
32486 # use $as_me), people would be surprised to read:
32487 # /* config.h. Generated by config.status. */
32488 configure_input='Generated from '`
32489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32491 if test x"$ac_file" != x-; then
32492 configure_input="$ac_file. $configure_input"
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32494 $as_echo "$as_me: creating $ac_file" >&6;}
32496 # Neutralize special characters interpreted by sed in replacement strings.
32497 case $configure_input in #(
32498 *\&* | *\|* | *\\* )
32499 ac_sed_conf_input=`$as_echo "$configure_input" |
32500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32501 *) ac_sed_conf_input=$configure_input;;
32505 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32511 ac_dir=`$as_dirname -- "$ac_file" ||
32512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32513 X"$ac_file" : 'X\(//\)[^/]' \| \
32514 X"$ac_file" : 'X\(//\)$' \| \
32515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32516 $as_echo X"$ac_file" |
32517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32521 /^X\(\/\/\)[^/].*/{
32534 as_dir="$ac_dir"; as_fn_mkdir_p
32538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32541 # A ".." for each directory in $ac_dir_suffix.
32542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32543 case $ac_top_builddir_sub in
32544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32548 ac_abs_top_builddir=$ac_pwd
32549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32550 # for backward compatibility:
32551 ac_top_builddir=$ac_top_build_prefix
32554 .) # We are building in place.
32556 ac_top_srcdir=$ac_top_builddir_sub
32557 ac_abs_top_srcdir=$ac_pwd ;;
32558 [\\/]* | ?:[\\/]* ) # Absolute name.
32559 ac_srcdir=$srcdir$ac_dir_suffix;
32560 ac_top_srcdir=$srcdir
32561 ac_abs_top_srcdir=$srcdir ;;
32562 *) # Relative name.
32563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32564 ac_top_srcdir=$ac_top_build_prefix$srcdir
32565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32583 # If the template does not know about datarootdir, expand it.
32584 # FIXME: This hack should be removed a few years after 2.60.
32585 ac_datarootdir_hack=; ac_datarootdir_seen=
32596 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32597 *datarootdir*) ac_datarootdir_seen=yes;;
32598 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32600 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32603 ac_datarootdir_hack='
32604 s&@datadir@&$datadir&g
32605 s&@docdir@&$docdir&g
32606 s&@infodir@&$infodir&g
32607 s&@localedir@&$localedir&g
32608 s&@mandir@&$mandir&g
32609 s&\\\${datarootdir}&$datarootdir&g' ;;
32613 # Neutralize VPATH when `$srcdir' = `.'.
32614 # Shell code in configure.ac might set extrasub.
32615 # FIXME: do we really want to maintain this feature?
32616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32617 ac_sed_extra="$ac_vpsub
32620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32623 s|@configure_input@|$ac_sed_conf_input|;t t
32624 s&@top_builddir@&$ac_top_builddir_sub&;t t
32625 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32626 s&@srcdir@&$ac_srcdir&;t t
32627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32628 s&@top_srcdir@&$ac_top_srcdir&;t t
32629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32630 s&@builddir@&$ac_builddir&;t t
32631 s&@abs_builddir@&$ac_abs_builddir&;t t
32632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32633 s&@INSTALL@&$ac_INSTALL&;t t
32634 $ac_datarootdir_hack
32636 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32637 if $ac_cs_awk_getline; then
32638 $AWK -f "$ac_tmp/subs.awk"
32640 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32642 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32644 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32645 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32646 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32647 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32649 which seems to be undefined. Please make sure it is defined" >&5
32650 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32651 which seems to be undefined. Please make sure it is defined" >&2;}
32653 rm -f "$ac_tmp/stdin"
32655 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32656 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32664 if test x"$ac_file" != x-; then
32666 $as_echo "/* $configure_input */" \
32667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32668 } >"$ac_tmp/config.h" \
32669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32670 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32671 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32672 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32675 mv "$ac_tmp/config.h" "$ac_file" \
32676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32679 $as_echo "/* $configure_input */" \
32680 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32681 || as_fn_error $? "could not create -" "$LINENO" 5
32685 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32686 $as_echo "$as_me: executing $ac_file commands" >&6;}
32691 case $ac_file$ac_mode in
32694 # See if we are running on zsh, and set the options which allow our
32695 # commands through without removal of \ escapes.
32696 if test -n "${ZSH_VERSION+set}" ; then
32697 setopt NO_GLOB_SUBST
32700 cfgfile="${ofile}T"
32701 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32704 cat <<_LT_EOF >> "$cfgfile"
32707 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32708 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32710 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32712 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32713 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32715 # Written by Gordon Matzigkeit, 1996
32717 # This file is part of GNU Libtool.
32719 # GNU Libtool is free software; you can redistribute it and/or
32720 # modify it under the terms of the GNU General Public License as
32721 # published by the Free Software Foundation; either version 2 of
32722 # the License, or (at your option) any later version.
32724 # As a special exception to the GNU General Public License,
32725 # if you distribute this file as part of a program or library that
32726 # is built using GNU Libtool, you may include this file under the
32727 # same distribution terms that you use for the rest of that program.
32729 # GNU Libtool is distributed in the hope that it will be useful,
32730 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32732 # GNU General Public License for more details.
32734 # You should have received a copy of the GNU General Public License
32735 # along with GNU Libtool; see the file COPYING. If not, a copy
32736 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32737 # obtained by writing to the Free Software Foundation, Inc.,
32738 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32741 # The names of the tagged configurations supported by this script.
32742 available_tags="CXX "
32744 # ### BEGIN LIBTOOL CONFIG
32746 # Which release of libtool.m4 was used?
32747 macro_version=$macro_version
32748 macro_revision=$macro_revision
32750 # Whether or not to build shared libraries.
32751 build_libtool_libs=$enable_shared
32753 # Whether or not to build static libraries.
32754 build_old_libs=$enable_static
32756 # What type of objects to build.
32759 # Whether or not to optimize for fast installation.
32760 fast_install=$enable_fast_install
32762 # Shell to use when invoking shell scripts.
32765 # An echo program that protects backslashes.
32768 # The PATH separator for the build system.
32769 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32772 host_alias=$host_alias
32776 # The build system.
32777 build_alias=$build_alias
32781 # A sed program that does not truncate output.
32784 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32785 Xsed="\$SED -e 1s/^X//"
32787 # A grep program that handles long lines.
32793 # A literal string matcher.
32796 # A BSD- or MS-compatible name lister.
32799 # Whether we need soft or hard links.
32802 # What is the maximum length of a command?
32803 max_cmd_len=$max_cmd_len
32805 # Object file suffix (normally "o").
32808 # Executable file suffix (normally "").
32811 # whether the shell understands "unset".
32814 # turn spaces into newlines.
32817 # turn newlines into spaces.
32820 # convert \$build file names to \$host format.
32821 to_host_file_cmd=$lt_cv_to_host_file_cmd
32823 # convert \$build files to toolchain format.
32824 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32826 # An object symbol dumper.
32827 OBJDUMP=$lt_OBJDUMP
32829 # Method to check whether dependent libraries are shared objects.
32830 deplibs_check_method=$lt_deplibs_check_method
32832 # Command to use when deplibs_check_method = "file_magic".
32833 file_magic_cmd=$lt_file_magic_cmd
32835 # How to find potential files when deplibs_check_method = "file_magic".
32836 file_magic_glob=$lt_file_magic_glob
32838 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32839 want_nocaseglob=$lt_want_nocaseglob
32841 # DLL creation program.
32842 DLLTOOL=$lt_DLLTOOL
32844 # Command to associate shared and link libraries.
32845 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32850 # Flags to create an archive.
32851 AR_FLAGS=$lt_AR_FLAGS
32853 # How to feed a file listing to the archiver.
32854 archiver_list_spec=$lt_archiver_list_spec
32856 # A symbol stripping program.
32859 # Commands used to install an old-style archive.
32861 old_postinstall_cmds=$lt_old_postinstall_cmds
32862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32864 # Whether to use a lock for old archive extraction.
32865 lock_old_archive_extraction=$lock_old_archive_extraction
32870 # LTCC compiler flags.
32871 LTCFLAGS=$lt_CFLAGS
32873 # Take the output of nm and produce a listing of raw symbols and C names.
32874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32876 # Transform the output of nm in a proper C declaration.
32877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32879 # Transform the output of nm in a C name address pair.
32880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32882 # Transform the output of nm in a C name address pair when lib prefix is needed.
32883 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32885 # Specify filename containing input files for \$NM.
32886 nm_file_list_spec=$lt_nm_file_list_spec
32888 # The root where to search for dependent libraries,and in which our libraries should be installed.
32889 lt_sysroot=$lt_sysroot
32891 # The name of the directory that contains temporary libtool files.
32894 # Used to examine libraries when file_magic_cmd begins with "file".
32895 MAGIC_CMD=$MAGIC_CMD
32897 # Must we lock files when doing compilation?
32898 need_locks=$lt_need_locks
32901 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32903 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32904 DSYMUTIL=$lt_DSYMUTIL
32906 # Tool to change global to local symbols on Mac OS X.
32909 # Tool to manipulate fat objects and archives on Mac OS X.
32912 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32915 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32916 OTOOL64=$lt_OTOOL64
32918 # Old archive suffix (normally "a").
32921 # Shared library suffix (normally ".so").
32922 shrext_cmds=$lt_shrext_cmds
32924 # The commands to extract the exported symbol list from a shared archive.
32925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32927 # Variables whose values should be saved in libtool wrapper scripts and
32928 # restored at link time.
32929 variables_saved_for_relink=$lt_variables_saved_for_relink
32931 # Do we need the "lib" prefix for modules?
32932 need_lib_prefix=$need_lib_prefix
32934 # Do we need a version for libraries?
32935 need_version=$need_version
32937 # Library versioning type.
32938 version_type=$version_type
32940 # Shared library runtime path variable.
32941 runpath_var=$runpath_var
32943 # Shared library path variable.
32944 shlibpath_var=$shlibpath_var
32946 # Is shlibpath searched before the hard-coded library search path?
32947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32949 # Format of library name prefix.
32950 libname_spec=$lt_libname_spec
32952 # List of archive names. First name is the real one, the rest are links.
32953 # The last name is the one that the linker finds with -lNAME
32954 library_names_spec=$lt_library_names_spec
32956 # The coded name of the library, if different from the real name.
32957 soname_spec=$lt_soname_spec
32959 # Permission mode override for installation of shared libraries.
32960 install_override_mode=$lt_install_override_mode
32962 # Command to use after installation of a shared archive.
32963 postinstall_cmds=$lt_postinstall_cmds
32965 # Command to use after uninstallation of a shared archive.
32966 postuninstall_cmds=$lt_postuninstall_cmds
32968 # Commands used to finish a libtool library installation in a directory.
32969 finish_cmds=$lt_finish_cmds
32971 # As "finish_cmds", except a single script fragment to be evaled but
32973 finish_eval=$lt_finish_eval
32975 # Whether we should hardcode library paths into libraries.
32976 hardcode_into_libs=$hardcode_into_libs
32978 # Compile-time system search path for libraries.
32979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32981 # Run-time system search path for libraries.
32982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32984 # Whether dlopen is supported.
32985 dlopen_support=$enable_dlopen
32987 # Whether dlopen of programs is supported.
32988 dlopen_self=$enable_dlopen_self
32990 # Whether dlopen of statically linked programs is supported.
32991 dlopen_self_static=$enable_dlopen_self_static
32993 # Commands to strip libraries.
32994 old_striplib=$lt_old_striplib
32995 striplib=$lt_striplib
32998 # The linker used to build libraries.
33001 # How to create reloadable object files.
33002 reload_flag=$lt_reload_flag
33003 reload_cmds=$lt_reload_cmds
33005 # Commands used to build an old-style archive.
33006 old_archive_cmds=$lt_old_archive_cmds
33008 # A language specific compiler.
33011 # Is the compiler the GNU compiler?
33014 # Compiler flag to turn off builtin functions.
33015 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33017 # Additional compiler flags for building library objects.
33018 pic_flag=$lt_lt_prog_compiler_pic
33020 # How to pass a linker flag through the compiler.
33021 wl=$lt_lt_prog_compiler_wl
33023 # Compiler flag to prevent dynamic linking.
33024 link_static_flag=$lt_lt_prog_compiler_static
33026 # Does compiler simultaneously support -c and -o options?
33027 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33029 # Whether or not to add -lc for building shared libraries.
33030 build_libtool_need_lc=$archive_cmds_need_lc
33032 # Whether or not to disallow shared libs when runtime libs are static.
33033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33035 # Compiler flag to allow reflexive dlopens.
33036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33038 # Compiler flag to generate shared objects directly from archives.
33039 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33041 # Whether the compiler copes with passing no objects directly.
33042 compiler_needs_object=$lt_compiler_needs_object
33044 # Create an old-style archive from a shared archive.
33045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33047 # Create a temporary old-style archive to link instead of a shared archive.
33048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33050 # Commands used to build a shared archive.
33051 archive_cmds=$lt_archive_cmds
33052 archive_expsym_cmds=$lt_archive_expsym_cmds
33054 # Commands used to build a loadable module if different from building
33055 # a shared archive.
33056 module_cmds=$lt_module_cmds
33057 module_expsym_cmds=$lt_module_expsym_cmds
33059 # Whether we are building with GNU ld or not.
33060 with_gnu_ld=$lt_with_gnu_ld
33062 # Flag that allows shared libraries with undefined symbols to be built.
33063 allow_undefined_flag=$lt_allow_undefined_flag
33065 # Flag that enforces no undefined symbols.
33066 no_undefined_flag=$lt_no_undefined_flag
33068 # Flag to hardcode \$libdir into a binary during linking.
33069 # This must work even if \$libdir does not exist
33070 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33072 # Whether we need a single "-rpath" flag with a separated argument.
33073 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33076 # DIR into the resulting binary.
33077 hardcode_direct=$hardcode_direct
33079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33080 # DIR into the resulting binary and the resulting library dependency is
33081 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33082 # library is relocated.
33083 hardcode_direct_absolute=$hardcode_direct_absolute
33085 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33086 # into the resulting binary.
33087 hardcode_minus_L=$hardcode_minus_L
33089 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33090 # into the resulting binary.
33091 hardcode_shlibpath_var=$hardcode_shlibpath_var
33093 # Set to "yes" if building a shared library automatically hardcodes DIR
33094 # into the library and all subsequent libraries and executables linked
33096 hardcode_automatic=$hardcode_automatic
33098 # Set to yes if linker adds runtime paths of dependent libraries
33099 # to runtime path list.
33100 inherit_rpath=$inherit_rpath
33102 # Whether libtool must link a program against all its dependency libraries.
33103 link_all_deplibs=$link_all_deplibs
33105 # Set to "yes" if exported symbols are required.
33106 always_export_symbols=$always_export_symbols
33108 # The commands to list exported symbols.
33109 export_symbols_cmds=$lt_export_symbols_cmds
33111 # Symbols that should not be listed in the preloaded symbols.
33112 exclude_expsyms=$lt_exclude_expsyms
33114 # Symbols that must always be exported.
33115 include_expsyms=$lt_include_expsyms
33117 # Commands necessary for linking programs (against libraries) with templates.
33118 prelink_cmds=$lt_prelink_cmds
33120 # Commands necessary for finishing linking programs.
33121 postlink_cmds=$lt_postlink_cmds
33123 # Specify filename containing input files.
33124 file_list_spec=$lt_file_list_spec
33126 # How to hardcode a shared library path into an executable.
33127 hardcode_action=$hardcode_action
33129 # The directories searched by this compiler when creating a shared library.
33130 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33132 # Dependencies to place before and after the objects being linked to
33133 # create a shared library.
33134 predep_objects=$lt_predep_objects
33135 postdep_objects=$lt_postdep_objects
33136 predeps=$lt_predeps
33137 postdeps=$lt_postdeps
33139 # The library search path used internally by the compiler when linking
33140 # a shared library.
33141 compiler_lib_search_path=$lt_compiler_lib_search_path
33143 # ### END LIBTOOL CONFIG
33149 cat <<\_LT_EOF >> "$cfgfile"
33150 # AIX sometimes has problems with the GCC collect2 program. For some
33151 # reason, if we set the COLLECT_NAMES environment variable, the problems
33152 # vanish in a puff of smoke.
33153 if test "X${COLLECT_NAMES+set}" != Xset; then
33155 export COLLECT_NAMES
33162 ltmain="$ac_aux_dir/ltmain.sh"
33165 # We use sed instead of cat because bash on DJGPP gets confused if
33166 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33167 # text mode, it properly converts lines to CR/LF. This bash problem
33168 # is reportedly fixed, but why not run on old versions too?
33169 sed '$q' "$ltmain" >> "$cfgfile" \
33170 || (rm -f "$cfgfile"; exit 1)
33172 if test x"$xsi_shell" = xyes; then
33173 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33177 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33178 \ * ) func_dirname_result="${3}" ;;\
33180 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33181 && mv -f "$cfgfile.tmp" "$cfgfile" \
33182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33183 test 0 -eq $? || _lt_function_replace_fail=:
33186 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33189 \ func_basename_result="${1##*/}"\
33190 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33191 && mv -f "$cfgfile.tmp" "$cfgfile" \
33192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33193 test 0 -eq $? || _lt_function_replace_fail=:
33196 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33197 func_dirname_and_basename ()\
33200 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33201 \ * ) func_dirname_result="${3}" ;;\
33203 \ func_basename_result="${1##*/}"\
33204 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33205 && mv -f "$cfgfile.tmp" "$cfgfile" \
33206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33207 test 0 -eq $? || _lt_function_replace_fail=:
33210 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33213 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33214 \ # positional parameters, so assign one to ordinary parameter first.\
33215 \ func_stripname_result=${3}\
33216 \ func_stripname_result=${func_stripname_result#"${1}"}\
33217 \ func_stripname_result=${func_stripname_result%"${2}"}\
33218 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33219 && mv -f "$cfgfile.tmp" "$cfgfile" \
33220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33221 test 0 -eq $? || _lt_function_replace_fail=:
33224 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33225 func_split_long_opt ()\
33227 \ func_split_long_opt_name=${1%%=*}\
33228 \ func_split_long_opt_arg=${1#*=}\
33229 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33230 && mv -f "$cfgfile.tmp" "$cfgfile" \
33231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33232 test 0 -eq $? || _lt_function_replace_fail=:
33235 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33236 func_split_short_opt ()\
33238 \ func_split_short_opt_arg=${1#??}\
33239 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33240 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33241 && mv -f "$cfgfile.tmp" "$cfgfile" \
33242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33243 test 0 -eq $? || _lt_function_replace_fail=:
33246 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33250 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33251 \ *) func_lo2o_result=${1} ;;\
33253 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33254 && mv -f "$cfgfile.tmp" "$cfgfile" \
33255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33256 test 0 -eq $? || _lt_function_replace_fail=:
33259 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33262 func_xform_result=${1%.*}.lo\
33263 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33264 && mv -f "$cfgfile.tmp" "$cfgfile" \
33265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33266 test 0 -eq $? || _lt_function_replace_fail=:
33269 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33272 func_arith_result=$(( $* ))\
33273 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33274 && mv -f "$cfgfile.tmp" "$cfgfile" \
33275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33276 test 0 -eq $? || _lt_function_replace_fail=:
33279 sed -e '/^func_len ()$/,/^} # func_len /c\
33282 func_len_result=${#1}\
33283 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33284 && mv -f "$cfgfile.tmp" "$cfgfile" \
33285 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33286 test 0 -eq $? || _lt_function_replace_fail=:
33290 if test x"$lt_shell_append" = xyes; then
33291 sed -e '/^func_append ()$/,/^} # func_append /c\
33294 eval "${1}+=\\${2}"\
33295 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33296 && mv -f "$cfgfile.tmp" "$cfgfile" \
33297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33298 test 0 -eq $? || _lt_function_replace_fail=:
33301 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33302 func_append_quoted ()\
33304 \ func_quote_for_eval "${2}"\
33305 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33306 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33307 && mv -f "$cfgfile.tmp" "$cfgfile" \
33308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33309 test 0 -eq $? || _lt_function_replace_fail=:
33312 # Save a `func_append' function call where possible by direct use of '+='
33313 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33314 && mv -f "$cfgfile.tmp" "$cfgfile" \
33315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33316 test 0 -eq $? || _lt_function_replace_fail=:
33318 # Save a `func_append' function call even when '+=' is not available
33319 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33320 && mv -f "$cfgfile.tmp" "$cfgfile" \
33321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33322 test 0 -eq $? || _lt_function_replace_fail=:
33325 if test x"$_lt_function_replace_fail" = x":"; then
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33327 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33331 mv -f "$cfgfile" "$ofile" ||
33332 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33336 cat <<_LT_EOF >> "$ofile"
33338 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33340 # The linker used to build libraries.
33343 # How to create reloadable object files.
33344 reload_flag=$lt_reload_flag_CXX
33345 reload_cmds=$lt_reload_cmds_CXX
33347 # Commands used to build an old-style archive.
33348 old_archive_cmds=$lt_old_archive_cmds_CXX
33350 # A language specific compiler.
33351 CC=$lt_compiler_CXX
33353 # Is the compiler the GNU compiler?
33356 # Compiler flag to turn off builtin functions.
33357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33359 # Additional compiler flags for building library objects.
33360 pic_flag=$lt_lt_prog_compiler_pic_CXX
33362 # How to pass a linker flag through the compiler.
33363 wl=$lt_lt_prog_compiler_wl_CXX
33365 # Compiler flag to prevent dynamic linking.
33366 link_static_flag=$lt_lt_prog_compiler_static_CXX
33368 # Does compiler simultaneously support -c and -o options?
33369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33371 # Whether or not to add -lc for building shared libraries.
33372 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33374 # Whether or not to disallow shared libs when runtime libs are static.
33375 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33377 # Compiler flag to allow reflexive dlopens.
33378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33380 # Compiler flag to generate shared objects directly from archives.
33381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33383 # Whether the compiler copes with passing no objects directly.
33384 compiler_needs_object=$lt_compiler_needs_object_CXX
33386 # Create an old-style archive from a shared archive.
33387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33389 # Create a temporary old-style archive to link instead of a shared archive.
33390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33392 # Commands used to build a shared archive.
33393 archive_cmds=$lt_archive_cmds_CXX
33394 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33396 # Commands used to build a loadable module if different from building
33397 # a shared archive.
33398 module_cmds=$lt_module_cmds_CXX
33399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33401 # Whether we are building with GNU ld or not.
33402 with_gnu_ld=$lt_with_gnu_ld_CXX
33404 # Flag that allows shared libraries with undefined symbols to be built.
33405 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33407 # Flag that enforces no undefined symbols.
33408 no_undefined_flag=$lt_no_undefined_flag_CXX
33410 # Flag to hardcode \$libdir into a binary during linking.
33411 # This must work even if \$libdir does not exist
33412 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33414 # Whether we need a single "-rpath" flag with a separated argument.
33415 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33418 # DIR into the resulting binary.
33419 hardcode_direct=$hardcode_direct_CXX
33421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33422 # DIR into the resulting binary and the resulting library dependency is
33423 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33424 # library is relocated.
33425 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33427 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33428 # into the resulting binary.
33429 hardcode_minus_L=$hardcode_minus_L_CXX
33431 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33432 # into the resulting binary.
33433 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33435 # Set to "yes" if building a shared library automatically hardcodes DIR
33436 # into the library and all subsequent libraries and executables linked
33438 hardcode_automatic=$hardcode_automatic_CXX
33440 # Set to yes if linker adds runtime paths of dependent libraries
33441 # to runtime path list.
33442 inherit_rpath=$inherit_rpath_CXX
33444 # Whether libtool must link a program against all its dependency libraries.
33445 link_all_deplibs=$link_all_deplibs_CXX
33447 # Set to "yes" if exported symbols are required.
33448 always_export_symbols=$always_export_symbols_CXX
33450 # The commands to list exported symbols.
33451 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33453 # Symbols that should not be listed in the preloaded symbols.
33454 exclude_expsyms=$lt_exclude_expsyms_CXX
33456 # Symbols that must always be exported.
33457 include_expsyms=$lt_include_expsyms_CXX
33459 # Commands necessary for linking programs (against libraries) with templates.
33460 prelink_cmds=$lt_prelink_cmds_CXX
33462 # Commands necessary for finishing linking programs.
33463 postlink_cmds=$lt_postlink_cmds_CXX
33465 # Specify filename containing input files.
33466 file_list_spec=$lt_file_list_spec_CXX
33468 # How to hardcode a shared library path into an executable.
33469 hardcode_action=$hardcode_action_CXX
33471 # The directories searched by this compiler when creating a shared library.
33472 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33474 # Dependencies to place before and after the objects being linked to
33475 # create a shared library.
33476 predep_objects=$lt_predep_objects_CXX
33477 postdep_objects=$lt_postdep_objects_CXX
33478 predeps=$lt_predeps_CXX
33479 postdeps=$lt_postdeps_CXX
33481 # The library search path used internally by the compiler when linking
33482 # a shared library.
33483 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33485 # ### END LIBTOOL TAG CONFIG: CXX
33490 for ac_file in $CONFIG_FILES; do
33491 # Support "outfile[:infile[:infile...]]"
33493 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33495 # PO directories have a Makefile.in generated from Makefile.in.in.
33496 case "$ac_file" in */Makefile.in)
33497 # Adjust a relative srcdir.
33498 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33499 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33500 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33501 # In autoconf-2.13 it is called $ac_given_srcdir.
33502 # In autoconf-2.50 it is called $srcdir.
33503 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33504 case "$ac_given_srcdir" in
33505 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33506 /*) top_srcdir="$ac_given_srcdir" ;;
33507 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33509 # Treat a directory as a PO directory if and only if it has a
33510 # POTFILES.in file. This allows packages to have multiple PO
33511 # directories under different names or in different locations.
33512 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33513 rm -f "$ac_dir/POTFILES"
33514 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33515 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33516 POMAKEFILEDEPS="POTFILES.in"
33517 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33518 # on $ac_dir but don't depend on user-specified configuration
33520 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33521 # The LINGUAS file contains the set of available languages.
33522 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33523 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33525 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33526 # Hide the ALL_LINGUAS assigment from automake.
33527 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33528 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33530 # The set of available languages was given in configure.in.
33531 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33534 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33535 # Compute UPDATEPOFILES
33536 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33537 # Compute DUMMYPOFILES
33538 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33540 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33541 case "$ac_given_srcdir" in
33543 *) srcdirpre='$(srcdir)/' ;;
33549 for lang in $ALL_LINGUAS; do
33550 POFILES="$POFILES $srcdirpre$lang.po"
33551 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33552 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33553 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33555 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33556 # environment variable.
33558 if test -n "$ALL_LINGUAS"; then
33559 for presentlang in $ALL_LINGUAS; do
33561 if test "%UNSET%" != "$LINGUAS"; then
33562 desiredlanguages="$LINGUAS"
33564 desiredlanguages="$ALL_LINGUAS"
33566 for desiredlang in $desiredlanguages; do
33567 # Use the presentlang catalog if desiredlang is
33568 # a. equal to presentlang, or
33569 # b. a variant of presentlang (because in this case,
33570 # presentlang can be used as a fallback for messages
33571 # which are not translated in the desiredlang catalog).
33572 case "$desiredlang" in
33573 "$presentlang"*) useit=yes;;
33576 if test $useit = yes; then
33577 INST_LINGUAS="$INST_LINGUAS $presentlang"
33582 if test -n "$INST_LINGUAS"; then
33583 for lang in $INST_LINGUAS; do
33584 CATALOGS="$CATALOGS $lang.gmo"
33587 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33588 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"
33589 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33590 if test -f "$f"; then
33592 *.orig | *.bak | *~) ;;
33593 *) cat "$f" >> "$ac_dir/Makefile" ;;
33610 ac_clean_files=$ac_clean_files_save
33612 test $ac_write_fail = 0 ||
33613 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33616 # configure is writing to config.log, and then calls config.status.
33617 # config.status does its own redirection, appending to config.log.
33618 # Unfortunately, on DOS this fails, as config.log is still kept open
33619 # by configure, so config.status won't be able to write to it; its
33620 # output is simply discarded. So we exec the FD to /dev/null,
33621 # effectively closing config.log, so it can be properly (re)opened and
33622 # appended to by config.status. When coming back to configure, we
33623 # need to make the FD available again.
33624 if test "$no_create" != yes; then
33626 ac_config_status_args=
33627 test "$silent" = yes &&
33628 ac_config_status_args="$ac_config_status_args --quiet"
33630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33633 # would make configure fail if this is the last instruction.
33634 $ac_cs_success || as_fn_exit 1
33636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33642 if test "${support_bat}" = "yes" ; then
33643 if test "x$QMAKE" = "xnone"; then
33644 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33648 echo "Creating bat Makefile"
33654 ${MAKE:-make} clean
33658 if test X"$GCC" = "Xyes" ; then
33659 echo "Doing make of dependencies"
33660 ${MAKE:-make} depend
33664 chmod 755 install_conf_file build-depkgs-qt-console
33668 chmod 755 bacula btraceback mtx-changer
33669 chmod 755 dvd-handler dvd-simulator
33670 chmod 755 bconsole disk-changer devel_bacula logrotate
33674 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33675 chmod 755 $c/update_postgresql_tables_10_to_11
33676 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33677 chmod 755 $c/update_postgresql_tables_11_to_12
33682 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33683 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33685 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33686 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33688 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33689 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33691 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33692 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33694 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33695 chmod 755 $c/sqlite
33698 chmod 755 $c/install-default-backend
33700 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33701 largefile_support="yes"
33704 if test X"$GCC" = "Xyes" ; then
33705 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33706 if test "x${CCVERSION}" = "x" ; then
33707 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33709 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33710 if test x"${CXXVERSION}" = x ; then
33711 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33715 # clean up any old junk
33719 ${MAKE:-make} clean
33722 Configuration on `date`:
33724 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33725 Bacula version: ${BACULA} ${VERSION} (${DATE})
33726 Source code location: ${srcdir}
33727 Install binaries: ${sbindir}
33728 Install libraries: ${libdir}
33729 Install config files: ${sysconfdir}
33730 Scripts directory: ${scriptdir}
33731 Archive directory: ${archivedir}
33732 Working directory: ${working_dir}
33733 PID directory: ${piddir}
33734 Subsys directory: ${subsysdir}
33735 Man directory: ${mandir}
33736 Data directory: ${datarootdir}
33737 Plugin directory: ${plugindir}
33738 C Compiler: ${CC} ${CCVERSION}
33739 C++ Compiler: ${CXX} ${CXXVERSION}
33740 Compiler flags: ${WCFLAGS} ${CFLAGS}
33741 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33743 Statically Linked Tools: ${support_static_tools}
33744 Statically Linked FD: ${support_static_fd}
33745 Statically Linked SD: ${support_static_sd}
33746 Statically Linked DIR: ${support_static_dir}
33747 Statically Linked CONS: ${support_static_cons}
33748 Database backends: ${db_backends}
33749 Database port: ${db_port}
33750 Database name: ${db_name}
33751 Database user: ${db_user}
33752 Database SSL options: ${db_ssl_options}
33754 Job Output Email: ${job_email}
33755 Traceback Email: ${dump_email}
33756 SMTP Host Address: ${smtp_host}
33758 Director Port: ${dir_port}
33759 File daemon Port: ${fd_port}
33760 Storage daemon Port: ${sd_port}
33762 Director User: ${dir_user}
33763 Director Group: ${dir_group}
33764 Storage Daemon User: ${sd_user}
33765 Storage DaemonGroup: ${sd_group}
33766 File Daemon User: ${fd_user}
33767 File Daemon Group: ${fd_group}
33769 Large file support: $largefile_support
33770 Bacula conio support: ${got_conio} ${CONS_LIBS}
33771 readline support: ${got_readline} ${PRTREADLINE_SRC}
33772 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33773 TLS support: ${support_tls}
33774 Encryption support: ${support_crypto}
33775 ZLIB support: ${have_zlib}
33776 LZO support: ${have_lzo}
33777 enable-smartalloc: ${support_smartalloc}
33778 enable-lockmgr: ${support_lockmgr}
33779 bat support: ${support_bat}
33780 client-only: ${build_client_only}
33781 build-dird: ${build_dird}
33782 build-stored: ${build_stored}
33783 Plugin support: ${have_plugins}
33784 AFS support: ${have_afs}
33785 ACL support: ${have_acl}
33786 XATTR support: ${have_xattr}
33787 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33788 Batch insert enabled: ${batch_insert_db_backends}
33792 # create a small shell script useful for support with
33793 # configure options and config.out info
33794 cat > scripts/bacula_config << EOF
33797 $ $0 $ac_configure_args
33799 cat config.out >> scripts/bacula_config
33800 echo __EOC__ >> scripts/bacula_config
33801 chmod 755 scripts/bacula_config