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
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 if test -z "$CXX"; then
4089 if test -n "$CCC"; then
4092 if test -n "$ac_tool_prefix"; then
4093 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CXX+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CXX"; then
4103 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CXX"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4125 $as_echo "$CXX" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4132 test -n "$CXX" && break
4135 if test -z "$CXX"; then
4137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$ac_ct_CXX"; then
4147 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_ac_ct_CXX="$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4167 if test -n "$ac_ct_CXX"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4169 $as_echo "$ac_ct_CXX" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 test -n "$ac_ct_CXX" && break
4179 if test "x$ac_ct_CXX" = x; then
4182 case $cross_compiling:$ac_tool_warned in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4198 for ac_option in --version -v -V -qversion; do
4199 { { ac_try="$ac_compiler $ac_option >&5"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4208 if test -s conftest.err; then
4210 ... rest of stderr output deleted ...
4211 10q' conftest.err >conftest.er1
4212 cat conftest.er1 >&5
4214 rm -f conftest.er1 conftest.err
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4222 $as_echo_n "(cached) " >&6
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if ${ac_cv_prog_cxx_g+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262 ac_cxx_werror_flag=yes
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277 ac_cv_prog_cxx_g=yes
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308 ac_cv_prog_cxx_g=yes
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320 CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322 if test "$GXX" = yes; then
4328 if test "$GXX" = yes; then
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 if test "x$CC" != xcc; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4342 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4345 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4347 set dummy $CC; ac_cc=`$as_echo "$2" |
4348 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4349 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4350 $as_echo_n "(cached) " >&6
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 # Make sure it works both with $CC and with simple cc.
4364 # We do the test twice because some compilers refuse to overwrite an
4365 # existing .o file with -o, though they will create one.
4366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4368 if { { case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374 (eval "$ac_try") 2>&5
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; } &&
4378 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; };
4389 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4390 if test "x$CC" != xcc; then
4391 # Test first that cc exists at all.
4392 if { ac_try='cc -c conftest.$ac_ext >&5'
4393 { { case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399 (eval "$ac_try") 2>&5
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }; }; then
4403 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4405 if { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; } &&
4415 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_try") 2>&5
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; };
4429 # cc exists but doesn't like -o.
4430 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4437 rm -f core conftest*
4440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4447 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4462 if test -z "$CPP"; then
4463 if ${ac_cv_prog_CPP+:} false; then :
4464 $as_echo_n "(cached) " >&6
4466 # Double quotes because CPP needs to be expanded
4467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470 for ac_c_preproc_warn_flag in '' yes
4472 # Use a header file that comes with gcc, so configuring glibc
4473 # with a fresh cross-compiler works.
4474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 # <limits.h> exists even on freestanding compilers.
4476 # On the NeXT, cc -E runs the code through the compiler's parser,
4477 # not just through cpp. "Syntax error" is here to catch this case.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4481 # include <limits.h>
4483 # include <assert.h>
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: fails on valid input.
4493 rm -f conftest.err conftest.i conftest.$ac_ext
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <ac_nonexistent.h>
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502 # Broken: success on invalid input.
4505 # Passes both tests.
4509 rm -f conftest.err conftest.i conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.i conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4527 $as_echo "$CPP" >&6; }
4529 for ac_c_preproc_warn_flag in '' yes
4531 # Use a header file that comes with gcc, so configuring glibc
4532 # with a fresh cross-compiler works.
4533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534 # <limits.h> exists even on freestanding compilers.
4535 # On the NeXT, cc -E runs the code through the compiler's parser,
4536 # not just through cpp. "Syntax error" is here to catch this case.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4540 # include <limits.h>
4542 # include <assert.h>
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: fails on valid input.
4552 rm -f conftest.err conftest.i conftest.$ac_ext
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <ac_nonexistent.h>
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4561 # Broken: success on invalid input.
4564 # Passes both tests.
4568 rm -f conftest.err conftest.i conftest.$ac_ext
4571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572 rm -f conftest.i conftest.err conftest.$ac_ext
4573 if $ac_preproc_ok; then :
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4579 See \`config.log' for more details" "$LINENO" 5; }
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if ${ac_cv_path_GREP+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$GREP"; then
4595 ac_path_GREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 test -z "$as_dir" && as_dir=.
4602 for ac_prog in grep ggrep; do
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605 as_fn_executable_p "$ac_path_GREP" || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607 # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613 $as_echo_n 0123456789 >"conftest.in"
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 $as_echo 'GREP' >> "conftest.nl"
4620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 as_fn_arith $ac_count + 1 && ac_count=$as_val
4623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_GREP="$ac_path_GREP"
4626 ac_path_GREP_max=$ac_count
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 $ac_path_GREP_found && break 3
4639 if test -z "$ac_cv_path_GREP"; then
4640 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643 ac_cv_path_GREP=$GREP
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649 GREP="$ac_cv_path_GREP"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if ${ac_cv_path_EGREP+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658 then ac_cv_path_EGREP="$GREP -E"
4660 if test -z "$EGREP"; then
4661 ac_path_EGREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in egrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671 as_fn_executable_p "$ac_path_EGREP" || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673 # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679 $as_echo_n 0123456789 >"conftest.in"
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'EGREP' >> "conftest.nl"
4686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_EGREP="$ac_path_EGREP"
4692 ac_path_EGREP_max=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 $ac_path_EGREP_found && break 3
4705 if test -z "$ac_cv_path_EGREP"; then
4706 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 ac_cv_path_EGREP=$EGREP
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716 EGREP="$ac_cv_path_EGREP"
4719 if test $ac_cv_c_compiler_gnu = yes; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4721 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4722 if ${ac_cv_prog_gcc_traditional+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 ac_pattern="Autoconf.*'x'"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4733 ac_cv_prog_gcc_traditional=yes
4735 ac_cv_prog_gcc_traditional=no
4740 if test $ac_cv_prog_gcc_traditional = no; then
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4748 ac_cv_prog_gcc_traditional=yes
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4755 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4756 if test $ac_cv_prog_gcc_traditional = yes; then
4757 CC="$CC -traditional"
4761 BASECC=`basename $CC`
4763 if test x"$GCC" = "xyes"; then
4764 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4768 # Extract the first word of "$CXX", so it can be a program name with args.
4769 set dummy $CXX; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_CXX+:} false; then :
4773 $as_echo_n "(cached) " >&6
4777 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4800 if test -n "$CXX"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4802 $as_echo "$CXX" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4809 if test ! -e $CXX; then
4810 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4813 # Find a good install program. We prefer a C program (faster),
4814 # so one script is as good as another. But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4820 # AmigaOS /C/install, which installs bootblocks on floppy discs
4821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # OS/2's system install, which has a completely different semantic
4825 # ./install, which can be erroneously created by make from ./install.sh.
4826 # Reject install programs that cannot install multiple files.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4829 if test -z "$INSTALL"; then
4830 if ${ac_cv_path_install+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 # Account for people who put trailing slashes in PATH elements.
4839 case $as_dir/ in #((
4840 ./ | .// | /[cC]/* | \
4841 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4842 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4845 # OSF1 and SCO ODT 3.0 have their own names for install.
4846 # Don't use installbsd from OSF since it installs stuff as root
4848 for ac_prog in ginstall scoinst install; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4851 if test $ac_prog = install &&
4852 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853 # AIX install. It has an incompatible calling convention.
4855 elif test $ac_prog = install &&
4856 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857 # program-specific install script used by HP pwplus--don't use.
4860 rm -rf conftest.one conftest.two conftest.dir
4861 echo one > conftest.one
4862 echo two > conftest.two
4864 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4865 test -s conftest.one && test -s conftest.two &&
4866 test -s conftest.dir/conftest.one &&
4867 test -s conftest.dir/conftest.two
4869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4882 rm -rf conftest.one conftest.two conftest.dir
4885 if test "${ac_cv_path_install+set}" = set; then
4886 INSTALL=$ac_cv_path_install
4888 # As a last resort, use the slow shell script. Don't cache a
4889 # value for INSTALL within a source directory, because that will
4890 # break other packages using the cache if that directory is
4891 # removed, or if the value is a relative name.
4892 INSTALL=$ac_install_sh
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4896 $as_echo "$INSTALL" >&6; }
4898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4899 # It thinks the first close brace ends the variable substitution.
4900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4906 # Extract the first word of "mv", so it can be a program name with args.
4907 set dummy mv; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_MV+:} false; then :
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4938 if test -n "$MV"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940 $as_echo "$MV" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 # Extract the first word of "rm", so it can be a program name with args.
4948 set dummy rm; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_path_REMOVE+:} false; then :
4952 $as_echo_n "(cached) " >&6
4956 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4978 REMOVE=$ac_cv_path_REMOVE
4979 if test -n "$REMOVE"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4981 $as_echo "$REMOVE" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 # Extract the first word of "cp", so it can be a program name with args.
4989 set dummy cp; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_CP+:} false; then :
4993 $as_echo_n "(cached) " >&6
4997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5020 if test -n "$CP"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5022 $as_echo "$CP" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_SED+:} false; then :
5034 $as_echo_n "(cached) " >&6
5038 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5061 if test -n "$SED"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5063 $as_echo "$SED" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 # Extract the first word of "echo", so it can be a program name with args.
5071 set dummy echo; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_path_ECHO+:} false; then :
5075 $as_echo_n "(cached) " >&6
5079 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5101 ECHO=$ac_cv_path_ECHO
5102 if test -n "$ECHO"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5104 $as_echo "$ECHO" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 # Extract the first word of "cmp", so it can be a program name with args.
5112 set dummy cmp; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_CMP+:} false; then :
5116 $as_echo_n "(cached) " >&6
5120 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5143 if test -n "$CMP"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5145 $as_echo "$CMP" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 # Extract the first word of "tbl", so it can be a program name with args.
5153 set dummy tbl; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_path_TBL+:} false; then :
5157 $as_echo_n "(cached) " >&6
5161 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5184 if test -n "$TBL"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5186 $as_echo "$TBL" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_path_AR+:} false; then :
5198 $as_echo_n "(cached) " >&6
5202 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5225 if test -n "$AR"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227 $as_echo "$AR" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 # Extract the first word of "openssl", so it can be a program name with args.
5235 set dummy openssl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_OPENSSL+:} false; then :
5239 $as_echo_n "(cached) " >&6
5243 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5265 OPENSSL=$ac_cv_path_OPENSSL
5266 if test -n "$OPENSSL"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5268 $as_echo "$OPENSSL" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 # Extract the first word of "mtx", so it can be a program name with args.
5276 set dummy mtx; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_path_MTX+:} false; then :
5280 $as_echo_n "(cached) " >&6
5284 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5307 if test -n "$MTX"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5309 $as_echo "$MTX" >&6; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5316 # Extract the first word of "dd", so it can be a program name with args.
5317 set dummy dd; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_DD+:} false; then :
5321 $as_echo_n "(cached) " >&6
5325 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5348 if test -n "$DD"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5350 $as_echo "$DD" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 # Extract the first word of "mkisofs", so it can be a program name with args.
5358 set dummy mkisofs; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_MKISOFS+:} false; then :
5362 $as_echo_n "(cached) " >&6
5366 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5388 MKISOFS=$ac_cv_path_MKISOFS
5389 if test -n "$MKISOFS"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5391 $as_echo "$MKISOFS" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_path_PYTHON+:} false; then :
5403 $as_echo_n "(cached) " >&6
5407 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5429 PYTHON=$ac_cv_path_PYTHON
5430 if test -n "$PYTHON"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5432 $as_echo "$PYTHON" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 # Extract the first word of "growisofs", so it can be a program name with args.
5440 set dummy growisofs; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_GROWISOFS+:} false; then :
5444 $as_echo_n "(cached) " >&6
5448 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5470 GROWISOFS=$ac_cv_path_GROWISOFS
5471 if test -n "$GROWISOFS"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5473 $as_echo "$GROWISOFS" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5480 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5481 set dummy dvd+rw-mediainfo; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 case $DVDRWMEDIAINFO in
5489 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5511 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5512 if test -n "$DVDRWMEDIAINFO"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5514 $as_echo "$DVDRWMEDIAINFO" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5522 set dummy dvd+rw-format; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 case $DVDRWFORMAT in
5530 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5552 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5553 if test -n "$DVDRWFORMAT"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5555 $as_echo "$DVDRWFORMAT" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_path_PKGCONFIG+:} false; then :
5567 $as_echo_n "(cached) " >&6
5571 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5593 PKGCONFIG=$ac_cv_path_PKGCONFIG
5594 if test -n "$PKGCONFIG"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5596 $as_echo "$PKGCONFIG" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "qmake", so it can be a program name with args.
5604 set dummy qmake; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_path_QMAKE+:} false; then :
5608 $as_echo_n "(cached) " >&6
5612 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5634 QMAKE=$ac_cv_path_QMAKE
5635 if test -n "$QMAKE"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5637 $as_echo "$QMAKE" >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5644 # Extract the first word of "gmake", so it can be a program name with args.
5645 set dummy gmake; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_path_GMAKE+:} false; then :
5649 $as_echo_n "(cached) " >&6
5653 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5675 GMAKE=$ac_cv_path_GMAKE
5676 if test -n "$GMAKE"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5678 $as_echo "$GMAKE" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5685 # Extract the first word of "pidof", so it can be a program name with args.
5686 set dummy pidof; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_path_PIDOF+:} false; then :
5690 $as_echo_n "(cached) " >&6
5694 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5716 PIDOF=$ac_cv_path_PIDOF
5717 if test -n "$PIDOF"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5719 $as_echo "$PIDOF" >&6; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5726 for ac_prog in gawk mawk nawk awk
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_AWK+:} false; then :
5733 $as_echo_n "(cached) " >&6
5735 if test -n "$AWK"; then
5736 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_AWK="$ac_prog"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 if test -n "$AWK"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5758 $as_echo "$AWK" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5765 test -n "$AWK" && break
5768 # Some AWK programs fail, so test it and warn the user
5769 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5770 { if ((prog == $2) || (("(" prog ")") == $2) ||
5771 (("" prog "") == $2) ||
5772 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5774 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5775 The regex engine of $AWK is too broken to be used you
5776 might want to install GNU AWK.
5777 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5780 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5781 set dummy $THE_AWK; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_path_AWK+:} false; then :
5785 $as_echo_n "(cached) " >&6
5789 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5812 if test -n "$AWK"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5814 $as_echo "$AWK" >&6; }
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5823 test -n "$ARFLAG" || ARFLAGS="cr"
5835 # Check whether --enable-libtool was given.
5836 if test "${enable_libtool+set}" = set; then :
5837 enableval=$enable_libtool;
5838 if test x$enableval = xno; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5848 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5853 macro_version='2.4.2'
5854 macro_revision='1.3337'
5868 ltmain="$ac_aux_dir/ltmain.sh"
5870 # Make sure we can run config.sub.
5871 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5872 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5875 $as_echo_n "checking build system type... " >&6; }
5876 if ${ac_cv_build+:} false; then :
5877 $as_echo_n "(cached) " >&6
5879 ac_build_alias=$build_alias
5880 test "x$ac_build_alias" = x &&
5881 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5882 test "x$ac_build_alias" = x &&
5883 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5884 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5885 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5889 $as_echo "$ac_cv_build" >&6; }
5890 case $ac_cv_build in
5892 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5895 ac_save_IFS=$IFS; IFS='-'
5901 # Remember, the first character of IFS is used to create $*,
5902 # except with old shells:
5905 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5909 $as_echo_n "checking host system type... " >&6; }
5910 if ${ac_cv_host+:} false; then :
5911 $as_echo_n "(cached) " >&6
5913 if test "x$host_alias" = x; then
5914 ac_cv_host=$ac_cv_build
5916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5917 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5922 $as_echo "$ac_cv_host" >&6; }
5925 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5928 ac_save_IFS=$IFS; IFS='-'
5934 # Remember, the first character of IFS is used to create $*,
5935 # except with old shells:
5938 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5941 # Backslashify metacharacters that are still active within
5942 # double-quoted strings.
5943 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5945 # Same as above, but do not quote variable references.
5946 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5948 # Sed substitution to delay expansion of an escaped shell variable in a
5949 # double_quote_subst'ed string.
5950 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5952 # Sed substitution to delay expansion of an escaped single quote.
5953 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5955 # Sed substitution to avoid accidental globbing in evaled expressions
5956 no_glob_subst='s/\*/\\\*/g'
5958 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5963 $as_echo_n "checking how to print strings... " >&6; }
5964 # Test print first, because it will be a builtin if present.
5965 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5966 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5968 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5971 # Use this function as a fallback that always works.
5972 func_fallback_echo ()
5974 eval 'cat <<_LTECHO_EOF
5978 ECHO='func_fallback_echo'
5981 # func_echo_all arg...
5982 # Invoke $ECHO with all args, space-separated.
5989 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5990 $as_echo "printf" >&6; } ;;
5991 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5992 $as_echo "print -r" >&6; } ;;
5993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5994 $as_echo "cat" >&6; } ;;
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6011 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6012 if ${ac_cv_path_SED+:} false; then :
6013 $as_echo_n "(cached) " >&6
6015 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6016 for ac_i in 1 2 3 4 5 6 7; do
6017 ac_script="$ac_script$as_nl$ac_script"
6019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6020 { ac_script=; unset ac_script;}
6021 if test -z "$SED"; then
6022 ac_path_SED_found=false
6023 # Loop through the user's path and test for each of PROGNAME-LIST
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_prog in sed gsed; do
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6032 as_fn_executable_p "$ac_path_SED" || continue
6033 # Check for GNU ac_path_SED and select it if it is found.
6034 # Check for GNU $ac_path_SED
6035 case `"$ac_path_SED" --version 2>&1` in
6037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6040 $as_echo_n 0123456789 >"conftest.in"
6043 cat "conftest.in" "conftest.in" >"conftest.tmp"
6044 mv "conftest.tmp" "conftest.in"
6045 cp "conftest.in" "conftest.nl"
6046 $as_echo '' >> "conftest.nl"
6047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6049 as_fn_arith $ac_count + 1 && ac_count=$as_val
6050 if test $ac_count -gt ${ac_path_SED_max-0}; then
6051 # Best one so far, save it but keep looking for a better one
6052 ac_cv_path_SED="$ac_path_SED"
6053 ac_path_SED_max=$ac_count
6055 # 10*(2^10) chars as input seems more than enough
6056 test $ac_count -gt 10 && break
6058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6061 $ac_path_SED_found && break 3
6066 if test -z "$ac_cv_path_SED"; then
6067 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6075 $as_echo "$ac_cv_path_SED" >&6; }
6076 SED="$ac_cv_path_SED"
6079 test -z "$SED" && SED=sed
6080 Xsed="$SED -e 1s/^X//"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6093 $as_echo_n "checking for fgrep... " >&6; }
6094 if ${ac_cv_path_FGREP+:} false; then :
6095 $as_echo_n "(cached) " >&6
6097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6098 then ac_cv_path_FGREP="$GREP -F"
6100 if test -z "$FGREP"; then
6101 ac_path_FGREP_found=false
6102 # Loop through the user's path and test for each of PROGNAME-LIST
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6107 test -z "$as_dir" && as_dir=.
6108 for ac_prog in fgrep; do
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6111 as_fn_executable_p "$ac_path_FGREP" || continue
6112 # Check for GNU ac_path_FGREP and select it if it is found.
6113 # Check for GNU $ac_path_FGREP
6114 case `"$ac_path_FGREP" --version 2>&1` in
6116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6119 $as_echo_n 0123456789 >"conftest.in"
6122 cat "conftest.in" "conftest.in" >"conftest.tmp"
6123 mv "conftest.tmp" "conftest.in"
6124 cp "conftest.in" "conftest.nl"
6125 $as_echo 'FGREP' >> "conftest.nl"
6126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128 as_fn_arith $ac_count + 1 && ac_count=$as_val
6129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6130 # Best one so far, save it but keep looking for a better one
6131 ac_cv_path_FGREP="$ac_path_FGREP"
6132 ac_path_FGREP_max=$ac_count
6134 # 10*(2^10) chars as input seems more than enough
6135 test $ac_count -gt 10 && break
6137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6140 $ac_path_FGREP_found && break 3
6145 if test -z "$ac_cv_path_FGREP"; then
6146 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6149 ac_cv_path_FGREP=$FGREP
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6155 $as_echo "$ac_cv_path_FGREP" >&6; }
6156 FGREP="$ac_cv_path_FGREP"
6159 test -z "$GREP" && GREP=grep
6179 # Check whether --with-gnu-ld was given.
6180 if test "${with_gnu_ld+set}" = set; then :
6181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6187 if test "$GCC" = yes; then
6188 # Check if gcc -print-prog-name=ld gives a path.
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6190 $as_echo_n "checking for ld used by $CC... " >&6; }
6193 # gcc leaves a trailing carriage return which upsets mingw
6194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6199 # Accept absolute paths.
6201 re_direlt='/[^/][^/]*/\.\./'
6202 # Canonicalize the pathname of ld
6203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6207 test -z "$LD" && LD="$ac_prog"
6210 # If it fails, then pretend we aren't using GCC.
6214 # If it is relative, then search for the first ld in PATH.
6218 elif test "$with_gnu_ld" = yes; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6220 $as_echo_n "checking for GNU ld... " >&6; }
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6223 $as_echo_n "checking for non-GNU ld... " >&6; }
6225 if ${lt_cv_path_LD+:} false; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -z "$LD"; then
6229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6230 for ac_dir in $PATH; do
6232 test -z "$ac_dir" && ac_dir=.
6233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6234 lt_cv_path_LD="$ac_dir/$ac_prog"
6235 # Check to see if the program is GNU ld. I'd rather use --version,
6236 # but apparently some variants of GNU ld only accept -v.
6237 # Break only if it was the GNU/non-GNU ld that we prefer.
6238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6239 *GNU* | *'with BFD'*)
6240 test "$with_gnu_ld" != no && break
6243 test "$with_gnu_ld" != yes && break
6250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6255 if test -n "$LD"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6257 $as_echo "$LD" >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6262 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6264 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6265 if ${lt_cv_prog_gnu_ld+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6269 case `$LD -v 2>&1 </dev/null` in
6270 *GNU* | *'with BFD'*)
6271 lt_cv_prog_gnu_ld=yes
6274 lt_cv_prog_gnu_ld=no
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6279 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6280 with_gnu_ld=$lt_cv_prog_gnu_ld
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6291 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6292 if ${lt_cv_path_NM+:} false; then :
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$NM"; then
6296 # Let the user override the test.
6299 lt_nm_to_check="${ac_tool_prefix}nm"
6300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6301 lt_nm_to_check="$lt_nm_to_check nm"
6303 for lt_tmp_nm in $lt_nm_to_check; do
6304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6307 test -z "$ac_dir" && ac_dir=.
6308 tmp_nm="$ac_dir/$lt_tmp_nm"
6309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6310 # Check to see if the nm accepts a BSD-compat flag.
6311 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6312 # nm: unknown option "B" ignored
6313 # Tru64's nm complains that /dev/null is an invalid object file
6314 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6315 */dev/null* | *'Invalid file or object type'*)
6316 lt_cv_path_NM="$tmp_nm -B"
6320 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6322 lt_cv_path_NM="$tmp_nm -p"
6326 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6327 continue # so that we can try to find one that supports BSD flags
6336 : ${lt_cv_path_NM=no}
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6340 $as_echo "$lt_cv_path_NM" >&6; }
6341 if test "$lt_cv_path_NM" != "no"; then
6344 # Didn't find any BSD compatible name lister, look for dumpbin.
6345 if test -n "$DUMPBIN"; then :
6346 # Let the user override the test.
6348 if test -n "$ac_tool_prefix"; then
6349 for ac_prog in dumpbin "link -dump"
6351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_DUMPBIN+:} false; then :
6356 $as_echo_n "(cached) " >&6
6358 if test -n "$DUMPBIN"; then
6359 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 DUMPBIN=$ac_cv_prog_DUMPBIN
6379 if test -n "$DUMPBIN"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6381 $as_echo "$DUMPBIN" >&6; }
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6388 test -n "$DUMPBIN" && break
6391 if test -z "$DUMPBIN"; then
6392 ac_ct_DUMPBIN=$DUMPBIN
6393 for ac_prog in dumpbin "link -dump"
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6400 $as_echo_n "(cached) " >&6
6402 if test -n "$ac_ct_DUMPBIN"; then
6403 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6423 if test -n "$ac_ct_DUMPBIN"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6425 $as_echo "$ac_ct_DUMPBIN" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6432 test -n "$ac_ct_DUMPBIN" && break
6435 if test "x$ac_ct_DUMPBIN" = x; then
6438 case $cross_compiling:$ac_tool_warned in
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442 ac_tool_warned=yes ;;
6444 DUMPBIN=$ac_ct_DUMPBIN
6448 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6450 DUMPBIN="$DUMPBIN -symbols"
6458 if test "$DUMPBIN" != ":"; then
6462 test -z "$NM" && NM=nm
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6470 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6471 if ${lt_cv_nm_interface+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 lt_cv_nm_interface="BSD nm"
6475 echo "int some_variable = 0;" > conftest.$ac_ext
6476 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6477 (eval "$ac_compile" 2>conftest.err)
6478 cat conftest.err >&5
6479 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6480 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6481 cat conftest.err >&5
6482 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6483 cat conftest.out >&5
6484 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6485 lt_cv_nm_interface="MS dumpbin"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6490 $as_echo "$lt_cv_nm_interface" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6493 $as_echo_n "checking whether ln -s works... " >&6; }
6495 if test "$LN_S" = "ln -s"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6500 $as_echo "no, using $LN_S" >&6; }
6503 # find the maximum length of command line arguments
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6505 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6506 if ${lt_cv_sys_max_cmd_len+:} false; then :
6507 $as_echo_n "(cached) " >&6
6514 # On DJGPP, this test can blow up pretty badly due to problems in libc
6515 # (any single argument exceeding 2000 bytes causes a buffer overrun
6516 # during glob expansion). Even if it were fixed, the result of this
6517 # check would be larger than it should be.
6518 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6522 # Under GNU Hurd, this test is not required because there is
6523 # no limit to the length of command line arguments.
6524 # Libtool will interpret -1 as no limit whatsoever
6525 lt_cv_sys_max_cmd_len=-1;
6528 cygwin* | mingw* | cegcc*)
6529 # On Win9x/ME, this test blows up -- it succeeds, but takes
6530 # about 5 minutes as the teststring grows exponentially.
6531 # Worse, since 9x/ME are not pre-emptively multitasking,
6532 # you end up with a "frozen" computer, even though with patience
6533 # the test eventually succeeds (with a max line length of 256k).
6534 # Instead, let's just punt: use the minimum linelength reported by
6535 # all of the supported platforms: 8192 (on NT/2K/XP).
6536 lt_cv_sys_max_cmd_len=8192;
6540 # On MiNT this can take a long time and run out of memory.
6541 lt_cv_sys_max_cmd_len=8192;
6545 # On AmigaOS with pdksh, this test takes hours, literally.
6546 # So we just punt and use a minimum line length of 8192.
6547 lt_cv_sys_max_cmd_len=8192;
6550 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6551 # This has been around since 386BSD, at least. Likely further.
6552 if test -x /sbin/sysctl; then
6553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6554 elif test -x /usr/sbin/sysctl; then
6555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6559 # And add a safety zone
6560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6565 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6566 lt_cv_sys_max_cmd_len=196608
6570 # The test takes a long time on OS/2.
6571 lt_cv_sys_max_cmd_len=8192
6575 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6576 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6577 # nice to cause kernel panics so lets avoid the loop below.
6578 # First set a reasonable default.
6579 lt_cv_sys_max_cmd_len=16384
6581 if test -x /sbin/sysconfig; then
6582 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6583 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6588 lt_cv_sys_max_cmd_len=102400
6590 sysv5* | sco5v6* | sysv4.2uw2*)
6591 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6592 if test -n "$kargmax"; then
6593 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6595 lt_cv_sys_max_cmd_len=32768
6599 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6600 if test -n "$lt_cv_sys_max_cmd_len" && \
6601 test undefined != "$lt_cv_sys_max_cmd_len"; then
6602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6605 # Make teststring a little bigger before we do anything with it.
6606 # a 1K string should be a reasonable start.
6607 for i in 1 2 3 4 5 6 7 8 ; do
6608 teststring=$teststring$teststring
6610 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6611 # If test is not a shell built-in, we'll probably end up computing a
6612 # maximum length that is only half of the actual maximum length, but
6614 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6615 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6616 test $i != 17 # 1/2 MB should be enough
6619 teststring=$teststring$teststring
6621 # Only check the string length outside the loop.
6622 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6624 # Add a significant safety factor because C++ compilers can tack on
6625 # massive amounts of additional arguments before passing them to the
6626 # linker. It appears as though 1/2 is a usable value.
6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6634 if test -n $lt_cv_sys_max_cmd_len ; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6636 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6639 $as_echo "none" >&6; }
6641 max_cmd_len=$lt_cv_sys_max_cmd_len
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6653 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6654 # Try some XSI features
6657 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6659 && eval 'test $(( 1 + 1 )) -eq 2 \
6660 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6663 $as_echo "$xsi_shell" >&6; }
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6667 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6669 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6671 && lt_shell_append=yes
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6673 $as_echo "$lt_shell_append" >&6; }
6676 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6686 # test EBCDIC or ASCII
6687 case `echo X|tr X '\101'` in
6688 A) # ASCII based system
6689 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6690 lt_SP2NL='tr \040 \012'
6691 lt_NL2SP='tr \015\012 \040\040'
6693 *) # EBCDIC based system
6694 lt_SP2NL='tr \100 \n'
6695 lt_NL2SP='tr \r\n \100\100'
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6708 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6709 if ${lt_cv_to_host_file_cmd+:} false; then :
6710 $as_echo_n "(cached) " >&6
6715 *-*-mingw* ) # actually msys
6716 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6719 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6721 * ) # otherwise, assume *nix
6722 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6728 *-*-mingw* ) # actually msys
6729 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6732 lt_cv_to_host_file_cmd=func_convert_file_noop
6734 * ) # otherwise, assume *nix
6735 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6739 * ) # unhandled hosts (and "normal" native builds)
6740 lt_cv_to_host_file_cmd=func_convert_file_noop
6746 to_host_file_cmd=$lt_cv_to_host_file_cmd
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6748 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6755 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6756 if ${lt_cv_to_tool_file_cmd+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 #assume ordinary cross tools, or native build.
6760 lt_cv_to_tool_file_cmd=func_convert_file_noop
6764 *-*-mingw* ) # actually msys
6765 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6773 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6775 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6782 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6783 if ${lt_cv_ld_reload_flag+:} false; then :
6784 $as_echo_n "(cached) " >&6
6786 lt_cv_ld_reload_flag='-r'
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6789 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6790 reload_flag=$lt_cv_ld_reload_flag
6791 case $reload_flag in
6793 *) reload_flag=" $reload_flag" ;;
6795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6797 cygwin* | mingw* | pw32* | cegcc*)
6798 if test "$GCC" != yes; then
6803 if test "$GCC" = yes; then
6804 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6806 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6819 if test -n "$ac_tool_prefix"; then
6820 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_OBJDUMP+:} false; then :
6825 $as_echo_n "(cached) " >&6
6827 if test -n "$OBJDUMP"; then
6828 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 OBJDUMP=$ac_cv_prog_OBJDUMP
6848 if test -n "$OBJDUMP"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6850 $as_echo "$OBJDUMP" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6858 if test -z "$ac_cv_prog_OBJDUMP"; then
6859 ac_ct_OBJDUMP=$OBJDUMP
6860 # Extract the first word of "objdump", so it can be a program name with args.
6861 set dummy objdump; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 if test -n "$ac_ct_OBJDUMP"; then
6868 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6888 if test -n "$ac_ct_OBJDUMP"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6890 $as_echo "$ac_ct_OBJDUMP" >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6896 if test "x$ac_ct_OBJDUMP" = x; then
6899 case $cross_compiling:$ac_tool_warned in
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903 ac_tool_warned=yes ;;
6905 OBJDUMP=$ac_ct_OBJDUMP
6908 OBJDUMP="$ac_cv_prog_OBJDUMP"
6911 test -z "$OBJDUMP" && OBJDUMP=objdump
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6922 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6923 if ${lt_cv_deplibs_check_method+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 lt_cv_file_magic_cmd='$MAGIC_CMD'
6927 lt_cv_file_magic_test_file=
6928 lt_cv_deplibs_check_method='unknown'
6929 # Need to set the preceding variable on all platforms that support
6930 # interlibrary dependencies.
6931 # 'none' -- dependencies not supported.
6932 # `unknown' -- same as none, but documents that we really don't know.
6933 # 'pass_all' -- all dependencies passed with no checks.
6934 # 'test_compile' -- check by making test program.
6935 # 'file_magic [[regex]]' -- check by looking for files in library path
6936 # which responds to the $file_magic_cmd with a given extended regex.
6937 # If you have `file' or equivalent on your system and you're not sure
6938 # whether `pass_all' will *always* work, you probably want this one.
6942 lt_cv_deplibs_check_method=pass_all
6946 lt_cv_deplibs_check_method=pass_all
6950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6951 lt_cv_file_magic_cmd='/usr/bin/file -L'
6952 lt_cv_file_magic_test_file=/shlib/libc.so
6956 # func_win32_libid is a shell function defined in ltmain.sh
6957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6958 lt_cv_file_magic_cmd='func_win32_libid'
6962 # Base MSYS/MinGW do not provide the 'file' command needed by
6963 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6964 # unless we find 'file', for example because we are cross-compiling.
6965 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6966 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6968 lt_cv_file_magic_cmd='func_win32_libid'
6970 # Keep this pattern in sync with the one in func_win32_libid.
6971 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6972 lt_cv_file_magic_cmd='$OBJDUMP -f'
6977 # use the weaker test based on 'objdump'. See mingw*.
6978 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6979 lt_cv_file_magic_cmd='$OBJDUMP -f'
6982 darwin* | rhapsody*)
6983 lt_cv_deplibs_check_method=pass_all
6986 freebsd* | dragonfly*)
6987 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6990 # Not sure whether the presence of OpenBSD here was a mistake.
6991 # Let's accept both of them until this is cleared up.
6992 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6993 lt_cv_file_magic_cmd=/usr/bin/file
6994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6998 lt_cv_deplibs_check_method=pass_all
7003 lt_cv_deplibs_check_method=pass_all
7006 hpux10.20* | hpux11*)
7007 lt_cv_file_magic_cmd=/usr/bin/file
7010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7011 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7014 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]'
7015 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7019 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7025 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7029 irix5* | irix6* | nonstopux*)
7031 *-32|*"-32 ") libmagic=32-bit;;
7032 *-n32|*"-n32 ") libmagic=N32;;
7033 *-64|*"-64 ") libmagic=64-bit;;
7034 *) libmagic=never-match;;
7036 lt_cv_deplibs_check_method=pass_all
7039 # This must be glibc/ELF.
7040 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7041 lt_cv_deplibs_check_method=pass_all
7044 netbsd* | netbsdelf*-gnu)
7045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7054 lt_cv_file_magic_cmd=/usr/bin/file
7055 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7059 lt_cv_deplibs_check_method=pass_all
7063 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7070 osf3* | osf4* | osf5*)
7071 lt_cv_deplibs_check_method=pass_all
7075 lt_cv_deplibs_check_method=pass_all
7079 lt_cv_deplibs_check_method=pass_all
7082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7083 lt_cv_deplibs_check_method=pass_all
7087 case $host_vendor in
7089 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]'
7090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7093 lt_cv_deplibs_check_method=pass_all
7096 lt_cv_file_magic_cmd='/bin/file'
7097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7100 lt_cv_file_magic_cmd='/bin/file'
7101 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7102 lt_cv_file_magic_test_file=/lib/libc.so
7105 lt_cv_deplibs_check_method=pass_all
7108 lt_cv_deplibs_check_method=pass_all
7114 lt_cv_deplibs_check_method=pass_all
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7120 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7124 if test "$build" = "$host"; then
7127 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7130 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7136 file_magic_cmd=$lt_cv_file_magic_cmd
7137 deplibs_check_method=$lt_cv_deplibs_check_method
7138 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_DLLTOOL+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 if test -n "$DLLTOOL"; then
7170 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 DLLTOOL=$ac_cv_prog_DLLTOOL
7190 if test -n "$DLLTOOL"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7192 $as_echo "$DLLTOOL" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7200 if test -z "$ac_cv_prog_DLLTOOL"; then
7201 ac_ct_DLLTOOL=$DLLTOOL
7202 # Extract the first word of "dlltool", so it can be a program name with args.
7203 set dummy dlltool; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$ac_ct_DLLTOOL"; then
7210 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7230 if test -n "$ac_ct_DLLTOOL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7232 $as_echo "$ac_ct_DLLTOOL" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7238 if test "x$ac_ct_DLLTOOL" = x; then
7241 case $cross_compiling:$ac_tool_warned in
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7247 DLLTOOL=$ac_ct_DLLTOOL
7250 DLLTOOL="$ac_cv_prog_DLLTOOL"
7253 test -z "$DLLTOOL" && DLLTOOL=dlltool
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7265 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7266 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 lt_cv_sharedlib_from_linklib_cmd='unknown'
7272 cygwin* | mingw* | pw32* | cegcc*)
7273 # two different shell functions defined in ltmain.sh
7274 # decide which to use based on capabilities of $DLLTOOL
7275 case `$DLLTOOL --help 2>&1` in
7276 *--identify-strict*)
7277 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7280 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7285 # fallback: assume linklib IS sharedlib
7286 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7292 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7293 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7294 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7302 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_AR+:} false; then :
7310 $as_echo_n "(cached) " >&6
7312 if test -n "$AR"; then
7313 ac_cv_prog_AR="$AR" # Let the user override the test.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 if test -n "$AR"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7335 $as_echo "$AR" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7342 test -n "$AR" && break
7345 if test -z "$AR"; then
7349 # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7354 $as_echo_n "(cached) " >&6
7356 if test -n "$ac_ct_AR"; then
7357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_ac_ct_AR="$ac_prog"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7377 if test -n "$ac_ct_AR"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7379 $as_echo "$ac_ct_AR" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7386 test -n "$ac_ct_AR" && break
7389 if test "x$ac_ct_AR" = x; then
7392 case $cross_compiling:$ac_tool_warned in
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7416 $as_echo_n "checking for archiver @FILE support... " >&6; }
7417 if ${lt_cv_ar_at_file+:} false; then :
7418 $as_echo_n "(cached) " >&6
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 echo conftest.$ac_objext > conftest.lst
7434 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7436 (eval $lt_ar_try) 2>&5
7438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439 test $ac_status = 0; }
7440 if test "$ac_status" -eq 0; then
7441 # Ensure the archiver fails upon bogus file names.
7442 rm -f conftest.$ac_objext libconftest.a
7443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7444 (eval $lt_ar_try) 2>&5
7446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7447 test $ac_status = 0; }
7448 if test "$ac_status" -ne 0; then
7452 rm -f conftest.* libconftest.a
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7459 $as_echo "$lt_cv_ar_at_file" >&6; }
7461 if test "x$lt_cv_ar_at_file" = xno; then
7464 archiver_list_spec=$lt_cv_ar_at_file
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}strip; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_STRIP+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$STRIP"; then
7482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 STRIP=$ac_cv_prog_STRIP
7502 if test -n "$STRIP"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7504 $as_echo "$STRIP" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_STRIP"; then
7514 # Extract the first word of "strip", so it can be a program name with args.
7515 set dummy strip; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$ac_ct_STRIP"; then
7522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_ac_ct_STRIP="strip"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7542 if test -n "$ac_ct_STRIP"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7544 $as_echo "$ac_ct_STRIP" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_STRIP" = x; then
7553 case $cross_compiling:$ac_tool_warned in
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7562 STRIP="$ac_cv_prog_STRIP"
7565 test -z "$STRIP" && STRIP=:
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_RANLIB+:} false; then :
7578 $as_echo_n "(cached) " >&6
7580 if test -n "$RANLIB"; then
7581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 RANLIB=$ac_cv_prog_RANLIB
7601 if test -n "$RANLIB"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7603 $as_echo "$RANLIB" >&6; }
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7611 if test -z "$ac_cv_prog_RANLIB"; then
7612 ac_ct_RANLIB=$RANLIB
7613 # Extract the first word of "ranlib", so it can be a program name with args.
7614 set dummy ranlib; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$ac_ct_RANLIB"; then
7621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_ac_ct_RANLIB="ranlib"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7641 if test -n "$ac_ct_RANLIB"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7643 $as_echo "$ac_ct_RANLIB" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7649 if test "x$ac_ct_RANLIB" = x; then
7652 case $cross_compiling:$ac_tool_warned in
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656 ac_tool_warned=yes ;;
7658 RANLIB=$ac_ct_RANLIB
7661 RANLIB="$ac_cv_prog_RANLIB"
7664 test -z "$RANLIB" && RANLIB=:
7671 # Determine commands to create old-style static archives.
7672 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7673 old_postinstall_cmds='chmod 644 $oldlib'
7674 old_postuninstall_cmds=
7676 if test -n "$RANLIB"; then
7679 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7682 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7685 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7690 lock_old_archive_extraction=yes ;;
7692 lock_old_archive_extraction=no ;;
7733 # If no C compiler was specified, use CC.
7736 # If no C compiler flags were specified, use CFLAGS.
7737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7739 # Allow CC to be a program name with arguments.
7743 # Check for command to grab the raw symbol name followed by C symbol from nm.
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7745 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7746 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7747 $as_echo_n "(cached) " >&6
7750 # These are sane defaults that work on at least a few old systems.
7751 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7753 # Character class describing NM global symbol codes.
7754 symcode='[BCDEGRST]'
7756 # Regexp to match symbols that can be accessed directly from C.
7757 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7759 # Define system-specific variables.
7764 cygwin* | mingw* | pw32* | cegcc*)
7765 symcode='[ABCDGISTW]'
7768 if test "$host_cpu" = ia64; then
7769 symcode='[ABCDEGRST]'
7773 symcode='[BCDEGRST]'
7776 symcode='[BCDEGQRST]'
7787 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7795 # If we're using GNU nm, then use its standard symbol codes.
7796 case `$NM -V 2>&1` in
7797 *GNU* | *'with BFD'*)
7798 symcode='[ABCDGIRSTW]' ;;
7801 # Transform an extracted symbol line into a proper C declaration.
7802 # Some systems (esp. on ia64) link data and code symbols differently,
7803 # so use this general approach.
7804 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7806 # Transform an extracted symbol line into symbol name and symbol address
7807 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7808 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'"
7810 # Handle CRLF in mingw tool chain
7814 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7818 # Try without a prefix underscore, then with it.
7819 for ac_symprfx in "" "_"; do
7821 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7822 symxfrm="\\1 $ac_symprfx\\2 \\2"
7824 # Write the raw and C identifiers.
7825 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7826 # Fake it for dumpbin and say T for any non-static function
7827 # and D for any global variable.
7828 # Also find C++ and __fastcall symbols from MSVC++,
7829 # which start with @ or ?.
7830 lt_cv_sys_global_symbol_pipe="$AWK '"\
7831 " {last_section=section; section=\$ 3};"\
7832 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7833 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7834 " \$ 0!~/External *\|/{next};"\
7835 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7836 " {if(hide[section]) next};"\
7837 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7838 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7839 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7840 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7841 " ' prfx=^$ac_symprfx"
7843 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7845 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7847 # Check to see that the pipe works correctly.
7851 cat > conftest.$ac_ext <<_LT_EOF
7856 void nm_test_func(void);
7857 void nm_test_func(void){}
7861 int main(){nm_test_var='a';nm_test_func();return(0);}
7864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865 (eval $ac_compile) 2>&5
7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }; then
7869 # Now try to grab the symbols.
7871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7872 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875 test $ac_status = 0; } && test -s "$nlist"; then
7876 # Try sorting and uniquifying the output.
7877 if sort "$nlist" | uniq > "$nlist"T; then
7878 mv -f "$nlist"T "$nlist"
7883 # Make sure that we snagged all the symbols we need.
7884 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7885 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7886 cat <<_LT_EOF > conftest.$ac_ext
7887 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7888 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7889 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7890 relocations are performed -- see ld's documentation on pseudo-relocs. */
7891 # define LT_DLSYM_CONST
7892 #elif defined(__osf__)
7893 /* This system does not cope well with relocations in const data. */
7894 # define LT_DLSYM_CONST
7896 # define LT_DLSYM_CONST const
7904 # Now generate the symbol file.
7905 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7907 cat <<_LT_EOF >> conftest.$ac_ext
7909 /* The mapping between symbol names and symbols. */
7910 LT_DLSYM_CONST struct {
7914 lt__PROGRAM__LTX_preloaded_symbols[] =
7916 { "@PROGRAM@", (void *) 0 },
7918 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7919 cat <<\_LT_EOF >> conftest.$ac_ext
7923 /* This works around a problem in FreeBSD linker */
7924 #ifdef FREEBSD_WORKAROUND
7925 static const void *lt_preloaded_setup() {
7926 return lt__PROGRAM__LTX_preloaded_symbols;
7934 # Now try linking the two files.
7935 mv conftest.$ac_objext conftstm.$ac_objext
7936 lt_globsym_save_LIBS=$LIBS
7937 lt_globsym_save_CFLAGS=$CFLAGS
7938 LIBS="conftstm.$ac_objext"
7939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7941 (eval $ac_link) 2>&5
7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7947 LIBS=$lt_globsym_save_LIBS
7948 CFLAGS=$lt_globsym_save_CFLAGS
7950 echo "cannot find nm_test_func in $nlist" >&5
7953 echo "cannot find nm_test_var in $nlist" >&5
7956 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7959 echo "$progname: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7962 rm -rf conftest* conftst*
7964 # Do not use the global_symbol_pipe unless it works.
7965 if test "$pipe_works" = yes; then
7968 lt_cv_sys_global_symbol_pipe=
7974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7975 lt_cv_sys_global_symbol_to_cdecl=
7977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7979 $as_echo "failed" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7982 $as_echo "ok" >&6; }
7985 # Response file support.
7986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7987 nm_file_list_spec='@'
7988 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7989 nm_file_list_spec='@'
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8019 $as_echo_n "checking for sysroot... " >&6; }
8021 # Check whether --with-sysroot was given.
8022 if test "${with_sysroot+set}" = set; then :
8023 withval=$with_sysroot;
8030 case ${with_sysroot} in #(
8032 if test "$GCC" = yes; then
8033 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8037 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8043 $as_echo "${with_sysroot}" >&6; }
8044 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8049 $as_echo "${lt_sysroot:-no}" >&6; }
8055 # Check whether --enable-libtool-lock was given.
8056 if test "${enable_libtool_lock+set}" = set; then :
8057 enableval=$enable_libtool_lock;
8060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8062 # Some flags need to be propagated to the compiler or linker for good
8066 # Find out which ABI we are using.
8067 echo 'int i;' > conftest.$ac_ext
8068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8069 (eval $ac_compile) 2>&5
8071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8072 test $ac_status = 0; }; then
8073 case `/usr/bin/file conftest.$ac_objext` in
8085 # Find out which ABI we are using.
8086 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8088 (eval $ac_compile) 2>&5
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091 test $ac_status = 0; }; then
8092 if test "$lt_cv_prog_gnu_ld" = yes; then
8093 case `/usr/bin/file conftest.$ac_objext` in
8095 LD="${LD-ld} -melf32bsmip"
8098 LD="${LD-ld} -melf32bmipn32"
8101 LD="${LD-ld} -melf64bmip"
8105 case `/usr/bin/file conftest.$ac_objext` in
8121 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8122 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8123 # Find out which ABI we are using.
8124 echo 'int i;' > conftest.$ac_ext
8125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8126 (eval $ac_compile) 2>&5
8128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8129 test $ac_status = 0; }; then
8130 case `/usr/bin/file conftest.o` in
8133 x86_64-*kfreebsd*-gnu)
8134 LD="${LD-ld} -m elf_i386_fbsd"
8137 case `/usr/bin/file conftest.o` in
8139 LD="${LD-ld} -m elf32_x86_64"
8142 LD="${LD-ld} -m elf_i386"
8147 LD="${LD-ld} -m elf32lppclinux"
8150 LD="${LD-ld} -m elf32ppclinux"
8153 LD="${LD-ld} -m elf_s390"
8156 LD="${LD-ld} -m elf32_sparc"
8162 x86_64-*kfreebsd*-gnu)
8163 LD="${LD-ld} -m elf_x86_64_fbsd"
8166 LD="${LD-ld} -m elf_x86_64"
8169 LD="${LD-ld} -m elf64lppc"
8172 LD="${LD-ld} -m elf64ppc"
8174 s390*-*linux*|s390*-*tpf*)
8175 LD="${LD-ld} -m elf64_s390"
8178 LD="${LD-ld} -m elf64_sparc"
8188 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8189 SAVE_CFLAGS="$CFLAGS"
8190 CFLAGS="$CFLAGS -belf"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8192 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8193 if ${lt_cv_cc_needs_belf+:} false; then :
8194 $as_echo_n "(cached) " >&6
8197 ac_cpp='$CPP $CPPFLAGS'
8198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8213 if ac_fn_c_try_link "$LINENO"; then :
8214 lt_cv_cc_needs_belf=yes
8216 lt_cv_cc_needs_belf=no
8218 rm -f core conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
8221 ac_cpp='$CPP $CPPFLAGS'
8222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8228 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8229 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8230 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8231 CFLAGS="$SAVE_CFLAGS"
8235 # Find out which ABI we are using.
8236 echo 'int i;' > conftest.$ac_ext
8237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8238 (eval $ac_compile) 2>&5
8240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8241 test $ac_status = 0; }; then
8242 case `/usr/bin/file conftest.o` in
8244 case $lt_cv_prog_gnu_ld in
8248 LD="${LD-ld} -m elf_x86_64"
8251 LD="${LD-ld} -m elf64_sparc"
8254 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8255 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8260 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8272 need_locks="$enable_libtool_lock"
8274 if test -n "$ac_tool_prefix"; then
8275 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8276 set dummy ${ac_tool_prefix}mt; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 if test -n "$MANIFEST_TOOL"; then
8283 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8303 if test -n "$MANIFEST_TOOL"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8305 $as_echo "$MANIFEST_TOOL" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8313 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8314 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8315 # Extract the first word of "mt", so it can be a program name with args.
8316 set dummy mt; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8320 $as_echo_n "(cached) " >&6
8322 if test -n "$ac_ct_MANIFEST_TOOL"; then
8323 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8343 if test -n "$ac_ct_MANIFEST_TOOL"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8345 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8351 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8354 case $cross_compiling:$ac_tool_warned in
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8358 ac_tool_warned=yes ;;
8360 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8363 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8366 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8368 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8369 if ${lt_cv_path_mainfest_tool+:} false; then :
8370 $as_echo_n "(cached) " >&6
8372 lt_cv_path_mainfest_tool=no
8373 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8374 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8375 cat conftest.err >&5
8376 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8377 lt_cv_path_mainfest_tool=yes
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8382 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8383 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8393 rhapsody* | darwin*)
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 if test -n "$DSYMUTIL"; then
8403 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8423 if test -n "$DSYMUTIL"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8425 $as_echo "$DSYMUTIL" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8433 if test -z "$ac_cv_prog_DSYMUTIL"; then
8434 ac_ct_DSYMUTIL=$DSYMUTIL
8435 # Extract the first word of "dsymutil", so it can be a program name with args.
8436 set dummy dsymutil; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8440 $as_echo_n "(cached) " >&6
8442 if test -n "$ac_ct_DSYMUTIL"; then
8443 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8463 if test -n "$ac_ct_DSYMUTIL"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8465 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8471 if test "x$ac_ct_DSYMUTIL" = x; then
8474 case $cross_compiling:$ac_tool_warned in
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8478 ac_tool_warned=yes ;;
8480 DSYMUTIL=$ac_ct_DSYMUTIL
8483 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8486 if test -n "$ac_tool_prefix"; then
8487 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8488 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_NMEDIT+:} false; then :
8492 $as_echo_n "(cached) " >&6
8494 if test -n "$NMEDIT"; then
8495 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 NMEDIT=$ac_cv_prog_NMEDIT
8515 if test -n "$NMEDIT"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8517 $as_echo "$NMEDIT" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8525 if test -z "$ac_cv_prog_NMEDIT"; then
8526 ac_ct_NMEDIT=$NMEDIT
8527 # Extract the first word of "nmedit", so it can be a program name with args.
8528 set dummy nmedit; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8532 $as_echo_n "(cached) " >&6
8534 if test -n "$ac_ct_NMEDIT"; then
8535 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8555 if test -n "$ac_ct_NMEDIT"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8557 $as_echo "$ac_ct_NMEDIT" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8563 if test "x$ac_ct_NMEDIT" = x; then
8566 case $cross_compiling:$ac_tool_warned in
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8572 NMEDIT=$ac_ct_NMEDIT
8575 NMEDIT="$ac_cv_prog_NMEDIT"
8578 if test -n "$ac_tool_prefix"; then
8579 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8580 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_prog_LIPO+:} false; then :
8584 $as_echo_n "(cached) " >&6
8586 if test -n "$LIPO"; then
8587 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 LIPO=$ac_cv_prog_LIPO
8607 if test -n "$LIPO"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8609 $as_echo "$LIPO" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8617 if test -z "$ac_cv_prog_LIPO"; then
8619 # Extract the first word of "lipo", so it can be a program name with args.
8620 set dummy lipo; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8624 $as_echo_n "(cached) " >&6
8626 if test -n "$ac_ct_LIPO"; then
8627 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8636 ac_cv_prog_ac_ct_LIPO="lipo"
8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8647 if test -n "$ac_ct_LIPO"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8649 $as_echo "$ac_ct_LIPO" >&6; }
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8655 if test "x$ac_ct_LIPO" = x; then
8658 case $cross_compiling:$ac_tool_warned in
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8662 ac_tool_warned=yes ;;
8667 LIPO="$ac_cv_prog_LIPO"
8670 if test -n "$ac_tool_prefix"; then
8671 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8672 set dummy ${ac_tool_prefix}otool; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_prog_OTOOL+:} false; then :
8676 $as_echo_n "(cached) " >&6
8678 if test -n "$OTOOL"; then
8679 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 OTOOL=$ac_cv_prog_OTOOL
8699 if test -n "$OTOOL"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8701 $as_echo "$OTOOL" >&6; }
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8709 if test -z "$ac_cv_prog_OTOOL"; then
8711 # Extract the first word of "otool", so it can be a program name with args.
8712 set dummy otool; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8716 $as_echo_n "(cached) " >&6
8718 if test -n "$ac_ct_OTOOL"; then
8719 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 test -z "$as_dir" && as_dir=.
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8728 ac_cv_prog_ac_ct_OTOOL="otool"
8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8739 if test -n "$ac_ct_OTOOL"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8741 $as_echo "$ac_ct_OTOOL" >&6; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8747 if test "x$ac_ct_OTOOL" = x; then
8750 case $cross_compiling:$ac_tool_warned in
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8759 OTOOL="$ac_cv_prog_OTOOL"
8762 if test -n "$ac_tool_prefix"; then
8763 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8764 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if ${ac_cv_prog_OTOOL64+:} false; then :
8768 $as_echo_n "(cached) " >&6
8770 if test -n "$OTOOL64"; then
8771 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 OTOOL64=$ac_cv_prog_OTOOL64
8791 if test -n "$OTOOL64"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8793 $as_echo "$OTOOL64" >&6; }
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8801 if test -z "$ac_cv_prog_OTOOL64"; then
8802 ac_ct_OTOOL64=$OTOOL64
8803 # Extract the first word of "otool64", so it can be a program name with args.
8804 set dummy otool64; ac_word=$2
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 $as_echo_n "checking for $ac_word... " >&6; }
8807 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8808 $as_echo_n "(cached) " >&6
8810 if test -n "$ac_ct_OTOOL64"; then
8811 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820 ac_cv_prog_ac_ct_OTOOL64="otool64"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8831 if test -n "$ac_ct_OTOOL64"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8833 $as_echo "$ac_ct_OTOOL64" >&6; }
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8839 if test "x$ac_ct_OTOOL64" = x; then
8842 case $cross_compiling:$ac_tool_warned in
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8846 ac_tool_warned=yes ;;
8848 OTOOL64=$ac_ct_OTOOL64
8851 OTOOL64="$ac_cv_prog_OTOOL64"
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8881 $as_echo_n "checking for -single_module linker flag... " >&6; }
8882 if ${lt_cv_apple_cc_single_mod+:} false; then :
8883 $as_echo_n "(cached) " >&6
8885 lt_cv_apple_cc_single_mod=no
8886 if test -z "${LT_MULTI_MODULE}"; then
8887 # By default we will add the -single_module flag. You can override
8888 # by either setting the environment variable LT_MULTI_MODULE
8889 # non-empty at configure time, or by adding -multi_module to the
8891 rm -rf libconftest.dylib*
8892 echo "int foo(void){return 1;}" > conftest.c
8893 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8894 -dynamiclib -Wl,-single_module conftest.c" >&5
8895 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8896 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8898 # If there is a non-empty error log, and "single_module"
8899 # appears in it, assume the flag caused a linker warning
8900 if test -s conftest.err && $GREP single_module conftest.err; then
8901 cat conftest.err >&5
8902 # Otherwise, if the output was created with a 0 exit code from
8903 # the compiler, it worked.
8904 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8905 lt_cv_apple_cc_single_mod=yes
8907 cat conftest.err >&5
8909 rm -rf libconftest.dylib*
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8917 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8918 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8919 $as_echo_n "(cached) " >&6
8921 lt_cv_ld_exported_symbols_list=no
8922 save_LDFLAGS=$LDFLAGS
8923 echo "_main" > conftest.sym
8924 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 lt_cv_ld_exported_symbols_list=yes
8939 lt_cv_ld_exported_symbols_list=no
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LDFLAGS="$save_LDFLAGS"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8947 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8950 $as_echo_n "checking for -force_load linker flag... " >&6; }
8951 if ${lt_cv_ld_force_load+:} false; then :
8952 $as_echo_n "(cached) " >&6
8954 lt_cv_ld_force_load=no
8955 cat > conftest.c << _LT_EOF
8956 int forced_loaded() { return 2;}
8958 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8959 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8960 echo "$AR cru libconftest.a conftest.o" >&5
8961 $AR cru libconftest.a conftest.o 2>&5
8962 echo "$RANLIB libconftest.a" >&5
8963 $RANLIB libconftest.a 2>&5
8964 cat > conftest.c << _LT_EOF
8965 int main() { return 0;}
8967 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8968 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8970 if test -s conftest.err && $GREP force_load conftest.err; then
8971 cat conftest.err >&5
8972 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8973 lt_cv_ld_force_load=yes
8975 cat conftest.err >&5
8977 rm -f conftest.err libconftest.a conftest conftest.c
8978 rm -rf conftest.dSYM
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8982 $as_echo "$lt_cv_ld_force_load" >&6; }
8984 rhapsody* | darwin1.[012])
8985 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8987 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8988 darwin*) # darwin 5.x on
8989 # if running on 10.5 or later, the deployment target defaults
8990 # to the OS version, if on x86, and 10.4, the deployment
8991 # target defaults to 10.4. Don't you love it?
8992 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8993 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9002 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9003 _lt_dar_single_mod='$single_module'
9005 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9006 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9008 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9010 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9011 _lt_dsymutil='~$DSYMUTIL $lib || :'
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9019 $as_echo_n "checking for ANSI C header files... " >&6; }
9020 if ${ac_cv_header_stdc+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9038 if ac_fn_c_try_compile "$LINENO"; then :
9039 ac_cv_header_stdc=yes
9041 ac_cv_header_stdc=no
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045 if test $ac_cv_header_stdc = yes; then
9046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9053 $EGREP "memchr" >/dev/null 2>&1; then :
9056 ac_cv_header_stdc=no
9062 if test $ac_cv_header_stdc = yes; then
9063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9070 $EGREP "free" >/dev/null 2>&1; then :
9073 ac_cv_header_stdc=no
9079 if test $ac_cv_header_stdc = yes; then
9080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9081 if test "$cross_compiling" = yes; then :
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9088 #if ((' ' & 0x0FF) == 0x020)
9089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9092 # define ISLOWER(c) \
9093 (('a' <= (c) && (c) <= 'i') \
9094 || ('j' <= (c) && (c) <= 'r') \
9095 || ('s' <= (c) && (c) <= 'z'))
9096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9104 for (i = 0; i < 256; i++)
9105 if (XOR (islower (i), ISLOWER (i))
9106 || toupper (i) != TOUPPER (i))
9111 if ac_fn_c_try_run "$LINENO"; then :
9114 ac_cv_header_stdc=no
9116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9117 conftest.$ac_objext conftest.beam conftest.$ac_ext
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9123 $as_echo "$ac_cv_header_stdc" >&6; }
9124 if test $ac_cv_header_stdc = yes; then
9126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9132 inttypes.h stdint.h unistd.h
9134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9138 cat >>confdefs.h <<_ACEOF
9139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9147 for ac_header in dlfcn.h
9149 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9151 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_DLFCN_H 1
9163 func_stripname_cnf ()
9166 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9167 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9169 } # func_stripname_cnf
9176 # Check whether --enable-shared was given.
9177 if test "${enable_shared+set}" = set; then :
9178 enableval=$enable_shared; p=${PACKAGE-default}
9180 yes) enable_shared=yes ;;
9181 no) enable_shared=no ;;
9184 # Look at the argument we got. We use all the common list separators.
9185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9186 for pkg in $enableval; do
9188 if test "X$pkg" = "X$p"; then
9205 # Check whether --enable-static was given.
9206 if test "${enable_static+set}" = set; then :
9207 enableval=$enable_static; p=${PACKAGE-default}
9209 yes) enable_static=yes ;;
9210 no) enable_static=no ;;
9213 # Look at the argument we got. We use all the common list separators.
9214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9215 for pkg in $enableval; do
9217 if test "X$pkg" = "X$p"; then
9246 # Check whether --with-pic was given.
9247 if test "${with_pic+set}" = set; then :
9248 withval=$with_pic; lt_p=${PACKAGE-default}
9250 yes|no) pic_mode=$withval ;;
9253 # Look at the argument we got. We use all the common list separators.
9254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9255 for lt_pkg in $withval; do
9257 if test "X$lt_pkg" = "X$lt_p"; then
9269 test -z "$pic_mode" && pic_mode=default
9277 # Check whether --enable-fast-install was given.
9278 if test "${enable_fast_install+set}" = set; then :
9279 enableval=$enable_fast_install; p=${PACKAGE-default}
9281 yes) enable_fast_install=yes ;;
9282 no) enable_fast_install=no ;;
9284 enable_fast_install=no
9285 # Look at the argument we got. We use all the common list separators.
9286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9287 for pkg in $enableval; do
9289 if test "X$pkg" = "X$p"; then
9290 enable_fast_install=yes
9297 enable_fast_install=yes
9310 # This can be used to rebuild libtool when needed
9311 LIBTOOL_DEPS="$ltmain"
9313 # Always use our own libtool.
9314 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9345 test -z "$LN_S" && LN_S="ln -s"
9360 if test -n "${ZSH_VERSION+set}" ; then
9361 setopt NO_GLOB_SUBST
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9365 $as_echo_n "checking for objdir... " >&6; }
9366 if ${lt_cv_objdir+:} false; then :
9367 $as_echo_n "(cached) " >&6
9369 rm -f .libs 2>/dev/null
9370 mkdir .libs 2>/dev/null
9371 if test -d .libs; then
9374 # MS-DOS does not allow filenames that begin with a dot.
9377 rmdir .libs 2>/dev/null
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9380 $as_echo "$lt_cv_objdir" >&6; }
9381 objdir=$lt_cv_objdir
9387 cat >>confdefs.h <<_ACEOF
9388 #define LT_OBJDIR "$lt_cv_objdir/"
9396 # AIX sometimes has problems with the GCC collect2 program. For some
9397 # reason, if we set the COLLECT_NAMES environment variable, the problems
9398 # vanish in a puff of smoke.
9399 if test "X${COLLECT_NAMES+set}" != Xset; then
9401 export COLLECT_NAMES
9408 can_build_shared=yes
9410 # All known linkers require a `.a' archive for static linking (except MSVC,
9411 # which needs '.lib').
9414 with_gnu_ld="$lt_cv_prog_gnu_ld"
9417 old_CFLAGS="$CFLAGS"
9419 # Set sane defaults for various variables
9420 test -z "$CC" && CC=cc
9421 test -z "$LTCC" && LTCC=$CC
9422 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9423 test -z "$LD" && LD=ld
9424 test -z "$ac_objext" && ac_objext=o
9426 for cc_temp in $compiler""; do
9428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9434 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9437 # Only perform the check for file, if the check method requires it
9438 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9439 case $deplibs_check_method in
9441 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9443 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9444 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9445 $as_echo_n "(cached) " >&6
9449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9452 lt_save_MAGIC_CMD="$MAGIC_CMD"
9453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9455 for ac_dir in $ac_dummy; do
9457 test -z "$ac_dir" && ac_dir=.
9458 if test -f $ac_dir/${ac_tool_prefix}file; then
9459 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9460 if test -n "$file_magic_test_file"; then
9461 case $deplibs_check_method in
9463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9466 $EGREP "$file_magic_regex" > /dev/null; then
9471 *** Warning: the command libtool uses to detect shared libraries,
9472 *** $file_magic_cmd, produces output that libtool cannot recognize.
9473 *** The result is that libtool may fail to recognize shared libraries
9474 *** as such. This will affect the creation of libtool libraries that
9475 *** depend on shared libraries, but programs linked with such libtool
9476 *** libraries will work regardless of this problem. Nevertheless, you
9477 *** may want to report the problem to your system manager and/or to
9478 *** bug-libtool@gnu.org
9488 MAGIC_CMD="$lt_save_MAGIC_CMD"
9493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9494 if test -n "$MAGIC_CMD"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9496 $as_echo "$MAGIC_CMD" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9506 if test -z "$lt_cv_path_MAGIC_CMD"; then
9507 if test -n "$ac_tool_prefix"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9509 $as_echo_n "checking for file... " >&6; }
9510 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9511 $as_echo_n "(cached) " >&6
9515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9518 lt_save_MAGIC_CMD="$MAGIC_CMD"
9519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9520 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9521 for ac_dir in $ac_dummy; do
9523 test -z "$ac_dir" && ac_dir=.
9524 if test -f $ac_dir/file; then
9525 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9526 if test -n "$file_magic_test_file"; then
9527 case $deplibs_check_method in
9529 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9532 $EGREP "$file_magic_regex" > /dev/null; then
9537 *** Warning: the command libtool uses to detect shared libraries,
9538 *** $file_magic_cmd, produces output that libtool cannot recognize.
9539 *** The result is that libtool may fail to recognize shared libraries
9540 *** as such. This will affect the creation of libtool libraries that
9541 *** depend on shared libraries, but programs linked with such libtool
9542 *** libraries will work regardless of this problem. Nevertheless, you
9543 *** may want to report the problem to your system manager and/or to
9544 *** bug-libtool@gnu.org
9554 MAGIC_CMD="$lt_save_MAGIC_CMD"
9559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9560 if test -n "$MAGIC_CMD"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9562 $as_echo "$MAGIC_CMD" >&6; }
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9578 # Use C for the default configuration in the libtool script
9582 ac_cpp='$CPP $CPPFLAGS'
9583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9588 # Source file extension for C test sources.
9591 # Object file extension for compiled C test sources.
9595 # Code to be used in simple compile tests
9596 lt_simple_compile_test_code="int some_variable = 0;"
9598 # Code to be used in simple link tests
9599 lt_simple_link_test_code='int main(){return(0);}'
9607 # If no C compiler was specified, use CC.
9610 # If no C compiler flags were specified, use CFLAGS.
9611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9613 # Allow CC to be a program name with arguments.
9616 # Save the default compiler, since it gets overwritten when the other
9617 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9618 compiler_DEFAULT=$CC
9620 # save warnings/boilerplate of simple test code
9621 ac_outfile=conftest.$ac_objext
9622 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9623 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9624 _lt_compiler_boilerplate=`cat conftest.err`
9627 ac_outfile=conftest.$ac_objext
9628 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9629 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9630 _lt_linker_boilerplate=`cat conftest.err`
9635 ## There is no encapsulation within the following macros, do not change
9636 ## the running order or otherwise move them around unless you know exactly
9637 ## what you are doing...
9638 if test -n "$compiler"; then
9640 lt_prog_compiler_no_builtin_flag=
9642 if test "$GCC" = yes; then
9643 case $cc_basename in
9645 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9647 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9652 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9653 $as_echo_n "(cached) " >&6
9655 lt_cv_prog_compiler_rtti_exceptions=no
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9658 lt_compiler_flag="-fno-rtti -fno-exceptions"
9659 # Insert the option either (1) after the last *FLAGS variable, or
9660 # (2) before a word containing "conftest.", or (3) at the end.
9661 # Note that $ac_compile itself does not contain backslashes and begins
9662 # with a dollar sign (not a hyphen), so the echo should work correctly.
9663 # The option is referenced via a variable to avoid confusing sed.
9664 lt_compile=`echo "$ac_compile" | $SED \
9665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9667 -e 's:$: $lt_compiler_flag:'`
9668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9669 (eval "$lt_compile" 2>conftest.err)
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 if (exit $ac_status) && test -s "$ac_outfile"; then
9674 # The compiler can only warn and ignore the option if not recognized
9675 # So say no if there are warnings other than the usual output.
9676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9679 lt_cv_prog_compiler_rtti_exceptions=yes
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9701 lt_prog_compiler_wl=
9702 lt_prog_compiler_pic=
9703 lt_prog_compiler_static=
9706 if test "$GCC" = yes; then
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_static='-static'
9712 # All AIX code is PIC.
9713 if test "$host_cpu" = ia64; then
9714 # AIX 5 now supports IA64 processor
9715 lt_prog_compiler_static='-Bstatic'
9722 # see comment about AmigaOS4 .so support
9723 lt_prog_compiler_pic='-fPIC'
9726 # FIXME: we need at least 68020 code to build shared libraries, but
9727 # adding the `-m68020' flag to GCC prevents building anything better,
9729 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9735 # PIC is the default for these OSes.
9738 mingw* | cygwin* | pw32* | os2* | cegcc*)
9739 # This hack is so that the source file can tell whether it is being
9740 # built for inclusion in a dll (and should export symbols for example).
9741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9742 # (--disable-auto-import) libraries
9743 lt_prog_compiler_pic='-DDLL_EXPORT'
9746 darwin* | rhapsody*)
9747 # PIC is the default on this platform
9748 # Common symbols not allowed in MH_DYLIB files
9749 lt_prog_compiler_pic='-fno-common'
9753 # PIC is the default for Haiku.
9754 # The "-static" flag exists, but is broken.
9755 lt_prog_compiler_static=
9759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9761 # sets the default TLS model and affects inlining.
9767 lt_prog_compiler_pic='-fPIC'
9773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9774 # Instead, we relocate shared libraries at runtime.
9778 # Just because we use GCC doesn't mean we suddenly get shared libraries
9779 # on systems that don't support them.
9780 lt_prog_compiler_can_build_shared=no
9785 # QNX uses GNU C++, but need to define -shared option too, otherwise
9787 lt_prog_compiler_pic='-fPIC -shared'
9791 if test -d /usr/nec; then
9792 lt_prog_compiler_pic=-Kconform_pic
9797 lt_prog_compiler_pic='-fPIC'
9801 case $cc_basename in
9802 nvcc*) # Cuda Compiler Driver 2.2
9803 lt_prog_compiler_wl='-Xlinker '
9804 if test -n "$lt_prog_compiler_pic"; then
9805 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9810 # PORTME Check for flag to pass linker flags through the system compiler.
9813 lt_prog_compiler_wl='-Wl,'
9814 if test "$host_cpu" = ia64; then
9815 # AIX 5 now supports IA64 processor
9816 lt_prog_compiler_static='-Bstatic'
9818 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9822 mingw* | cygwin* | pw32* | os2* | cegcc*)
9823 # This hack is so that the source file can tell whether it is being
9824 # built for inclusion in a dll (and should export symbols for example).
9825 lt_prog_compiler_pic='-DDLL_EXPORT'
9828 hpux9* | hpux10* | hpux11*)
9829 lt_prog_compiler_wl='-Wl,'
9830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9837 lt_prog_compiler_pic='+Z'
9840 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9841 lt_prog_compiler_static='${wl}-a ${wl}archive'
9844 irix5* | irix6* | nonstopux*)
9845 lt_prog_compiler_wl='-Wl,'
9846 # PIC (with -KPIC) is the default.
9847 lt_prog_compiler_static='-non_shared'
9850 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9851 case $cc_basename in
9852 # old Intel for x86_64 which still supported -KPIC.
9854 lt_prog_compiler_wl='-Wl,'
9855 lt_prog_compiler_pic='-KPIC'
9856 lt_prog_compiler_static='-static'
9858 # icc used to be incompatible with GCC.
9859 # ICC 10 doesn't accept -KPIC any more.
9861 lt_prog_compiler_wl='-Wl,'
9862 lt_prog_compiler_pic='-fPIC'
9863 lt_prog_compiler_static='-static'
9865 # Lahey Fortran 8.1.
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_pic='--shared'
9869 lt_prog_compiler_static='--static'
9872 # NAG Fortran compiler
9873 lt_prog_compiler_wl='-Wl,-Wl,,'
9874 lt_prog_compiler_pic='-PIC'
9875 lt_prog_compiler_static='-Bstatic'
9877 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9878 # Portland Group compilers (*not* the Pentium gcc compiler,
9879 # which looks to be a dead project)
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-fpic'
9882 lt_prog_compiler_static='-Bstatic'
9885 lt_prog_compiler_wl='-Wl,'
9886 # All Alpha code is PIC.
9887 lt_prog_compiler_static='-non_shared'
9889 xl* | bgxl* | bgf* | mpixl*)
9890 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9891 lt_prog_compiler_wl='-Wl,'
9892 lt_prog_compiler_pic='-qpic'
9893 lt_prog_compiler_static='-qstaticlink'
9896 case `$CC -V 2>&1 | sed 5q` in
9897 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9898 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9899 lt_prog_compiler_pic='-KPIC'
9900 lt_prog_compiler_static='-Bstatic'
9901 lt_prog_compiler_wl=''
9903 *Sun\ F* | *Sun*Fortran*)
9904 lt_prog_compiler_pic='-KPIC'
9905 lt_prog_compiler_static='-Bstatic'
9906 lt_prog_compiler_wl='-Qoption ld '
9910 lt_prog_compiler_pic='-KPIC'
9911 lt_prog_compiler_static='-Bstatic'
9912 lt_prog_compiler_wl='-Wl,'
9914 *Intel*\ [CF]*Compiler*)
9915 lt_prog_compiler_wl='-Wl,'
9916 lt_prog_compiler_pic='-fPIC'
9917 lt_prog_compiler_static='-static'
9920 lt_prog_compiler_wl='-Wl,'
9921 lt_prog_compiler_pic='-fpic'
9922 lt_prog_compiler_static='-Bstatic'
9930 lt_prog_compiler_pic='-KPIC'
9931 lt_prog_compiler_static='-Bstatic'
9935 # QNX uses GNU C++, but need to define -shared option too, otherwise
9937 lt_prog_compiler_pic='-fPIC -shared'
9940 osf3* | osf4* | osf5*)
9941 lt_prog_compiler_wl='-Wl,'
9942 # All OSF/1 code is PIC.
9943 lt_prog_compiler_static='-non_shared'
9947 lt_prog_compiler_static='-non_shared'
9951 lt_prog_compiler_pic='-KPIC'
9952 lt_prog_compiler_static='-Bstatic'
9953 case $cc_basename in
9954 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9955 lt_prog_compiler_wl='-Qoption ld ';;
9957 lt_prog_compiler_wl='-Wl,';;
9962 lt_prog_compiler_wl='-Qoption ld '
9963 lt_prog_compiler_pic='-PIC'
9964 lt_prog_compiler_static='-Bstatic'
9967 sysv4 | sysv4.2uw2* | sysv4.3*)
9968 lt_prog_compiler_wl='-Wl,'
9969 lt_prog_compiler_pic='-KPIC'
9970 lt_prog_compiler_static='-Bstatic'
9974 if test -d /usr/nec ;then
9975 lt_prog_compiler_pic='-Kconform_pic'
9976 lt_prog_compiler_static='-Bstatic'
9980 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9981 lt_prog_compiler_wl='-Wl,'
9982 lt_prog_compiler_pic='-KPIC'
9983 lt_prog_compiler_static='-Bstatic'
9987 lt_prog_compiler_wl='-Wl,'
9988 lt_prog_compiler_can_build_shared=no
9992 lt_prog_compiler_pic='-pic'
9993 lt_prog_compiler_static='-Bstatic'
9997 lt_prog_compiler_can_build_shared=no
10003 # For platforms which do not support PIC, -DPIC is meaningless:
10005 lt_prog_compiler_pic=
10008 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10014 if ${lt_cv_prog_compiler_pic+:} false; then :
10015 $as_echo_n "(cached) " >&6
10017 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10020 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10021 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10024 # Check to make sure the PIC flag actually works.
10026 if test -n "$lt_prog_compiler_pic"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10028 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10029 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10030 $as_echo_n "(cached) " >&6
10032 lt_cv_prog_compiler_pic_works=no
10033 ac_outfile=conftest.$ac_objext
10034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10035 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10036 # Insert the option either (1) after the last *FLAGS variable, or
10037 # (2) before a word containing "conftest.", or (3) at the end.
10038 # Note that $ac_compile itself does not contain backslashes and begins
10039 # with a dollar sign (not a hyphen), so the echo should work correctly.
10040 # The option is referenced via a variable to avoid confusing sed.
10041 lt_compile=`echo "$ac_compile" | $SED \
10042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10044 -e 's:$: $lt_compiler_flag:'`
10045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10046 (eval "$lt_compile" 2>conftest.err)
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 if (exit $ac_status) && test -s "$ac_outfile"; then
10051 # The compiler can only warn and ignore the option if not recognized
10052 # So say no if there are warnings other than the usual output.
10053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10056 lt_cv_prog_compiler_pic_works=yes
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10063 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10065 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10066 case $lt_prog_compiler_pic in
10068 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10071 lt_prog_compiler_pic=
10072 lt_prog_compiler_can_build_shared=no
10088 # Check to make sure the static flag actually works.
10090 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10092 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10093 if ${lt_cv_prog_compiler_static_works+:} false; then :
10094 $as_echo_n "(cached) " >&6
10096 lt_cv_prog_compiler_static_works=no
10097 save_LDFLAGS="$LDFLAGS"
10098 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10101 # The linker can only warn and ignore the option if not recognized
10102 # So say no if there are warnings
10103 if test -s conftest.err; then
10104 # Append any errors to the config.log.
10105 cat conftest.err 1>&5
10106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10108 if diff conftest.exp conftest.er2 >/dev/null; then
10109 lt_cv_prog_compiler_static_works=yes
10112 lt_cv_prog_compiler_static_works=yes
10116 LDFLAGS="$save_LDFLAGS"
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10120 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10122 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10125 lt_prog_compiler_static=
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10136 if ${lt_cv_prog_compiler_c_o+:} false; then :
10137 $as_echo_n "(cached) " >&6
10139 lt_cv_prog_compiler_c_o=no
10140 $RM -r conftest 2>/dev/null
10144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10146 lt_compiler_flag="-o out/conftest2.$ac_objext"
10147 # Insert the option either (1) after the last *FLAGS variable, or
10148 # (2) before a word containing "conftest.", or (3) at the end.
10149 # Note that $ac_compile itself does not contain backslashes and begins
10150 # with a dollar sign (not a hyphen), so the echo should work correctly.
10151 lt_compile=`echo "$ac_compile" | $SED \
10152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10154 -e 's:$: $lt_compiler_flag:'`
10155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10156 (eval "$lt_compile" 2>out/conftest.err)
10158 cat out/conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10162 # The compiler can only warn and ignore the option if not recognized
10163 # So say no if there are warnings
10164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10165 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10166 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10167 lt_cv_prog_compiler_c_o=yes
10172 # SGI C++ compiler will create directory out/ii_files/ for
10173 # template instantiation
10174 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10175 $RM out/* && rmdir out
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10190 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10191 if ${lt_cv_prog_compiler_c_o+:} false; then :
10192 $as_echo_n "(cached) " >&6
10194 lt_cv_prog_compiler_c_o=no
10195 $RM -r conftest 2>/dev/null
10199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10201 lt_compiler_flag="-o out/conftest2.$ac_objext"
10202 # Insert the option either (1) after the last *FLAGS variable, or
10203 # (2) before a word containing "conftest.", or (3) at the end.
10204 # Note that $ac_compile itself does not contain backslashes and begins
10205 # with a dollar sign (not a hyphen), so the echo should work correctly.
10206 lt_compile=`echo "$ac_compile" | $SED \
10207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10209 -e 's:$: $lt_compiler_flag:'`
10210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10211 (eval "$lt_compile" 2>out/conftest.err)
10213 cat out/conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10217 # The compiler can only warn and ignore the option if not recognized
10218 # So say no if there are warnings
10219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10222 lt_cv_prog_compiler_c_o=yes
10227 # SGI C++ compiler will create directory out/ii_files/ for
10228 # template instantiation
10229 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10230 $RM out/* && rmdir out
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10237 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10242 hard_links="nottested"
10243 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10244 # do not overwrite the value of need_locks provided by the user
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10246 $as_echo_n "checking if we can lock with hard links... " >&6; }
10249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251 ln conftest.a conftest.b 2>&5 || hard_links=no
10252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10254 $as_echo "$hard_links" >&6; }
10255 if test "$hard_links" = no; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10257 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10270 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10273 allow_undefined_flag=
10274 always_export_symbols=no
10276 archive_expsym_cmds=
10277 compiler_needs_object=no
10278 enable_shared_with_static_runtimes=no
10279 export_dynamic_flag_spec=
10280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10281 hardcode_automatic=no
10283 hardcode_direct_absolute=no
10284 hardcode_libdir_flag_spec=
10285 hardcode_libdir_separator=
10286 hardcode_minus_L=no
10287 hardcode_shlibpath_var=unsupported
10289 link_all_deplibs=unknown
10291 module_expsym_cmds=
10292 old_archive_from_new_cmds=
10293 old_archive_from_expsyms_cmds=
10294 thread_safe_flag_spec=
10295 whole_archive_flag_spec=
10296 # include_expsyms should be a list of space-separated symbols to be *always*
10297 # included in the symbol list
10299 # exclude_expsyms can be an extended regexp of symbols to exclude
10300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10302 # as well as any symbol that contains `d'.
10303 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10305 # platforms (ab)use it in PIC code, but their linkers get confused if
10306 # the symbol is explicitly referenced. Since portable code cannot
10307 # rely on this symbol name, it's probably fine to never include it in
10308 # preloaded symbol tables.
10309 # Exclude shared library initialization/finalization symbols.
10310 extract_expsyms_cmds=
10313 cygwin* | mingw* | pw32* | cegcc*)
10314 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10315 # When not using gcc, we currently assume that we are using
10316 # Microsoft Visual C++.
10317 if test "$GCC" != yes; then
10322 # we just hope/assume this is gcc and not c89 (= MSVC++)
10328 linux* | k*bsd*-gnu | gnu*)
10329 link_all_deplibs=no
10335 # On some targets, GNU ld is compatible enough with the native linker
10336 # that we're better off using the native interface for both.
10337 lt_use_gnu_ld_interface=no
10338 if test "$with_gnu_ld" = yes; then
10341 # The AIX port of GNU ld has always aspired to compatibility
10342 # with the native linker. However, as the warning in the GNU ld
10343 # block says, versions before 2.19.5* couldn't really create working
10344 # shared libraries, regardless of the interface used.
10345 case `$LD -v 2>&1` in
10346 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10347 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10348 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10350 lt_use_gnu_ld_interface=yes
10355 lt_use_gnu_ld_interface=yes
10360 if test "$lt_use_gnu_ld_interface" = yes; then
10361 # If archive_cmds runs LD, not CC, wlarc should be empty
10364 # Set some defaults for GNU ld with shared library support. These
10365 # are reset later if shared libraries are not supported. Putting them
10366 # here allows them to be overridden if necessary.
10367 runpath_var=LD_RUN_PATH
10368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10369 export_dynamic_flag_spec='${wl}--export-dynamic'
10370 # ancient GNU ld didn't support --whole-archive et. al.
10371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10372 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10374 whole_archive_flag_spec=
10376 supports_anon_versioning=no
10377 case `$LD -v 2>&1` in
10378 *GNU\ gold*) supports_anon_versioning=yes ;;
10379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10382 *\ 2.11.*) ;; # other 2.11 versions
10383 *) supports_anon_versioning=yes ;;
10386 # See if GNU ld supports shared libraries.
10389 # On AIX/PPC, the GNU linker is very broken
10390 if test "$host_cpu" != ia64; then
10394 *** Warning: the GNU linker, at least up to release 2.19, is reported
10395 *** to be unable to reliably create shared libraries on AIX.
10396 *** Therefore, libtool is disabling shared libraries support. If you
10397 *** really care for shared libraries, you may want to install binutils
10398 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10399 *** You will then need to restart the configuration process.
10408 # see comment about AmigaOS4 .so support
10409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10410 archive_expsym_cmds=''
10413 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)'
10414 hardcode_libdir_flag_spec='-L$libdir'
10415 hardcode_minus_L=yes
10421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422 allow_undefined_flag=unsupported
10423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10424 # support --undefined. This deserves some investigation. FIXME
10425 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10431 cygwin* | mingw* | pw32* | cegcc*)
10432 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10433 # as there is no search path for DLLs.
10434 hardcode_libdir_flag_spec='-L$libdir'
10435 export_dynamic_flag_spec='${wl}--export-all-symbols'
10436 allow_undefined_flag=unsupported
10437 always_export_symbols=no
10438 enable_shared_with_static_runtimes=yes
10439 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'
10440 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10444 # If the export-symbols file already is a .def file (1st line
10445 # is EXPORTS), use it as is; otherwise, prepend...
10446 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10447 cp $export_symbols $output_objdir/$soname.def;
10449 echo EXPORTS > $output_objdir/$soname.def;
10450 cat $export_symbols >> $output_objdir/$soname.def;
10452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10460 link_all_deplibs=yes
10465 hardcode_shlibpath_var=no
10466 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10467 export_dynamic_flag_spec='${wl}-E'
10468 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10469 # Instead, shared libraries are loaded at an image base (0x10000000 by
10470 # default) and relocated if they conflict, which is a slow very memory
10471 # consuming and fragmenting process. To avoid this, we pick a random,
10472 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10473 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10475 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'
10478 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10480 if test "$host_os" = linux-dietlibc; then
10481 case $cc_basename in
10482 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10485 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10486 && test "$tmp_diet" = no
10488 tmp_addflag=' $pic_flag'
10489 tmp_sharedflag='-shared'
10490 case $cc_basename,$host_cpu in
10491 pgcc*) # Portland Group C compiler
10492 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'
10493 tmp_addflag=' $pic_flag'
10495 pgf77* | pgf90* | pgf95* | pgfortran*)
10496 # Portland Group f77 and f90 compilers
10497 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'
10498 tmp_addflag=' $pic_flag -Mnomain' ;;
10499 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10500 tmp_addflag=' -i_dynamic' ;;
10501 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10502 tmp_addflag=' -i_dynamic -nofor_main' ;;
10503 ifc* | ifort*) # Intel Fortran compiler
10504 tmp_addflag=' -nofor_main' ;;
10505 lf95*) # Lahey Fortran 8.1
10506 whole_archive_flag_spec=
10507 tmp_sharedflag='--shared' ;;
10508 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10509 tmp_sharedflag='-qmkshrobj'
10511 nvcc*) # Cuda Compiler Driver 2.2
10512 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'
10513 compiler_needs_object=yes
10516 case `$CC -V 2>&1 | sed 5q` in
10517 *Sun\ C*) # Sun C 5.9
10518 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'
10519 compiler_needs_object=yes
10520 tmp_sharedflag='-G' ;;
10521 *Sun\ F*) # Sun Fortran 8.3
10522 tmp_sharedflag='-G' ;;
10524 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10526 if test "x$supports_anon_versioning" = xyes; then
10527 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10529 echo "local: *; };" >> $output_objdir/$libname.ver~
10530 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10533 case $cc_basename in
10534 xlf* | bgf* | bgxlf* | mpixlf*)
10535 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10536 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10539 if test "x$supports_anon_versioning" = xyes; then
10540 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10542 echo "local: *; };" >> $output_objdir/$libname.ver~
10543 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10552 netbsd* | netbsdelf*-gnu)
10553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10554 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10558 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10563 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10568 *** create shared libraries on Solaris systems. Therefore, libtool
10569 *** is disabling shared libraries support. We urge you to upgrade GNU
10570 *** binutils to release 2.9.1 or newer. Another option is to modify
10571 *** your PATH or compiler configuration so that the native linker is
10572 *** used, and then restart.
10575 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10584 case `$LD -v 2>&1` in
10585 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10590 *** reliably create shared libraries on SCO systems. Therefore, libtool
10591 *** is disabling shared libraries support. We urge you to upgrade GNU
10592 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10593 *** your PATH or compiler configuration so that the native linker is
10594 *** used, and then restart.
10599 # For security reasons, it is highly recommended that you always
10600 # use absolute paths for naming shared libraries, and exclude the
10601 # DT_RUNPATH tag from executables and libraries. But doing so
10602 # requires that you compile everything twice, which is a pain.
10603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10615 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10617 hardcode_direct=yes
10618 hardcode_shlibpath_var=no
10622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10624 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10631 if test "$ld_shlibs" = no; then
10633 hardcode_libdir_flag_spec=
10634 export_dynamic_flag_spec=
10635 whole_archive_flag_spec=
10638 # PORTME fill in a description of your system's linker (not GNU ld)
10641 allow_undefined_flag=unsupported
10642 always_export_symbols=yes
10643 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'
10644 # Note: this linker hardcodes the directories in LIBPATH if there
10645 # are no directories specified by -L.
10646 hardcode_minus_L=yes
10647 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10648 # Neither direct hardcoding nor static linking is supported with a
10650 hardcode_direct=unsupported
10655 if test "$host_cpu" = ia64; then
10656 # On IA64, the linker does run time linking by default, so we don't
10657 # have to do anything special.
10658 aix_use_runtimelinking=no
10659 exp_sym_flag='-Bexport'
10662 # If we're using GNU nm, then we don't want the "-C" option.
10663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10664 # Also, AIX nm treats weak defined symbols like other global
10665 # defined symbols, whereas GNU nm marks them as "W".
10666 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10667 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'
10669 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'
10671 aix_use_runtimelinking=no
10673 # Test if we are trying to use run time linking or normal
10674 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10675 # need to do runtime linking.
10676 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10677 for ld_flag in $LDFLAGS; do
10678 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10679 aix_use_runtimelinking=yes
10686 exp_sym_flag='-bexport'
10687 no_entry_flag='-bnoentry'
10690 # When large executables or shared objects are built, AIX ld can
10691 # have problems creating the table of contents. If linking a library
10692 # or program results in "error TOC overflow" add -mminimal-toc to
10693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10697 hardcode_direct=yes
10698 hardcode_direct_absolute=yes
10699 hardcode_libdir_separator=':'
10700 link_all_deplibs=yes
10701 file_list_spec='${wl}-f,'
10703 if test "$GCC" = yes; then
10704 case $host_os in aix4.[012]|aix4.[012].*)
10705 # We only want to do this on AIX 4.2 and lower, the check
10706 # below for broken collect2 doesn't work under 4.3+
10707 collect2name=`${CC} -print-prog-name=collect2`
10708 if test -f "$collect2name" &&
10709 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10711 # We have reworked collect2
10714 # We have old collect2
10715 hardcode_direct=unsupported
10716 # It fails to find uninstalled libraries when the uninstalled
10717 # path is not listed in the libpath. Setting hardcode_minus_L
10718 # to unsupported forces relinking
10719 hardcode_minus_L=yes
10720 hardcode_libdir_flag_spec='-L$libdir'
10721 hardcode_libdir_separator=
10725 shared_flag='-shared'
10726 if test "$aix_use_runtimelinking" = yes; then
10727 shared_flag="$shared_flag "'${wl}-G'
10729 link_all_deplibs=no
10732 if test "$host_cpu" = ia64; then
10733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10734 # chokes on -Wl,-G. The following line is correct:
10737 if test "$aix_use_runtimelinking" = yes; then
10738 shared_flag='${wl}-G'
10740 shared_flag='${wl}-bM:SRE'
10745 export_dynamic_flag_spec='${wl}-bexpall'
10746 # It seems that -bexpall does not export symbols beginning with
10747 # underscore (_), so it is better to generate a list of symbols to export.
10748 always_export_symbols=yes
10749 if test "$aix_use_runtimelinking" = yes; then
10750 # Warning - without using the other runtime loading flags (-brtl),
10751 # -berok will link without error, but may produce a broken library.
10752 allow_undefined_flag='-berok'
10753 # Determine the default libpath from the value encoded in an
10754 # empty executable.
10755 if test "${lt_cv_aix_libpath+set}" = set; then
10756 aix_libpath=$lt_cv_aix_libpath
10758 if ${lt_cv_aix_libpath_+:} false; then :
10759 $as_echo_n "(cached) " >&6
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10772 if ac_fn_c_try_link "$LINENO"; then :
10774 lt_aix_libpath_sed='
10775 /Import File Strings/,/^$/ {
10777 s/^0 *\([^ ]*\) *$/\1/
10781 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10782 # Check for a 64-bit object if we didn't find anything.
10783 if test -z "$lt_cv_aix_libpath_"; then
10784 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787 rm -f core conftest.err conftest.$ac_objext \
10788 conftest$ac_exeext conftest.$ac_ext
10789 if test -z "$lt_cv_aix_libpath_"; then
10790 lt_cv_aix_libpath_="/usr/lib:/lib"
10795 aix_libpath=$lt_cv_aix_libpath_
10798 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10799 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"
10801 if test "$host_cpu" = ia64; then
10802 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10803 allow_undefined_flag="-z nodefs"
10804 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"
10806 # Determine the default libpath from the value encoded in an
10807 # empty executable.
10808 if test "${lt_cv_aix_libpath+set}" = set; then
10809 aix_libpath=$lt_cv_aix_libpath
10811 if ${lt_cv_aix_libpath_+:} false; then :
10812 $as_echo_n "(cached) " >&6
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10825 if ac_fn_c_try_link "$LINENO"; then :
10827 lt_aix_libpath_sed='
10828 /Import File Strings/,/^$/ {
10830 s/^0 *\([^ ]*\) *$/\1/
10834 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10835 # Check for a 64-bit object if we didn't find anything.
10836 if test -z "$lt_cv_aix_libpath_"; then
10837 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 if test -z "$lt_cv_aix_libpath_"; then
10843 lt_cv_aix_libpath_="/usr/lib:/lib"
10848 aix_libpath=$lt_cv_aix_libpath_
10851 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10852 # Warning - without using the other run time loading flags,
10853 # -berok will link without error, but may produce a broken library.
10854 no_undefined_flag=' ${wl}-bernotok'
10855 allow_undefined_flag=' ${wl}-berok'
10856 if test "$with_gnu_ld" = yes; then
10857 # We only use this code for GNU lds that support --whole-archive.
10858 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10860 # Exported symbols can be pulled into shared objects from archives
10861 whole_archive_flag_spec='$convenience'
10863 archive_cmds_need_lc=yes
10864 # This is similar to how AIX traditionally builds its shared libraries.
10865 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'
10873 # see comment about AmigaOS4 .so support
10874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10875 archive_expsym_cmds=''
10878 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)'
10879 hardcode_libdir_flag_spec='-L$libdir'
10880 hardcode_minus_L=yes
10886 export_dynamic_flag_spec=-rdynamic
10889 cygwin* | mingw* | pw32* | cegcc*)
10890 # When not using gcc, we currently assume that we are using
10891 # Microsoft Visual C++.
10892 # hardcode_libdir_flag_spec is actually meaningless, as there is
10893 # no search path for DLLs.
10894 case $cc_basename in
10897 hardcode_libdir_flag_spec=' '
10898 allow_undefined_flag=unsupported
10899 always_export_symbols=yes
10901 # Tell ltmain to make .lib files, not .a files.
10903 # Tell ltmain to make .dll files, not .so files.
10905 # FIXME: Setting linknames here is a bad hack.
10906 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10907 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10908 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10910 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10912 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10914 # The linker will not automatically build a static lib if we build a DLL.
10915 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10916 enable_shared_with_static_runtimes=yes
10917 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10920 old_postinstall_cmds='chmod 644 $oldlib'
10921 postlink_cmds='lt_outputfile="@OUTPUT@"~
10922 lt_tool_outputfile="@TOOL_OUTPUT@"~
10923 case $lt_outputfile in
10926 lt_outputfile="$lt_outputfile.exe"
10927 lt_tool_outputfile="$lt_tool_outputfile.exe"
10930 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10931 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10932 $RM "$lt_outputfile.manifest";
10936 # Assume MSVC wrapper
10937 hardcode_libdir_flag_spec=' '
10938 allow_undefined_flag=unsupported
10939 # Tell ltmain to make .lib files, not .a files.
10941 # Tell ltmain to make .dll files, not .so files.
10943 # FIXME: Setting linknames here is a bad hack.
10944 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10945 # The linker will automatically build a .lib file if we build a DLL.
10946 old_archive_from_new_cmds='true'
10947 # FIXME: Should let the user specify the lib program.
10948 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10949 enable_shared_with_static_runtimes=yes
10954 darwin* | rhapsody*)
10957 archive_cmds_need_lc=no
10959 hardcode_automatic=yes
10960 hardcode_shlibpath_var=unsupported
10961 if test "$lt_cv_ld_force_load" = "yes"; then
10962 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10965 whole_archive_flag_spec=''
10967 link_all_deplibs=yes
10968 allow_undefined_flag="$_lt_dar_allow_undefined"
10969 case $cc_basename in
10970 ifort*) _lt_dar_can_shared=yes ;;
10971 *) _lt_dar_can_shared=$GCC ;;
10973 if test "$_lt_dar_can_shared" = "yes"; then
10974 output_verbose_link_cmd=func_echo_all
10975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10977 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10978 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_libdir_flag_spec='-L$libdir'
10989 hardcode_shlibpath_var=no
10992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10993 # support. Future versions do this automatically, but an explicit c++rt0.o
10994 # does not break anything, and helps significantly (at the cost of a little
10997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10998 hardcode_libdir_flag_spec='-R$libdir'
10999 hardcode_direct=yes
11000 hardcode_shlibpath_var=no
11003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11006 hardcode_direct=yes
11007 hardcode_minus_L=yes
11008 hardcode_shlibpath_var=no
11011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11012 freebsd* | dragonfly*)
11013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11014 hardcode_libdir_flag_spec='-R$libdir'
11015 hardcode_direct=yes
11016 hardcode_shlibpath_var=no
11020 if test "$GCC" = yes; then
11021 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'
11023 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'
11025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11026 hardcode_libdir_separator=:
11027 hardcode_direct=yes
11029 # hardcode_minus_L: Not really in the search PATH,
11030 # but as the default location of the library.
11031 hardcode_minus_L=yes
11032 export_dynamic_flag_spec='${wl}-E'
11036 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11037 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11041 if test "$with_gnu_ld" = no; then
11042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11043 hardcode_libdir_separator=:
11044 hardcode_direct=yes
11045 hardcode_direct_absolute=yes
11046 export_dynamic_flag_spec='${wl}-E'
11047 # hardcode_minus_L: Not really in the search PATH,
11048 # but as the default location of the library.
11049 hardcode_minus_L=yes
11054 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11057 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11063 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11069 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11072 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11076 # Older versions of the 11.00 compiler do not understand -b yet
11077 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11079 $as_echo_n "checking if $CC understands -b... " >&6; }
11080 if ${lt_cv_prog_compiler__b+:} false; then :
11081 $as_echo_n "(cached) " >&6
11083 lt_cv_prog_compiler__b=no
11084 save_LDFLAGS="$LDFLAGS"
11085 LDFLAGS="$LDFLAGS -b"
11086 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11087 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11088 # The linker can only warn and ignore the option if not recognized
11089 # So say no if there are warnings
11090 if test -s conftest.err; then
11091 # Append any errors to the config.log.
11092 cat conftest.err 1>&5
11093 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11095 if diff conftest.exp conftest.er2 >/dev/null; then
11096 lt_cv_prog_compiler__b=yes
11099 lt_cv_prog_compiler__b=yes
11103 LDFLAGS="$save_LDFLAGS"
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11107 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11109 if test x"$lt_cv_prog_compiler__b" = xyes; then
11110 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11112 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11118 if test "$with_gnu_ld" = no; then
11119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11120 hardcode_libdir_separator=:
11125 hardcode_shlibpath_var=no
11128 hardcode_direct=yes
11129 hardcode_direct_absolute=yes
11130 export_dynamic_flag_spec='${wl}-E'
11132 # hardcode_minus_L: Not really in the search PATH,
11133 # but as the default location of the library.
11134 hardcode_minus_L=yes
11140 irix5* | irix6* | nonstopux*)
11141 if test "$GCC" = yes; then
11142 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'
11143 # Try to use the -exported_symbol ld option, if it does not
11144 # work, assume that -exports_file does not work either and
11145 # implicitly export all symbols.
11146 # This should be the same for all languages, so no per-tag cache variable.
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11148 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11149 if ${lt_cv_irix_exported_symbol+:} false; then :
11150 $as_echo_n "(cached) " >&6
11152 save_LDFLAGS="$LDFLAGS"
11153 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11156 int foo (void) { return 0; }
11158 if ac_fn_c_try_link "$LINENO"; then :
11159 lt_cv_irix_exported_symbol=yes
11161 lt_cv_irix_exported_symbol=no
11163 rm -f core conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
11165 LDFLAGS="$save_LDFLAGS"
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11168 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11169 if test "$lt_cv_irix_exported_symbol" = yes; then
11170 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'
11173 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'
11174 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'
11176 archive_cmds_need_lc='no'
11177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11178 hardcode_libdir_separator=:
11180 link_all_deplibs=yes
11183 netbsd* | netbsdelf*-gnu)
11184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11187 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11189 hardcode_libdir_flag_spec='-R$libdir'
11190 hardcode_direct=yes
11191 hardcode_shlibpath_var=no
11195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11196 hardcode_direct=yes
11197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11198 hardcode_libdir_separator=:
11199 hardcode_shlibpath_var=no
11206 if test -f /usr/libexec/ld.so; then
11207 hardcode_direct=yes
11208 hardcode_shlibpath_var=no
11209 hardcode_direct_absolute=yes
11210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11212 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11214 export_dynamic_flag_spec='${wl}-E'
11217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11219 hardcode_libdir_flag_spec='-R$libdir'
11222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11233 hardcode_libdir_flag_spec='-L$libdir'
11234 hardcode_minus_L=yes
11235 allow_undefined_flag=unsupported
11236 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'
11237 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11241 if test "$GCC" = yes; then
11242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11243 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'
11245 allow_undefined_flag=' -expect_unresolved \*'
11246 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'
11248 archive_cmds_need_lc='no'
11249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11250 hardcode_libdir_separator=:
11253 osf4* | osf5*) # as osf3* with the addition of -msym flag
11254 if test "$GCC" = yes; then
11255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11256 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'
11257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11259 allow_undefined_flag=' -expect_unresolved \*'
11260 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'
11261 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~
11262 $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'
11264 # Both c and cxx compiler support -rpath directly
11265 hardcode_libdir_flag_spec='-rpath $libdir'
11267 archive_cmds_need_lc='no'
11268 hardcode_libdir_separator=:
11272 no_undefined_flag=' -z defs'
11273 if test "$GCC" = yes; then
11275 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11277 $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'
11279 case `$CC -V 2>&1` in
11282 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11284 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11288 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11290 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11294 hardcode_libdir_flag_spec='-R$libdir'
11295 hardcode_shlibpath_var=no
11297 solaris2.[0-5] | solaris2.[0-5].*) ;;
11299 # The compiler driver will combine and reorder linker options,
11300 # but understands `-z linker_flag'. GCC discards it without `$wl',
11301 # but is careful enough not to reorder.
11302 # Supported since Solaris 2.6 (maybe 2.5.1?)
11303 if test "$GCC" = yes; then
11304 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11306 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11310 link_all_deplibs=yes
11314 if test "x$host_vendor" = xsequent; then
11315 # Use $CC to link under sequent, because it throws in some extra .o
11316 # files that make .init and .fini sections work.
11317 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11319 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11321 hardcode_libdir_flag_spec='-L$libdir'
11322 hardcode_direct=yes
11323 hardcode_minus_L=yes
11324 hardcode_shlibpath_var=no
11328 case $host_vendor in
11330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11331 hardcode_direct=yes # is this really true???
11334 ## LD is ld it makes a PLAMLIB
11335 ## CC just makes a GrossModule.
11336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11337 reload_cmds='$CC -r -o $output$reload_objs'
11341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11345 runpath_var='LD_RUN_PATH'
11346 hardcode_shlibpath_var=no
11350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11351 hardcode_shlibpath_var=no
11352 export_dynamic_flag_spec='-Bexport'
11356 if test -d /usr/nec; then
11357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11358 hardcode_shlibpath_var=no
11359 runpath_var=LD_RUN_PATH
11360 hardcode_runpath_var=yes
11365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11366 no_undefined_flag='${wl}-z,text'
11367 archive_cmds_need_lc=no
11368 hardcode_shlibpath_var=no
11369 runpath_var='LD_RUN_PATH'
11371 if test "$GCC" = yes; then
11372 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11373 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 sysv5* | sco3.2v5* | sco5v6*)
11381 # Note: We can NOT use -z defs as we might desire, because we do not
11382 # link with -lc, and that would cause any symbols used from libc to
11383 # always be unresolved, which means just about no library would
11384 # ever link correctly. If we're not using GNU ld we use -z text
11385 # though, which does catch some bad symbols but isn't as heavy-handed
11387 no_undefined_flag='${wl}-z,text'
11388 allow_undefined_flag='${wl}-z,nodefs'
11389 archive_cmds_need_lc=no
11390 hardcode_shlibpath_var=no
11391 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11392 hardcode_libdir_separator=':'
11393 link_all_deplibs=yes
11394 export_dynamic_flag_spec='${wl}-Bexport'
11395 runpath_var='LD_RUN_PATH'
11397 if test "$GCC" = yes; then
11398 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408 hardcode_libdir_flag_spec='-L$libdir'
11409 hardcode_shlibpath_var=no
11417 if test x$host_vendor = xsni; then
11419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11420 export_dynamic_flag_spec='${wl}-Blargedynsym'
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11427 $as_echo "$ld_shlibs" >&6; }
11428 test "$ld_shlibs" = no && can_build_shared=no
11430 with_gnu_ld=$with_gnu_ld
11447 # Do we need to explicitly link libc?
11449 case "x$archive_cmds_need_lc" in
11451 # Assume -lc should be added
11452 archive_cmds_need_lc=yes
11454 if test "$enable_shared" = yes && test "$GCC" = yes; then
11455 case $archive_cmds in
11457 # FIXME: we may have to deal with multi-command sequences.
11460 # Test whether the compiler implicitly links with -lc since on some
11461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11462 # to ld, don't add -lc before -lgcc.
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11464 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11465 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11466 $as_echo_n "(cached) " >&6
11469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11472 (eval $ac_compile) 2>&5
11474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475 test $ac_status = 0; } 2>conftest.err; then
11478 libobjs=conftest.$ac_objext
11480 wl=$lt_prog_compiler_wl
11481 pic_flag=$lt_prog_compiler_pic
11487 lt_save_allow_undefined_flag=$allow_undefined_flag
11488 allow_undefined_flag=
11489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11490 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11493 test $ac_status = 0; }
11495 lt_cv_archive_cmds_need_lc=no
11497 lt_cv_archive_cmds_need_lc=yes
11499 allow_undefined_flag=$lt_save_allow_undefined_flag
11501 cat conftest.err 1>&5
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11507 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11508 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11667 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11669 if test "$GCC" = yes; then
11671 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11672 *) lt_awk_arg="/^libraries:/" ;;
11675 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11676 *) lt_sed_strip_eq="s,=/,/,g" ;;
11678 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11679 case $lt_search_path_spec in
11681 # if the path contains ";" then we assume it to be the separator
11682 # otherwise default to the standard path separator (i.e. ":") - it is
11683 # assumed that no part of a normal pathname contains ";" but that should
11684 # okay in the real world where ";" in dirpaths is itself problematic.
11685 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11688 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11691 # Ok, now we have the path, separated by spaces, we can step through it
11692 # and add multilib dir if necessary.
11693 lt_tmp_lt_search_path_spec=
11694 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11695 for lt_sys_path in $lt_search_path_spec; do
11696 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11697 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11699 test -d "$lt_sys_path" && \
11700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11703 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11704 BEGIN {RS=" "; FS="/|\n";} {
11707 for (lt_i = NF; lt_i > 0; lt_i--) {
11708 if ($lt_i != "" && $lt_i != ".") {
11709 if ($lt_i == "..") {
11712 if (lt_count == 0) {
11713 lt_foo="/" $lt_i lt_foo;
11720 if (lt_foo != "") { lt_freq[lt_foo]++; }
11721 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11723 # AWK program above erroneously prepends '/' to C:/dos/paths
11726 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11727 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11729 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11733 library_names_spec=
11734 libname_spec='lib$name'
11738 postuninstall_cmds=
11742 shlibpath_overrides_runpath=unknown
11744 dynamic_linker="$host_os ld.so"
11745 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11746 need_lib_prefix=unknown
11747 hardcode_into_libs=no
11749 # when you set need_version to no, make sure it does not cause -set_version
11750 # flags to be left without arguments
11751 need_version=unknown
11755 version_type=linux # correct to gnu/linux during the next big refactor
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11757 shlibpath_var=LIBPATH
11759 # AIX 3 has no versioning support, so we append a major version to the name.
11760 soname_spec='${libname}${release}${shared_ext}$major'
11764 version_type=linux # correct to gnu/linux during the next big refactor
11767 hardcode_into_libs=yes
11768 if test "$host_cpu" = ia64; then
11769 # AIX 5 supports IA64
11770 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11771 shlibpath_var=LD_LIBRARY_PATH
11773 # With GCC up to 2.95.x, collect2 would create an import file
11774 # for dependence libraries. The import file would start with
11775 # the line `#! .'. This would cause the generated library to
11776 # depend on `.', always an invalid library. This was fixed in
11777 # development snapshots of GCC prior to 3.0.
11779 aix4 | aix4.[01] | aix4.[01].*)
11780 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11782 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11785 can_build_shared=no
11789 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11790 # soname into executable. Probably we can add versioning support to
11791 # collect2, so additional links can be useful in future.
11792 if test "$aix_use_runtimelinking" = yes; then
11793 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11794 # instead of lib<name>.a to let people know that these are not
11795 # typical AIX shared libraries.
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798 # We preserve .a as extension for shared libraries through AIX4.2
11799 # and later when we are not doing run time linking.
11800 library_names_spec='${libname}${release}.a $libname.a'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11803 shlibpath_var=LIBPATH
11810 # Since July 2007 AmigaOS4 officially supports .so libraries.
11811 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 library_names_spec='$libname.ixlibrary $libname.a'
11816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11817 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'
11823 library_names_spec='${libname}${shared_ext}'
11824 dynamic_linker="$host_os ld.so"
11825 shlibpath_var=LIBRARY_PATH
11829 version_type=linux # correct to gnu/linux during the next big refactor
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11836 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11837 # the default ld.so.conf also contains /usr/contrib/lib and
11838 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11839 # libtool to hard-code these into programs
11842 cygwin* | mingw* | pw32* | cegcc*)
11843 version_type=windows
11848 case $GCC,$cc_basename in
11851 library_names_spec='$libname.dll.a'
11852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11853 postinstall_cmds='base_file=`basename \${file}`~
11854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11855 dldir=$destdir/`dirname \$dlpath`~
11856 test -d \$dldir || mkdir -p \$dldir~
11857 $install_prog $dir/$dlname \$dldir/$dlname~
11858 chmod a+x \$dldir/$dlname~
11859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11863 dlpath=$dir/\$dldll~
11865 shlibpath_overrides_runpath=yes
11869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11872 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11875 # MinGW DLLs use traditional 'lib' prefix
11876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11879 # pw32 DLLs use 'pw' prefix rather than 'lib'
11880 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883 dynamic_linker='Win32 ld.exe'
11888 libname_spec='$name'
11889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890 library_names_spec='${libname}.dll.lib'
11894 sys_lib_search_path_spec=
11897 for lt_path in $LIB
11900 # Let DOS variable expansion print the short 8.3 style file name.
11901 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11902 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11905 # Convert to MSYS style.
11906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11909 # Convert to unix form, then to dos form, then back to unix form
11910 # but this time dos style (no spaces!) so that the unix form looks
11911 # like /cygdrive/c/PROGRA~1:/cygdr...
11912 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11913 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11914 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11917 sys_lib_search_path_spec="$LIB"
11918 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11919 # It is most probably a Windows format PATH.
11920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11924 # FIXME: find the short name or the path components, as spaces are
11925 # common. (e.g. "Program Files" -> "PROGRA~1")
11929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11930 postinstall_cmds='base_file=`basename \${file}`~
11931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11932 dldir=$destdir/`dirname \$dlpath`~
11933 test -d \$dldir || mkdir -p \$dldir~
11934 $install_prog $dir/$dlname \$dldir/$dlname'
11935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11936 dlpath=$dir/\$dldll~
11938 shlibpath_overrides_runpath=yes
11939 dynamic_linker='Win32 link.exe'
11943 # Assume MSVC wrapper
11944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11945 dynamic_linker='Win32 ld.exe'
11948 # FIXME: first we should search . and the directory the executable is in
11952 darwin* | rhapsody*)
11953 dynamic_linker="$host_os dyld"
11954 version_type=darwin
11957 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11958 soname_spec='${libname}${release}${major}$shared_ext'
11959 shlibpath_overrides_runpath=yes
11960 shlibpath_var=DYLD_LIBRARY_PATH
11961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11968 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11976 freebsd* | dragonfly*)
11977 # DragonFly does not have aout. When/if they implement a new
11978 # versioning mechanism, adjust this.
11979 if test -x /usr/bin/objformat; then
11980 objformat=`/usr/bin/objformat`
11983 freebsd[23].*) objformat=aout ;;
11984 *) objformat=elf ;;
11987 version_type=freebsd-$objformat
11988 case $version_type in
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11999 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=yes
12004 freebsd3.[01]* | freebsdelf3.[01]*)
12005 shlibpath_overrides_runpath=yes
12006 hardcode_into_libs=yes
12008 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12009 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12010 shlibpath_overrides_runpath=no
12011 hardcode_into_libs=yes
12013 *) # from 4.6 on, and DragonFly
12014 shlibpath_overrides_runpath=yes
12015 hardcode_into_libs=yes
12021 version_type=linux # correct to gnu/linux during the next big refactor
12024 dynamic_linker="$host_os runtime_loader"
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 shlibpath_var=LIBRARY_PATH
12028 shlibpath_overrides_runpath=yes
12029 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12030 hardcode_into_libs=yes
12033 hpux9* | hpux10* | hpux11*)
12034 # Give a soname corresponding to the major version so that dld.sl refuses to
12035 # link against other versions.
12042 hardcode_into_libs=yes
12043 dynamic_linker="$host_os dld.so"
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 if test "X$HPUX_IA64_MODE" = X32; then
12049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12057 hardcode_into_libs=yes
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12068 dynamic_linker="$host_os dld.sl"
12069 shlibpath_var=SHLIB_PATH
12070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12075 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12076 postinstall_cmds='chmod 555 $lib'
12077 # or fails outright, so override atomically:
12078 install_override_mode=555
12082 version_type=linux # correct to gnu/linux during the next big refactor
12085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12086 soname_spec='${libname}${release}${shared_ext}$major'
12087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 shlibpath_overrides_runpath=no
12090 hardcode_into_libs=yes
12093 irix5* | irix6* | nonstopux*)
12095 nonstopux*) version_type=nonstopux ;;
12097 if test "$lt_cv_prog_gnu_ld" = yes; then
12098 version_type=linux # correct to gnu/linux during the next big refactor
12105 soname_spec='${libname}${release}${shared_ext}$major'
12106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12108 irix5* | nonstopux*)
12109 libsuff= shlibsuff=
12112 case $LD in # libtool.m4 will add one of these switches to LD
12113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12114 libsuff= shlibsuff= libmagic=32-bit;;
12115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12116 libsuff=32 shlibsuff=N32 libmagic=N32;;
12117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12119 *) libsuff= shlibsuff= libmagic=never-match;;
12123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12124 shlibpath_overrides_runpath=no
12125 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12126 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12127 hardcode_into_libs=yes
12130 # No shared lib support for Linux oldld, aout, or coff.
12131 linux*oldld* | linux*aout* | linux*coff*)
12135 # This must be glibc/ELF.
12136 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12137 version_type=linux # correct to gnu/linux during the next big refactor
12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141 soname_spec='${libname}${release}${shared_ext}$major'
12142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12143 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=no
12146 # Some binutils ld are patched to set DT_RUNPATH
12147 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12148 $as_echo_n "(cached) " >&6
12150 lt_cv_shlibpath_overrides_runpath=no
12151 save_LDFLAGS=$LDFLAGS
12152 save_libdir=$libdir
12153 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12154 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12166 if ac_fn_c_try_link "$LINENO"; then :
12167 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12168 lt_cv_shlibpath_overrides_runpath=yes
12171 rm -f core conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
12173 LDFLAGS=$save_LDFLAGS
12174 libdir=$save_libdir
12178 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12180 # This implies no fast_install, which is unacceptable.
12181 # Some rework will be needed to allow for fast_install
12182 # before this can be enabled.
12183 hardcode_into_libs=yes
12185 # Append ld.so.conf contents to the search path
12186 if test -f /etc/ld.so.conf; then
12187 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' ' '`
12188 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12191 # We used to test for /lib/ld.so.1 and disable shared libraries on
12192 # powerpc, because MkLinux only supported shared libraries with the
12193 # GNU dynamic linker. Since this was broken with cross compilers,
12194 # most powerpc-linux boxes support dynamic linking these days and
12195 # people can always --disable-shared, the test was removed, and we
12196 # assume the GNU/Linux dynamic linker is in use.
12197 dynamic_linker='GNU/Linux ld.so'
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 shlibpath_overrides_runpath=no
12208 hardcode_into_libs=yes
12209 dynamic_linker='NetBSD ld.elf_so'
12216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12219 dynamic_linker='NetBSD (a.out) ld.so'
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12222 soname_spec='${libname}${release}${shared_ext}$major'
12223 dynamic_linker='NetBSD ld.elf_so'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 shlibpath_overrides_runpath=yes
12227 hardcode_into_libs=yes
12231 version_type=linux # correct to gnu/linux during the next big refactor
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12233 shlibpath_var=LD_LIBRARY_PATH
12234 shlibpath_overrides_runpath=yes
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 shlibpath_var=LD_LIBRARY_PATH
12244 shlibpath_overrides_runpath=no
12245 hardcode_into_libs=yes
12246 dynamic_linker='ldqnx.so'
12251 sys_lib_dlsearch_path_spec="/usr/lib"
12253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12256 *) need_version=no ;;
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12260 shlibpath_var=LD_LIBRARY_PATH
12261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12263 openbsd2.[89] | openbsd2.[89].*)
12264 shlibpath_overrides_runpath=no
12267 shlibpath_overrides_runpath=yes
12271 shlibpath_overrides_runpath=yes
12276 libname_spec='$name'
12279 library_names_spec='$libname${shared_ext} $libname.a'
12280 dynamic_linker='OS/2 ld.exe'
12281 shlibpath_var=LIBPATH
12284 osf3* | osf4* | osf5*)
12288 soname_spec='${libname}${release}${shared_ext}$major'
12289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12290 shlibpath_var=LD_LIBRARY_PATH
12291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12300 version_type=linux # correct to gnu/linux during the next big refactor
12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12304 soname_spec='${libname}${release}${shared_ext}$major'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=yes
12307 hardcode_into_libs=yes
12308 # ldd complains unless libraries are executable
12309 postinstall_cmds='chmod +x $lib'
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath=yes
12318 if test "$with_gnu_ld" = yes; then
12325 version_type=linux # correct to gnu/linux during the next big refactor
12326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12327 soname_spec='${libname}${release}${shared_ext}$major'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 case $host_vendor in
12331 shlibpath_overrides_runpath=no
12333 runpath_var=LD_RUN_PATH
12341 shlibpath_overrides_runpath=no
12342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12348 if test -d /usr/nec ;then
12349 version_type=linux # correct to gnu/linux during the next big refactor
12350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12351 soname_spec='$libname${shared_ext}.$major'
12352 shlibpath_var=LD_LIBRARY_PATH
12356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12357 version_type=freebsd-elf
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12361 soname_spec='${libname}${release}${shared_ext}$major'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 shlibpath_overrides_runpath=yes
12364 hardcode_into_libs=yes
12365 if test "$with_gnu_ld" = yes; then
12366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12375 sys_lib_dlsearch_path_spec='/usr/lib'
12379 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12380 version_type=linux # correct to gnu/linux during the next big refactor
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 shlibpath_var=LD_LIBRARY_PATH
12385 shlibpath_overrides_runpath=no
12386 hardcode_into_libs=yes
12390 version_type=linux # correct to gnu/linux during the next big refactor
12391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12392 soname_spec='${libname}${release}${shared_ext}$major'
12393 shlibpath_var=LD_LIBRARY_PATH
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12401 $as_echo "$dynamic_linker" >&6; }
12402 test "$dynamic_linker" = no && can_build_shared=no
12404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12405 if test "$GCC" = yes; then
12406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12409 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12410 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12413 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12508 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12510 if test -n "$hardcode_libdir_flag_spec" ||
12511 test -n "$runpath_var" ||
12512 test "X$hardcode_automatic" = "Xyes" ; then
12514 # We can hardcode non-existent directories.
12515 if test "$hardcode_direct" != no &&
12516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12517 # have to relink, otherwise we might link with an installed library
12518 # when we should be linking with a yet-to-be-installed one
12519 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12520 test "$hardcode_minus_L" != no; then
12521 # Linking always hardcodes the temporary library directory.
12522 hardcode_action=relink
12524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12525 hardcode_action=immediate
12528 # We cannot hardcode anything, or else we can only hardcode existing
12530 hardcode_action=unsupported
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12533 $as_echo "$hardcode_action" >&6; }
12535 if test "$hardcode_action" = relink ||
12536 test "$inherit_rpath" = yes; then
12537 # Fast installation is not supported
12538 enable_fast_install=no
12539 elif test "$shlibpath_overrides_runpath" = yes ||
12540 test "$enable_shared" = no; then
12541 # Fast installation is not necessary
12542 enable_fast_install=needless
12550 if test "x$enable_dlopen" != xyes; then
12551 enable_dlopen=unknown
12552 enable_dlopen_self=unknown
12553 enable_dlopen_self_static=unknown
12560 lt_cv_dlopen="load_add_on"
12562 lt_cv_dlopen_self=yes
12565 mingw* | pw32* | cegcc*)
12566 lt_cv_dlopen="LoadLibrary"
12571 lt_cv_dlopen="dlopen"
12576 # if libdl is installed we need to link against it
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12579 if ${ac_cv_lib_dl_dlopen+:} false; then :
12580 $as_echo_n "(cached) " >&6
12582 ac_check_lib_save_LIBS=$LIBS
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12602 if ac_fn_c_try_link "$LINENO"; then :
12603 ac_cv_lib_dl_dlopen=yes
12605 ac_cv_lib_dl_dlopen=no
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12613 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12617 lt_cv_dlopen="dyld"
12619 lt_cv_dlopen_self=yes
12626 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12627 if test "x$ac_cv_func_shl_load" = xyes; then :
12628 lt_cv_dlopen="shl_load"
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12631 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12632 if ${ac_cv_lib_dld_shl_load+:} false; then :
12633 $as_echo_n "(cached) " >&6
12635 ac_check_lib_save_LIBS=$LIBS
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12640 /* Override any GCC internal prototype to avoid an error.
12641 Use char because int might match the return type of a GCC
12642 builtin and then its argument prototype would still apply. */
12650 return shl_load ();
12655 if ac_fn_c_try_link "$LINENO"; then :
12656 ac_cv_lib_dld_shl_load=yes
12658 ac_cv_lib_dld_shl_load=no
12660 rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 LIBS=$ac_check_lib_save_LIBS
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12665 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12666 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12667 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12669 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12670 if test "x$ac_cv_func_dlopen" = xyes; then :
12671 lt_cv_dlopen="dlopen"
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12675 if ${ac_cv_lib_dl_dlopen+:} false; then :
12676 $as_echo_n "(cached) " >&6
12678 ac_check_lib_save_LIBS=$LIBS
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12698 if ac_fn_c_try_link "$LINENO"; then :
12699 ac_cv_lib_dl_dlopen=yes
12701 ac_cv_lib_dl_dlopen=no
12703 rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12709 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12713 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12714 if ${ac_cv_lib_svld_dlopen+:} false; then :
12715 $as_echo_n "(cached) " >&6
12717 ac_check_lib_save_LIBS=$LIBS
12718 LIBS="-lsvld $LIBS"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12722 /* Override any GCC internal prototype to avoid an error.
12723 Use char because int might match the return type of a GCC
12724 builtin and then its argument prototype would still apply. */
12737 if ac_fn_c_try_link "$LINENO"; then :
12738 ac_cv_lib_svld_dlopen=yes
12740 ac_cv_lib_svld_dlopen=no
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12747 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12748 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12752 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12753 if ${ac_cv_lib_dld_dld_link+:} false; then :
12754 $as_echo_n "(cached) " >&6
12756 ac_check_lib_save_LIBS=$LIBS
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12771 return dld_link ();
12776 if ac_fn_c_try_link "$LINENO"; then :
12777 ac_cv_lib_dld_dld_link=yes
12779 ac_cv_lib_dld_dld_link=no
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12787 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12788 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12809 if test "x$lt_cv_dlopen" != xno; then
12815 case $lt_cv_dlopen in
12817 save_CPPFLAGS="$CPPFLAGS"
12818 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12820 save_LDFLAGS="$LDFLAGS"
12821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12824 LIBS="$lt_cv_dlopen_libs $LIBS"
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12828 if ${lt_cv_dlopen_self+:} false; then :
12829 $as_echo_n "(cached) " >&6
12831 if test "$cross_compiling" = yes; then :
12832 lt_cv_dlopen_self=cross
12834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12835 lt_status=$lt_dlunknown
12836 cat > conftest.$ac_ext <<_LT_EOF
12837 #line $LINENO "configure"
12838 #include "confdefs.h"
12847 # define LT_DLGLOBAL RTLD_GLOBAL
12850 # define LT_DLGLOBAL DL_GLOBAL
12852 # define LT_DLGLOBAL 0
12856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12857 find out it does not work in some platform. */
12858 #ifndef LT_DLLAZY_OR_NOW
12860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12863 # define LT_DLLAZY_OR_NOW DL_LAZY
12866 # define LT_DLLAZY_OR_NOW RTLD_NOW
12869 # define LT_DLLAZY_OR_NOW DL_NOW
12871 # define LT_DLLAZY_OR_NOW 0
12878 /* When -fvisbility=hidden is used, assume the code has been annotated
12879 correspondingly for the symbols needed. */
12880 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12881 int fnord () __attribute__((visibility("default")));
12884 int fnord () { return 42; }
12887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12888 int status = $lt_dlunknown;
12892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12896 else puts (dlerror ());
12898 /* dlclose (self); */
12906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12907 (eval $ac_link) 2>&5
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12911 (./conftest; exit; ) >&5 2>/dev/null
12913 case x$lt_status in
12914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12916 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12919 # compilation failed
12920 lt_cv_dlopen_self=no
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12928 $as_echo "$lt_cv_dlopen_self" >&6; }
12930 if test "x$lt_cv_dlopen_self" = xyes; then
12931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12933 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12934 if ${lt_cv_dlopen_self_static+:} false; then :
12935 $as_echo_n "(cached) " >&6
12937 if test "$cross_compiling" = yes; then :
12938 lt_cv_dlopen_self_static=cross
12940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12941 lt_status=$lt_dlunknown
12942 cat > conftest.$ac_ext <<_LT_EOF
12943 #line $LINENO "configure"
12944 #include "confdefs.h"
12953 # define LT_DLGLOBAL RTLD_GLOBAL
12956 # define LT_DLGLOBAL DL_GLOBAL
12958 # define LT_DLGLOBAL 0
12962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12963 find out it does not work in some platform. */
12964 #ifndef LT_DLLAZY_OR_NOW
12966 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12969 # define LT_DLLAZY_OR_NOW DL_LAZY
12972 # define LT_DLLAZY_OR_NOW RTLD_NOW
12975 # define LT_DLLAZY_OR_NOW DL_NOW
12977 # define LT_DLLAZY_OR_NOW 0
12984 /* When -fvisbility=hidden is used, assume the code has been annotated
12985 correspondingly for the symbols needed. */
12986 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12987 int fnord () __attribute__((visibility("default")));
12990 int fnord () { return 42; }
12993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12994 int status = $lt_dlunknown;
12998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13002 else puts (dlerror ());
13004 /* dlclose (self); */
13012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13013 (eval $ac_link) 2>&5
13015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13016 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13017 (./conftest; exit; ) >&5 2>/dev/null
13019 case x$lt_status in
13020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13022 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13025 # compilation failed
13026 lt_cv_dlopen_self_static=no
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13034 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13037 CPPFLAGS="$save_CPPFLAGS"
13038 LDFLAGS="$save_LDFLAGS"
13043 case $lt_cv_dlopen_self in
13044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13045 *) enable_dlopen_self=unknown ;;
13048 case $lt_cv_dlopen_self_static in
13049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13050 *) enable_dlopen_self_static=unknown ;;
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13073 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13074 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13075 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13076 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; }
13080 # FIXME - insert some real tests, host_os isn't really good enough
13083 if test -n "$STRIP" ; then
13084 striplib="$STRIP -x"
13085 old_striplib="$STRIP -S"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13087 $as_echo "yes" >&6; }
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13111 # Report which library types will actually be built
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13115 $as_echo "$can_build_shared" >&6; }
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13118 $as_echo_n "checking whether to build shared libraries... " >&6; }
13119 test "$can_build_shared" = "no" && enable_shared=no
13121 # On AIX, shared libraries and static libraries use the same namespace, and
13122 # are all built from PIC.
13125 test "$enable_shared" = yes && enable_static=no
13126 if test -n "$RANLIB"; then
13127 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13128 postinstall_cmds='$RANLIB $lib'
13133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13134 test "$enable_shared" = yes && enable_static=no
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13139 $as_echo "$enable_shared" >&6; }
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13142 $as_echo_n "checking whether to build static libraries... " >&6; }
13143 # Make sure either enable_shared or enable_static is yes.
13144 test "$enable_shared" = yes || enable_static=yes
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13146 $as_echo "$enable_static" >&6; }
13153 ac_cpp='$CPP $CPPFLAGS'
13154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13160 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13161 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13162 (test "X$CXX" != "Xg++"))) ; then
13164 ac_cpp='$CXXCPP $CPPFLAGS'
13165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13169 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13170 if test -z "$CXXCPP"; then
13171 if ${ac_cv_prog_CXXCPP+:} false; then :
13172 $as_echo_n "(cached) " >&6
13174 # Double quotes because CXXCPP needs to be expanded
13175 for CXXCPP in "$CXX -E" "/lib/cpp"
13177 ac_preproc_ok=false
13178 for ac_cxx_preproc_warn_flag in '' yes
13180 # Use a header file that comes with gcc, so configuring glibc
13181 # with a fresh cross-compiler works.
13182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13183 # <limits.h> exists even on freestanding compilers.
13184 # On the NeXT, cc -E runs the code through the compiler's parser,
13185 # not just through cpp. "Syntax error" is here to catch this case.
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13189 # include <limits.h>
13191 # include <assert.h>
13195 if ac_fn_cxx_try_cpp "$LINENO"; then :
13198 # Broken: fails on valid input.
13201 rm -f conftest.err conftest.i conftest.$ac_ext
13203 # OK, works on sane cases. Now check whether nonexistent headers
13204 # can be detected and how.
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207 #include <ac_nonexistent.h>
13209 if ac_fn_cxx_try_cpp "$LINENO"; then :
13210 # Broken: success on invalid input.
13213 # Passes both tests.
13217 rm -f conftest.err conftest.i conftest.$ac_ext
13220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13221 rm -f conftest.i conftest.err conftest.$ac_ext
13222 if $ac_preproc_ok; then :
13227 ac_cv_prog_CXXCPP=$CXXCPP
13230 CXXCPP=$ac_cv_prog_CXXCPP
13232 ac_cv_prog_CXXCPP=$CXXCPP
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13235 $as_echo "$CXXCPP" >&6; }
13236 ac_preproc_ok=false
13237 for ac_cxx_preproc_warn_flag in '' yes
13239 # Use a header file that comes with gcc, so configuring glibc
13240 # with a fresh cross-compiler works.
13241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13242 # <limits.h> exists even on freestanding compilers.
13243 # On the NeXT, cc -E runs the code through the compiler's parser,
13244 # not just through cpp. "Syntax error" is here to catch this case.
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13248 # include <limits.h>
13250 # include <assert.h>
13254 if ac_fn_cxx_try_cpp "$LINENO"; then :
13257 # Broken: fails on valid input.
13260 rm -f conftest.err conftest.i conftest.$ac_ext
13262 # OK, works on sane cases. Now check whether nonexistent headers
13263 # can be detected and how.
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13266 #include <ac_nonexistent.h>
13268 if ac_fn_cxx_try_cpp "$LINENO"; then :
13269 # Broken: success on invalid input.
13272 # Passes both tests.
13276 rm -f conftest.err conftest.i conftest.$ac_ext
13279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13280 rm -f conftest.i conftest.err conftest.$ac_ext
13281 if $ac_preproc_ok; then :
13284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13286 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13287 See \`config.log' for more details" "$LINENO" 5; }
13291 ac_cpp='$CPP $CPPFLAGS'
13292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13297 _lt_caught_CXX_error=yes
13301 ac_cpp='$CXXCPP $CPPFLAGS'
13302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13306 archive_cmds_need_lc_CXX=no
13307 allow_undefined_flag_CXX=
13308 always_export_symbols_CXX=no
13309 archive_expsym_cmds_CXX=
13310 compiler_needs_object_CXX=no
13311 export_dynamic_flag_spec_CXX=
13312 hardcode_direct_CXX=no
13313 hardcode_direct_absolute_CXX=no
13314 hardcode_libdir_flag_spec_CXX=
13315 hardcode_libdir_separator_CXX=
13316 hardcode_minus_L_CXX=no
13317 hardcode_shlibpath_var_CXX=unsupported
13318 hardcode_automatic_CXX=no
13319 inherit_rpath_CXX=no
13321 module_expsym_cmds_CXX=
13322 link_all_deplibs_CXX=unknown
13323 old_archive_cmds_CXX=$old_archive_cmds
13324 reload_flag_CXX=$reload_flag
13325 reload_cmds_CXX=$reload_cmds
13326 no_undefined_flag_CXX=
13327 whole_archive_flag_spec_CXX=
13328 enable_shared_with_static_runtimes_CXX=no
13330 # Source file extension for C++ test sources.
13333 # Object file extension for compiled C++ test sources.
13337 # No sense in running all these tests if we already determined that
13338 # the CXX compiler isn't working. Some variables (like enable_shared)
13339 # are currently assumed to apply to all compilers on this platform,
13340 # and will be corrupted by setting them based on a non-working compiler.
13341 if test "$_lt_caught_CXX_error" != yes; then
13342 # Code to be used in simple compile tests
13343 lt_simple_compile_test_code="int some_variable = 0;"
13345 # Code to be used in simple link tests
13346 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13348 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13355 # If no C compiler was specified, use CC.
13358 # If no C compiler flags were specified, use CFLAGS.
13359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13361 # Allow CC to be a program name with arguments.
13365 # save warnings/boilerplate of simple test code
13366 ac_outfile=conftest.$ac_objext
13367 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13369 _lt_compiler_boilerplate=`cat conftest.err`
13372 ac_outfile=conftest.$ac_objext
13373 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13375 _lt_linker_boilerplate=`cat conftest.err`
13379 # Allow CC to be a program name with arguments.
13381 lt_save_CFLAGS=$CFLAGS
13385 lt_save_with_gnu_ld=$with_gnu_ld
13386 lt_save_path_LD=$lt_cv_path_LD
13387 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13388 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13390 $as_unset lt_cv_prog_gnu_ld
13392 if test -n "${lt_cv_path_LDCXX+set}"; then
13393 lt_cv_path_LD=$lt_cv_path_LDCXX
13395 $as_unset lt_cv_path_LD
13397 test -z "${LDCXX+set}" || LD=$LDCXX
13402 for cc_temp in $compiler""; do
13404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13410 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13413 if test -n "$compiler"; then
13414 # We don't want -fno-exception when compiling C++ code, so set the
13415 # no_builtin_flag separately
13416 if test "$GXX" = yes; then
13417 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13419 lt_prog_compiler_no_builtin_flag_CXX=
13422 if test "$GXX" = yes; then
13423 # Set up default GNU C++ configuration
13427 # Check whether --with-gnu-ld was given.
13428 if test "${with_gnu_ld+set}" = set; then :
13429 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13435 if test "$GCC" = yes; then
13436 # Check if gcc -print-prog-name=ld gives a path.
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13438 $as_echo_n "checking for ld used by $CC... " >&6; }
13441 # gcc leaves a trailing carriage return which upsets mingw
13442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13447 # Accept absolute paths.
13449 re_direlt='/[^/][^/]*/\.\./'
13450 # Canonicalize the pathname of ld
13451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13455 test -z "$LD" && LD="$ac_prog"
13458 # If it fails, then pretend we aren't using GCC.
13462 # If it is relative, then search for the first ld in PATH.
13463 with_gnu_ld=unknown
13466 elif test "$with_gnu_ld" = yes; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13468 $as_echo_n "checking for GNU ld... " >&6; }
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13471 $as_echo_n "checking for non-GNU ld... " >&6; }
13473 if ${lt_cv_path_LD+:} false; then :
13474 $as_echo_n "(cached) " >&6
13476 if test -z "$LD"; then
13477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13478 for ac_dir in $PATH; do
13480 test -z "$ac_dir" && ac_dir=.
13481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13482 lt_cv_path_LD="$ac_dir/$ac_prog"
13483 # Check to see if the program is GNU ld. I'd rather use --version,
13484 # but apparently some variants of GNU ld only accept -v.
13485 # Break only if it was the GNU/non-GNU ld that we prefer.
13486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13487 *GNU* | *'with BFD'*)
13488 test "$with_gnu_ld" != no && break
13491 test "$with_gnu_ld" != yes && break
13498 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13502 LD="$lt_cv_path_LD"
13503 if test -n "$LD"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13505 $as_echo "$LD" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13513 if ${lt_cv_prog_gnu_ld+:} false; then :
13514 $as_echo_n "(cached) " >&6
13516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13517 case `$LD -v 2>&1 </dev/null` in
13518 *GNU* | *'with BFD'*)
13519 lt_cv_prog_gnu_ld=yes
13522 lt_cv_prog_gnu_ld=no
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13528 with_gnu_ld=$lt_cv_prog_gnu_ld
13536 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13537 # archiving commands below assume that GNU ld is being used.
13538 if test "$with_gnu_ld" = yes; then
13539 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540 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'
13542 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13543 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13545 # If archive_cmds runs LD, not CC, wlarc should be empty
13546 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13547 # investigate it a little bit more. (MM)
13550 # ancient GNU ld didn't support --whole-archive et. al.
13551 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13552 $GREP 'no-whole-archive' > /dev/null; then
13553 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13555 whole_archive_flag_spec_CXX=
13561 # A generic and very simple default shared library creation
13562 # command for GNU C++ for the case where it uses the native
13563 # linker, instead of GNU ld. If possible, this setting should
13564 # overridden to take advantage of the native linker features on
13565 # the platform it is being used on.
13566 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13569 # Commands to make compiler produce verbose output that lists
13570 # what "hidden" libraries, object files and flags are used when
13571 # linking a shared library.
13572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13580 # PORTME: fill in a description of your system's C++ link characteristics
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13586 # FIXME: insert proper C++ library support
13590 if test "$host_cpu" = ia64; then
13591 # On IA64, the linker does run time linking by default, so we don't
13592 # have to do anything special.
13593 aix_use_runtimelinking=no
13594 exp_sym_flag='-Bexport'
13597 aix_use_runtimelinking=no
13599 # Test if we are trying to use run time linking or normal
13600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13601 # need to do runtime linking.
13602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13603 for ld_flag in $LDFLAGS; do
13606 aix_use_runtimelinking=yes
13614 exp_sym_flag='-bexport'
13615 no_entry_flag='-bnoentry'
13618 # When large executables or shared objects are built, AIX ld can
13619 # have problems creating the table of contents. If linking a library
13620 # or program results in "error TOC overflow" add -mminimal-toc to
13621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13624 archive_cmds_CXX=''
13625 hardcode_direct_CXX=yes
13626 hardcode_direct_absolute_CXX=yes
13627 hardcode_libdir_separator_CXX=':'
13628 link_all_deplibs_CXX=yes
13629 file_list_spec_CXX='${wl}-f,'
13631 if test "$GXX" = yes; then
13632 case $host_os in aix4.[012]|aix4.[012].*)
13633 # We only want to do this on AIX 4.2 and lower, the check
13634 # below for broken collect2 doesn't work under 4.3+
13635 collect2name=`${CC} -print-prog-name=collect2`
13636 if test -f "$collect2name" &&
13637 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13639 # We have reworked collect2
13642 # We have old collect2
13643 hardcode_direct_CXX=unsupported
13644 # It fails to find uninstalled libraries when the uninstalled
13645 # path is not listed in the libpath. Setting hardcode_minus_L
13646 # to unsupported forces relinking
13647 hardcode_minus_L_CXX=yes
13648 hardcode_libdir_flag_spec_CXX='-L$libdir'
13649 hardcode_libdir_separator_CXX=
13652 shared_flag='-shared'
13653 if test "$aix_use_runtimelinking" = yes; then
13654 shared_flag="$shared_flag "'${wl}-G'
13658 if test "$host_cpu" = ia64; then
13659 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660 # chokes on -Wl,-G. The following line is correct:
13663 if test "$aix_use_runtimelinking" = yes; then
13664 shared_flag='${wl}-G'
13666 shared_flag='${wl}-bM:SRE'
13671 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13672 # It seems that -bexpall does not export symbols beginning with
13673 # underscore (_), so it is better to generate a list of symbols to
13675 always_export_symbols_CXX=yes
13676 if test "$aix_use_runtimelinking" = yes; then
13677 # Warning - without using the other runtime loading flags (-brtl),
13678 # -berok will link without error, but may produce a broken library.
13679 allow_undefined_flag_CXX='-berok'
13680 # Determine the default libpath from the value encoded in an empty
13682 if test "${lt_cv_aix_libpath+set}" = set; then
13683 aix_libpath=$lt_cv_aix_libpath
13685 if ${lt_cv_aix_libpath__CXX+:} false; then :
13686 $as_echo_n "(cached) " >&6
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13699 if ac_fn_cxx_try_link "$LINENO"; then :
13701 lt_aix_libpath_sed='
13702 /Import File Strings/,/^$/ {
13704 s/^0 *\([^ ]*\) *$/\1/
13708 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13709 # Check for a 64-bit object if we didn't find anything.
13710 if test -z "$lt_cv_aix_libpath__CXX"; then
13711 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13714 rm -f core conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
13716 if test -z "$lt_cv_aix_libpath__CXX"; then
13717 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13722 aix_libpath=$lt_cv_aix_libpath__CXX
13725 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13727 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"
13729 if test "$host_cpu" = ia64; then
13730 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13731 allow_undefined_flag_CXX="-z nodefs"
13732 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"
13734 # Determine the default libpath from the value encoded in an
13735 # empty executable.
13736 if test "${lt_cv_aix_libpath+set}" = set; then
13737 aix_libpath=$lt_cv_aix_libpath
13739 if ${lt_cv_aix_libpath__CXX+:} false; then :
13740 $as_echo_n "(cached) " >&6
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13753 if ac_fn_cxx_try_link "$LINENO"; then :
13755 lt_aix_libpath_sed='
13756 /Import File Strings/,/^$/ {
13758 s/^0 *\([^ ]*\) *$/\1/
13762 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13763 # Check for a 64-bit object if we didn't find anything.
13764 if test -z "$lt_cv_aix_libpath__CXX"; then
13765 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13768 rm -f core conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
13770 if test -z "$lt_cv_aix_libpath__CXX"; then
13771 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13776 aix_libpath=$lt_cv_aix_libpath__CXX
13779 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13780 # Warning - without using the other run time loading flags,
13781 # -berok will link without error, but may produce a broken library.
13782 no_undefined_flag_CXX=' ${wl}-bernotok'
13783 allow_undefined_flag_CXX=' ${wl}-berok'
13784 if test "$with_gnu_ld" = yes; then
13785 # We only use this code for GNU lds that support --whole-archive.
13786 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13788 # Exported symbols can be pulled into shared objects from archives
13789 whole_archive_flag_spec_CXX='$convenience'
13791 archive_cmds_need_lc_CXX=yes
13792 # This is similar to how AIX traditionally builds its shared
13794 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'
13800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13801 allow_undefined_flag_CXX=unsupported
13802 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13803 # support --undefined. This deserves some investigation. FIXME
13804 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811 case $cc_basename in
13813 # FIXME: insert proper C++ library support
13819 cygwin* | mingw* | pw32* | cegcc*)
13820 case $GXX,$cc_basename in
13823 # hardcode_libdir_flag_spec is actually meaningless, as there is
13824 # no search path for DLLs.
13825 hardcode_libdir_flag_spec_CXX=' '
13826 allow_undefined_flag_CXX=unsupported
13827 always_export_symbols_CXX=yes
13828 file_list_spec_CXX='@'
13829 # Tell ltmain to make .lib files, not .a files.
13831 # Tell ltmain to make .dll files, not .so files.
13833 # FIXME: Setting linknames here is a bad hack.
13834 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13835 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13836 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13838 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13840 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13842 # The linker will not automatically build a static lib if we build a DLL.
13843 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13844 enable_shared_with_static_runtimes_CXX=yes
13846 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13847 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13848 lt_tool_outputfile="@TOOL_OUTPUT@"~
13849 case $lt_outputfile in
13852 lt_outputfile="$lt_outputfile.exe"
13853 lt_tool_outputfile="$lt_tool_outputfile.exe"
13856 func_to_tool_file "$lt_outputfile"~
13857 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13858 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13859 $RM "$lt_outputfile.manifest";
13864 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13865 # as there is no search path for DLLs.
13866 hardcode_libdir_flag_spec_CXX='-L$libdir'
13867 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13868 allow_undefined_flag_CXX=unsupported
13869 always_export_symbols_CXX=no
13870 enable_shared_with_static_runtimes_CXX=yes
13872 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13873 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'
13874 # If the export-symbols file already is a .def file (1st line
13875 # is EXPORTS), use it as is; otherwise, prepend...
13876 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13877 cp $export_symbols $output_objdir/$soname.def;
13879 echo EXPORTS > $output_objdir/$soname.def;
13880 cat $export_symbols >> $output_objdir/$soname.def;
13882 $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'
13889 darwin* | rhapsody*)
13892 archive_cmds_need_lc_CXX=no
13893 hardcode_direct_CXX=no
13894 hardcode_automatic_CXX=yes
13895 hardcode_shlibpath_var_CXX=unsupported
13896 if test "$lt_cv_ld_force_load" = "yes"; then
13897 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\"`'
13900 whole_archive_flag_spec_CXX=''
13902 link_all_deplibs_CXX=yes
13903 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13904 case $cc_basename in
13905 ifort*) _lt_dar_can_shared=yes ;;
13906 *) _lt_dar_can_shared=$GCC ;;
13908 if test "$_lt_dar_can_shared" = "yes"; then
13909 output_verbose_link_cmd=func_echo_all
13910 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}"
13911 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13912 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}"
13913 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}"
13914 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13915 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}"
13916 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}"
13926 case $cc_basename in
13928 # FIXME: insert proper C++ library support
13932 # Green Hills C++ Compiler
13933 # FIXME: insert proper C++ library support
13937 # FIXME: insert proper C++ library support
13944 # C++ shared libraries reported to be fairly broken before
13950 archive_cmds_need_lc_CXX=no
13953 freebsd* | dragonfly*)
13954 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13960 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13961 link_all_deplibs_CXX=yes
13965 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13966 hardcode_libdir_separator_CXX=:
13967 export_dynamic_flag_spec_CXX='${wl}-E'
13968 hardcode_direct_CXX=yes
13969 hardcode_minus_L_CXX=yes # Not in the search PATH,
13970 # but as the default
13971 # location of the library.
13973 case $cc_basename in
13975 # FIXME: insert proper C++ library support
13979 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'
13980 # Commands to make compiler produce verbose output that lists
13981 # what "hidden" libraries, object files and flags are used when
13982 # linking a shared library.
13984 # There doesn't appear to be a way to prevent this compiler from
13985 # explicitly linking system object files so we need to strip them
13986 # from the output so that they don't get included in the library
13988 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"'
13991 if test "$GXX" = yes; then
13992 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'
13994 # FIXME: insert proper C++ library support
14002 if test $with_gnu_ld = no; then
14003 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14004 hardcode_libdir_separator_CXX=:
14010 export_dynamic_flag_spec_CXX='${wl}-E'
14016 hardcode_direct_CXX=no
14017 hardcode_shlibpath_var_CXX=no
14020 hardcode_direct_CXX=yes
14021 hardcode_direct_absolute_CXX=yes
14022 hardcode_minus_L_CXX=yes # Not in the search PATH,
14023 # but as the default
14024 # location of the library.
14028 case $cc_basename in
14030 # FIXME: insert proper C++ library support
14036 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14039 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14042 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045 # Commands to make compiler produce verbose output that lists
14046 # what "hidden" libraries, object files and flags are used when
14047 # linking a shared library.
14049 # There doesn't appear to be a way to prevent this compiler from
14050 # explicitly linking system object files so we need to strip them
14051 # from the output so that they don't get included in the library
14053 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"'
14056 if test "$GXX" = yes; then
14057 if test $with_gnu_ld = no; then
14060 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066 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'
14071 # FIXME: insert proper C++ library support
14079 hardcode_direct_CXX=no
14080 hardcode_shlibpath_var_CXX=no
14081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14082 export_dynamic_flag_spec_CXX='${wl}-E'
14083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14084 # Instead, shared libraries are loaded at an image base (0x10000000 by
14085 # default) and relocated if they conflict, which is a slow very memory
14086 # consuming and fragmenting process. To avoid this, we pick a random,
14087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14089 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'
14090 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'
14093 case $cc_basename in
14096 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'
14098 # Archives containing C++ object files must be created using
14099 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14100 # necessary to make sure instantiated templates are included
14102 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14105 if test "$GXX" = yes; then
14106 if test "$with_gnu_ld" = no; then
14107 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'
14109 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'
14112 link_all_deplibs_CXX=yes
14115 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14116 hardcode_libdir_separator_CXX=:
14117 inherit_rpath_CXX=yes
14120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14121 case $cc_basename in
14123 # Kuck and Associates, Inc. (KAI) C++ Compiler
14125 # KCC will only create a shared library if the output file
14126 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14127 # to its proper name (with version) after linking.
14128 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'
14129 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'
14130 # Commands to make compiler produce verbose output that lists
14131 # what "hidden" libraries, object files and flags are used when
14132 # linking a shared library.
14134 # There doesn't appear to be a way to prevent this compiler from
14135 # explicitly linking system object files so we need to strip them
14136 # from the output so that they don't get included in the library
14138 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"'
14140 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14143 # Archives containing C++ object files must be created using
14144 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14145 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14150 # version 8.0 and above of icpc choke on multiply defined symbols
14151 # if we add $predep_objects and $postdep_objects, however 7.1 and
14152 # earlier do not add the objects themselves.
14153 case `$CC -V 2>&1` in
14155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14156 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'
14158 *) # Version 8.0 or newer
14161 ia64*) tmp_idyn=' -i_dynamic';;
14163 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14164 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'
14167 archive_cmds_need_lc_CXX=no
14168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14169 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14170 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14173 # Portland Group C++ compiler
14175 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14176 prelink_cmds_CXX='tpldir=Template.dir~
14178 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14179 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14180 old_archive_cmds_CXX='tpldir=Template.dir~
14182 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14183 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14185 archive_cmds_CXX='tpldir=Template.dir~
14187 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14188 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14189 archive_expsym_cmds_CXX='tpldir=Template.dir~
14191 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14192 $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'
14194 *) # Version 6 and above use weak symbols
14195 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14196 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'
14200 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14202 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'
14206 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207 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'
14209 runpath_var=LD_RUN_PATH
14210 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14211 hardcode_libdir_separator_CXX=:
14213 # Commands to make compiler produce verbose output that lists
14214 # what "hidden" libraries, object files and flags are used when
14215 # linking a shared library.
14217 # There doesn't appear to be a way to prevent this compiler from
14218 # explicitly linking system object files so we need to strip them
14219 # from the output so that they don't get included in the library
14221 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'
14223 xl* | mpixl* | bgxl*)
14224 # IBM XL 8.0 on PPC, with GNU ld
14225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14226 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14227 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228 if test "x$supports_anon_versioning" = xyes; then
14229 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14231 echo "local: *; };" >> $output_objdir/$libname.ver~
14232 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14236 case `$CC -V 2>&1 | sed 5q` in
14239 no_undefined_flag_CXX=' -zdefs'
14240 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14241 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'
14242 hardcode_libdir_flag_spec_CXX='-R$libdir'
14243 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'
14244 compiler_needs_object_CXX=yes
14246 # Not sure whether something based on
14247 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14249 output_verbose_link_cmd='func_echo_all'
14251 # Archives containing C++ object files must be created using
14252 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14253 # necessary to make sure instantiated templates are included
14255 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14263 # FIXME: insert proper C++ library support
14268 # FIXME: insert proper C++ library support
14273 case $cc_basename in
14275 # FIXME: insert proper C++ library support
14279 # FIXME: insert proper C++ library support
14286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14287 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14289 hardcode_libdir_flag_spec_CXX='-R$libdir'
14290 hardcode_direct_CXX=yes
14291 hardcode_shlibpath_var_CXX=no
14293 # Workaround some broken pre-1.5 toolchains
14294 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14302 # C++ shared libraries are fairly broken
14307 if test -f /usr/libexec/ld.so; then
14308 hardcode_direct_CXX=yes
14309 hardcode_shlibpath_var_CXX=no
14310 hardcode_direct_absolute_CXX=yes
14311 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14312 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14314 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14315 export_dynamic_flag_spec_CXX='${wl}-E'
14316 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14318 output_verbose_link_cmd=func_echo_all
14324 osf3* | osf4* | osf5*)
14325 case $cc_basename in
14327 # Kuck and Associates, Inc. (KAI) C++ Compiler
14329 # KCC will only create a shared library if the output file
14330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14331 # to its proper name (with version) after linking.
14332 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'
14334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14335 hardcode_libdir_separator_CXX=:
14337 # Archives containing C++ object files must be created using
14338 # the KAI C++ compiler.
14340 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14341 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14345 # Rational C++ 2.4.1
14346 # FIXME: insert proper C++ library support
14352 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14353 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'
14354 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14357 allow_undefined_flag_CXX=' -expect_unresolved \*'
14358 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'
14359 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14360 echo "-hidden">> $lib.exp~
14361 $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~
14363 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14367 hardcode_libdir_separator_CXX=:
14369 # Commands to make compiler produce verbose output that lists
14370 # what "hidden" libraries, object files and flags are used when
14371 # linking a shared library.
14373 # There doesn't appear to be a way to prevent this compiler from
14374 # explicitly linking system object files so we need to strip them
14375 # from the output so that they don't get included in the library
14377 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"'
14380 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14381 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14384 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'
14387 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'
14391 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14392 hardcode_libdir_separator_CXX=:
14394 # Commands to make compiler produce verbose output that lists
14395 # what "hidden" libraries, object files and flags are used when
14396 # linking a shared library.
14397 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14400 # FIXME: insert proper C++ library support
14408 # FIXME: insert proper C++ library support
14413 case $cc_basename in
14416 # FIXME: insert proper C++ library support
14421 # FIXME: insert proper C++ library support
14425 # FIXME: insert proper C++ library support
14432 case $cc_basename in
14434 # Sun C++ 4.2, 5.x and Centerline C++
14435 archive_cmds_need_lc_CXX=yes
14436 no_undefined_flag_CXX=' -zdefs'
14437 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14438 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14439 $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'
14441 hardcode_libdir_flag_spec_CXX='-R$libdir'
14442 hardcode_shlibpath_var_CXX=no
14444 solaris2.[0-5] | solaris2.[0-5].*) ;;
14446 # The compiler driver will combine and reorder linker options,
14447 # but understands `-z linker_flag'.
14448 # Supported since Solaris 2.6 (maybe 2.5.1?)
14449 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14452 link_all_deplibs_CXX=yes
14454 output_verbose_link_cmd='func_echo_all'
14456 # Archives containing C++ object files must be created using
14457 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14458 # necessary to make sure instantiated templates are included
14460 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14463 # Green Hills C++ Compiler
14464 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14466 # The C++ compiler must be used to create the archive.
14467 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14470 # GNU C++ compiler with Solaris linker
14471 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14472 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14473 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14474 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14475 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14476 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14478 # Commands to make compiler produce verbose output that lists
14479 # what "hidden" libraries, object files and flags are used when
14480 # linking a shared library.
14481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14483 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14485 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14486 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14487 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14489 # Commands to make compiler produce verbose output that lists
14490 # what "hidden" libraries, object files and flags are used when
14491 # linking a shared library.
14492 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14495 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14497 solaris2.[0-5] | solaris2.[0-5].*) ;;
14499 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14507 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14508 no_undefined_flag_CXX='${wl}-z,text'
14509 archive_cmds_need_lc_CXX=no
14510 hardcode_shlibpath_var_CXX=no
14511 runpath_var='LD_RUN_PATH'
14513 case $cc_basename in
14515 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14519 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14520 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525 sysv5* | sco3.2v5* | sco5v6*)
14526 # Note: We can NOT use -z defs as we might desire, because we do not
14527 # link with -lc, and that would cause any symbols used from libc to
14528 # always be unresolved, which means just about no library would
14529 # ever link correctly. If we're not using GNU ld we use -z text
14530 # though, which does catch some bad symbols but isn't as heavy-handed
14532 no_undefined_flag_CXX='${wl}-z,text'
14533 allow_undefined_flag_CXX='${wl}-z,nodefs'
14534 archive_cmds_need_lc_CXX=no
14535 hardcode_shlibpath_var_CXX=no
14536 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14537 hardcode_libdir_separator_CXX=':'
14538 link_all_deplibs_CXX=yes
14539 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14540 runpath_var='LD_RUN_PATH'
14542 case $cc_basename in
14544 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14545 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14547 '"$old_archive_cmds_CXX"
14548 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14549 '"$reload_cmds_CXX"
14552 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14559 case $cc_basename in
14561 # NonStop-UX NCC 3.20
14562 # FIXME: insert proper C++ library support
14566 # FIXME: insert proper C++ library support
14573 # FIXME: insert proper C++ library support
14578 # FIXME: insert proper C++ library support
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14584 $as_echo "$ld_shlibs_CXX" >&6; }
14585 test "$ld_shlibs_CXX" = no && can_build_shared=no
14591 ## There is no encapsulation within the following macros, do not change
14592 ## the running order or otherwise move them around unless you know exactly
14593 ## what you are doing...
14594 # Dependencies to place before and after the object being linked:
14595 predep_objects_CXX=
14596 postdep_objects_CXX=
14599 compiler_lib_search_path_CXX=
14601 cat > conftest.$ac_ext <<_LT_EOF
14605 Foo (void) { a = 0; }
14612 _lt_libdeps_save_CFLAGS=$CFLAGS
14613 case "$CC $CFLAGS " in #(
14614 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14615 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14616 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14620 (eval $ac_compile) 2>&5
14622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14623 test $ac_status = 0; }; then
14624 # Parse the compiler output and extract the necessary
14625 # objects, libraries and library flags.
14627 # Sentinel used to keep track of whether or not we are before
14628 # the conftest object file.
14629 pre_test_object_deps_done=no
14631 for p in `eval "$output_verbose_link_cmd"`; do
14632 case ${prev}${p} in
14635 # Some compilers place space between "-{L,R}" and the path.
14636 # Remove the space.
14637 if test $p = "-L" ||
14638 test $p = "-R"; then
14643 # Expand the sysroot to ease extracting the directories later.
14644 if test -z "$prev"; then
14646 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14647 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14648 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14652 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14654 if test "$pre_test_object_deps_done" = no; then
14657 # Internal compiler library paths should come after those
14658 # provided the user. The postdeps already come after the
14659 # user supplied libs so there is no need to process them.
14660 if test -z "$compiler_lib_search_path_CXX"; then
14661 compiler_lib_search_path_CXX="${prev}${p}"
14663 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14666 # The "-l" case would never come before the object being
14667 # linked, so don't bother handling this case.
14670 if test -z "$postdeps_CXX"; then
14671 postdeps_CXX="${prev}${p}"
14673 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14679 *.lto.$objext) ;; # Ignore GCC LTO objects
14681 # This assumes that the test object file only shows up
14682 # once in the compiler output.
14683 if test "$p" = "conftest.$objext"; then
14684 pre_test_object_deps_done=yes
14688 if test "$pre_test_object_deps_done" = no; then
14689 if test -z "$predep_objects_CXX"; then
14690 predep_objects_CXX="$p"
14692 predep_objects_CXX="$predep_objects_CXX $p"
14695 if test -z "$postdep_objects_CXX"; then
14696 postdep_objects_CXX="$p"
14698 postdep_objects_CXX="$postdep_objects_CXX $p"
14703 *) ;; # Ignore the rest.
14711 echo "libtool.m4: error: problem compiling CXX test program"
14714 $RM -f confest.$objext
14715 CFLAGS=$_lt_libdeps_save_CFLAGS
14717 # PORTME: override above test on systems where it is broken
14720 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14721 # hack all around it, let's just trust "g++" to DTRT.
14722 predep_objects_CXX=
14723 postdep_objects_CXX=
14728 case `$CC -V 2>&1 | sed 5q` in
14732 # The more standards-conforming stlport4 library is
14733 # incompatible with the Cstd library. Avoid specifying
14734 # it if it's in CXXFLAGS. Ignore libCrun as
14735 # -library=stlport4 depends on it.
14736 case " $CXX $CXXFLAGS " in
14737 *" -library=stlport4 "*)
14738 solaris_use_stlport4=yes
14742 if test "$solaris_use_stlport4" != yes; then
14743 postdeps_CXX='-library=Cstd -library=Crun'
14750 case $cc_basename in
14752 # The more standards-conforming stlport4 library is
14753 # incompatible with the Cstd library. Avoid specifying
14754 # it if it's in CXXFLAGS. Ignore libCrun as
14755 # -library=stlport4 depends on it.
14756 case " $CXX $CXXFLAGS " in
14757 *" -library=stlport4 "*)
14758 solaris_use_stlport4=yes
14762 # Adding this requires a known-good setup of shared libraries for
14763 # Sun compiler versions before 5.6, else PIC objects from an old
14764 # archive will be linked into the output, leading to subtle bugs.
14765 if test "$solaris_use_stlport4" != yes; then
14766 postdeps_CXX='-library=Cstd -library=Crun'
14774 case " $postdeps_CXX " in
14775 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14777 compiler_lib_search_dirs_CXX=
14778 if test -n "${compiler_lib_search_path_CXX}"; then
14779 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14812 lt_prog_compiler_wl_CXX=
14813 lt_prog_compiler_pic_CXX=
14814 lt_prog_compiler_static_CXX=
14817 # C++ specific cases for pic, static, wl, etc.
14818 if test "$GXX" = yes; then
14819 lt_prog_compiler_wl_CXX='-Wl,'
14820 lt_prog_compiler_static_CXX='-static'
14824 # All AIX code is PIC.
14825 if test "$host_cpu" = ia64; then
14826 # AIX 5 now supports IA64 processor
14827 lt_prog_compiler_static_CXX='-Bstatic'
14834 # see comment about AmigaOS4 .so support
14835 lt_prog_compiler_pic_CXX='-fPIC'
14838 # FIXME: we need at least 68020 code to build shared libraries, but
14839 # adding the `-m68020' flag to GCC prevents building anything better,
14841 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14847 # PIC is the default for these OSes.
14849 mingw* | cygwin* | os2* | pw32* | cegcc*)
14850 # This hack is so that the source file can tell whether it is being
14851 # built for inclusion in a dll (and should export symbols for example).
14852 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14853 # (--disable-auto-import) libraries
14854 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14856 darwin* | rhapsody*)
14857 # PIC is the default on this platform
14858 # Common symbols not allowed in MH_DYLIB files
14859 lt_prog_compiler_pic_CXX='-fno-common'
14862 # DJGPP does not support shared libraries at all
14863 lt_prog_compiler_pic_CXX=
14866 # PIC is the default for Haiku.
14867 # The "-static" flag exists, but is broken.
14868 lt_prog_compiler_static_CXX=
14871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14872 # Instead, we relocate shared libraries at runtime.
14875 if test -d /usr/nec; then
14876 lt_prog_compiler_pic_CXX=-Kconform_pic
14880 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14881 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14882 # sets the default TLS model and affects inlining.
14887 lt_prog_compiler_pic_CXX='-fPIC'
14892 # QNX uses GNU C++, but need to define -shared option too, otherwise
14893 # it will coredump.
14894 lt_prog_compiler_pic_CXX='-fPIC -shared'
14897 lt_prog_compiler_pic_CXX='-fPIC'
14903 # All AIX code is PIC.
14904 if test "$host_cpu" = ia64; then
14905 # AIX 5 now supports IA64 processor
14906 lt_prog_compiler_static_CXX='-Bstatic'
14908 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14912 case $cc_basename in
14914 # Green Hills C++ Compiler
14915 # _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"
14919 mingw* | cygwin* | os2* | pw32* | cegcc*)
14920 # This hack is so that the source file can tell whether it is being
14921 # built for inclusion in a dll (and should export symbols for example).
14922 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14925 case $cc_basename in
14927 lt_prog_compiler_pic_CXX='-KPIC'
14930 # Green Hills C++ Compiler
14931 lt_prog_compiler_pic_CXX='-pic'
14937 freebsd* | dragonfly*)
14938 # FreeBSD uses GNU C++
14940 hpux9* | hpux10* | hpux11*)
14941 case $cc_basename in
14943 lt_prog_compiler_wl_CXX='-Wl,'
14944 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14945 if test "$host_cpu" != ia64; then
14946 lt_prog_compiler_pic_CXX='+Z'
14950 lt_prog_compiler_wl_CXX='-Wl,'
14951 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14957 lt_prog_compiler_pic_CXX='+Z'
14966 # This is c89, which is MS Visual C++ (no shared libs)
14967 # Anyone wants to do a port?
14969 irix5* | irix6* | nonstopux*)
14970 case $cc_basename in
14972 lt_prog_compiler_wl_CXX='-Wl,'
14973 lt_prog_compiler_static_CXX='-non_shared'
14974 # CC pic flag -KPIC is the default.
14980 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14981 case $cc_basename in
14984 lt_prog_compiler_wl_CXX='--backend -Wl,'
14985 lt_prog_compiler_pic_CXX='-fPIC'
14988 # old Intel C++ for x86_64 which still supported -KPIC.
14989 lt_prog_compiler_wl_CXX='-Wl,'
14990 lt_prog_compiler_pic_CXX='-KPIC'
14991 lt_prog_compiler_static_CXX='-static'
14994 # Intel C++, used to be incompatible with GCC.
14995 # ICC 10 doesn't accept -KPIC any more.
14996 lt_prog_compiler_wl_CXX='-Wl,'
14997 lt_prog_compiler_pic_CXX='-fPIC'
14998 lt_prog_compiler_static_CXX='-static'
15001 # Portland Group C++ compiler
15002 lt_prog_compiler_wl_CXX='-Wl,'
15003 lt_prog_compiler_pic_CXX='-fpic'
15004 lt_prog_compiler_static_CXX='-Bstatic'
15008 # Make sure the PIC flag is empty. It appears that all Alpha
15009 # Linux and Compaq Tru64 Unix objects are PIC.
15010 lt_prog_compiler_pic_CXX=
15011 lt_prog_compiler_static_CXX='-non_shared'
15013 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15014 # IBM XL 8.0, 9.0 on PPC and BlueGene
15015 lt_prog_compiler_wl_CXX='-Wl,'
15016 lt_prog_compiler_pic_CXX='-qpic'
15017 lt_prog_compiler_static_CXX='-qstaticlink'
15020 case `$CC -V 2>&1 | sed 5q` in
15023 lt_prog_compiler_pic_CXX='-KPIC'
15024 lt_prog_compiler_static_CXX='-Bstatic'
15025 lt_prog_compiler_wl_CXX='-Qoption ld '
15036 case $cc_basename in
15038 lt_prog_compiler_pic_CXX='-W c,exportall'
15044 netbsd* | netbsdelf*-gnu)
15047 # QNX uses GNU C++, but need to define -shared option too, otherwise
15048 # it will coredump.
15049 lt_prog_compiler_pic_CXX='-fPIC -shared'
15051 osf3* | osf4* | osf5*)
15052 case $cc_basename in
15054 lt_prog_compiler_wl_CXX='--backend -Wl,'
15057 # Rational C++ 2.4.1
15058 lt_prog_compiler_pic_CXX='-pic'
15061 # Digital/Compaq C++
15062 lt_prog_compiler_wl_CXX='-Wl,'
15063 # Make sure the PIC flag is empty. It appears that all Alpha
15064 # Linux and Compaq Tru64 Unix objects are PIC.
15065 lt_prog_compiler_pic_CXX=
15066 lt_prog_compiler_static_CXX='-non_shared'
15075 case $cc_basename in
15077 # Sun C++ 4.2, 5.x and Centerline C++
15078 lt_prog_compiler_pic_CXX='-KPIC'
15079 lt_prog_compiler_static_CXX='-Bstatic'
15080 lt_prog_compiler_wl_CXX='-Qoption ld '
15083 # Green Hills C++ Compiler
15084 lt_prog_compiler_pic_CXX='-PIC'
15091 case $cc_basename in
15094 lt_prog_compiler_pic_CXX='-pic'
15095 lt_prog_compiler_static_CXX='-Bstatic'
15099 lt_prog_compiler_pic_CXX='-pic'
15105 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15106 case $cc_basename in
15108 lt_prog_compiler_wl_CXX='-Wl,'
15109 lt_prog_compiler_pic_CXX='-KPIC'
15110 lt_prog_compiler_static_CXX='-Bstatic'
15115 case $cc_basename in
15117 # NonStop-UX NCC 3.20
15118 lt_prog_compiler_pic_CXX='-KPIC'
15127 lt_prog_compiler_can_build_shared_CXX=no
15133 # For platforms which do not support PIC, -DPIC is meaningless:
15135 lt_prog_compiler_pic_CXX=
15138 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15144 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15145 $as_echo_n "(cached) " >&6
15147 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15150 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15151 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15154 # Check to make sure the PIC flag actually works.
15156 if test -n "$lt_prog_compiler_pic_CXX"; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15158 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15159 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15160 $as_echo_n "(cached) " >&6
15162 lt_cv_prog_compiler_pic_works_CXX=no
15163 ac_outfile=conftest.$ac_objext
15164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15165 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15166 # Insert the option either (1) after the last *FLAGS variable, or
15167 # (2) before a word containing "conftest.", or (3) at the end.
15168 # Note that $ac_compile itself does not contain backslashes and begins
15169 # with a dollar sign (not a hyphen), so the echo should work correctly.
15170 # The option is referenced via a variable to avoid confusing sed.
15171 lt_compile=`echo "$ac_compile" | $SED \
15172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15174 -e 's:$: $lt_compiler_flag:'`
15175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15176 (eval "$lt_compile" 2>conftest.err)
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 if (exit $ac_status) && test -s "$ac_outfile"; then
15181 # The compiler can only warn and ignore the option if not recognized
15182 # So say no if there are warnings other than the usual output.
15183 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15186 lt_cv_prog_compiler_pic_works_CXX=yes
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15193 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15195 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15196 case $lt_prog_compiler_pic_CXX in
15198 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15201 lt_prog_compiler_pic_CXX=
15202 lt_prog_compiler_can_build_shared_CXX=no
15212 # Check to make sure the static flag actually works.
15214 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15216 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15217 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15218 $as_echo_n "(cached) " >&6
15220 lt_cv_prog_compiler_static_works_CXX=no
15221 save_LDFLAGS="$LDFLAGS"
15222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15225 # The linker can only warn and ignore the option if not recognized
15226 # So say no if there are warnings
15227 if test -s conftest.err; then
15228 # Append any errors to the config.log.
15229 cat conftest.err 1>&5
15230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15232 if diff conftest.exp conftest.er2 >/dev/null; then
15233 lt_cv_prog_compiler_static_works_CXX=yes
15236 lt_cv_prog_compiler_static_works_CXX=yes
15240 LDFLAGS="$save_LDFLAGS"
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15244 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15246 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15249 lt_prog_compiler_static_CXX=
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15257 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15258 $as_echo_n "(cached) " >&6
15260 lt_cv_prog_compiler_c_o_CXX=no
15261 $RM -r conftest 2>/dev/null
15265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15267 lt_compiler_flag="-o out/conftest2.$ac_objext"
15268 # Insert the option either (1) after the last *FLAGS variable, or
15269 # (2) before a word containing "conftest.", or (3) at the end.
15270 # Note that $ac_compile itself does not contain backslashes and begins
15271 # with a dollar sign (not a hyphen), so the echo should work correctly.
15272 lt_compile=`echo "$ac_compile" | $SED \
15273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15275 -e 's:$: $lt_compiler_flag:'`
15276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15277 (eval "$lt_compile" 2>out/conftest.err)
15279 cat out/conftest.err >&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15283 # The compiler can only warn and ignore the option if not recognized
15284 # So say no if there are warnings
15285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15288 lt_cv_prog_compiler_c_o_CXX=yes
15293 # SGI C++ compiler will create directory out/ii_files/ for
15294 # template instantiation
15295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15296 $RM out/* && rmdir out
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15303 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15309 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15310 $as_echo_n "(cached) " >&6
15312 lt_cv_prog_compiler_c_o_CXX=no
15313 $RM -r conftest 2>/dev/null
15317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15319 lt_compiler_flag="-o out/conftest2.$ac_objext"
15320 # Insert the option either (1) after the last *FLAGS variable, or
15321 # (2) before a word containing "conftest.", or (3) at the end.
15322 # Note that $ac_compile itself does not contain backslashes and begins
15323 # with a dollar sign (not a hyphen), so the echo should work correctly.
15324 lt_compile=`echo "$ac_compile" | $SED \
15325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327 -e 's:$: $lt_compiler_flag:'`
15328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15329 (eval "$lt_compile" 2>out/conftest.err)
15331 cat out/conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15335 # The compiler can only warn and ignore the option if not recognized
15336 # So say no if there are warnings
15337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15340 lt_cv_prog_compiler_c_o_CXX=yes
15345 # SGI C++ compiler will create directory out/ii_files/ for
15346 # template instantiation
15347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15348 $RM out/* && rmdir out
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15355 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15360 hard_links="nottested"
15361 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15362 # do not overwrite the value of need_locks provided by the user
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15364 $as_echo_n "checking if we can lock with hard links... " >&6; }
15367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369 ln conftest.a conftest.b 2>&5 || hard_links=no
15370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15372 $as_echo "$hard_links" >&6; }
15373 if test "$hard_links" = no; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15375 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15385 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15387 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15388 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15391 # If we're using GNU nm, then we don't want the "-C" option.
15392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15393 # Also, AIX nm treats weak defined symbols like other global defined
15394 # symbols, whereas GNU nm marks them as "W".
15395 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15396 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'
15398 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'
15402 export_symbols_cmds_CXX="$ltdll_cmds"
15404 cygwin* | mingw* | cegcc*)
15405 case $cc_basename in
15407 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15410 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'
15411 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15415 linux* | k*bsd*-gnu | gnu*)
15416 link_all_deplibs_CXX=no
15419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15424 $as_echo "$ld_shlibs_CXX" >&6; }
15425 test "$ld_shlibs_CXX" = no && can_build_shared=no
15427 with_gnu_ld_CXX=$with_gnu_ld
15435 # Do we need to explicitly link libc?
15437 case "x$archive_cmds_need_lc_CXX" in
15439 # Assume -lc should be added
15440 archive_cmds_need_lc_CXX=yes
15442 if test "$enable_shared" = yes && test "$GCC" = yes; then
15443 case $archive_cmds_CXX in
15445 # FIXME: we may have to deal with multi-command sequences.
15448 # Test whether the compiler implicitly links with -lc since on some
15449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15450 # to ld, don't add -lc before -lgcc.
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15453 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15454 $as_echo_n "(cached) " >&6
15457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15460 (eval $ac_compile) 2>&5
15462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15463 test $ac_status = 0; } 2>conftest.err; then
15466 libobjs=conftest.$ac_objext
15468 wl=$lt_prog_compiler_wl_CXX
15469 pic_flag=$lt_prog_compiler_pic_CXX
15475 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15476 allow_undefined_flag_CXX=
15477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15478 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15481 test $ac_status = 0; }
15483 lt_cv_archive_cmds_need_lc_CXX=no
15485 lt_cv_archive_cmds_need_lc_CXX=yes
15487 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15489 cat conftest.err 1>&5
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15495 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15496 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15565 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15567 library_names_spec=
15568 libname_spec='lib$name'
15572 postuninstall_cmds=
15576 shlibpath_overrides_runpath=unknown
15578 dynamic_linker="$host_os ld.so"
15579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15580 need_lib_prefix=unknown
15581 hardcode_into_libs=no
15583 # when you set need_version to no, make sure it does not cause -set_version
15584 # flags to be left without arguments
15585 need_version=unknown
15589 version_type=linux # correct to gnu/linux during the next big refactor
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15591 shlibpath_var=LIBPATH
15593 # AIX 3 has no versioning support, so we append a major version to the name.
15594 soname_spec='${libname}${release}${shared_ext}$major'
15598 version_type=linux # correct to gnu/linux during the next big refactor
15601 hardcode_into_libs=yes
15602 if test "$host_cpu" = ia64; then
15603 # AIX 5 supports IA64
15604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15605 shlibpath_var=LD_LIBRARY_PATH
15607 # With GCC up to 2.95.x, collect2 would create an import file
15608 # for dependence libraries. The import file would start with
15609 # the line `#! .'. This would cause the generated library to
15610 # depend on `.', always an invalid library. This was fixed in
15611 # development snapshots of GCC prior to 3.0.
15613 aix4 | aix4.[01] | aix4.[01].*)
15614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15616 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15619 can_build_shared=no
15623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15624 # soname into executable. Probably we can add versioning support to
15625 # collect2, so additional links can be useful in future.
15626 if test "$aix_use_runtimelinking" = yes; then
15627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15628 # instead of lib<name>.a to let people know that these are not
15629 # typical AIX shared libraries.
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 # We preserve .a as extension for shared libraries through AIX4.2
15633 # and later when we are not doing run time linking.
15634 library_names_spec='${libname}${release}.a $libname.a'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15637 shlibpath_var=LIBPATH
15644 # Since July 2007 AmigaOS4 officially supports .so libraries.
15645 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 library_names_spec='$libname.ixlibrary $libname.a'
15650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15651 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'
15657 library_names_spec='${libname}${shared_ext}'
15658 dynamic_linker="$host_os ld.so"
15659 shlibpath_var=LIBRARY_PATH
15663 version_type=linux # correct to gnu/linux during the next big refactor
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15671 # the default ld.so.conf also contains /usr/contrib/lib and
15672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15673 # libtool to hard-code these into programs
15676 cygwin* | mingw* | pw32* | cegcc*)
15677 version_type=windows
15682 case $GCC,$cc_basename in
15685 library_names_spec='$libname.dll.a'
15686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15687 postinstall_cmds='base_file=`basename \${file}`~
15688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15689 dldir=$destdir/`dirname \$dlpath`~
15690 test -d \$dldir || mkdir -p \$dldir~
15691 $install_prog $dir/$dlname \$dldir/$dlname~
15692 chmod a+x \$dldir/$dlname~
15693 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15694 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15697 dlpath=$dir/\$dldll~
15699 shlibpath_overrides_runpath=yes
15703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708 # MinGW DLLs use traditional 'lib' prefix
15709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712 # pw32 DLLs use 'pw' prefix rather than 'lib'
15713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716 dynamic_linker='Win32 ld.exe'
15721 libname_spec='$name'
15722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723 library_names_spec='${libname}.dll.lib'
15727 sys_lib_search_path_spec=
15730 for lt_path in $LIB
15733 # Let DOS variable expansion print the short 8.3 style file name.
15734 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15735 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15738 # Convert to MSYS style.
15739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15742 # Convert to unix form, then to dos form, then back to unix form
15743 # but this time dos style (no spaces!) so that the unix form looks
15744 # like /cygdrive/c/PROGRA~1:/cygdr...
15745 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15746 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15747 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15750 sys_lib_search_path_spec="$LIB"
15751 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15752 # It is most probably a Windows format PATH.
15753 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15755 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15757 # FIXME: find the short name or the path components, as spaces are
15758 # common. (e.g. "Program Files" -> "PROGRA~1")
15762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15763 postinstall_cmds='base_file=`basename \${file}`~
15764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15765 dldir=$destdir/`dirname \$dlpath`~
15766 test -d \$dldir || mkdir -p \$dldir~
15767 $install_prog $dir/$dlname \$dldir/$dlname'
15768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15769 dlpath=$dir/\$dldll~
15771 shlibpath_overrides_runpath=yes
15772 dynamic_linker='Win32 link.exe'
15776 # Assume MSVC wrapper
15777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15778 dynamic_linker='Win32 ld.exe'
15781 # FIXME: first we should search . and the directory the executable is in
15785 darwin* | rhapsody*)
15786 dynamic_linker="$host_os dyld"
15787 version_type=darwin
15790 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15791 soname_spec='${libname}${release}${major}$shared_ext'
15792 shlibpath_overrides_runpath=yes
15793 shlibpath_var=DYLD_LIBRARY_PATH
15794 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15800 version_type=linux # correct to gnu/linux during the next big refactor
15803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15804 soname_spec='${libname}${release}${shared_ext}$major'
15805 shlibpath_var=LD_LIBRARY_PATH
15808 freebsd* | dragonfly*)
15809 # DragonFly does not have aout. When/if they implement a new
15810 # versioning mechanism, adjust this.
15811 if test -x /usr/bin/objformat; then
15812 objformat=`/usr/bin/objformat`
15815 freebsd[23].*) objformat=aout ;;
15816 *) objformat=elf ;;
15819 version_type=freebsd-$objformat
15820 case $version_type in
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15831 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=yes
15836 freebsd3.[01]* | freebsdelf3.[01]*)
15837 shlibpath_overrides_runpath=yes
15838 hardcode_into_libs=yes
15840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15842 shlibpath_overrides_runpath=no
15843 hardcode_into_libs=yes
15845 *) # from 4.6 on, and DragonFly
15846 shlibpath_overrides_runpath=yes
15847 hardcode_into_libs=yes
15853 version_type=linux # correct to gnu/linux during the next big refactor
15856 dynamic_linker="$host_os runtime_loader"
15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15858 soname_spec='${libname}${release}${shared_ext}$major'
15859 shlibpath_var=LIBRARY_PATH
15860 shlibpath_overrides_runpath=yes
15861 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15862 hardcode_into_libs=yes
15865 hpux9* | hpux10* | hpux11*)
15866 # Give a soname corresponding to the major version so that dld.sl refuses to
15867 # link against other versions.
15874 hardcode_into_libs=yes
15875 dynamic_linker="$host_os dld.so"
15876 shlibpath_var=LD_LIBRARY_PATH
15877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 if test "X$HPUX_IA64_MODE" = X32; then
15881 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15883 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15889 hardcode_into_libs=yes
15890 dynamic_linker="$host_os dld.sl"
15891 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15900 dynamic_linker="$host_os dld.sl"
15901 shlibpath_var=SHLIB_PATH
15902 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15907 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15908 postinstall_cmds='chmod 555 $lib'
15909 # or fails outright, so override atomically:
15910 install_override_mode=555
15914 version_type=linux # correct to gnu/linux during the next big refactor
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 shlibpath_overrides_runpath=no
15922 hardcode_into_libs=yes
15925 irix5* | irix6* | nonstopux*)
15927 nonstopux*) version_type=nonstopux ;;
15929 if test "$lt_cv_prog_gnu_ld" = yes; then
15930 version_type=linux # correct to gnu/linux during the next big refactor
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15940 irix5* | nonstopux*)
15941 libsuff= shlibsuff=
15944 case $LD in # libtool.m4 will add one of these switches to LD
15945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15946 libsuff= shlibsuff= libmagic=32-bit;;
15947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15948 libsuff=32 shlibsuff=N32 libmagic=N32;;
15949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15951 *) libsuff= shlibsuff= libmagic=never-match;;
15955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15956 shlibpath_overrides_runpath=no
15957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15959 hardcode_into_libs=yes
15962 # No shared lib support for Linux oldld, aout, or coff.
15963 linux*oldld* | linux*aout* | linux*coff*)
15967 # This must be glibc/ELF.
15968 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15969 version_type=linux # correct to gnu/linux during the next big refactor
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 shlibpath_overrides_runpath=no
15978 # Some binutils ld are patched to set DT_RUNPATH
15979 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15980 $as_echo_n "(cached) " >&6
15982 lt_cv_shlibpath_overrides_runpath=no
15983 save_LDFLAGS=$LDFLAGS
15984 save_libdir=$libdir
15985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15998 if ac_fn_cxx_try_link "$LINENO"; then :
15999 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16000 lt_cv_shlibpath_overrides_runpath=yes
16003 rm -f core conftest.err conftest.$ac_objext \
16004 conftest$ac_exeext conftest.$ac_ext
16005 LDFLAGS=$save_LDFLAGS
16006 libdir=$save_libdir
16010 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16012 # This implies no fast_install, which is unacceptable.
16013 # Some rework will be needed to allow for fast_install
16014 # before this can be enabled.
16015 hardcode_into_libs=yes
16017 # Append ld.so.conf contents to the search path
16018 if test -f /etc/ld.so.conf; then
16019 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' ' '`
16020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16023 # We used to test for /lib/ld.so.1 and disable shared libraries on
16024 # powerpc, because MkLinux only supported shared libraries with the
16025 # GNU dynamic linker. Since this was broken with cross compilers,
16026 # most powerpc-linux boxes support dynamic linking these days and
16027 # people can always --disable-shared, the test was removed, and we
16028 # assume the GNU/Linux dynamic linker is in use.
16029 dynamic_linker='GNU/Linux ld.so'
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 shlibpath_overrides_runpath=no
16040 hardcode_into_libs=yes
16041 dynamic_linker='NetBSD ld.elf_so'
16048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16051 dynamic_linker='NetBSD (a.out) ld.so'
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 dynamic_linker='NetBSD ld.elf_so'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16059 hardcode_into_libs=yes
16063 version_type=linux # correct to gnu/linux during the next big refactor
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 shlibpath_overrides_runpath=yes
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 shlibpath_var=LD_LIBRARY_PATH
16076 shlibpath_overrides_runpath=no
16077 hardcode_into_libs=yes
16078 dynamic_linker='ldqnx.so'
16083 sys_lib_dlsearch_path_spec="/usr/lib"
16085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16088 *) need_version=no ;;
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16092 shlibpath_var=LD_LIBRARY_PATH
16093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16095 openbsd2.[89] | openbsd2.[89].*)
16096 shlibpath_overrides_runpath=no
16099 shlibpath_overrides_runpath=yes
16103 shlibpath_overrides_runpath=yes
16108 libname_spec='$name'
16111 library_names_spec='$libname${shared_ext} $libname.a'
16112 dynamic_linker='OS/2 ld.exe'
16113 shlibpath_var=LIBPATH
16116 osf3* | osf4* | osf5*)
16120 soname_spec='${libname}${release}${shared_ext}$major'
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16132 version_type=linux # correct to gnu/linux during the next big refactor
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 shlibpath_overrides_runpath=yes
16139 hardcode_into_libs=yes
16140 # ldd complains unless libraries are executable
16141 postinstall_cmds='chmod +x $lib'
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 if test "$with_gnu_ld" = yes; then
16157 version_type=linux # correct to gnu/linux during the next big refactor
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159 soname_spec='${libname}${release}${shared_ext}$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 case $host_vendor in
16163 shlibpath_overrides_runpath=no
16165 runpath_var=LD_RUN_PATH
16173 shlibpath_overrides_runpath=no
16174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16180 if test -d /usr/nec ;then
16181 version_type=linux # correct to gnu/linux during the next big refactor
16182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16183 soname_spec='$libname${shared_ext}.$major'
16184 shlibpath_var=LD_LIBRARY_PATH
16188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16189 version_type=freebsd-elf
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=yes
16196 hardcode_into_libs=yes
16197 if test "$with_gnu_ld" = yes; then
16198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16207 sys_lib_dlsearch_path_spec='/usr/lib'
16211 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16212 version_type=linux # correct to gnu/linux during the next big refactor
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216 shlibpath_var=LD_LIBRARY_PATH
16217 shlibpath_overrides_runpath=no
16218 hardcode_into_libs=yes
16222 version_type=linux # correct to gnu/linux during the next big refactor
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16233 $as_echo "$dynamic_linker" >&6; }
16234 test "$dynamic_linker" = no && can_build_shared=no
16236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16237 if test "$GCC" = yes; then
16238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16242 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16244 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16245 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16286 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16287 hardcode_action_CXX=
16288 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16289 test -n "$runpath_var_CXX" ||
16290 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16292 # We can hardcode non-existent directories.
16293 if test "$hardcode_direct_CXX" != no &&
16294 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16295 # have to relink, otherwise we might link with an installed library
16296 # when we should be linking with a yet-to-be-installed one
16297 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16298 test "$hardcode_minus_L_CXX" != no; then
16299 # Linking always hardcodes the temporary library directory.
16300 hardcode_action_CXX=relink
16302 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16303 hardcode_action_CXX=immediate
16306 # We cannot hardcode anything, or else we can only hardcode existing
16308 hardcode_action_CXX=unsupported
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16311 $as_echo "$hardcode_action_CXX" >&6; }
16313 if test "$hardcode_action_CXX" = relink ||
16314 test "$inherit_rpath_CXX" = yes; then
16315 # Fast installation is not supported
16316 enable_fast_install=no
16317 elif test "$shlibpath_overrides_runpath" = yes ||
16318 test "$enable_shared" = no; then
16319 # Fast installation is not necessary
16320 enable_fast_install=needless
16329 fi # test -n "$compiler"
16332 CFLAGS=$lt_save_CFLAGS
16336 with_gnu_ld=$lt_save_with_gnu_ld
16337 lt_cv_path_LDCXX=$lt_cv_path_LD
16338 lt_cv_path_LD=$lt_save_path_LD
16339 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16340 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16341 fi # test "$_lt_caught_CXX_error" != yes
16344 ac_cpp='$CPP $CPPFLAGS'
16345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16363 ac_config_commands="$ac_config_commands libtool"
16368 # Only expand once:
16376 ac_cpp='$CPP $CPPFLAGS'
16377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16384 $as_echo_n "checking for library containing dlopen... " >&6; }
16385 if ${ac_cv_search_dlopen+:} false; then :
16386 $as_echo_n "(cached) " >&6
16388 ac_func_search_save_LIBS=$LIBS
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16392 /* Override any GCC internal prototype to avoid an error.
16393 Use char because int might match the return type of a GCC
16394 builtin and then its argument prototype would still apply. */
16407 for ac_lib in '' dl; do
16408 if test -z "$ac_lib"; then
16409 ac_res="none required"
16412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16414 if ac_fn_c_try_link "$LINENO"; then :
16415 ac_cv_search_dlopen=$ac_res
16417 rm -f core conftest.err conftest.$ac_objext \
16419 if ${ac_cv_search_dlopen+:} false; then :
16423 if ${ac_cv_search_dlopen+:} false; then :
16426 ac_cv_search_dlopen=no
16428 rm conftest.$ac_ext
16429 LIBS=$ac_func_search_save_LIBS
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16432 $as_echo "$ac_cv_search_dlopen" >&6; }
16433 ac_res=$ac_cv_search_dlopen
16434 if test "$ac_res" != no; then :
16435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16437 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16439 if test "$ac_cv_search_dlopen" != "none required" ; then
16440 LIBADD_DLOPEN="-ldl"
16442 libltdl_cv_lib_dl_dlopen="yes"
16443 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16448 # include <dlfcn.h>
16459 if ac_fn_c_try_link "$LINENO"; then :
16461 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16463 libltdl_cv_func_dlopen="yes"
16464 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16467 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16468 if ${ac_cv_lib_svld_dlopen+:} false; then :
16469 $as_echo_n "(cached) " >&6
16471 ac_check_lib_save_LIBS=$LIBS
16472 LIBS="-lsvld $LIBS"
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16476 /* Override any GCC internal prototype to avoid an error.
16477 Use char because int might match the return type of a GCC
16478 builtin and then its argument prototype would still apply. */
16491 if ac_fn_c_try_link "$LINENO"; then :
16492 ac_cv_lib_svld_dlopen=yes
16494 ac_cv_lib_svld_dlopen=no
16496 rm -f core conftest.err conftest.$ac_objext \
16497 conftest$ac_exeext conftest.$ac_ext
16498 LIBS=$ac_check_lib_save_LIBS
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16501 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16502 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16504 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16506 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16507 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16511 rm -f core conftest.err conftest.$ac_objext \
16512 conftest$ac_exeext conftest.$ac_ext
16515 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16517 lt_save_LIBS="$LIBS"
16518 LIBS="$LIBS $LIBADD_DLOPEN"
16519 for ac_func in dlerror
16521 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16522 if test "x$ac_cv_func_dlerror" = xyes; then :
16523 cat >>confdefs.h <<_ACEOF
16524 #define HAVE_DLERROR 1
16530 LIBS="$lt_save_LIBS"
16535 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16536 if test "x$ac_cv_func_shl_load" = xyes; then :
16538 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16540 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16543 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16544 if ${ac_cv_lib_dld_shl_load+:} false; then :
16545 $as_echo_n "(cached) " >&6
16547 ac_check_lib_save_LIBS=$LIBS
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16552 /* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
16562 return shl_load ();
16567 if ac_fn_c_try_link "$LINENO"; then :
16568 ac_cv_lib_dld_shl_load=yes
16570 ac_cv_lib_dld_shl_load=no
16572 rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16574 LIBS=$ac_check_lib_save_LIBS
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16577 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16578 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16580 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16582 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16583 LIBADD_SHL_LOAD="-ldld"
16592 # We only want this for pre-Mac OS X 10.4.
16593 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16594 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16596 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16598 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16603 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16605 cygwin* | mingw* | os2* | pw32*)
16606 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16608 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16614 cat >>confdefs.h <<_ACEOF
16615 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16618 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16623 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16624 if ${ac_cv_lib_dld_dld_link+:} false; then :
16625 $as_echo_n "(cached) " >&6
16627 ac_check_lib_save_LIBS=$LIBS
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16632 /* Override any GCC internal prototype to avoid an error.
16633 Use char because int might match the return type of a GCC
16634 builtin and then its argument prototype would still apply. */
16642 return dld_link ();
16647 if ac_fn_c_try_link "$LINENO"; then :
16648 ac_cv_lib_dld_dld_link=yes
16650 ac_cv_lib_dld_dld_link=no
16652 rm -f core conftest.err conftest.$ac_objext \
16653 conftest$ac_exeext conftest.$ac_ext
16654 LIBS=$ac_check_lib_save_LIBS
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16657 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16658 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16660 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16662 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16669 if test -n "$LT_DLLOADERS"
16671 for lt_loader in $LT_DLLOADERS; do
16672 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16675 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16680 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16684 ac_cpp='$CPP $CPPFLAGS'
16685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16692 if test x$use_libtool != xno; then
16693 DEFAULT_OBJECT_TYPE=".lo"
16694 DEFAULT_ARCHIVE_TYPE=".la"
16695 DEFAULT_SHARED_OBJECT_TYPE=".la"
16696 LIBTOOL="\$(LIBTOOL)"
16697 LIBTOOL_INSTALL_TARGET="libtool-install"
16698 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16699 LIBTOOL_CLEAN_TARGET="libtool-clean"
16700 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16701 FD_PLUGIN_DIR="src/plugins/fd"
16704 DEFAULT_OBJECT_TYPE=".o"
16705 DEFAULT_ARCHIVE_TYPE=".a"
16706 DEFAULT_SHARED_OBJECT_TYPE=".so"
16707 LIBTOOL="# \$(LIBTOOL)"
16708 LIBTOOL_INSTALL_TARGET=""
16709 LIBTOOL_UNINSTALL_TARGET=""
16710 LIBTOOL_CLEAN_TARGET=""
16711 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16726 # Check whether --enable-includes was given.
16727 if test "${enable_includes+set}" = set; then :
16728 enableval=$enable_includes;
16729 if test x$enableval = xyes; then
16730 install_includes=yes
16738 if test x$use_libtool != xno -a x$install_includes = xyes; then
16739 INCLUDE_INSTALL_TARGET="install-includes"
16740 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16742 INCLUDE_INSTALL_TARGET=""
16743 INCLUDE_UNINSTALL_TARGET=""
16751 *cygwin* ) CYGWIN=yes;;
16755 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16761 HAVE_SUN_OS_FALSE='#'
16763 HAVE_SUN_OS_TRUE='#'
16766 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16773 HAVE_SUN_OS_FALSE='#'
16775 HAVE_SUN_OS_TRUE='#'
16780 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16786 HAVE_HURD_OS_FALSE='#'
16788 HAVE_HURD_OS_TRUE='#'
16789 HAVE_HURD_OS_FALSE=
16791 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16798 HAVE_HURD_OS_FALSE='#'
16800 HAVE_HURD_OS_TRUE='#'
16801 HAVE_HURD_OS_FALSE=
16805 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16811 HAVE_OSF1_OS_FALSE='#'
16813 HAVE_OSF1_OS_TRUE='#'
16814 HAVE_OSF1_OS_FALSE=
16816 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16823 HAVE_OSF1_OS_FALSE='#'
16825 HAVE_OSF1_OS_TRUE='#'
16826 HAVE_OSF1_OS_FALSE=
16830 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16836 HAVE_AIX_OS_FALSE='#'
16838 HAVE_AIX_OS_TRUE='#'
16841 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16848 HAVE_AIX_OS_FALSE='#'
16850 HAVE_AIX_OS_TRUE='#'
16855 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16861 HAVE_HPUX_OS_FALSE='#'
16863 HAVE_HPUX_OS_TRUE='#'
16864 HAVE_HPUX_OS_FALSE=
16866 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16873 HAVE_HPUX_OS_FALSE='#'
16875 HAVE_HPUX_OS_TRUE='#'
16876 HAVE_HPUX_OS_FALSE=
16880 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16885 HAVE_LINUX_OS_TRUE=
16886 HAVE_LINUX_OS_FALSE='#'
16888 HAVE_LINUX_OS_TRUE='#'
16889 HAVE_LINUX_OS_FALSE=
16891 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16897 HAVE_LINUX_OS_TRUE=
16898 HAVE_LINUX_OS_FALSE='#'
16900 HAVE_LINUX_OS_TRUE='#'
16901 HAVE_LINUX_OS_FALSE=
16905 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16910 HAVE_FREEBSD_OS_TRUE=
16911 HAVE_FREEBSD_OS_FALSE='#'
16913 HAVE_FREEBSD_OS_TRUE='#'
16914 HAVE_FREEBSD_OS_FALSE=
16916 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16922 HAVE_FREEBSD_OS_TRUE=
16923 HAVE_FREEBSD_OS_FALSE='#'
16925 HAVE_FREEBSD_OS_TRUE='#'
16926 HAVE_FREEBSD_OS_FALSE=
16930 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16935 HAVE_NETBSD_OS_TRUE=
16936 HAVE_NETBSD_OS_FALSE='#'
16938 HAVE_NETBSD_OS_TRUE='#'
16939 HAVE_NETBSD_OS_FALSE=
16941 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16947 HAVE_NETBSD_OS_TRUE=
16948 HAVE_NETBSD_OS_FALSE='#'
16950 HAVE_NETBSD_OS_TRUE='#'
16951 HAVE_NETBSD_OS_FALSE=
16955 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16960 HAVE_OPENBSD_OS_TRUE=
16961 HAVE_OPENBSD_OS_FALSE='#'
16963 HAVE_OPENBSD_OS_TRUE='#'
16964 HAVE_OPENBSD_OS_FALSE=
16966 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16972 HAVE_OPENBSD_OS_TRUE=
16973 HAVE_OPENBSD_OS_FALSE='#'
16975 HAVE_OPENBSD_OS_TRUE='#'
16976 HAVE_OPENBSD_OS_FALSE=
16980 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16986 HAVE_BSDI_OS_FALSE='#'
16988 HAVE_BSDI_OS_TRUE='#'
16989 HAVE_BSDI_OS_FALSE=
16991 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16998 HAVE_BSDI_OS_FALSE='#'
17000 HAVE_BSDI_OS_TRUE='#'
17001 HAVE_BSDI_OS_FALSE=
17005 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17011 HAVE_SGI_OS_FALSE='#'
17013 HAVE_SGI_OS_TRUE='#'
17016 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17023 HAVE_SGI_OS_FALSE='#'
17025 HAVE_SGI_OS_TRUE='#'
17030 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17036 HAVE_IRIX_OS_FALSE='#'
17038 HAVE_IRIX_OS_TRUE='#'
17039 HAVE_IRIX_OS_FALSE=
17041 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17048 HAVE_IRIX_OS_FALSE='#'
17050 HAVE_IRIX_OS_TRUE='#'
17051 HAVE_IRIX_OS_FALSE=
17055 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17060 HAVE_DARWIN_OS_TRUE=
17061 HAVE_DARWIN_OS_FALSE='#'
17063 HAVE_DARWIN_OS_TRUE='#'
17064 HAVE_DARWIN_OS_FALSE=
17066 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17072 HAVE_DARWIN_OS_TRUE=
17073 HAVE_DARWIN_OS_FALSE='#'
17075 HAVE_DARWIN_OS_TRUE='#'
17076 HAVE_DARWIN_OS_FALSE=
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17082 $as_echo_n "checking for Operating System Distribution... " >&6; }
17083 if test "x$DISTNAME" != "x"
17085 echo "distname set to $DISTNAME"
17086 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17089 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17092 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17095 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17098 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17101 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17104 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17107 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17110 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17113 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17116 elif test -f /etc/SuSE-release
17119 elif test -d /etc/SuSEconfig
17122 elif test -f /etc/mandrake-release
17125 elif test -f /etc/whitebox-release
17128 elif test -f /etc/redhat-release
17131 elif test -f /etc/gentoo-release
17134 elif test -f /etc/debian_version
17137 elif test -f /etc/slackware-version
17140 elif test x$host_vendor = xapple
17143 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17146 elif test -f /etc/engarde-version
17149 elif test -f /etc/arch-release
17152 elif test "$CYGWIN" = yes
17155 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17161 $as_echo "done" >&6; }
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17165 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17167 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17168 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17169 $as_echo_n "(cached) " >&6
17171 cat >conftest.make <<\_ACEOF
17174 @echo '@@@%%%=$(MAKE)=@@@%%%'
17176 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17177 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17178 *@@@%%%=?*=@@@%%%*)
17179 eval ac_cv_prog_make_${ac_make}_set=yes;;
17181 eval ac_cv_prog_make_${ac_make}_set=no;;
17183 rm -f conftest.make
17185 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17187 $as_echo "yes" >&6; }
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17192 SET_MAKE="MAKE=${MAKE-make}"
17198 if test -n "$ac_aux_dir"; then
17199 case "$ac_aux_dir" in
17200 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17201 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17204 if test -z "$MKINSTALLDIRS"; then
17205 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17211 $as_echo_n "checking whether NLS is requested... " >&6; }
17212 # Check whether --enable-nls was given.
17213 if test "${enable_nls+set}" = set; then :
17214 enableval=$enable_nls; USE_NLS=$enableval
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17220 $as_echo "$USE_NLS" >&6; }
17227 # Prepare PATH_SEPARATOR.
17228 # The user is always right.
17229 if test "${PATH_SEPARATOR+set}" != set; then
17230 echo "#! /bin/sh" >conf$$.sh
17231 echo "exit 0" >>conf$$.sh
17233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17241 # Find out how to test for executable files. Don't use a zero-byte file,
17242 # as systems may use methods other than mode bits to determine executability.
17243 cat >conf$$.file <<_ASEOF
17247 chmod +x conf$$.file
17248 if test -x conf$$.file >/dev/null 2>&1; then
17249 ac_executable_p="test -x"
17251 ac_executable_p="test -f"
17255 # Extract the first word of "msgfmt", so it can be a program name with args.
17256 set dummy msgfmt; ac_word=$2
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17258 $as_echo_n "checking for $ac_word... " >&6; }
17259 if ${ac_cv_path_MSGFMT+:} false; then :
17260 $as_echo_n "(cached) " >&6
17264 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17267 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17268 for ac_dir in $PATH; do
17270 test -z "$ac_dir" && ac_dir=.
17271 for ac_exec_ext in '' $ac_executable_extensions; do
17272 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17273 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17274 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17275 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17276 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17287 MSGFMT="$ac_cv_path_MSGFMT"
17288 if test "$MSGFMT" != ":"; then
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17290 $as_echo "$MSGFMT" >&6; }
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17293 $as_echo "no" >&6; }
17296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17297 set dummy gmsgfmt; ac_word=$2
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17299 $as_echo_n "checking for $ac_word... " >&6; }
17300 if ${ac_cv_path_GMSGFMT+:} false; then :
17301 $as_echo_n "(cached) " >&6
17305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17309 for as_dir in $PATH
17312 test -z "$as_dir" && as_dir=.
17313 for ac_exec_ext in '' $ac_executable_extensions; do
17314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17315 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17323 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17327 GMSGFMT=$ac_cv_path_GMSGFMT
17328 if test -n "$GMSGFMT"; then
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17330 $as_echo "$GMSGFMT" >&6; }
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 $as_echo "no" >&6; }
17339 # Prepare PATH_SEPARATOR.
17340 # The user is always right.
17341 if test "${PATH_SEPARATOR+set}" != set; then
17342 echo "#! /bin/sh" >conf$$.sh
17343 echo "exit 0" >>conf$$.sh
17345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17353 # Find out how to test for executable files. Don't use a zero-byte file,
17354 # as systems may use methods other than mode bits to determine executability.
17355 cat >conf$$.file <<_ASEOF
17359 chmod +x conf$$.file
17360 if test -x conf$$.file >/dev/null 2>&1; then
17361 ac_executable_p="test -x"
17363 ac_executable_p="test -f"
17367 # Extract the first word of "xgettext", so it can be a program name with args.
17368 set dummy xgettext; ac_word=$2
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17370 $as_echo_n "checking for $ac_word... " >&6; }
17371 if ${ac_cv_path_XGETTEXT+:} false; then :
17372 $as_echo_n "(cached) " >&6
17374 case "$XGETTEXT" in
17376 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17379 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17380 for ac_dir in $PATH; do
17382 test -z "$ac_dir" && ac_dir=.
17383 for ac_exec_ext in '' $ac_executable_extensions; do
17384 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17385 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17386 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17387 (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
17388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17395 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17399 XGETTEXT="$ac_cv_path_XGETTEXT"
17400 if test "$XGETTEXT" != ":"; then
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17402 $as_echo "$XGETTEXT" >&6; }
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17405 $as_echo "no" >&6; }
17411 # Prepare PATH_SEPARATOR.
17412 # The user is always right.
17413 if test "${PATH_SEPARATOR+set}" != set; then
17414 echo "#! /bin/sh" >conf$$.sh
17415 echo "exit 0" >>conf$$.sh
17417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17425 # Find out how to test for executable files. Don't use a zero-byte file,
17426 # as systems may use methods other than mode bits to determine executability.
17427 cat >conf$$.file <<_ASEOF
17431 chmod +x conf$$.file
17432 if test -x conf$$.file >/dev/null 2>&1; then
17433 ac_executable_p="test -x"
17435 ac_executable_p="test -f"
17439 # Extract the first word of "msgmerge", so it can be a program name with args.
17440 set dummy msgmerge; ac_word=$2
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17442 $as_echo_n "checking for $ac_word... " >&6; }
17443 if ${ac_cv_path_MSGMERGE+:} false; then :
17444 $as_echo_n "(cached) " >&6
17446 case "$MSGMERGE" in
17448 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17451 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17452 for ac_dir in $PATH; do
17454 test -z "$ac_dir" && ac_dir=.
17455 for ac_exec_ext in '' $ac_executable_extensions; do
17456 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17457 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17458 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17459 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17466 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17470 MSGMERGE="$ac_cv_path_MSGMERGE"
17471 if test "$MSGMERGE" != ":"; then
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17473 $as_echo "$MSGMERGE" >&6; }
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17480 if test "$GMSGFMT" != ":"; then
17481 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17482 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17485 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17487 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17492 if test "$XGETTEXT" != ":"; then
17493 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17494 (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
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17498 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17504 ac_config_commands="$ac_config_commands default-1"
17508 if test "X$prefix" = "XNONE"; then
17509 acl_final_prefix="$ac_default_prefix"
17511 acl_final_prefix="$prefix"
17513 if test "X$exec_prefix" = "XNONE"; then
17514 acl_final_exec_prefix='${prefix}'
17516 acl_final_exec_prefix="$exec_prefix"
17518 acl_save_prefix="$prefix"
17519 prefix="$acl_final_prefix"
17520 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17521 prefix="$acl_save_prefix"
17524 # Check whether --with-gnu-ld was given.
17525 if test "${with_gnu_ld+set}" = set; then :
17526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17531 # Prepare PATH_SEPARATOR.
17532 # The user is always right.
17533 if test "${PATH_SEPARATOR+set}" != set; then
17534 echo "#! /bin/sh" >conf$$.sh
17535 echo "exit 0" >>conf$$.sh
17537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17545 if test "$GCC" = yes; then
17546 # Check if gcc -print-prog-name=ld gives a path.
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17548 $as_echo_n "checking for ld used by GCC... " >&6; }
17551 # gcc leaves a trailing carriage return which upsets mingw
17552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17557 # Accept absolute paths.
17558 [\\/]* | [A-Za-z]:[\\/]*)
17559 re_direlt='/[^/][^/]*/\.\./'
17560 # Canonicalize the path of ld
17561 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17562 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17565 test -z "$LD" && LD="$ac_prog"
17568 # If it fails, then pretend we aren't using GCC.
17572 # If it is relative, then search for the first ld in PATH.
17573 with_gnu_ld=unknown
17576 elif test "$with_gnu_ld" = yes; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17578 $as_echo_n "checking for GNU ld... " >&6; }
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17581 $as_echo_n "checking for non-GNU ld... " >&6; }
17583 if ${acl_cv_path_LD+:} false; then :
17584 $as_echo_n "(cached) " >&6
17586 if test -z "$LD"; then
17587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17588 for ac_dir in $PATH; do
17589 test -z "$ac_dir" && ac_dir=.
17590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17591 acl_cv_path_LD="$ac_dir/$ac_prog"
17592 # Check to see if the program is GNU ld. I'd rather use --version,
17593 # but apparently some GNU ld's only accept -v.
17594 # Break only if it was the GNU/non-GNU ld that we prefer.
17595 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17596 *GNU* | *'with BFD'*)
17597 test "$with_gnu_ld" != no && break ;;
17599 test "$with_gnu_ld" != yes && break ;;
17605 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17609 LD="$acl_cv_path_LD"
17610 if test -n "$LD"; then
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17612 $as_echo "$LD" >&6; }
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17615 $as_echo "no" >&6; }
17617 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17619 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17620 if ${acl_cv_prog_gnu_ld+:} false; then :
17621 $as_echo_n "(cached) " >&6
17623 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17624 case `$LD -v 2>&1 </dev/null` in
17625 *GNU* | *'with BFD'*)
17626 acl_cv_prog_gnu_ld=yes ;;
17628 acl_cv_prog_gnu_ld=no ;;
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17632 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17633 with_gnu_ld=$acl_cv_prog_gnu_ld
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17639 $as_echo_n "checking for shared library run path origin... " >&6; }
17640 if ${acl_cv_rpath+:} false; then :
17641 $as_echo_n "(cached) " >&6
17644 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17645 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17647 rm -f ./conftest.sh
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17652 $as_echo "$acl_cv_rpath" >&6; }
17654 libext="$acl_cv_libext"
17655 shlibext="$acl_cv_shlibext"
17656 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17657 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17658 hardcode_direct="$acl_cv_hardcode_direct"
17659 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17660 # Check whether --enable-rpath was given.
17661 if test "${enable_rpath+set}" = set; then :
17662 enableval=$enable_rpath; :
17676 acl_save_prefix="$prefix"
17677 prefix="$acl_final_prefix"
17678 acl_save_exec_prefix="$exec_prefix"
17679 exec_prefix="$acl_final_exec_prefix"
17681 eval additional_includedir=\"$includedir\"
17682 eval additional_libdir=\"$libdir\"
17684 exec_prefix="$acl_save_exec_prefix"
17685 prefix="$acl_save_prefix"
17688 # Check whether --with-libiconv-prefix was given.
17689 if test "${with_libiconv_prefix+set}" = set; then :
17690 withval=$with_libiconv_prefix;
17691 if test "X$withval" = "Xno"; then
17694 if test "X$withval" = "X"; then
17696 acl_save_prefix="$prefix"
17697 prefix="$acl_final_prefix"
17698 acl_save_exec_prefix="$exec_prefix"
17699 exec_prefix="$acl_final_exec_prefix"
17701 eval additional_includedir=\"$includedir\"
17702 eval additional_libdir=\"$libdir\"
17704 exec_prefix="$acl_save_exec_prefix"
17705 prefix="$acl_save_prefix"
17708 additional_includedir="$withval/include"
17709 additional_libdir="$withval/lib"
17720 names_already_handled=
17721 names_next_round='iconv '
17722 while test -n "$names_next_round"; do
17723 names_this_round="$names_next_round"
17725 for name in $names_this_round; do
17727 for n in $names_already_handled; do
17728 if test "$n" = "$name"; then
17729 already_handled=yes
17733 if test -z "$already_handled"; then
17734 names_already_handled="$names_already_handled $name"
17735 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17736 eval value=\"\$HAVE_LIB$uppername\"
17737 if test -n "$value"; then
17738 if test "$value" = yes; then
17739 eval value=\"\$LIB$uppername\"
17740 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17741 eval value=\"\$LTLIB$uppername\"
17742 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17751 if test $use_additional = yes; then
17752 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17753 found_dir="$additional_libdir"
17754 found_so="$additional_libdir/lib$name.$shlibext"
17755 if test -f "$additional_libdir/lib$name.la"; then
17756 found_la="$additional_libdir/lib$name.la"
17759 if test -f "$additional_libdir/lib$name.$libext"; then
17760 found_dir="$additional_libdir"
17761 found_a="$additional_libdir/lib$name.$libext"
17762 if test -f "$additional_libdir/lib$name.la"; then
17763 found_la="$additional_libdir/lib$name.la"
17768 if test "X$found_dir" = "X"; then
17769 for x in $LDFLAGS $LTLIBICONV; do
17771 acl_save_prefix="$prefix"
17772 prefix="$acl_final_prefix"
17773 acl_save_exec_prefix="$exec_prefix"
17774 exec_prefix="$acl_final_exec_prefix"
17776 exec_prefix="$acl_save_exec_prefix"
17777 prefix="$acl_save_prefix"
17781 dir=`echo "X$x" | sed -e 's/^X-L//'`
17782 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17784 found_so="$dir/lib$name.$shlibext"
17785 if test -f "$dir/lib$name.la"; then
17786 found_la="$dir/lib$name.la"
17789 if test -f "$dir/lib$name.$libext"; then
17791 found_a="$dir/lib$name.$libext"
17792 if test -f "$dir/lib$name.la"; then
17793 found_la="$dir/lib$name.la"
17799 if test "X$found_dir" != "X"; then
17804 if test "X$found_dir" != "X"; then
17805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17806 if test "X$found_so" != "X"; then
17807 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17811 for x in $ltrpathdirs; do
17812 if test "X$x" = "X$found_dir"; then
17817 if test -z "$haveit"; then
17818 ltrpathdirs="$ltrpathdirs $found_dir"
17820 if test "$hardcode_direct" = yes; then
17821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17823 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17826 for x in $rpathdirs; do
17827 if test "X$x" = "X$found_dir"; then
17832 if test -z "$haveit"; then
17833 rpathdirs="$rpathdirs $found_dir"
17837 for x in $LDFLAGS $LIBICONV; do
17839 acl_save_prefix="$prefix"
17840 prefix="$acl_final_prefix"
17841 acl_save_exec_prefix="$exec_prefix"
17842 exec_prefix="$acl_final_exec_prefix"
17844 exec_prefix="$acl_save_exec_prefix"
17845 prefix="$acl_save_prefix"
17847 if test "X$x" = "X-L$found_dir"; then
17852 if test -z "$haveit"; then
17853 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17855 if test "$hardcode_minus_L" != no; then
17856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17858 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17864 if test "X$found_a" != "X"; then
17865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17870 additional_includedir=
17871 case "$found_dir" in
17873 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17874 additional_includedir="$basedir/include"
17877 if test "X$additional_includedir" != "X"; then
17878 if test "X$additional_includedir" != "X/usr/include"; then
17880 if test "X$additional_includedir" = "X/usr/local/include"; then
17881 if test -n "$GCC"; then
17883 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17887 if test -z "$haveit"; then
17888 for x in $CPPFLAGS $INCICONV; do
17890 acl_save_prefix="$prefix"
17891 prefix="$acl_final_prefix"
17892 acl_save_exec_prefix="$exec_prefix"
17893 exec_prefix="$acl_final_exec_prefix"
17895 exec_prefix="$acl_save_exec_prefix"
17896 prefix="$acl_save_prefix"
17898 if test "X$x" = "X-I$additional_includedir"; then
17903 if test -z "$haveit"; then
17904 if test -d "$additional_includedir"; then
17905 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17911 if test -n "$found_la"; then
17912 save_libdir="$libdir"
17913 case "$found_la" in
17914 */* | *\\*) . "$found_la" ;;
17915 *) . "./$found_la" ;;
17917 libdir="$save_libdir"
17918 for dep in $dependency_libs; do
17921 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17922 if test "X$additional_libdir" != "X/usr/lib"; then
17924 if test "X$additional_libdir" = "X/usr/local/lib"; then
17925 if test -n "$GCC"; then
17927 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17931 if test -z "$haveit"; then
17933 for x in $LDFLAGS $LIBICONV; do
17935 acl_save_prefix="$prefix"
17936 prefix="$acl_final_prefix"
17937 acl_save_exec_prefix="$exec_prefix"
17938 exec_prefix="$acl_final_exec_prefix"
17940 exec_prefix="$acl_save_exec_prefix"
17941 prefix="$acl_save_prefix"
17943 if test "X$x" = "X-L$additional_libdir"; then
17948 if test -z "$haveit"; then
17949 if test -d "$additional_libdir"; then
17950 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17954 for x in $LDFLAGS $LTLIBICONV; do
17956 acl_save_prefix="$prefix"
17957 prefix="$acl_final_prefix"
17958 acl_save_exec_prefix="$exec_prefix"
17959 exec_prefix="$acl_final_exec_prefix"
17961 exec_prefix="$acl_save_exec_prefix"
17962 prefix="$acl_save_prefix"
17964 if test "X$x" = "X-L$additional_libdir"; then
17969 if test -z "$haveit"; then
17970 if test -d "$additional_libdir"; then
17971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17978 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17979 if test "$enable_rpath" != no; then
17981 for x in $rpathdirs; do
17982 if test "X$x" = "X$dir"; then
17987 if test -z "$haveit"; then
17988 rpathdirs="$rpathdirs $dir"
17991 for x in $ltrpathdirs; do
17992 if test "X$x" = "X$dir"; then
17997 if test -z "$haveit"; then
17998 ltrpathdirs="$ltrpathdirs $dir"
18003 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18009 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18016 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18023 if test "X$rpathdirs" != "X"; then
18024 if test -n "$hardcode_libdir_separator"; then
18026 for found_dir in $rpathdirs; do
18027 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18029 acl_save_libdir="$libdir"
18031 eval flag=\"$hardcode_libdir_flag_spec\"
18032 libdir="$acl_save_libdir"
18033 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18035 for found_dir in $rpathdirs; do
18036 acl_save_libdir="$libdir"
18037 libdir="$found_dir"
18038 eval flag=\"$hardcode_libdir_flag_spec\"
18039 libdir="$acl_save_libdir"
18040 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18044 if test "X$ltrpathdirs" != "X"; then
18045 for found_dir in $ltrpathdirs; do
18046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18068 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18069 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18070 $as_echo_n "(cached) " >&6
18072 gt_save_CPPFLAGS="$CPPFLAGS"
18073 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18074 gt_save_LIBS="$LIBS"
18075 LIBS="$LIBS -framework CoreFoundation"
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078 #include <CFPreferences.h>
18082 CFPreferencesCopyAppValue(NULL, NULL)
18087 if ac_fn_c_try_link "$LINENO"; then :
18088 gt_cv_func_CFPreferencesCopyAppValue=yes
18090 gt_cv_func_CFPreferencesCopyAppValue=no
18092 rm -f core conftest.err conftest.$ac_objext \
18093 conftest$ac_exeext conftest.$ac_ext
18094 CPPFLAGS="$gt_save_CPPFLAGS"
18095 LIBS="$gt_save_LIBS"
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18098 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18099 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18101 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18105 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18106 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18107 $as_echo_n "(cached) " >&6
18109 gt_save_CPPFLAGS="$CPPFLAGS"
18110 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18111 gt_save_LIBS="$LIBS"
18112 LIBS="$LIBS -framework CoreFoundation"
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115 #include <CFLocale.h>
18119 CFLocaleCopyCurrent();
18124 if ac_fn_c_try_link "$LINENO"; then :
18125 gt_cv_func_CFLocaleCopyCurrent=yes
18127 gt_cv_func_CFLocaleCopyCurrent=no
18129 rm -f core conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 CPPFLAGS="$gt_save_CPPFLAGS"
18132 LIBS="$gt_save_LIBS"
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18135 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18136 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18138 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18142 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18143 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18150 $as_echo_n "checking whether NLS is requested... " >&6; }
18151 # Check whether --enable-nls was given.
18152 if test "${enable_nls+set}" = set; then :
18153 enableval=$enable_nls; USE_NLS=$enableval
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18159 $as_echo "$USE_NLS" >&6; }
18168 if test "$USE_NLS" = "yes"; then
18169 gt_use_preinstalled_gnugettext=no
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18177 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18178 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18179 $as_echo_n "(cached) " >&6
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18183 #include <libintl.h>
18184 extern int _nl_msg_cat_cntr;
18185 extern int *_nl_domain_bindings;
18189 bindtextdomain ("", "");
18190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18195 if ac_fn_c_try_link "$LINENO"; then :
18196 gt_cv_func_gnugettext1_libc=yes
18198 gt_cv_func_gnugettext1_libc=no
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18204 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18206 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18212 am_save_CPPFLAGS="$CPPFLAGS"
18214 for element in $INCICONV; do
18216 for x in $CPPFLAGS; do
18218 acl_save_prefix="$prefix"
18219 prefix="$acl_final_prefix"
18220 acl_save_exec_prefix="$exec_prefix"
18221 exec_prefix="$acl_final_exec_prefix"
18223 exec_prefix="$acl_save_exec_prefix"
18224 prefix="$acl_save_prefix"
18226 if test "X$x" = "X$element"; then
18231 if test -z "$haveit"; then
18232 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18238 $as_echo_n "checking for iconv... " >&6; }
18239 if ${am_cv_func_iconv+:} false; then :
18240 $as_echo_n "(cached) " >&6
18243 am_cv_func_iconv="no, consider installing GNU libiconv"
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18247 #include <stdlib.h>
18252 iconv_t cd = iconv_open("","");
18253 iconv(cd,NULL,NULL,NULL,NULL);
18259 if ac_fn_c_try_link "$LINENO"; then :
18260 am_cv_func_iconv=yes
18262 rm -f core conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18264 if test "$am_cv_func_iconv" != yes; then
18265 am_save_LIBS="$LIBS"
18266 LIBS="$LIBS $LIBICONV"
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h. */
18269 #include <stdlib.h>
18274 iconv_t cd = iconv_open("","");
18275 iconv(cd,NULL,NULL,NULL,NULL);
18281 if ac_fn_c_try_link "$LINENO"; then :
18282 am_cv_lib_iconv=yes
18283 am_cv_func_iconv=yes
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 LIBS="$am_save_LIBS"
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18292 $as_echo "$am_cv_func_iconv" >&6; }
18293 if test "$am_cv_func_iconv" = yes; then
18295 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18298 if test "$am_cv_lib_iconv" = yes; then
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18300 $as_echo_n "checking how to link with libiconv... " >&6; }
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18302 $as_echo "$LIBICONV" >&6; }
18304 CPPFLAGS="$am_save_CPPFLAGS"
18316 acl_save_prefix="$prefix"
18317 prefix="$acl_final_prefix"
18318 acl_save_exec_prefix="$exec_prefix"
18319 exec_prefix="$acl_final_exec_prefix"
18321 eval additional_includedir=\"$includedir\"
18322 eval additional_libdir=\"$libdir\"
18324 exec_prefix="$acl_save_exec_prefix"
18325 prefix="$acl_save_prefix"
18328 # Check whether --with-libintl-prefix was given.
18329 if test "${with_libintl_prefix+set}" = set; then :
18330 withval=$with_libintl_prefix;
18331 if test "X$withval" = "Xno"; then
18334 if test "X$withval" = "X"; then
18336 acl_save_prefix="$prefix"
18337 prefix="$acl_final_prefix"
18338 acl_save_exec_prefix="$exec_prefix"
18339 exec_prefix="$acl_final_exec_prefix"
18341 eval additional_includedir=\"$includedir\"
18342 eval additional_libdir=\"$libdir\"
18344 exec_prefix="$acl_save_exec_prefix"
18345 prefix="$acl_save_prefix"
18348 additional_includedir="$withval/include"
18349 additional_libdir="$withval/lib"
18360 names_already_handled=
18361 names_next_round='intl '
18362 while test -n "$names_next_round"; do
18363 names_this_round="$names_next_round"
18365 for name in $names_this_round; do
18367 for n in $names_already_handled; do
18368 if test "$n" = "$name"; then
18369 already_handled=yes
18373 if test -z "$already_handled"; then
18374 names_already_handled="$names_already_handled $name"
18375 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18376 eval value=\"\$HAVE_LIB$uppername\"
18377 if test -n "$value"; then
18378 if test "$value" = yes; then
18379 eval value=\"\$LIB$uppername\"
18380 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18381 eval value=\"\$LTLIB$uppername\"
18382 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18391 if test $use_additional = yes; then
18392 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18393 found_dir="$additional_libdir"
18394 found_so="$additional_libdir/lib$name.$shlibext"
18395 if test -f "$additional_libdir/lib$name.la"; then
18396 found_la="$additional_libdir/lib$name.la"
18399 if test -f "$additional_libdir/lib$name.$libext"; then
18400 found_dir="$additional_libdir"
18401 found_a="$additional_libdir/lib$name.$libext"
18402 if test -f "$additional_libdir/lib$name.la"; then
18403 found_la="$additional_libdir/lib$name.la"
18408 if test "X$found_dir" = "X"; then
18409 for x in $LDFLAGS $LTLIBINTL; do
18411 acl_save_prefix="$prefix"
18412 prefix="$acl_final_prefix"
18413 acl_save_exec_prefix="$exec_prefix"
18414 exec_prefix="$acl_final_exec_prefix"
18416 exec_prefix="$acl_save_exec_prefix"
18417 prefix="$acl_save_prefix"
18421 dir=`echo "X$x" | sed -e 's/^X-L//'`
18422 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18424 found_so="$dir/lib$name.$shlibext"
18425 if test -f "$dir/lib$name.la"; then
18426 found_la="$dir/lib$name.la"
18429 if test -f "$dir/lib$name.$libext"; then
18431 found_a="$dir/lib$name.$libext"
18432 if test -f "$dir/lib$name.la"; then
18433 found_la="$dir/lib$name.la"
18439 if test "X$found_dir" != "X"; then
18444 if test "X$found_dir" != "X"; then
18445 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18446 if test "X$found_so" != "X"; then
18447 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18448 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18451 for x in $ltrpathdirs; do
18452 if test "X$x" = "X$found_dir"; then
18457 if test -z "$haveit"; then
18458 ltrpathdirs="$ltrpathdirs $found_dir"
18460 if test "$hardcode_direct" = yes; then
18461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18463 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18464 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18466 for x in $rpathdirs; do
18467 if test "X$x" = "X$found_dir"; then
18472 if test -z "$haveit"; then
18473 rpathdirs="$rpathdirs $found_dir"
18477 for x in $LDFLAGS $LIBINTL; do
18479 acl_save_prefix="$prefix"
18480 prefix="$acl_final_prefix"
18481 acl_save_exec_prefix="$exec_prefix"
18482 exec_prefix="$acl_final_exec_prefix"
18484 exec_prefix="$acl_save_exec_prefix"
18485 prefix="$acl_save_prefix"
18487 if test "X$x" = "X-L$found_dir"; then
18492 if test -z "$haveit"; then
18493 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18495 if test "$hardcode_minus_L" != no; then
18496 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18498 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18504 if test "X$found_a" != "X"; then
18505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18507 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18510 additional_includedir=
18511 case "$found_dir" in
18513 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18514 additional_includedir="$basedir/include"
18517 if test "X$additional_includedir" != "X"; then
18518 if test "X$additional_includedir" != "X/usr/include"; then
18520 if test "X$additional_includedir" = "X/usr/local/include"; then
18521 if test -n "$GCC"; then
18523 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18527 if test -z "$haveit"; then
18528 for x in $CPPFLAGS $INCINTL; do
18530 acl_save_prefix="$prefix"
18531 prefix="$acl_final_prefix"
18532 acl_save_exec_prefix="$exec_prefix"
18533 exec_prefix="$acl_final_exec_prefix"
18535 exec_prefix="$acl_save_exec_prefix"
18536 prefix="$acl_save_prefix"
18538 if test "X$x" = "X-I$additional_includedir"; then
18543 if test -z "$haveit"; then
18544 if test -d "$additional_includedir"; then
18545 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18551 if test -n "$found_la"; then
18552 save_libdir="$libdir"
18553 case "$found_la" in
18554 */* | *\\*) . "$found_la" ;;
18555 *) . "./$found_la" ;;
18557 libdir="$save_libdir"
18558 for dep in $dependency_libs; do
18561 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18562 if test "X$additional_libdir" != "X/usr/lib"; then
18564 if test "X$additional_libdir" = "X/usr/local/lib"; then
18565 if test -n "$GCC"; then
18567 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18571 if test -z "$haveit"; then
18573 for x in $LDFLAGS $LIBINTL; do
18575 acl_save_prefix="$prefix"
18576 prefix="$acl_final_prefix"
18577 acl_save_exec_prefix="$exec_prefix"
18578 exec_prefix="$acl_final_exec_prefix"
18580 exec_prefix="$acl_save_exec_prefix"
18581 prefix="$acl_save_prefix"
18583 if test "X$x" = "X-L$additional_libdir"; then
18588 if test -z "$haveit"; then
18589 if test -d "$additional_libdir"; then
18590 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18594 for x in $LDFLAGS $LTLIBINTL; do
18596 acl_save_prefix="$prefix"
18597 prefix="$acl_final_prefix"
18598 acl_save_exec_prefix="$exec_prefix"
18599 exec_prefix="$acl_final_exec_prefix"
18601 exec_prefix="$acl_save_exec_prefix"
18602 prefix="$acl_save_prefix"
18604 if test "X$x" = "X-L$additional_libdir"; then
18609 if test -z "$haveit"; then
18610 if test -d "$additional_libdir"; then
18611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18618 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18619 if test "$enable_rpath" != no; then
18621 for x in $rpathdirs; do
18622 if test "X$x" = "X$dir"; then
18627 if test -z "$haveit"; then
18628 rpathdirs="$rpathdirs $dir"
18631 for x in $ltrpathdirs; do
18632 if test "X$x" = "X$dir"; then
18637 if test -z "$haveit"; then
18638 ltrpathdirs="$ltrpathdirs $dir"
18643 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18646 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18649 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18650 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18656 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18657 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18663 if test "X$rpathdirs" != "X"; then
18664 if test -n "$hardcode_libdir_separator"; then
18666 for found_dir in $rpathdirs; do
18667 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18669 acl_save_libdir="$libdir"
18671 eval flag=\"$hardcode_libdir_flag_spec\"
18672 libdir="$acl_save_libdir"
18673 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18675 for found_dir in $rpathdirs; do
18676 acl_save_libdir="$libdir"
18677 libdir="$found_dir"
18678 eval flag=\"$hardcode_libdir_flag_spec\"
18679 libdir="$acl_save_libdir"
18680 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18684 if test "X$ltrpathdirs" != "X"; then
18685 for found_dir in $ltrpathdirs; do
18686 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18691 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18692 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18693 $as_echo_n "(cached) " >&6
18695 gt_save_CPPFLAGS="$CPPFLAGS"
18696 CPPFLAGS="$CPPFLAGS $INCINTL"
18697 gt_save_LIBS="$LIBS"
18698 LIBS="$LIBS $LIBINTL"
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701 #include <libintl.h>
18702 extern int _nl_msg_cat_cntr;
18707 const char *_nl_expand_alias (const char *);
18711 bindtextdomain ("", "");
18712 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18717 if ac_fn_c_try_link "$LINENO"; then :
18718 gt_cv_func_gnugettext1_libintl=yes
18720 gt_cv_func_gnugettext1_libintl=no
18722 rm -f core conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18725 LIBS="$LIBS $LIBICONV"
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728 #include <libintl.h>
18729 extern int _nl_msg_cat_cntr;
18734 const char *_nl_expand_alias (const char *);
18738 bindtextdomain ("", "");
18739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18744 if ac_fn_c_try_link "$LINENO"; then :
18745 LIBINTL="$LIBINTL $LIBICONV"
18746 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18747 gt_cv_func_gnugettext1_libintl=yes
18750 rm -f core conftest.err conftest.$ac_objext \
18751 conftest$ac_exeext conftest.$ac_ext
18753 CPPFLAGS="$gt_save_CPPFLAGS"
18754 LIBS="$gt_save_LIBS"
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18757 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18760 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18761 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18762 && test "$PACKAGE" != gettext-runtime \
18763 && test "$PACKAGE" != gettext-tools; }; then
18764 gt_use_preinstalled_gnugettext=yes
18773 if test -n "$INTL_MACOSX_LIBS"; then
18774 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18775 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18776 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18777 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18781 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18782 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18784 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18792 $as_echo_n "checking whether to use NLS... " >&6; }
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18794 $as_echo "$USE_NLS" >&6; }
18795 if test "$USE_NLS" = "yes"; then
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18797 $as_echo_n "checking where the gettext function comes from... " >&6; }
18798 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18799 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18800 gt_source="external libintl"
18805 gt_source="included intl directory"
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18808 $as_echo "$gt_source" >&6; }
18811 if test "$USE_NLS" = "yes"; then
18813 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18814 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18816 $as_echo_n "checking how to link with libintl... " >&6; }
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18818 $as_echo "$LIBINTL" >&6; }
18820 for element in $INCINTL; do
18822 for x in $CPPFLAGS; do
18824 acl_save_prefix="$prefix"
18825 prefix="$acl_final_prefix"
18826 acl_save_exec_prefix="$exec_prefix"
18827 exec_prefix="$acl_final_exec_prefix"
18829 exec_prefix="$acl_save_exec_prefix"
18830 prefix="$acl_save_prefix"
18832 if test "X$x" = "X$element"; then
18837 if test -z "$haveit"; then
18838 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18845 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18848 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18857 INTLLIBS="$LIBINTL"
18865 os_name=`uname -s 2>/dev/null`
18866 if test x${prefix} = xNONE ; then
18867 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18868 sysconfdir=/etc/bacula
18871 if test `eval echo ${libdir}` = NONE/lib ; then
18874 os_processor=`uname -p 2>/dev/null`
18875 case ${os_processor} in
18890 if test `eval echo ${includedir}` = NONE/include ; then
18891 includedir=/usr/include
18894 if test `eval echo ${datarootdir}` = NONE/share ; then
18895 datarootdir=/usr/share
18900 if test x${exec_prefix} = xNONE ; then
18901 exec_prefix=${prefix}
18904 sysconfdir=`eval echo ${sysconfdir}`
18905 datarootdir=`eval echo ${datarootdir}`
18906 docdir=`eval echo ${docdir}`
18907 htmldir=`eval echo ${htmldir}`
18908 libdir=`eval echo ${libdir}`
18909 includedir=`eval echo ${includedir}`
18910 localedir=`eval echo ${datarootdir}/locale`
18911 cat >>confdefs.h <<_ACEOF
18912 #define SYSCONFDIR "$sysconfdir"
18915 cat >>confdefs.h <<_ACEOF
18916 #define LOCALEDIR "$localedir"
18920 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18921 sbindir=${exec_prefix}/sbin
18923 sbindir=`eval echo ${sbindir}`
18925 if test x$mandir = x'${prefix}/man' ; then
18926 mandir=/usr/share/man
18929 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18930 htmldir=`eval echo ${docdir}html`
18933 if test x$docdir = x'/usr/share/doc/' ; then
18934 docdir=`eval echo ${docdir}bacula`
18938 for ac_prog in msgfmt
18940 # Extract the first word of "$ac_prog", so it can be a program name with args.
18941 set dummy $ac_prog; ac_word=$2
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18943 $as_echo_n "checking for $ac_word... " >&6; }
18944 if ${ac_cv_path_MSGFMT+:} false; then :
18945 $as_echo_n "(cached) " >&6
18949 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18953 for as_dir in $PATH
18956 test -z "$as_dir" && as_dir=.
18957 for ac_exec_ext in '' $ac_executable_extensions; do
18958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18959 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18970 MSGFMT=$ac_cv_path_MSGFMT
18971 if test -n "$MSGFMT"; then
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18973 $as_echo "$MSGFMT" >&6; }
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18976 $as_echo "no" >&6; }
18980 test -n "$MSGFMT" && break
18982 test -n "$MSGFMT" || MSGFMT="no"
18984 if test "$MSGFMT" = "no"
18986 echo 'msgfmt program not found, disabling NLS !'
18988 USE_INCLUDED_LIBINTL=no
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18992 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18993 if ${ac_cv_gnu_library_2+:} false; then :
18994 $as_echo_n "(cached) " >&6
18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997 /* end confdefs.h. */
18999 #include <features.h>
19000 #ifdef __GNU_LIBRARY__
19001 #if (__GLIBC__ >= 2)
19007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19008 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19009 ac_cv_gnu_library_2=yes
19011 ac_cv_gnu_library_2=no
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19019 $as_echo "$ac_cv_gnu_library_2" >&6; }
19021 GLIBC2="$ac_cv_gnu_library_2"
19024 if test -n "$ac_tool_prefix"; then
19025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19028 $as_echo_n "checking for $ac_word... " >&6; }
19029 if ${ac_cv_prog_RANLIB+:} false; then :
19030 $as_echo_n "(cached) " >&6
19032 if test -n "$RANLIB"; then
19033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19036 for as_dir in $PATH
19039 test -z "$as_dir" && as_dir=.
19040 for ac_exec_ext in '' $ac_executable_extensions; do
19041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19052 RANLIB=$ac_cv_prog_RANLIB
19053 if test -n "$RANLIB"; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19055 $as_echo "$RANLIB" >&6; }
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19063 if test -z "$ac_cv_prog_RANLIB"; then
19064 ac_ct_RANLIB=$RANLIB
19065 # Extract the first word of "ranlib", so it can be a program name with args.
19066 set dummy ranlib; ac_word=$2
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19068 $as_echo_n "checking for $ac_word... " >&6; }
19069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19070 $as_echo_n "(cached) " >&6
19072 if test -n "$ac_ct_RANLIB"; then
19073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076 for as_dir in $PATH
19079 test -z "$as_dir" && as_dir=.
19080 for ac_exec_ext in '' $ac_executable_extensions; do
19081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19082 ac_cv_prog_ac_ct_RANLIB="ranlib"
19083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19093 if test -n "$ac_ct_RANLIB"; then
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19095 $as_echo "$ac_ct_RANLIB" >&6; }
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19098 $as_echo "no" >&6; }
19101 if test "x$ac_ct_RANLIB" = x; then
19104 case $cross_compiling:$ac_tool_warned in
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19108 ac_tool_warned=yes ;;
19110 RANLIB=$ac_ct_RANLIB
19113 RANLIB="$ac_cv_prog_RANLIB"
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19118 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19119 if ${ac_cv_lib_cposix_strerror+:} false; then :
19120 $as_echo_n "(cached) " >&6
19122 ac_check_lib_save_LIBS=$LIBS
19123 LIBS="-lcposix $LIBS"
19124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19125 /* end confdefs.h. */
19127 /* Override any GCC internal prototype to avoid an error.
19128 Use char because int might match the return type of a GCC
19129 builtin and then its argument prototype would still apply. */
19137 return strerror ();
19142 if ac_fn_c_try_link "$LINENO"; then :
19143 ac_cv_lib_cposix_strerror=yes
19145 ac_cv_lib_cposix_strerror=no
19147 rm -f core conftest.err conftest.$ac_objext \
19148 conftest$ac_exeext conftest.$ac_ext
19149 LIBS=$ac_check_lib_save_LIBS
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19152 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19153 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19154 LIBS="$LIBS -lcposix"
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19160 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19161 if ${ac_cv_c_const+:} false; then :
19162 $as_echo_n "(cached) " >&6
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19171 #ifndef __cplusplus
19172 /* Ultrix mips cc rejects this sort of thing. */
19173 typedef int charset[2];
19174 const charset cs = { 0, 0 };
19175 /* SunOS 4.1.1 cc rejects this. */
19176 char const *const *pcpcc;
19178 /* NEC SVR4.0.2 mips cc rejects this. */
19179 struct point {int x, y;};
19180 static struct point const zero = {0,0};
19181 /* AIX XL C 1.02.0.0 rejects this.
19182 It does not let you subtract one const X* pointer from another in
19183 an arm of an if-expression whose if-part is not a constant
19185 const char *g = "string";
19186 pcpcc = &g + (g ? g-g : 0);
19187 /* HPUX 7.0 cc rejects these. */
19189 ppc = (char**) pcpcc;
19190 pcpcc = (char const *const *) ppc;
19191 { /* SCO 3.2v4 cc rejects this sort of thing. */
19194 char const *s = 0 ? (char *) 0 : (char const *) 0;
19199 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19200 int x[] = {25, 17};
19201 const int *foo = &x[0];
19204 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19205 typedef const int *iptr;
19209 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19210 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19211 struct s { int j; const int *ap[3]; } bx;
19212 struct s *b = &bx; b->j = 5;
19214 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19215 const int foo = 10;
19216 if (!foo) return 0;
19218 return !cs[0] && !zero.x;
19225 if ac_fn_c_try_compile "$LINENO"; then :
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19233 $as_echo "$ac_cv_c_const" >&6; }
19234 if test $ac_cv_c_const = no; then
19236 $as_echo "#define const /**/" >>confdefs.h
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19242 $as_echo_n "checking for signed... " >&6; }
19243 if ${bh_cv_c_signed+:} false; then :
19244 $as_echo_n "(cached) " >&6
19246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19257 if ac_fn_c_try_compile "$LINENO"; then :
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19265 $as_echo "$bh_cv_c_signed" >&6; }
19266 if test $bh_cv_c_signed = no; then
19268 $as_echo "#define signed /**/" >>confdefs.h
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19273 $as_echo_n "checking for inline... " >&6; }
19274 if ${ac_cv_c_inline+:} false; then :
19275 $as_echo_n "(cached) " >&6
19278 for ac_kw in inline __inline__ __inline; do
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281 #ifndef __cplusplus
19283 static $ac_kw foo_t static_foo () {return 0; }
19284 $ac_kw foo_t foo () {return 0; }
19288 if ac_fn_c_try_compile "$LINENO"; then :
19289 ac_cv_c_inline=$ac_kw
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 test "$ac_cv_c_inline" != no && break
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19297 $as_echo "$ac_cv_c_inline" >&6; }
19299 case $ac_cv_c_inline in
19302 case $ac_cv_c_inline in
19304 *) ac_val=$ac_cv_c_inline;;
19306 cat >>confdefs.h <<_ACEOF
19307 #ifndef __cplusplus
19308 #define inline $ac_val
19314 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19315 if test "x$ac_cv_type_off_t" = xyes; then :
19319 cat >>confdefs.h <<_ACEOF
19320 #define off_t long int
19325 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19326 if test "x$ac_cv_type_size_t" = xyes; then :
19330 cat >>confdefs.h <<_ACEOF
19331 #define size_t unsigned int
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19338 $as_echo_n "checking for long long... " >&6; }
19339 if ${ac_cv_type_long_long+:} false; then :
19340 $as_echo_n "(cached) " >&6
19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h. */
19344 long long ll = 1LL; int i = 63;
19348 long long llmax = (long long) -1;
19349 return ll << i | ll >> i | llmax / ll | llmax % ll;
19354 if ac_fn_c_try_link "$LINENO"; then :
19355 ac_cv_type_long_long=yes
19357 ac_cv_type_long_long=no
19359 rm -f core conftest.err conftest.$ac_objext \
19360 conftest$ac_exeext conftest.$ac_ext
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19363 $as_echo "$ac_cv_type_long_long" >&6; }
19364 if test $ac_cv_type_long_long = yes; then
19366 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19372 $as_echo_n "checking for long double... " >&6; }
19373 if ${gt_cv_c_long_double+:} false; then :
19374 $as_echo_n "(cached) " >&6
19376 if test "$GCC" = yes; then
19377 gt_cv_c_long_double=yes
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19382 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19383 long double foo = 0.0;
19384 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19385 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19395 if ac_fn_c_try_compile "$LINENO"; then :
19396 gt_cv_c_long_double=yes
19398 gt_cv_c_long_double=no
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19404 $as_echo "$gt_cv_c_long_double" >&6; }
19405 if test $gt_cv_c_long_double = yes; then
19407 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19413 $as_echo_n "checking for wchar_t... " >&6; }
19414 if ${gt_cv_c_wchar_t+:} false; then :
19415 $as_echo_n "(cached) " >&6
19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19419 #include <stddef.h>
19420 wchar_t foo = (wchar_t)'\0';
19429 if ac_fn_c_try_compile "$LINENO"; then :
19430 gt_cv_c_wchar_t=yes
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19437 $as_echo "$gt_cv_c_wchar_t" >&6; }
19438 if test $gt_cv_c_wchar_t = yes; then
19440 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19446 $as_echo_n "checking for wint_t... " >&6; }
19447 if ${gt_cv_c_wint_t+:} false; then :
19448 $as_echo_n "(cached) " >&6
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19453 wint_t foo = (wchar_t)'\0';
19462 if ac_fn_c_try_compile "$LINENO"; then :
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19470 $as_echo "$gt_cv_c_wint_t" >&6; }
19471 if test $gt_cv_c_wint_t = yes; then
19473 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19479 $as_echo_n "checking for inttypes.h... " >&6; }
19480 if ${gl_cv_header_inttypes_h+:} false; then :
19481 $as_echo_n "(cached) " >&6
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485 #include <sys/types.h>
19486 #include <inttypes.h>
19490 uintmax_t i = (uintmax_t) -1;
19495 if ac_fn_c_try_compile "$LINENO"; then :
19496 gl_cv_header_inttypes_h=yes
19498 gl_cv_header_inttypes_h=no
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19503 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19504 if test $gl_cv_header_inttypes_h = yes; then
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19514 $as_echo_n "checking for stdint.h... " >&6; }
19515 if ${gl_cv_header_stdint_h+:} false; then :
19516 $as_echo_n "(cached) " >&6
19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h. */
19520 #include <sys/types.h>
19521 #include <stdint.h>
19525 uintmax_t i = (uintmax_t) -1;
19530 if ac_fn_c_try_compile "$LINENO"; then :
19531 gl_cv_header_stdint_h=yes
19533 gl_cv_header_stdint_h=no
19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19538 $as_echo "$gl_cv_header_stdint_h" >&6; }
19539 if test $gl_cv_header_stdint_h = yes; then
19541 cat >>confdefs.h <<_ACEOF
19542 #define HAVE_STDINT_H_WITH_UINTMAX 1
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19551 $as_echo_n "checking for intmax_t... " >&6; }
19552 if ${gt_cv_c_intmax_t+:} false; then :
19553 $as_echo_n "(cached) " >&6
19555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19556 /* end confdefs.h. */
19558 #include <stddef.h>
19559 #include <stdlib.h>
19560 #if HAVE_STDINT_H_WITH_UINTMAX
19561 #include <stdint.h>
19563 #if HAVE_INTTYPES_H_WITH_UINTMAX
19564 #include <inttypes.h>
19575 if ac_fn_c_try_compile "$LINENO"; then :
19576 gt_cv_c_intmax_t=yes
19578 gt_cv_c_intmax_t=no
19580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19583 $as_echo "$gt_cv_c_intmax_t" >&6; }
19584 if test $gt_cv_c_intmax_t = yes; then
19586 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19593 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19594 if ${gt_cv_func_printf_posix+:} false; then :
19595 $as_echo_n "(cached) " >&6
19598 if test "$cross_compiling" = yes; then :
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19603 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "notposix" >/dev/null 2>&1; then :
19610 gt_cv_func_printf_posix="guessing no"
19612 gt_cv_func_printf_posix="guessing yes"
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19622 #include <string.h>
19623 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19624 dollar expansion (possibly an autoconf bug). */
19625 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19626 static char buf[100];
19629 sprintf (buf, format, 33, 55);
19630 return (strcmp (buf, "55 33") != 0);
19633 if ac_fn_c_try_run "$LINENO"; then :
19634 gt_cv_func_printf_posix=yes
19636 gt_cv_func_printf_posix=no
19638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19639 conftest.$ac_objext conftest.beam conftest.$ac_ext
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19645 $as_echo "$gt_cv_func_printf_posix" >&6; }
19646 case $gt_cv_func_printf_posix in
19649 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19654 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19655 # for constant arguments. Useless!
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19657 $as_echo_n "checking for working alloca.h... " >&6; }
19658 if ${ac_cv_working_alloca_h+:} false; then :
19659 $as_echo_n "(cached) " >&6
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19663 #include <alloca.h>
19667 char *p = (char *) alloca (2 * sizeof (int));
19673 if ac_fn_c_try_link "$LINENO"; then :
19674 ac_cv_working_alloca_h=yes
19676 ac_cv_working_alloca_h=no
19678 rm -f core conftest.err conftest.$ac_objext \
19679 conftest$ac_exeext conftest.$ac_ext
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19682 $as_echo "$ac_cv_working_alloca_h" >&6; }
19683 if test $ac_cv_working_alloca_h = yes; then
19685 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19690 $as_echo_n "checking for alloca... " >&6; }
19691 if ${ac_cv_func_alloca_works+:} false; then :
19692 $as_echo_n "(cached) " >&6
19694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h. */
19697 # define alloca __builtin_alloca
19700 # include <malloc.h>
19701 # define alloca _alloca
19703 # ifdef HAVE_ALLOCA_H
19704 # include <alloca.h>
19709 # ifndef alloca /* predefined by HP cc +Olibcalls */
19710 void *alloca (size_t);
19720 char *p = (char *) alloca (1);
19726 if ac_fn_c_try_link "$LINENO"; then :
19727 ac_cv_func_alloca_works=yes
19729 ac_cv_func_alloca_works=no
19731 rm -f core conftest.err conftest.$ac_objext \
19732 conftest$ac_exeext conftest.$ac_ext
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19735 $as_echo "$ac_cv_func_alloca_works" >&6; }
19737 if test $ac_cv_func_alloca_works = yes; then
19739 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19742 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19743 # that cause trouble. Some versions do not even contain alloca or
19744 # contain a buggy version. If you still want to use their alloca,
19745 # use ar to extract alloca.o from them instead of compiling alloca.c.
19747 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19749 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19753 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19754 if ${ac_cv_os_cray+:} false; then :
19755 $as_echo_n "(cached) " >&6
19757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19758 /* end confdefs.h. */
19759 #if defined CRAY && ! defined CRAY2
19766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19767 $EGREP "webecray" >/dev/null 2>&1; then :
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19776 $as_echo "$ac_cv_os_cray" >&6; }
19777 if test $ac_cv_os_cray = yes; then
19778 for ac_func in _getb67 GETB67 getb67; do
19779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19780 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19781 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19783 cat >>confdefs.h <<_ACEOF
19784 #define CRAY_STACKSEG_END $ac_func
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19794 $as_echo_n "checking stack direction for C alloca... " >&6; }
19795 if ${ac_cv_c_stack_direction+:} false; then :
19796 $as_echo_n "(cached) " >&6
19798 if test "$cross_compiling" = yes; then :
19799 ac_cv_c_stack_direction=0
19801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h. */
19803 $ac_includes_default
19805 find_stack_direction (int *addr, int depth)
19807 int dir, dummy = 0;
19810 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19811 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19812 return dir + dummy;
19816 main (int argc, char **argv)
19818 return find_stack_direction (0, argc + !argv + 20) < 0;
19821 if ac_fn_c_try_run "$LINENO"; then :
19822 ac_cv_c_stack_direction=1
19824 ac_cv_c_stack_direction=-1
19826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19827 conftest.$ac_objext conftest.beam conftest.$ac_ext
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19832 $as_echo "$ac_cv_c_stack_direction" >&6; }
19833 cat >>confdefs.h <<_ACEOF
19834 #define STACK_DIRECTION $ac_cv_c_stack_direction
19843 for ac_header in $ac_header_list
19845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19846 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19849 cat >>confdefs.h <<_ACEOF
19850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19864 for ac_func in getpagesize
19866 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19867 if test "x$ac_cv_func_getpagesize" = xyes; then :
19868 cat >>confdefs.h <<_ACEOF
19869 #define HAVE_GETPAGESIZE 1
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19876 $as_echo_n "checking for working mmap... " >&6; }
19877 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19878 $as_echo_n "(cached) " >&6
19880 if test "$cross_compiling" = yes; then :
19881 ac_cv_func_mmap_fixed_mapped=no
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19885 $ac_includes_default
19886 /* malloc might have been renamed as rpl_malloc. */
19889 /* Thanks to Mike Haertel and Jim Avera for this test.
19890 Here is a matrix of mmap possibilities:
19891 mmap private not fixed
19892 mmap private fixed at somewhere currently unmapped
19893 mmap private fixed at somewhere already mapped
19894 mmap shared not fixed
19895 mmap shared fixed at somewhere currently unmapped
19896 mmap shared fixed at somewhere already mapped
19897 For private mappings, we should verify that changes cannot be read()
19898 back from the file, nor mmap's back from the file at a different
19899 address. (There have been systems where private was not correctly
19900 implemented like the infamous i386 svr4.0, and systems where the
19901 VM page cache was not coherent with the file system buffer cache
19902 like early versions of FreeBSD and possibly contemporary NetBSD.)
19903 For shared mappings, we should conversely verify that changes get
19904 propagated back to all the places they're supposed to be.
19906 Grep wants private fixed already mapped.
19907 The main things grep needs to know about mmap are:
19908 * does it exist and is it safe to write into the mmap'd area
19909 * how to use it (BSD variants) */
19912 #include <sys/mman.h>
19914 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19918 /* This mess was copied from the GNU getpagesize.h. */
19919 #ifndef HAVE_GETPAGESIZE
19920 # ifdef _SC_PAGESIZE
19921 # define getpagesize() sysconf(_SC_PAGESIZE)
19922 # else /* no _SC_PAGESIZE */
19923 # ifdef HAVE_SYS_PARAM_H
19924 # include <sys/param.h>
19925 # ifdef EXEC_PAGESIZE
19926 # define getpagesize() EXEC_PAGESIZE
19927 # else /* no EXEC_PAGESIZE */
19929 # define getpagesize() NBPG * CLSIZE
19932 # endif /* no CLSIZE */
19933 # else /* no NBPG */
19935 # define getpagesize() NBPC
19936 # else /* no NBPC */
19938 # define getpagesize() PAGESIZE
19939 # endif /* PAGESIZE */
19940 # endif /* no NBPC */
19941 # endif /* no NBPG */
19942 # endif /* no EXEC_PAGESIZE */
19943 # else /* no HAVE_SYS_PARAM_H */
19944 # define getpagesize() 8192 /* punt totally */
19945 # endif /* no HAVE_SYS_PARAM_H */
19946 # endif /* no _SC_PAGESIZE */
19948 #endif /* no HAVE_GETPAGESIZE */
19953 char *data, *data2, *data3;
19954 const char *cdata2;
19958 pagesize = getpagesize ();
19960 /* First, make a file with some known garbage in it. */
19961 data = (char *) malloc (pagesize);
19964 for (i = 0; i < pagesize; ++i)
19965 *(data + i) = rand ();
19967 fd = creat ("conftest.mmap", 0600);
19970 if (write (fd, data, pagesize) != pagesize)
19974 /* Next, check that the tail of a page is zero-filled. File must have
19975 non-zero length, otherwise we risk SIGBUS for entire page. */
19976 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19980 if (write (fd2, cdata2, 1) != 1)
19982 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19983 if (data2 == MAP_FAILED)
19985 for (i = 0; i < pagesize; ++i)
19989 if (munmap (data2, pagesize))
19992 /* Next, try to mmap the file at a fixed address which already has
19993 something else allocated at it. If we can, also make sure that
19994 we see the same garbage. */
19995 fd = open ("conftest.mmap", O_RDWR);
19998 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19999 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20001 for (i = 0; i < pagesize; ++i)
20002 if (*(data + i) != *(data2 + i))
20005 /* Finally, make sure that changes to the mapped area do not
20006 percolate back to the file as seen by read(). (This is a bug on
20007 some variants of i386 svr4.0.) */
20008 for (i = 0; i < pagesize; ++i)
20009 *(data2 + i) = *(data2 + i) + 1;
20010 data3 = (char *) malloc (pagesize);
20013 if (read (fd, data3, pagesize) != pagesize)
20015 for (i = 0; i < pagesize; ++i)
20016 if (*(data + i) != *(data3 + i))
20022 if ac_fn_c_try_run "$LINENO"; then :
20023 ac_cv_func_mmap_fixed_mapped=yes
20025 ac_cv_func_mmap_fixed_mapped=no
20027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20028 conftest.$ac_objext conftest.beam conftest.$ac_ext
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20033 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20034 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20036 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20039 rm -f conftest.mmap conftest.txt
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20043 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20044 if ${ac_cv_gnu_library_2_1+:} false; then :
20045 $as_echo_n "(cached) " >&6
20047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048 /* end confdefs.h. */
20050 #include <features.h>
20051 #ifdef __GNU_LIBRARY__
20052 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20060 ac_cv_gnu_library_2_1=yes
20062 ac_cv_gnu_library_2_1=no
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20070 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20072 GLIBC21="$ac_cv_gnu_library_2_1"
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20078 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20079 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20080 $as_echo_n "(cached) " >&6
20083 if test "$cross_compiling" = yes; then :
20085 # Guess based on the CPU.
20086 case "$host_cpu" in
20087 alpha* | i3456786 | m68k | s390*)
20088 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20090 gt_cv_int_divbyzero_sigfpe="guessing no";;
20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20097 #include <stdlib.h>
20098 #include <signal.h>
20102 sigfpe_handler (int sig)
20104 sigfpe_handler (sig) int sig;
20107 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20108 exit (sig != SIGFPE);
20118 signal (SIGFPE, sigfpe_handler);
20119 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20120 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20121 signal (SIGTRAP, sigfpe_handler);
20123 /* Linux/SPARC yields signal SIGILL. */
20124 #if defined (__sparc__) && defined (__linux__)
20125 signal (SIGILL, sigfpe_handler);
20134 if ac_fn_c_try_run "$LINENO"; then :
20135 gt_cv_int_divbyzero_sigfpe=yes
20137 gt_cv_int_divbyzero_sigfpe=no
20139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20140 conftest.$ac_objext conftest.beam conftest.$ac_ext
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20146 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20147 case "$gt_cv_int_divbyzero_sigfpe" in
20152 cat >>confdefs.h <<_ACEOF
20153 #define INTDIV0_RAISES_SIGFPE $value
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20159 $as_echo_n "checking for unsigned long long... " >&6; }
20160 if ${ac_cv_type_unsigned_long_long+:} false; then :
20161 $as_echo_n "(cached) " >&6
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165 unsigned long long ull = 1ULL; int i = 63;
20169 unsigned long long ullmax = (unsigned long long) -1;
20170 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20175 if ac_fn_c_try_link "$LINENO"; then :
20176 ac_cv_type_unsigned_long_long=yes
20178 ac_cv_type_unsigned_long_long=no
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20184 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20185 if test $ac_cv_type_unsigned_long_long = yes; then
20187 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20194 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20196 test $ac_cv_type_unsigned_long_long = yes \
20197 && ac_type='unsigned long long' \
20198 || ac_type='unsigned long'
20200 cat >>confdefs.h <<_ACEOF
20201 #define uintmax_t $ac_type
20206 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20212 $as_echo_n "checking for inttypes.h... " >&6; }
20213 if ${gt_cv_header_inttypes_h+:} false; then :
20214 $as_echo_n "(cached) " >&6
20217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h. */
20219 #include <sys/types.h>
20220 #include <inttypes.h>
20229 if ac_fn_c_try_compile "$LINENO"; then :
20230 gt_cv_header_inttypes_h=yes
20232 gt_cv_header_inttypes_h=no
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20238 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20239 if test $gt_cv_header_inttypes_h = yes; then
20241 cat >>confdefs.h <<_ACEOF
20242 #define HAVE_INTTYPES_H 1
20249 if test $gt_cv_header_inttypes_h = yes; then
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20251 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20252 if ${gt_cv_inttypes_pri_broken+:} false; then :
20253 $as_echo_n "(cached) " >&6
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20258 #include <inttypes.h>
20271 if ac_fn_c_try_compile "$LINENO"; then :
20272 gt_cv_inttypes_pri_broken=no
20274 gt_cv_inttypes_pri_broken=yes
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20280 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20282 if test "$gt_cv_inttypes_pri_broken" = yes; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define PRI_MACROS_BROKEN 1
20291 for ac_header in stdint.h
20293 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20294 if test "x$ac_cv_header_stdint_h" = xyes; then :
20295 cat >>confdefs.h <<_ACEOF
20296 #define HAVE_STDINT_H 1
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20304 $as_echo_n "checking for SIZE_MAX... " >&6; }
20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h. */
20309 #include <limits.h>
20311 #include <stdint.h>
20318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20319 $EGREP "Found it" >/dev/null 2>&1; then :
20324 if test -z "$result"; then
20325 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20332 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20339 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20346 if test "$fits_in_uint" = 1; then
20347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20348 /* end confdefs.h. */
20349 #include <stddef.h>
20351 extern unsigned long foo;
20361 if ac_fn_c_try_compile "$LINENO"; then :
20364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366 if test -z "$result"; then
20367 if test "$fits_in_uint" = 1; then
20368 result="$res_hi$res_lo"U
20370 result="$res_hi$res_lo"UL
20373 result='~(size_t)0'
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20377 $as_echo "$result" >&6; }
20378 if test "$result" != yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define SIZE_MAX $result
20389 for ac_header in stdint.h
20391 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20392 if test "x$ac_cv_header_stdint_h" = xyes; then :
20393 cat >>confdefs.h <<_ACEOF
20394 #define HAVE_STDINT_H 1
20408 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20409 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20413 $as_echo "#define ptrdiff_t long" >>confdefs.h
20418 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20419 stdlib.h string.h unistd.h sys/param.h
20421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20424 cat >>confdefs.h <<_ACEOF
20425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20432 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20433 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20434 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20439 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20440 cat >>confdefs.h <<_ACEOF
20441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20450 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20451 if ${ac_cv_have_decl__snprintf+:} false; then :
20452 $as_echo_n "(cached) " >&6
20454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h. */
20462 char *p = (char *) _snprintf;
20469 if ac_fn_c_try_compile "$LINENO"; then :
20470 ac_cv_have_decl__snprintf=yes
20472 ac_cv_have_decl__snprintf=no
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20477 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20478 if test $ac_cv_have_decl__snprintf = yes; then
20484 cat >>confdefs.h <<_ACEOF
20485 #define HAVE_DECL__SNPRINTF $gt_value
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20491 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20492 if ${ac_cv_have_decl__snwprintf+:} false; then :
20493 $as_echo_n "(cached) " >&6
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20503 char *p = (char *) _snwprintf;
20510 if ac_fn_c_try_compile "$LINENO"; then :
20511 ac_cv_have_decl__snwprintf=yes
20513 ac_cv_have_decl__snwprintf=no
20515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20518 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20519 if test $ac_cv_have_decl__snwprintf = yes; then
20525 cat >>confdefs.h <<_ACEOF
20526 #define HAVE_DECL__SNWPRINTF $gt_value
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20533 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20534 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20535 $as_echo_n "(cached) " >&6
20537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20538 /* end confdefs.h. */
20544 #ifndef feof_unlocked
20545 char *p = (char *) feof_unlocked;
20552 if ac_fn_c_try_compile "$LINENO"; then :
20553 ac_cv_have_decl_feof_unlocked=yes
20555 ac_cv_have_decl_feof_unlocked=no
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20560 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20561 if test $ac_cv_have_decl_feof_unlocked = yes; then
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20574 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20575 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20576 $as_echo_n "(cached) " >&6
20578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20585 #ifndef fgets_unlocked
20586 char *p = (char *) fgets_unlocked;
20593 if ac_fn_c_try_compile "$LINENO"; then :
20594 ac_cv_have_decl_fgets_unlocked=yes
20596 ac_cv_have_decl_fgets_unlocked=no
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20601 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20602 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20608 cat >>confdefs.h <<_ACEOF
20609 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20615 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20616 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20617 $as_echo_n "(cached) " >&6
20619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h. */
20626 #ifndef getc_unlocked
20627 char *p = (char *) getc_unlocked;
20634 if ac_fn_c_try_compile "$LINENO"; then :
20635 ac_cv_have_decl_getc_unlocked=yes
20637 ac_cv_have_decl_getc_unlocked=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20642 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20643 if test $ac_cv_have_decl_getc_unlocked = yes; then
20649 cat >>confdefs.h <<_ACEOF
20650 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20655 case $gt_cv_func_printf_posix in
20656 *yes) HAVE_POSIX_PRINTF=1 ;;
20657 *) HAVE_POSIX_PRINTF=0 ;;
20660 if test "$ac_cv_func_asprintf" = yes; then
20666 if test "$ac_cv_func_snprintf" = yes; then
20672 if test "$ac_cv_func_wprintf" = yes; then
20684 am_save_CPPFLAGS="$CPPFLAGS"
20686 for element in $INCICONV; do
20688 for x in $CPPFLAGS; do
20690 acl_save_prefix="$prefix"
20691 prefix="$acl_final_prefix"
20692 acl_save_exec_prefix="$exec_prefix"
20693 exec_prefix="$acl_final_exec_prefix"
20695 exec_prefix="$acl_save_exec_prefix"
20696 prefix="$acl_save_prefix"
20698 if test "X$x" = "X$element"; then
20703 if test -z "$haveit"; then
20704 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20710 $as_echo_n "checking for iconv... " >&6; }
20711 if ${am_cv_func_iconv+:} false; then :
20712 $as_echo_n "(cached) " >&6
20715 am_cv_func_iconv="no, consider installing GNU libiconv"
20717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h. */
20719 #include <stdlib.h>
20724 iconv_t cd = iconv_open("","");
20725 iconv(cd,NULL,NULL,NULL,NULL);
20731 if ac_fn_c_try_link "$LINENO"; then :
20732 am_cv_func_iconv=yes
20734 rm -f core conftest.err conftest.$ac_objext \
20735 conftest$ac_exeext conftest.$ac_ext
20736 if test "$am_cv_func_iconv" != yes; then
20737 am_save_LIBS="$LIBS"
20738 LIBS="$LIBS $LIBICONV"
20739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20740 /* end confdefs.h. */
20741 #include <stdlib.h>
20746 iconv_t cd = iconv_open("","");
20747 iconv(cd,NULL,NULL,NULL,NULL);
20753 if ac_fn_c_try_link "$LINENO"; then :
20754 am_cv_lib_iconv=yes
20755 am_cv_func_iconv=yes
20757 rm -f core conftest.err conftest.$ac_objext \
20758 conftest$ac_exeext conftest.$ac_ext
20759 LIBS="$am_save_LIBS"
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20764 $as_echo "$am_cv_func_iconv" >&6; }
20765 if test "$am_cv_func_iconv" = yes; then
20767 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20770 if test "$am_cv_lib_iconv" = yes; then
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20772 $as_echo_n "checking how to link with libiconv... " >&6; }
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20774 $as_echo "$LIBICONV" >&6; }
20776 CPPFLAGS="$am_save_CPPFLAGS"
20783 if test "$am_cv_func_iconv" = yes; then
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20785 $as_echo_n "checking for iconv declaration... " >&6; }
20786 if ${am_cv_proto_iconv+:} false; then :
20787 $as_echo_n "(cached) " >&6
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20793 #include <stdlib.h>
20799 #if defined(__STDC__) || defined(__cplusplus)
20800 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20813 if ac_fn_c_try_compile "$LINENO"; then :
20814 am_cv_proto_iconv_arg1=""
20816 am_cv_proto_iconv_arg1="const"
20818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20819 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);"
20822 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20824 }$am_cv_proto_iconv" >&5
20826 }$am_cv_proto_iconv" >&6; }
20828 cat >>confdefs.h <<_ACEOF
20829 #define ICONV_CONST $am_cv_proto_iconv_arg1
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20836 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20837 if ${am_cv_langinfo_codeset+:} false; then :
20838 $as_echo_n "(cached) " >&6
20840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h. */
20842 #include <langinfo.h>
20846 char* cs = nl_langinfo(CODESET);
20851 if ac_fn_c_try_link "$LINENO"; then :
20852 am_cv_langinfo_codeset=yes
20854 am_cv_langinfo_codeset=no
20856 rm -f core conftest.err conftest.$ac_objext \
20857 conftest$ac_exeext conftest.$ac_ext
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20861 $as_echo "$am_cv_langinfo_codeset" >&6; }
20862 if test $am_cv_langinfo_codeset = yes; then
20864 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20868 if test $ac_cv_header_locale_h = yes; then
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20871 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20872 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20873 $as_echo_n "(cached) " >&6
20875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h. */
20877 #include <locale.h>
20886 if ac_fn_c_try_link "$LINENO"; then :
20887 gt_cv_val_LC_MESSAGES=yes
20889 gt_cv_val_LC_MESSAGES=no
20891 rm -f core conftest.err conftest.$ac_objext \
20892 conftest$ac_exeext conftest.$ac_ext
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20895 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20896 if test $gt_cv_val_LC_MESSAGES = yes; then
20898 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20904 if test -n "$INTL_MACOSX_LIBS"; then
20905 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20908 for ac_prog in bison
20910 # Extract the first word of "$ac_prog", so it can be a program name with args.
20911 set dummy $ac_prog; ac_word=$2
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20913 $as_echo_n "checking for $ac_word... " >&6; }
20914 if ${ac_cv_prog_INTLBISON+:} false; then :
20915 $as_echo_n "(cached) " >&6
20917 if test -n "$INTLBISON"; then
20918 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20921 for as_dir in $PATH
20924 test -z "$as_dir" && as_dir=.
20925 for ac_exec_ext in '' $ac_executable_extensions; do
20926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20927 ac_cv_prog_INTLBISON="$ac_prog"
20928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20937 INTLBISON=$ac_cv_prog_INTLBISON
20938 if test -n "$INTLBISON"; then
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20940 $as_echo "$INTLBISON" >&6; }
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943 $as_echo "no" >&6; }
20947 test -n "$INTLBISON" && break
20950 if test -z "$INTLBISON"; then
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20954 $as_echo_n "checking version of bison... " >&6; }
20955 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20956 case $ac_prog_version in
20957 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20958 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20959 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20960 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20963 $as_echo "$ac_prog_version" >&6; }
20965 if test $ac_verc_fail = yes; then
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20985 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20986 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20987 $as_echo_n "(cached) " >&6
20989 gt_save_CPPFLAGS="$CPPFLAGS"
20990 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20991 gt_save_LIBS="$LIBS"
20992 LIBS="$LIBS -framework CoreFoundation"
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20995 #include <CFPreferences.h>
20999 CFPreferencesCopyAppValue(NULL, NULL)
21004 if ac_fn_c_try_link "$LINENO"; then :
21005 gt_cv_func_CFPreferencesCopyAppValue=yes
21007 gt_cv_func_CFPreferencesCopyAppValue=no
21009 rm -f core conftest.err conftest.$ac_objext \
21010 conftest$ac_exeext conftest.$ac_ext
21011 CPPFLAGS="$gt_save_CPPFLAGS"
21012 LIBS="$gt_save_LIBS"
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21015 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21016 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21018 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21022 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21023 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21024 $as_echo_n "(cached) " >&6
21026 gt_save_CPPFLAGS="$CPPFLAGS"
21027 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21028 gt_save_LIBS="$LIBS"
21029 LIBS="$LIBS -framework CoreFoundation"
21030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031 /* end confdefs.h. */
21032 #include <CFLocale.h>
21036 CFLocaleCopyCurrent();
21041 if ac_fn_c_try_link "$LINENO"; then :
21042 gt_cv_func_CFLocaleCopyCurrent=yes
21044 gt_cv_func_CFLocaleCopyCurrent=no
21046 rm -f core conftest.err conftest.$ac_objext \
21047 conftest$ac_exeext conftest.$ac_ext
21048 CPPFLAGS="$gt_save_CPPFLAGS"
21049 LIBS="$gt_save_LIBS"
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21052 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21053 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21055 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21059 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21060 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21067 $as_echo_n "checking whether NLS is requested... " >&6; }
21068 # Check whether --enable-nls was given.
21069 if test "${enable_nls+set}" = set; then :
21070 enableval=$enable_nls; USE_NLS=$enableval
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21076 $as_echo "$USE_NLS" >&6; }
21081 BUILD_INCLUDED_LIBINTL=no
21082 USE_INCLUDED_LIBINTL=no
21088 if test "$USE_NLS" = "yes"; then
21089 gt_use_preinstalled_gnugettext=no
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21092 $as_echo_n "checking whether included gettext is requested... " >&6; }
21094 # Check whether --with-included-gettext was given.
21095 if test "${with_included_gettext+set}" = set; then :
21096 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21098 nls_cv_force_use_gnu_gettext=no
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21102 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21104 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21105 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21113 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21114 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21115 $as_echo_n "(cached) " >&6
21117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118 /* end confdefs.h. */
21119 #include <libintl.h>
21120 extern int _nl_msg_cat_cntr;
21121 extern int *_nl_domain_bindings;
21125 bindtextdomain ("", "");
21126 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21131 if ac_fn_c_try_link "$LINENO"; then :
21132 gt_cv_func_gnugettext1_libc=yes
21134 gt_cv_func_gnugettext1_libc=no
21136 rm -f core conftest.err conftest.$ac_objext \
21137 conftest$ac_exeext conftest.$ac_ext
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21140 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21142 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21148 acl_save_prefix="$prefix"
21149 prefix="$acl_final_prefix"
21150 acl_save_exec_prefix="$exec_prefix"
21151 exec_prefix="$acl_final_exec_prefix"
21153 eval additional_includedir=\"$includedir\"
21154 eval additional_libdir=\"$libdir\"
21156 exec_prefix="$acl_save_exec_prefix"
21157 prefix="$acl_save_prefix"
21160 # Check whether --with-libintl-prefix was given.
21161 if test "${with_libintl_prefix+set}" = set; then :
21162 withval=$with_libintl_prefix;
21163 if test "X$withval" = "Xno"; then
21166 if test "X$withval" = "X"; then
21168 acl_save_prefix="$prefix"
21169 prefix="$acl_final_prefix"
21170 acl_save_exec_prefix="$exec_prefix"
21171 exec_prefix="$acl_final_exec_prefix"
21173 eval additional_includedir=\"$includedir\"
21174 eval additional_libdir=\"$libdir\"
21176 exec_prefix="$acl_save_exec_prefix"
21177 prefix="$acl_save_prefix"
21180 additional_includedir="$withval/include"
21181 additional_libdir="$withval/lib"
21192 names_already_handled=
21193 names_next_round='intl '
21194 while test -n "$names_next_round"; do
21195 names_this_round="$names_next_round"
21197 for name in $names_this_round; do
21199 for n in $names_already_handled; do
21200 if test "$n" = "$name"; then
21201 already_handled=yes
21205 if test -z "$already_handled"; then
21206 names_already_handled="$names_already_handled $name"
21207 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21208 eval value=\"\$HAVE_LIB$uppername\"
21209 if test -n "$value"; then
21210 if test "$value" = yes; then
21211 eval value=\"\$LIB$uppername\"
21212 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21213 eval value=\"\$LTLIB$uppername\"
21214 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21223 if test $use_additional = yes; then
21224 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21225 found_dir="$additional_libdir"
21226 found_so="$additional_libdir/lib$name.$shlibext"
21227 if test -f "$additional_libdir/lib$name.la"; then
21228 found_la="$additional_libdir/lib$name.la"
21231 if test -f "$additional_libdir/lib$name.$libext"; then
21232 found_dir="$additional_libdir"
21233 found_a="$additional_libdir/lib$name.$libext"
21234 if test -f "$additional_libdir/lib$name.la"; then
21235 found_la="$additional_libdir/lib$name.la"
21240 if test "X$found_dir" = "X"; then
21241 for x in $LDFLAGS $LTLIBINTL; do
21243 acl_save_prefix="$prefix"
21244 prefix="$acl_final_prefix"
21245 acl_save_exec_prefix="$exec_prefix"
21246 exec_prefix="$acl_final_exec_prefix"
21248 exec_prefix="$acl_save_exec_prefix"
21249 prefix="$acl_save_prefix"
21253 dir=`echo "X$x" | sed -e 's/^X-L//'`
21254 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21256 found_so="$dir/lib$name.$shlibext"
21257 if test -f "$dir/lib$name.la"; then
21258 found_la="$dir/lib$name.la"
21261 if test -f "$dir/lib$name.$libext"; then
21263 found_a="$dir/lib$name.$libext"
21264 if test -f "$dir/lib$name.la"; then
21265 found_la="$dir/lib$name.la"
21271 if test "X$found_dir" != "X"; then
21276 if test "X$found_dir" != "X"; then
21277 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21278 if test "X$found_so" != "X"; then
21279 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21283 for x in $ltrpathdirs; do
21284 if test "X$x" = "X$found_dir"; then
21289 if test -z "$haveit"; then
21290 ltrpathdirs="$ltrpathdirs $found_dir"
21292 if test "$hardcode_direct" = yes; then
21293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21295 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21296 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21298 for x in $rpathdirs; do
21299 if test "X$x" = "X$found_dir"; then
21304 if test -z "$haveit"; then
21305 rpathdirs="$rpathdirs $found_dir"
21309 for x in $LDFLAGS $LIBINTL; do
21311 acl_save_prefix="$prefix"
21312 prefix="$acl_final_prefix"
21313 acl_save_exec_prefix="$exec_prefix"
21314 exec_prefix="$acl_final_exec_prefix"
21316 exec_prefix="$acl_save_exec_prefix"
21317 prefix="$acl_save_prefix"
21319 if test "X$x" = "X-L$found_dir"; then
21324 if test -z "$haveit"; then
21325 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21327 if test "$hardcode_minus_L" != no; then
21328 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21330 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21336 if test "X$found_a" != "X"; then
21337 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21339 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21342 additional_includedir=
21343 case "$found_dir" in
21345 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21346 additional_includedir="$basedir/include"
21349 if test "X$additional_includedir" != "X"; then
21350 if test "X$additional_includedir" != "X/usr/include"; then
21352 if test "X$additional_includedir" = "X/usr/local/include"; then
21353 if test -n "$GCC"; then
21355 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21359 if test -z "$haveit"; then
21360 for x in $CPPFLAGS $INCINTL; do
21362 acl_save_prefix="$prefix"
21363 prefix="$acl_final_prefix"
21364 acl_save_exec_prefix="$exec_prefix"
21365 exec_prefix="$acl_final_exec_prefix"
21367 exec_prefix="$acl_save_exec_prefix"
21368 prefix="$acl_save_prefix"
21370 if test "X$x" = "X-I$additional_includedir"; then
21375 if test -z "$haveit"; then
21376 if test -d "$additional_includedir"; then
21377 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21383 if test -n "$found_la"; then
21384 save_libdir="$libdir"
21385 case "$found_la" in
21386 */* | *\\*) . "$found_la" ;;
21387 *) . "./$found_la" ;;
21389 libdir="$save_libdir"
21390 for dep in $dependency_libs; do
21393 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21394 if test "X$additional_libdir" != "X/usr/lib"; then
21396 if test "X$additional_libdir" = "X/usr/local/lib"; then
21397 if test -n "$GCC"; then
21399 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21403 if test -z "$haveit"; then
21405 for x in $LDFLAGS $LIBINTL; do
21407 acl_save_prefix="$prefix"
21408 prefix="$acl_final_prefix"
21409 acl_save_exec_prefix="$exec_prefix"
21410 exec_prefix="$acl_final_exec_prefix"
21412 exec_prefix="$acl_save_exec_prefix"
21413 prefix="$acl_save_prefix"
21415 if test "X$x" = "X-L$additional_libdir"; then
21420 if test -z "$haveit"; then
21421 if test -d "$additional_libdir"; then
21422 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21426 for x in $LDFLAGS $LTLIBINTL; do
21428 acl_save_prefix="$prefix"
21429 prefix="$acl_final_prefix"
21430 acl_save_exec_prefix="$exec_prefix"
21431 exec_prefix="$acl_final_exec_prefix"
21433 exec_prefix="$acl_save_exec_prefix"
21434 prefix="$acl_save_prefix"
21436 if test "X$x" = "X-L$additional_libdir"; then
21441 if test -z "$haveit"; then
21442 if test -d "$additional_libdir"; then
21443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21450 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21451 if test "$enable_rpath" != no; then
21453 for x in $rpathdirs; do
21454 if test "X$x" = "X$dir"; then
21459 if test -z "$haveit"; then
21460 rpathdirs="$rpathdirs $dir"
21463 for x in $ltrpathdirs; do
21464 if test "X$x" = "X$dir"; then
21469 if test -z "$haveit"; then
21470 ltrpathdirs="$ltrpathdirs $dir"
21475 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21481 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21482 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21488 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21489 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21495 if test "X$rpathdirs" != "X"; then
21496 if test -n "$hardcode_libdir_separator"; then
21498 for found_dir in $rpathdirs; do
21499 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21501 acl_save_libdir="$libdir"
21503 eval flag=\"$hardcode_libdir_flag_spec\"
21504 libdir="$acl_save_libdir"
21505 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21507 for found_dir in $rpathdirs; do
21508 acl_save_libdir="$libdir"
21509 libdir="$found_dir"
21510 eval flag=\"$hardcode_libdir_flag_spec\"
21511 libdir="$acl_save_libdir"
21512 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21516 if test "X$ltrpathdirs" != "X"; then
21517 for found_dir in $ltrpathdirs; do
21518 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21523 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21524 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21525 $as_echo_n "(cached) " >&6
21527 gt_save_CPPFLAGS="$CPPFLAGS"
21528 CPPFLAGS="$CPPFLAGS $INCINTL"
21529 gt_save_LIBS="$LIBS"
21530 LIBS="$LIBS $LIBINTL"
21531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21532 /* end confdefs.h. */
21533 #include <libintl.h>
21534 extern int _nl_msg_cat_cntr;
21539 const char *_nl_expand_alias (const char *);
21543 bindtextdomain ("", "");
21544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21549 if ac_fn_c_try_link "$LINENO"; then :
21550 gt_cv_func_gnugettext1_libintl=yes
21552 gt_cv_func_gnugettext1_libintl=no
21554 rm -f core conftest.err conftest.$ac_objext \
21555 conftest$ac_exeext conftest.$ac_ext
21556 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21557 LIBS="$LIBS $LIBICONV"
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21560 #include <libintl.h>
21561 extern int _nl_msg_cat_cntr;
21566 const char *_nl_expand_alias (const char *);
21570 bindtextdomain ("", "");
21571 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21576 if ac_fn_c_try_link "$LINENO"; then :
21577 LIBINTL="$LIBINTL $LIBICONV"
21578 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21579 gt_cv_func_gnugettext1_libintl=yes
21582 rm -f core conftest.err conftest.$ac_objext \
21583 conftest$ac_exeext conftest.$ac_ext
21585 CPPFLAGS="$gt_save_CPPFLAGS"
21586 LIBS="$gt_save_LIBS"
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21589 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21592 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21593 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21594 && test "$PACKAGE" != gettext-runtime \
21595 && test "$PACKAGE" != gettext-tools; }; then
21596 gt_use_preinstalled_gnugettext=yes
21604 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21605 nls_cv_use_gnu_gettext=yes
21609 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21610 BUILD_INCLUDED_LIBINTL=yes
21611 USE_INCLUDED_LIBINTL=yes
21612 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21613 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21614 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21618 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21619 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21624 if test -n "$INTL_MACOSX_LIBS"; then
21625 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21626 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21627 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21628 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21632 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21633 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21635 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21643 $as_echo_n "checking whether to use NLS... " >&6; }
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21645 $as_echo "$USE_NLS" >&6; }
21646 if test "$USE_NLS" = "yes"; then
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21648 $as_echo_n "checking where the gettext function comes from... " >&6; }
21649 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21650 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21651 gt_source="external libintl"
21656 gt_source="included intl directory"
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21659 $as_echo "$gt_source" >&6; }
21662 if test "$USE_NLS" = "yes"; then
21664 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21665 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21667 $as_echo_n "checking how to link with libintl... " >&6; }
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21669 $as_echo "$LIBINTL" >&6; }
21671 for element in $INCINTL; do
21673 for x in $CPPFLAGS; do
21675 acl_save_prefix="$prefix"
21676 prefix="$acl_final_prefix"
21677 acl_save_exec_prefix="$exec_prefix"
21678 exec_prefix="$acl_final_exec_prefix"
21680 exec_prefix="$acl_save_exec_prefix"
21681 prefix="$acl_save_prefix"
21683 if test "X$x" = "X$element"; then
21688 if test -z "$haveit"; then
21689 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21696 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21699 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21707 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21708 BUILD_INCLUDED_LIBINTL=yes
21715 nls_cv_header_intl=
21716 nls_cv_header_libgt=
21728 if test "$USE_INCLUDED_LIBINTL" = yes; then
21729 INTLOBJS="\$(GETTOBJS)"
21733 INTL_LIBTOOL_SUFFIX_PREFIX=
21737 INTLLIBS="$LIBINTL"
21746 support_smartalloc=yes
21747 support_readline=yes
21753 support_static_tools=no
21754 support_static_fd=no
21755 support_static_sd=no
21756 support_static_dir=no
21757 support_static_cons=no
21758 build_client_only=no
21762 batch_insert_db_backends=""
21766 # Check whether --enable-bat was given.
21767 if test "${enable_bat+set}" = set; then :
21768 enableval=$enable_bat;
21769 if test x$enableval = xyes; then
21771 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21781 if test x$support_bat = xyes; then
21782 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21784 if test $pkg = 0; then
21785 BAT_DIR=src/qt-console
21787 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21805 # Check whether --enable-smartalloc was given.
21806 if test "${enable_smartalloc+set}" = set; then :
21807 enableval=$enable_smartalloc;
21808 if test x$enableval = xno; then
21809 support_smartalloc=no
21816 if test x$support_smartalloc = xyes; then
21818 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21822 # Check whether --enable-lockmgr was given.
21823 if test "${enable_lockmgr+set}" = set; then :
21824 enableval=$enable_lockmgr;
21825 if test x$enableval = xyes; then
21826 support_lockmgr=yes
21833 if test x$support_lockmgr = xyes; then
21835 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21840 # Check whether --enable-static-tools was given.
21841 if test "${enable_static_tools+set}" = set; then :
21842 enableval=$enable_static_tools;
21843 if test x$enableval = xyes; then
21844 if test x$use_libtool = xyes; then
21845 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21846 please rerun configure with --disable-libtool" "$LINENO" 5
21848 support_static_tools=yes
21856 if test x$support_static_tools = xyes; then
21857 TTOOL_LDFLAGS="-static"
21861 # Check whether --enable-static-fd was given.
21862 if test "${enable_static_fd+set}" = set; then :
21863 enableval=$enable_static_fd;
21864 if test x$enableval = xyes; then
21865 if test x$use_libtool = xyes; then
21866 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21867 please rerun configure with --disable-libtool" "$LINENO" 5
21869 support_static_fd=yes
21877 if test x$support_static_fd = xyes; then
21878 STATIC_FD="static-bacula-fd"
21882 # Check whether --enable-static-sd was given.
21883 if test "${enable_static_sd+set}" = set; then :
21884 enableval=$enable_static_sd;
21885 if test x$enableval = xyes; then
21886 if test x$use_libtool = xyes; then
21887 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21888 please rerun configure with --disable-libtool" "$LINENO" 5
21890 support_static_sd=yes
21898 if test x$support_static_sd = xyes; then
21899 STATIC_SD="static-bacula-sd"
21903 # Check whether --enable-static-dir was given.
21904 if test "${enable_static_dir+set}" = set; then :
21905 enableval=$enable_static_dir;
21906 if test x$enableval = xyes; then
21907 if test x$use_libtool = xyes; then
21908 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21909 please rerun configure with --disable-libtool" "$LINENO" 5
21911 support_static_dir=yes
21919 if test x$support_static_dir = xyes; then
21920 STATIC_DIR="static-bacula-dir"
21924 # Check whether --enable-static-cons was given.
21925 if test "${enable_static_cons+set}" = set; then :
21926 enableval=$enable_static_cons;
21927 if test x$enableval = xyes; then
21928 if test x$use_libtool = xyes; then
21929 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21930 please rerun configure with --disable-libtool" "$LINENO" 5
21932 support_static_cons=yes
21940 if test x$support_static_cons = xyes; then
21941 STATIC_CONS="static-bconsole"
21945 # Check whether --enable-client-only was given.
21946 if test "${enable_client_only+set}" = set; then :
21947 enableval=$enable_client_only;
21948 if test x$enableval = xyes; then
21949 build_client_only=yes
21957 if test x$build_client_only = xno; then
21964 # Check whether --enable-build-dird was given.
21965 if test "${enable_build_dird+set}" = set; then :
21966 enableval=$enable_build_dird;
21967 if test x$enableval = xno; then
21975 DIRD_DIR="src/dird"
21976 DIR_TOOLS="DIRTOOLS"
21981 # Check whether --enable-build-stored was given.
21982 if test "${enable_build_stored+set}" = set; then :
21983 enableval=$enable_build_stored;
21984 if test x$enableval = xno; then
21991 if test x$build_stored = xyes; then
21992 STORED_DIR="src/stored"
21998 # Check whether --enable-conio was given.
21999 if test "${enable_conio+set}" = set; then :
22000 enableval=$enable_conio;
22001 if test x$enableval = xno; then
22011 # Check whether --enable-ipv6 was given.
22012 if test "${enable_ipv6+set}" = set; then :
22013 enableval=$enable_ipv6;
22014 if test x$enableval = xno; then
22022 if test x$support_ipv6 = xyes; then
22023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h. */
22025 #include <sys/types.h>
22026 #include <sys/socket.h>
22027 #include <netinet/in.h>
22031 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22036 if ac_fn_c_try_link "$LINENO"; then :
22037 support_in6addr_any=yes
22039 support_in6addr_any=no
22041 rm -f core conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22044 if test x$support_in6addr_any = xno ; then
22045 in6addr_any="const struct in6_addr in6addr_any"
22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h. */
22052 #include <sys/types.h>
22053 #include <sys/socket.h>
22054 #include <netinet/in.h>
22058 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22063 if ac_fn_c_try_link "$LINENO"; then :
22068 rm -f core conftest.err conftest.$ac_objext \
22069 conftest$ac_exeext conftest.$ac_ext
22072 if test x$support_ipv6 = xyes; then
22074 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22077 if test x$support_in6addr_any = xno ; then
22079 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22085 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22086 if test "x$ac_cv_header_curses_h" = xyes; then :
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22089 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22090 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22091 $as_echo_n "(cached) " >&6
22093 ac_check_lib_save_LIBS=$LIBS
22094 LIBS="-ltinfo $LIBS"
22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096 /* end confdefs.h. */
22098 /* Override any GCC internal prototype to avoid an error.
22099 Use char because int might match the return type of a GCC
22100 builtin and then its argument prototype would still apply. */
22113 if ac_fn_c_try_link "$LINENO"; then :
22114 ac_cv_lib_tinfo_tgetent=yes
22116 ac_cv_lib_tinfo_tgetent=no
22118 rm -f core conftest.err conftest.$ac_objext \
22119 conftest$ac_exeext conftest.$ac_ext
22120 LIBS=$ac_check_lib_save_LIBS
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22123 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22124 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22129 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22130 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22131 $as_echo_n "(cached) " >&6
22133 ac_check_lib_save_LIBS=$LIBS
22134 LIBS="-lncurses $LIBS"
22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22138 /* Override any GCC internal prototype to avoid an error.
22139 Use char because int might match the return type of a GCC
22140 builtin and then its argument prototype would still apply. */
22153 if ac_fn_c_try_link "$LINENO"; then :
22154 ac_cv_lib_ncurses_tgetent=yes
22156 ac_cv_lib_ncurses_tgetent=no
22158 rm -f core conftest.err conftest.$ac_objext \
22159 conftest$ac_exeext conftest.$ac_ext
22160 LIBS=$ac_check_lib_save_LIBS
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22163 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22164 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22165 TERM_LIB="-lncurses"
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22169 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22170 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22171 $as_echo_n "(cached) " >&6
22173 ac_check_lib_save_LIBS=$LIBS
22174 LIBS="-ltermcap $LIBS"
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22178 /* Override any GCC internal prototype to avoid an error.
22179 Use char because int might match the return type of a GCC
22180 builtin and then its argument prototype would still apply. */
22193 if ac_fn_c_try_link "$LINENO"; then :
22194 ac_cv_lib_termcap_tgetent=yes
22196 ac_cv_lib_termcap_tgetent=no
22198 rm -f core conftest.err conftest.$ac_objext \
22199 conftest$ac_exeext conftest.$ac_ext
22200 LIBS=$ac_check_lib_save_LIBS
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22203 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22204 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22205 TERM_LIB="-ltermcap"
22216 for ac_header in curses.h
22218 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22219 if test "x$ac_cv_header_curses_h" = xyes; then :
22220 cat >>confdefs.h <<_ACEOF
22221 #define HAVE_CURSES_H 1
22228 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22229 if test "x$ac_cv_header_term_h" = xyes; then :
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22231 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22232 if ${ac_cv_lib_curses_tgetent+:} false; then :
22233 $as_echo_n "(cached) " >&6
22235 ac_check_lib_save_LIBS=$LIBS
22236 LIBS="-lcurses $LIBS"
22237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22238 /* end confdefs.h. */
22240 /* Override any GCC internal prototype to avoid an error.
22241 Use char because int might match the return type of a GCC
22242 builtin and then its argument prototype would still apply. */
22255 if ac_fn_c_try_link "$LINENO"; then :
22256 ac_cv_lib_curses_tgetent=yes
22258 ac_cv_lib_curses_tgetent=no
22260 rm -f core conftest.err conftest.$ac_objext \
22261 conftest$ac_exeext conftest.$ac_ext
22262 LIBS=$ac_check_lib_save_LIBS
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22265 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22266 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22267 TERM_LIB="-lcurses"
22281 if test x$support_conio = xyes; then
22282 if test x$TERM_LIB != x; then
22283 CONS_LIBS=$TERM_LIB
22287 support_readline=no
22289 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22292 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22297 # Check whether --enable-readline was given.
22298 if test "${enable_readline+set}" = set; then :
22299 enableval=$enable_readline;
22300 if test x$enableval = xno; then
22301 support_readline=no
22310 if test x$support_readline = xyes; then
22312 # Check whether --with-readline was given.
22313 if test "${with_readline+set}" = set; then :
22314 withval=$with_readline;
22315 case "$with_readline" in
22320 if test -f ${with_readline}/readline.h; then
22321 CONS_INC="-I${with_readline}"
22322 CONS_LDFLAGS="-L$with_readline"
22323 elif test -f ${with_readline}/include/readline/readline.h; then
22324 CONS_INC="-I${with_readline}/include/readline"
22325 CONS_LDFLAGS="-L${with_readline}/lib"
22326 with_readline="${with_readline}/include/readline"
22328 with_readline="/usr/include/readline"
22331 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22332 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22336 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22338 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22344 echo "readline.h not found. readline turned off ..."
22356 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22357 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22360 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22363 CONS_INC="-I/usr/include/readline"
22364 CONS_LIBS="-lreadline ${TERM_LIB}"
22368 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22369 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22370 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22373 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22376 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22377 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22378 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22379 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22384 echo "readline.h not found. readline turned off ..."
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22412 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22413 if ${ac_cv_header_stat_broken+:} false; then :
22414 $as_echo_n "(cached) " >&6
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22418 #include <sys/types.h>
22419 #include <sys/stat.h>
22421 #if defined S_ISBLK && defined S_IFDIR
22422 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22425 #if defined S_ISBLK && defined S_IFCHR
22426 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22429 #if defined S_ISLNK && defined S_IFREG
22430 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22433 #if defined S_ISSOCK && defined S_IFREG
22434 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22438 if ac_fn_c_try_compile "$LINENO"; then :
22439 ac_cv_header_stat_broken=no
22441 ac_cv_header_stat_broken=yes
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22446 $as_echo "$ac_cv_header_stat_broken" >&6; }
22447 if test $ac_cv_header_stat_broken = yes; then
22449 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22453 ac_header_dirent=no
22454 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22455 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22457 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22458 if eval \${$as_ac_Header+:} false; then :
22459 $as_echo_n "(cached) " >&6
22461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h. */
22463 #include <sys/types.h>
22475 if ac_fn_c_try_compile "$LINENO"; then :
22476 eval "$as_ac_Header=yes"
22478 eval "$as_ac_Header=no"
22480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 eval ac_res=\$$as_ac_Header
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22484 $as_echo "$ac_res" >&6; }
22485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22486 cat >>confdefs.h <<_ACEOF
22487 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22490 ac_header_dirent=$ac_hdr; break
22494 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22495 if test $ac_header_dirent = dirent.h; then
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22497 $as_echo_n "checking for library containing opendir... " >&6; }
22498 if ${ac_cv_search_opendir+:} false; then :
22499 $as_echo_n "(cached) " >&6
22501 ac_func_search_save_LIBS=$LIBS
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22505 /* Override any GCC internal prototype to avoid an error.
22506 Use char because int might match the return type of a GCC
22507 builtin and then its argument prototype would still apply. */
22520 for ac_lib in '' dir; do
22521 if test -z "$ac_lib"; then
22522 ac_res="none required"
22525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22527 if ac_fn_c_try_link "$LINENO"; then :
22528 ac_cv_search_opendir=$ac_res
22530 rm -f core conftest.err conftest.$ac_objext \
22532 if ${ac_cv_search_opendir+:} false; then :
22536 if ${ac_cv_search_opendir+:} false; then :
22539 ac_cv_search_opendir=no
22541 rm conftest.$ac_ext
22542 LIBS=$ac_func_search_save_LIBS
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22545 $as_echo "$ac_cv_search_opendir" >&6; }
22546 ac_res=$ac_cv_search_opendir
22547 if test "$ac_res" != no; then :
22548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22554 $as_echo_n "checking for library containing opendir... " >&6; }
22555 if ${ac_cv_search_opendir+:} false; then :
22556 $as_echo_n "(cached) " >&6
22558 ac_func_search_save_LIBS=$LIBS
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22562 /* Override any GCC internal prototype to avoid an error.
22563 Use char because int might match the return type of a GCC
22564 builtin and then its argument prototype would still apply. */
22577 for ac_lib in '' x; do
22578 if test -z "$ac_lib"; then
22579 ac_res="none required"
22582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22584 if ac_fn_c_try_link "$LINENO"; then :
22585 ac_cv_search_opendir=$ac_res
22587 rm -f core conftest.err conftest.$ac_objext \
22589 if ${ac_cv_search_opendir+:} false; then :
22593 if ${ac_cv_search_opendir+:} false; then :
22596 ac_cv_search_opendir=no
22598 rm conftest.$ac_ext
22599 LIBS=$ac_func_search_save_LIBS
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22602 $as_echo "$ac_cv_search_opendir" >&6; }
22603 ac_res=$ac_cv_search_opendir
22604 if test "$ac_res" != no; then :
22605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22611 for ac_func in strcasecmp select setenv putenv tcgetattr
22613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22616 cat >>confdefs.h <<_ACEOF
22617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22623 for ac_func in lstat lchown lchmod futimes fchmod fchown
22625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22627 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22628 cat >>confdefs.h <<_ACEOF
22629 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22635 for ac_func in nanosleep nl_langinfo
22637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22639 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22640 cat >>confdefs.h <<_ACEOF
22641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22647 for ac_func in be64toh htobe64
22649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22650 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22651 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22652 cat >>confdefs.h <<_ACEOF
22653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22659 for ac_header in varargs.h
22661 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22662 if test "x$ac_cv_header_varargs_h" = xyes; then :
22663 cat >>confdefs.h <<_ACEOF
22664 #define HAVE_VARARGS_H 1
22673 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22674 if test "x$ac_cv_func_socket" = xyes; then :
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22676 $as_echo "using libc's socket" >&6; }
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22679 $as_echo_n "checking for socket in -lxnet... " >&6; }
22680 if ${ac_cv_lib_xnet_socket+:} false; then :
22681 $as_echo_n "(cached) " >&6
22683 ac_check_lib_save_LIBS=$LIBS
22684 LIBS="-lxnet $LIBS"
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h. */
22688 /* Override any GCC internal prototype to avoid an error.
22689 Use char because int might match the return type of a GCC
22690 builtin and then its argument prototype would still apply. */
22703 if ac_fn_c_try_link "$LINENO"; then :
22704 ac_cv_lib_xnet_socket=yes
22706 ac_cv_lib_xnet_socket=no
22708 rm -f core conftest.err conftest.$ac_objext \
22709 conftest$ac_exeext conftest.$ac_ext
22710 LIBS=$ac_check_lib_save_LIBS
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22713 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22714 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22715 cat >>confdefs.h <<_ACEOF
22716 #define HAVE_LIBXNET 1
22719 LIBS="-lxnet $LIBS"
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22724 $as_echo_n "checking for socket in -lsocket... " >&6; }
22725 if ${ac_cv_lib_socket_socket+:} false; then :
22726 $as_echo_n "(cached) " >&6
22728 ac_check_lib_save_LIBS=$LIBS
22729 LIBS="-lsocket $LIBS"
22730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731 /* end confdefs.h. */
22733 /* Override any GCC internal prototype to avoid an error.
22734 Use char because int might match the return type of a GCC
22735 builtin and then its argument prototype would still apply. */
22748 if ac_fn_c_try_link "$LINENO"; then :
22749 ac_cv_lib_socket_socket=yes
22751 ac_cv_lib_socket_socket=no
22753 rm -f core conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
22755 LIBS=$ac_check_lib_save_LIBS
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22758 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22759 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22760 cat >>confdefs.h <<_ACEOF
22761 #define HAVE_LIBSOCKET 1
22764 LIBS="-lsocket $LIBS"
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22769 $as_echo_n "checking for socket in -linet... " >&6; }
22770 if ${ac_cv_lib_inet_socket+:} false; then :
22771 $as_echo_n "(cached) " >&6
22773 ac_check_lib_save_LIBS=$LIBS
22774 LIBS="-linet $LIBS"
22775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776 /* end confdefs.h. */
22778 /* Override any GCC internal prototype to avoid an error.
22779 Use char because int might match the return type of a GCC
22780 builtin and then its argument prototype would still apply. */
22793 if ac_fn_c_try_link "$LINENO"; then :
22794 ac_cv_lib_inet_socket=yes
22796 ac_cv_lib_inet_socket=no
22798 rm -f core conftest.err conftest.$ac_objext \
22799 conftest$ac_exeext conftest.$ac_ext
22800 LIBS=$ac_check_lib_save_LIBS
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22803 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22804 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22805 cat >>confdefs.h <<_ACEOF
22806 #define HAVE_LIBINET 1
22809 LIBS="-linet $LIBS"
22819 # Check whether --with-tcp-wrappers was given.
22820 if test "${with_tcp_wrappers+set}" = set; then :
22821 withval=$with_tcp_wrappers;
22822 if test "x$withval" != "xno" ; then
22824 LIBS="$saved_LIBS -lwrap"
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22826 $as_echo_n "checking for library containing nanosleep... " >&6; }
22827 if ${ac_cv_search_nanosleep+:} false; then :
22828 $as_echo_n "(cached) " >&6
22830 ac_func_search_save_LIBS=$LIBS
22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832 /* end confdefs.h. */
22834 /* Override any GCC internal prototype to avoid an error.
22835 Use char because int might match the return type of a GCC
22836 builtin and then its argument prototype would still apply. */
22844 return nanosleep ();
22849 for ac_lib in '' rt; do
22850 if test -z "$ac_lib"; then
22851 ac_res="none required"
22854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22856 if ac_fn_c_try_link "$LINENO"; then :
22857 ac_cv_search_nanosleep=$ac_res
22859 rm -f core conftest.err conftest.$ac_objext \
22861 if ${ac_cv_search_nanosleep+:} false; then :
22865 if ${ac_cv_search_nanosleep+:} false; then :
22868 ac_cv_search_nanosleep=no
22870 rm conftest.$ac_ext
22871 LIBS=$ac_func_search_save_LIBS
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22874 $as_echo "$ac_cv_search_nanosleep" >&6; }
22875 ac_res=$ac_cv_search_nanosleep
22876 if test "$ac_res" != no; then :
22877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22882 $as_echo_n "checking for libwrap... " >&6; }
22883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884 /* end confdefs.h. */
22886 #include <sys/types.h>
22888 int deny_severity = 0;
22889 int allow_severity = 0;
22890 struct request_info *req;
22902 if ac_fn_c_try_link "$LINENO"; then :
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22905 $as_echo "yes" >&6; }
22907 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22915 LIBS="$saved_LIBS -lwrap -lnsl"
22916 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h. */
22920 #include <sys/types.h>
22922 int deny_severity = 0;
22923 int allow_severity = 0;
22924 struct request_info *req;
22936 if ac_fn_c_try_link "$LINENO"; then :
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22939 $as_echo "yes" >&6; }
22941 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22949 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22953 rm -f core conftest.err conftest.$ac_objext \
22954 conftest$ac_exeext conftest.$ac_ext
22958 rm -f core conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22967 $as_echo_n "checking for OpenSSL... " >&6; }
22969 # Check whether --with-openssl was given.
22970 if test "${with_openssl+set}" = set; then :
22971 withval=$with_openssl;
22972 with_openssl_directory=${withval}
22978 if test "x$with_openssl_directory" != "xno"; then
22979 OPENSSL_LIBS="-lssl -lcrypto"
22982 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22984 # Make sure the $with_openssl_directory also makes sense
22986 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22987 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22988 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22992 saved_LIBS="${LIBS}"
22993 saved_CFLAGS="${CFLAGS}"
22994 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22995 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998 /* end confdefs.h. */
23000 #include <openssl/ssl.h>
23006 CRYPTO_set_id_callback(NULL);
23012 if ac_fn_c_try_link "$LINENO"; then :
23015 support_crypto="yes"
23020 support_crypto="no"
23024 rm -f core conftest.err conftest.$ac_objext \
23025 conftest$ac_exeext conftest.$ac_ext
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23030 #include <openssl/evp.h>
23042 if ac_fn_c_try_link "$LINENO"; then :
23044 ac_cv_openssl_sha2="yes"
23048 ac_cv_openssl_sha2="no"
23052 rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23058 #include <openssl/evp.h>
23070 if ac_fn_c_try_link "$LINENO"; then :
23072 ac_cv_openssl_export="no"
23076 ac_cv_openssl_export="yes"
23080 rm -f core conftest.err conftest.$ac_objext \
23081 conftest$ac_exeext conftest.$ac_ext
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23084 $as_echo "$support_tls" >&6; }
23085 if test "$support_tls" = "yes"; then
23087 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23090 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23093 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23097 if test "$ac_cv_openssl_sha2" = "yes"; then
23099 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23103 if test "$ac_cv_openssl_export" = "yes"; then
23105 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23109 if test "$support_crypto" = "yes"; then
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23111 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23112 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23113 $as_echo_n "(cached) " >&6
23115 ac_check_lib_save_LIBS=$LIBS
23116 LIBS="-lcrypto $LIBS"
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h. */
23120 /* Override any GCC internal prototype to avoid an error.
23121 Use char because int might match the return type of a GCC
23122 builtin and then its argument prototype would still apply. */
23126 char EVP_PKEY_encrypt_old ();
23130 return EVP_PKEY_encrypt_old ();
23135 if ac_fn_c_try_link "$LINENO"; then :
23136 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23138 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23140 rm -f core conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
23142 LIBS=$ac_check_lib_save_LIBS
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23145 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23146 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23148 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23154 LIBS="${saved_LIBS}"
23155 CFLAGS="${saved_CFLAGS}"
23158 support_crypto="no"
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23160 $as_echo "$support_tls" >&6; }
23163 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23172 $as_echo_n "checking for library containing dlopen... " >&6; }
23173 if ${ac_cv_search_dlopen+:} false; then :
23174 $as_echo_n "(cached) " >&6
23176 ac_func_search_save_LIBS=$LIBS
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h. */
23180 /* Override any GCC internal prototype to avoid an error.
23181 Use char because int might match the return type of a GCC
23182 builtin and then its argument prototype would still apply. */
23195 for ac_lib in '' dl; do
23196 if test -z "$ac_lib"; then
23197 ac_res="none required"
23200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23202 if ac_fn_c_try_link "$LINENO"; then :
23203 ac_cv_search_dlopen=$ac_res
23205 rm -f core conftest.err conftest.$ac_objext \
23207 if ${ac_cv_search_dlopen+:} false; then :
23211 if ${ac_cv_search_dlopen+:} false; then :
23214 ac_cv_search_dlopen=no
23216 rm conftest.$ac_ext
23217 LIBS=$ac_func_search_save_LIBS
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23220 $as_echo "$ac_cv_search_dlopen" >&6; }
23221 ac_res=$ac_cv_search_dlopen
23222 if test "$ac_res" != no; then :
23223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23228 working_dir=`eval echo /opt/bacula/working`
23230 # Check whether --with-working-dir was given.
23231 if test "${with_working_dir+set}" = set; then :
23232 withval=$with_working_dir;
23233 if test "x$withval" != "xno" ; then
23234 working_dir=$withval
23245 # Check whether --with-archivedir was given.
23246 if test "${with_archivedir+set}" = set; then :
23247 withval=$with_archivedir;
23248 if test "x$withval" != "xno" ; then
23249 archivedir=$withval
23258 basename=`hostname`
23260 # Check whether --with-basename was given.
23261 if test "${with_basename+set}" = set; then :
23262 withval=$with_basename;
23263 if test "x$withval" != "xno" ; then
23273 hostname=`uname -n | cut -d '.' -f 1`
23274 if test x${hostname} = x ; then
23275 hostname="localhost"
23277 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23278 if test ! $? = 0; then
23279 hostname="localhost"
23282 # Check whether --with-hostname was given.
23283 if test "${with_hostname+set}" = set; then :
23284 withval=$with_hostname;
23285 if test "x$withval" != "xno" ; then
23296 scriptdir=`eval echo ${sysconfdir}`
23298 # Check whether --with-scriptdir was given.
23299 if test "${with_scriptdir+set}" = set; then :
23300 withval=$with_scriptdir;
23301 if test "x$withval" != "xno" ; then
23312 bsrdir=`eval echo /opt/bacula/bsr`
23314 # Check whether --with-bsrdir was given.
23315 if test "${with_bsrdir+set}" = set; then :
23316 withval=$with_bsrdir;
23317 if test "x$withval" != "xno" ; then
23327 logdir=`eval echo /opt/bacula/log`
23329 # Check whether --with-logdir was given.
23330 if test "${with_logdir+set}" = set; then :
23331 withval=$with_logdir;
23332 if test "x$withval" != "xno" ; then
23343 # ------------------------------------------
23344 # Where to place plugindir (plugin files)
23345 # ------------------------------------------
23346 plugindir=`eval echo ${libdir}`
23348 # Check whether --with-plugindir was given.
23349 if test "${with_plugindir+set}" = set; then :
23350 withval=$with_plugindir;
23351 if test "x$withval" != "xno" ; then
23362 dump_email=root@localhost
23364 # Check whether --with-dump-email was given.
23365 if test "${with_dump_email+set}" = set; then :
23366 withval=$with_dump_email;
23367 if test "x$withval" != "xno" ; then
23368 dump_email=$withval
23377 job_email=root@localhost
23379 # Check whether --with-job-email was given.
23380 if test "${with_job_email+set}" = set; then :
23381 withval=$with_job_email;
23382 if test "x$withval" != "xno" ; then
23392 smtp_host=localhost
23394 # Check whether --with-smtp_host was given.
23395 if test "${with_smtp_host+set}" = set; then :
23396 withval=$with_smtp_host;
23397 if test "x$withval" != "xno" ; then
23409 # Check whether --with-pid-dir was given.
23410 if test "${with_pid_dir+set}" = set; then :
23411 withval=$with_pid_dir;
23412 if test "x$withval" != "xno" ; then
23420 cat >>confdefs.h <<_ACEOF
23421 #define _PATH_BACULA_PIDDIR "$piddir"
23426 subsysdir=/var/run/subsys
23427 if test -d /var/run/subsys; then
23428 subsysdir=/var/run/subsys
23429 elif test -d /var/lock/subsys; then
23430 subsysdir=/var/lock/subsys
23432 subsysdir=/var/run/subsys
23435 # Check whether --with-subsys-dir was given.
23436 if test "${with_subsys_dir+set}" = set; then :
23437 withval=$with_subsys_dir;
23438 if test "x$withval" != "xno" ; then
23450 # Check whether --with-baseport was given.
23451 if test "${with_baseport+set}" = set; then :
23452 withval=$with_baseport;
23453 if test "x$withval" != "xno" ; then
23462 dir_port=`expr $baseport`
23463 fd_port=`expr $baseport + 1`
23464 sd_port=`expr $fd_port + 1`
23472 # Check whether --with-dir-password was given.
23473 if test "${with_dir_password+set}" = set; then :
23474 withval=$with_dir_password;
23475 if test "x$withval" != "xno" ; then
23476 dir_password=$withval
23483 if test "x$dir_password" = "x" ; then
23484 if test "x$OPENSSL" = "xnone" ; then
23485 key=`autoconf/randpass 33`
23487 key=`openssl rand -base64 33`
23494 # Check whether --with-fd-password was given.
23495 if test "${with_fd_password+set}" = set; then :
23496 withval=$with_fd_password;
23497 if test "x$withval" != "xno" ; then
23498 fd_password=$withval
23505 if test "x$fd_password" = "x" ; then
23506 if test "x$OPENSSL" = "xnone" ; then
23507 key=`autoconf/randpass 37`
23509 key=`openssl rand -base64 33`
23516 # Check whether --with-sd-password was given.
23517 if test "${with_sd_password+set}" = set; then :
23518 withval=$with_sd_password;
23519 if test "x$withval" != "xno" ; then
23520 sd_password=$withval
23527 if test "x$sd_password" = "x" ; then
23528 if test "x$OPENSSL" = "xnone" ; then
23529 key=`autoconf/randpass 41`
23531 key=`openssl rand -base64 33`
23538 # Check whether --with-mon-dir-password was given.
23539 if test "${with_mon_dir_password+set}" = set; then :
23540 withval=$with_mon_dir_password;
23541 if test "x$withval" != "xno" ; then
23542 mon_dir_password=$withval
23549 if test "x$mon_dir_password" = "x" ; then
23550 if test "x$OPENSSL" = "xnone" ; then
23551 key=`autoconf/randpass 33`
23553 key=`openssl rand -base64 33`
23555 mon_dir_password=$key
23560 # Check whether --with-mon-fd-password was given.
23561 if test "${with_mon_fd_password+set}" = set; then :
23562 withval=$with_mon_fd_password;
23563 if test "x$withval" != "xno" ; then
23564 mon_fd_password=$withval
23571 if test "x$mon_fd_password" = "x" ; then
23572 if test "x$OPENSSL" = "xnone" ; then
23573 key=`autoconf/randpass 37`
23575 key=`openssl rand -base64 33`
23577 mon_fd_password=$key
23582 # Check whether --with-mon-sd-password was given.
23583 if test "${with_mon_sd_password+set}" = set; then :
23584 withval=$with_mon_sd_password;
23585 if test "x$withval" != "xno" ; then
23586 mon_sd_password=$withval
23593 if test "x$mon_sd_password" = "x" ; then
23594 if test "x$OPENSSL" = "xnone" ; then
23595 key=`autoconf/randpass 41`
23597 key=`openssl rand -base64 33`
23599 mon_sd_password=$key
23611 # Check whether --with-db_name was given.
23612 if test "${with_db_name+set}" = set; then :
23613 withval=$with_db_name;
23614 if test "x$withval" != "x" ; then
23625 # Check whether --with-db_user was given.
23626 if test "${with_db_user+set}" = set; then :
23627 withval=$with_db_user;
23628 if test "x$withval" != "x" ; then
23639 # Check whether --with-db_password was given.
23640 if test "${with_db_password+set}" = set; then :
23641 withval=$with_db_password;
23642 if test "x$withval" != "x" ; then
23643 db_password=$withval
23653 # Check whether --with-db_port was given.
23654 if test "${with_db_port+set}" = set; then :
23655 withval=$with_db_port;
23656 if test "x$withval" != "x" ; then
23667 # Check whether --with-db_ssl_options was given.
23668 if test "${with_db_ssl_options+set}" = set; then :
23669 withval=$with_db_ssl_options;
23670 if test "x$withval" != "x" ; then
23671 db_ssl_options=$withval
23680 # Handle users and groups for each daemon
23684 # Check whether --with-dir_user was given.
23685 if test "${with_dir_user+set}" = set; then :
23686 withval=$with_dir_user;
23687 if test "x$withval" != "x" ; then
23697 # Check whether --with-dir_group was given.
23698 if test "${with_dir_group+set}" = set; then :
23699 withval=$with_dir_group;
23700 if test "x$withval" != "x" ; then
23710 # Check whether --with-sd_user was given.
23711 if test "${with_sd_user+set}" = set; then :
23712 withval=$with_sd_user;
23713 if test "x$withval" != "x" ; then
23723 # Check whether --with-sd_group was given.
23724 if test "${with_sd_group+set}" = set; then :
23725 withval=$with_sd_group;
23726 if test "x$withval" != "x" ; then
23736 # Check whether --with-fd_user was given.
23737 if test "${with_fd_user+set}" = set; then :
23738 withval=$with_fd_user;
23739 if test "x$withval" != "x" ; then
23749 # Check whether --with-fd_group was given.
23750 if test "${with_fd_group+set}" = set; then :
23751 withval=$with_fd_group;
23752 if test "x$withval" != "x" ; then
23769 # Check whether --with-sbin-perm was given.
23770 if test "${with_sbin_perm+set}" = set; then :
23771 withval=$with_sbin_perm;
23772 if test "x$withval" != "x" ; then
23782 support_batch_insert=yes
23783 # Check whether --enable-batch-insert was given.
23784 if test "${enable_batch_insert+set}" = set; then :
23785 enableval=$enable_batch_insert;
23786 if test x$enableval = xno; then
23787 support_batch_insert=no
23794 if test x$support_batch_insert = xyes; then
23796 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23805 $as_echo_n "checking for PostgreSQL support... " >&6; }
23807 # Check whether --with-postgresql was given.
23808 if test "${with_postgresql+set}" = set; then :
23809 withval=$with_postgresql;
23810 if test "$withval" != "no"; then
23811 if test "$withval" = "yes"; then
23812 PG_CONFIG=`which pg_config 2>/dev/null`
23813 if test -n "$PG_CONFIG"; then
23814 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23815 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23816 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23817 elif test -f /usr/local/include/libpq-fe.h; then
23818 POSTGRESQL_INCDIR=/usr/local/include
23819 if test -d /usr/local/lib64; then
23820 POSTGRESQL_LIBDIR=/usr/local/lib64
23822 POSTGRESQL_LIBDIR=/usr/local/lib
23824 POSTGRESQL_BINDIR=/usr/local/bin
23825 elif test -f /usr/include/libpq-fe.h; then
23826 POSTGRESQL_INCDIR=/usr/include
23827 if test -d /usr/lib64; then
23828 POSTGRESQL_LIBDIR=/usr/lib64
23830 POSTGRESQL_LIBDIR=/usr/lib
23832 POSTGRESQL_BINDIR=/usr/bin
23833 elif test -f /usr/include/pgsql/libpq-fe.h; then
23834 POSTGRESQL_INCDIR=/usr/include/pgsql
23835 if test -d /usr/lib64/pgsql; then
23836 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23838 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23840 POSTGRESQL_BINDIR=/usr/bin
23841 elif test -f /usr/include/postgresql/libpq-fe.h; then
23842 POSTGRESQL_INCDIR=/usr/include/postgresql
23843 if test -d /usr/lib64/postgresql; then
23844 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23846 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23848 POSTGRESQL_BINDIR=/usr/bin
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23851 $as_echo "no" >&6; }
23852 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23854 elif test -f $withval/include/libpq-fe.h; then
23855 POSTGRESQL_INCDIR=$withval/include
23856 POSTGRESQL_LIBDIR=$withval/lib
23857 POSTGRESQL_BINDIR=$withval/bin
23858 elif test -f $withval/include/postgresql/libpq-fe.h; then
23859 POSTGRESQL_INCDIR=$withval/include/postgresql
23860 if test -d $withval/lib64; then
23861 POSTGRESQL_LIBDIR=$withval/lib64
23863 POSTGRESQL_LIBDIR=$withval/lib
23865 POSTGRESQL_BINDIR=$withval/bin
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23868 $as_echo "no" >&6; }
23869 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23872 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23875 $as_echo "yes" >&6; }
23877 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23878 if test x$use_libtool != xno; then
23879 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23881 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23883 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23884 if test "x$ac_cv_func_crypt" = xyes; then :
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23888 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23889 if ${ac_cv_lib_crypt_crypt+:} false; then :
23890 $as_echo_n "(cached) " >&6
23892 ac_check_lib_save_LIBS=$LIBS
23893 LIBS="-lcrypt $LIBS"
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23897 /* Override any GCC internal prototype to avoid an error.
23898 Use char because int might match the return type of a GCC
23899 builtin and then its argument prototype would still apply. */
23912 if ac_fn_c_try_link "$LINENO"; then :
23913 ac_cv_lib_crypt_crypt=yes
23915 ac_cv_lib_crypt_crypt=no
23917 rm -f core conftest.err conftest.$ac_objext \
23918 conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23922 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23923 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23924 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23929 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23930 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23932 if test -z "${db_backends}"; then
23933 db_backends="PostgreSQL"
23935 db_backends="${db_backends} PostgreSQL"
23937 if test -z "${DB_BACKENDS}"; then
23938 DB_BACKENDS="postgresql"
23940 DB_BACKENDS="${DB_BACKENDS} postgresql"
23943 if test "x$support_batch_insert" = "xyes"; then
23944 saved_LDFLAGS="${LDFLAGS}"
23945 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23946 saved_LIBS="${LIBS}"
23947 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23948 LIBS="${saved_LIBS} -lcrypt"
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23952 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23953 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23954 $as_echo_n "(cached) " >&6
23956 ac_check_lib_save_LIBS=$LIBS
23958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h. */
23961 /* Override any GCC internal prototype to avoid an error.
23962 Use char because int might match the return type of a GCC
23963 builtin and then its argument prototype would still apply. */
23967 char PQisthreadsafe ();
23971 return PQisthreadsafe ();
23976 if ac_fn_c_try_link "$LINENO"; then :
23977 ac_cv_lib_pq_PQisthreadsafe=yes
23979 ac_cv_lib_pq_PQisthreadsafe=no
23981 rm -f core conftest.err conftest.$ac_objext \
23982 conftest$ac_exeext conftest.$ac_ext
23983 LIBS=$ac_check_lib_save_LIBS
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23986 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23987 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23989 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23994 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23995 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23996 $as_echo_n "(cached) " >&6
23998 ac_check_lib_save_LIBS=$LIBS
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h. */
24003 /* Override any GCC internal prototype to avoid an error.
24004 Use char because int might match the return type of a GCC
24005 builtin and then its argument prototype would still apply. */
24009 char PQputCopyData ();
24013 return PQputCopyData ();
24018 if ac_fn_c_try_link "$LINENO"; then :
24019 ac_cv_lib_pq_PQputCopyData=yes
24021 ac_cv_lib_pq_PQputCopyData=no
24023 rm -f core conftest.err conftest.$ac_objext \
24024 conftest$ac_exeext conftest.$ac_ext
24025 LIBS=$ac_check_lib_save_LIBS
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24028 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24029 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24031 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24035 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24036 if test $support_batch_insert = yes ; then
24038 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24040 if test -z "${batch_insert_db_backends}"; then
24041 batch_insert_db_backends="PostgreSQL"
24043 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24048 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24050 echo "WARNING: Your PostgreSQL client library is too old to detect "
24051 echo "if it was compiled with --enable-thread-safety, consider to "
24052 echo "upgrade it in order to avoid problems with Batch insert mode"
24055 LDFLAGS="${saved_LDFLAGS}"
24056 LIBS="${saved_LIBS}"
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24060 $as_echo "no" >&6; }
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24066 $as_echo "no" >&6; }
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24078 $as_echo_n "checking for MySQL support... " >&6; }
24080 # Check whether --with-mysql was given.
24081 if test "${with_mysql+set}" = set; then :
24082 withval=$with_mysql;
24083 if test "$withval" != "no"; then
24084 if test "$withval" = "yes"; then
24086 # This code is very broken on older systems
24088 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24089 # if test "x${MYSQL_CONFIG}" != x; then
24090 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24091 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24092 # if test $? = 0 ; then
24093 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24094 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24096 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24097 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24100 # if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24101 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24102 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24103 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24104 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24105 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24107 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24109 MYSQL_BINDIR=/usr/local/mysql/bin
24110 elif test -f /usr/include/mysql/mysql.h; then
24111 MYSQL_INCDIR=/usr/include/mysql
24112 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24113 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24114 MYSQL_LIBDIR=/usr/lib64/mysql
24115 elif test -f /usr/lib64/libmysqlclient_r.a \
24116 -o -f /usr/lib64/libmysqlclient_r.so; then
24117 MYSQL_LIBDIR=/usr/lib64
24118 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24119 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24120 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24121 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24122 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24123 MYSQL_LIBDIR=/usr/lib/mysql
24125 MYSQL_LIBDIR=/usr/lib
24127 MYSQL_BINDIR=/usr/bin
24128 elif test -f /usr/include/mysql.h; then
24129 MYSQL_INCDIR=/usr/include
24130 if test -f /usr/lib64/libmysqlclient_r.a \
24131 -o -f /usr/lib64/libmysqlclient_r.so; then
24132 MYSQL_LIBDIR=/usr/lib64
24134 MYSQL_LIBDIR=/usr/lib
24136 MYSQL_BINDIR=/usr/bin
24137 elif test -f /usr/local/include/mysql/mysql.h; then
24138 MYSQL_INCDIR=/usr/local/include/mysql
24139 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24140 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24141 MYSQL_LIBDIR=/usr/local/lib64/mysql
24143 MYSQL_LIBDIR=/usr/local/lib/mysql
24145 MYSQL_BINDIR=/usr/local/bin
24146 elif test -f /usr/local/include/mysql.h; then
24147 MYSQL_INCDIR=/usr/local/include
24148 if test -f /usr/local/lib64/libmysqlclient_r.a \
24149 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24150 MYSQL_LIBDIR=/usr/local/lib64
24152 MYSQL_LIBDIR=/usr/local/lib
24154 MYSQL_BINDIR=/usr/local/bin
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24157 $as_echo "no" >&6; }
24158 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24161 if test -f $withval/include/mysql/mysql.h; then
24162 MYSQL_INCDIR=$withval/include/mysql
24163 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24164 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24165 MYSQL_LIBDIR=$withval/lib64/mysql
24166 elif test -f $withval/lib64/libmysqlclient_r.a \
24167 -o -f $withval/lib64/libmysqlclient_r.so; then
24168 MYSQL_LIBDIR=$withval/lib64
24169 elif test -f $withval/lib/libmysqlclient_r.a \
24170 -o -f $withval/lib/libmysqlclient_r.so; then
24171 MYSQL_LIBDIR=$withval/lib
24173 MYSQL_LIBDIR=$withval/lib/mysql
24175 MYSQL_BINDIR=$withval/bin
24176 elif test -f $withval/include/mysql.h; then
24177 MYSQL_INCDIR=$withval/include
24178 if test -f $withval/lib64/libmysqlclient_r.a \
24179 -o -f $withval/lib64/libmysqlclient_r.so; then
24180 MYSQL_LIBDIR=$withval/lib64
24182 MYSQL_LIBDIR=$withval/lib
24184 MYSQL_BINDIR=$withval/bin
24185 elif test -f $withval/mysql.h; then
24186 MYSQL_INCDIR=$withval
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24188 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24189 case $MYSQL_INCDIR in
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24192 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24193 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24194 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24196 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24197 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24199 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24203 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24204 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24205 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24207 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24208 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24210 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24213 if test -z "${MYSQL_LIBDIR}" ; then
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24215 $as_echo "no" >&6; }
24216 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24220 $as_echo "no" >&6; }
24221 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24224 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24225 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24226 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24227 if test x$use_libtool != xno; then
24228 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24230 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24232 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24234 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24237 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24240 $as_echo "yes" >&6; }
24242 if test -z "${db_backends}" ; then
24243 db_backends="MySQL"
24245 db_backends="${db_backends} MySQL"
24247 if test -z "${DB_BACKENDS}" ; then
24248 DB_BACKENDS="mysql"
24250 DB_BACKENDS="${DB_BACKENDS} mysql"
24253 if test "x$support_batch_insert" = "xyes"; then
24254 saved_LDFLAGS="${LDFLAGS}"
24255 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24256 saved_LIBS="${LIBS}"
24257 LIBS="${saved_LIBS} -lz"
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24260 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24261 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24262 $as_echo_n "(cached) " >&6
24264 ac_check_lib_save_LIBS=$LIBS
24265 LIBS="-lmysqlclient_r $LIBS"
24266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24267 /* end confdefs.h. */
24269 /* Override any GCC internal prototype to avoid an error.
24270 Use char because int might match the return type of a GCC
24271 builtin and then its argument prototype would still apply. */
24275 char mysql_thread_safe ();
24279 return mysql_thread_safe ();
24284 if ac_fn_c_try_link "$LINENO"; then :
24285 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24287 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24289 rm -f core conftest.err conftest.$ac_objext \
24290 conftest$ac_exeext conftest.$ac_ext
24291 LIBS=$ac_check_lib_save_LIBS
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24294 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24295 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24297 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24301 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24302 if test -z "${batch_insert_db_backends}"; then
24303 batch_insert_db_backends="MySQL"
24305 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24309 LDFLAGS="${saved_LDFLAGS}"
24310 LIBS="${saved_LIBS}"
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24314 $as_echo "no" >&6; }
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24320 $as_echo "no" >&6; }
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24326 $as_echo_n "checking for MySQL embedded support... " >&6; }
24328 # Check whether --with-embedded-mysql was given.
24329 if test "${with_embedded_mysql+set}" = set; then :
24330 withval=$with_embedded_mysql;
24331 if test "$withval" != "no"; then
24332 if test "$withval" = "yes"; then
24333 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24334 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24335 if test -d /usr/local/mysql/lib64/mysql; then
24336 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24338 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24340 MYSQL_BINDIR=/usr/local/mysql/bin
24341 elif test -f /usr/include/mysql/mysql.h; then
24342 MYSQL_INCDIR=/usr/include/mysql
24343 if test -d /usr/lib64/mysql; then
24344 MYSQL_LIBDIR=/usr/lib64/mysql
24346 MYSQL_LIBDIR=/usr/lib/mysql
24348 MYSQL_BINDIR=/usr/bin
24349 elif test -f /usr/include/mysql.h; then
24350 MYSQL_INCDIR=/usr/include
24351 if test -d /usr/lib64; then
24352 MYSQL_LIBDIR=/usr/lib64
24354 MYSQL_LIBDIR=/usr/lib
24356 MYSQL_BINDIR=/usr/bin
24357 elif test -f /usr/local/include/mysql/mysql.h; then
24358 MYSQL_INCDIR=/usr/local/include/mysql
24359 if test -d /usr/local/lib64/mysql; then
24360 MYSQL_LIBDIR=/usr/local/lib64/mysql
24362 MYSQL_LIBDIR=/usr/local/lib/mysql
24364 MYSQL_BINDIR=/usr/local/bin
24365 elif test -f /usr/local/include/mysql.h; then
24366 MYSQL_INCDIR=/usr/local/include
24367 if test -d /usr/local/lib64; then
24368 MYSQL_LIBDIR=/usr/local/lib64
24370 MYSQL_LIBDIR=/usr/local/lib
24372 MYSQL_BINDIR=/usr/local/bin
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 $as_echo "no" >&6; }
24376 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24379 if test -f $withval/include/mysql/mysql.h; then
24380 MYSQL_INCDIR=$withval/include/mysql
24381 if test -d $withval/lib64/mysql; then
24382 MYSQL_LIBDIR=$withval/lib64/mysql
24384 MYSQL_LIBDIR=$withval/lib/mysql
24386 MYSQL_BINDIR=$withval/bin
24387 elif test -f $withval/include/mysql.h; then
24388 MYSQL_INCDIR=$withval/include
24389 if test -d $withval/lib64; then
24390 MYSQL_LIBDIR=$withval/lib64
24392 MYSQL_LIBDIR=$withval/lib
24394 MYSQL_BINDIR=$withval/bin
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24397 $as_echo "no" >&6; }
24398 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24401 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24402 if test x$use_libtool != xno; then
24403 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24405 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24407 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24408 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24411 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24414 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24417 $as_echo "yes" >&6; }
24419 if test -z "${db_backends}"; then
24420 db_backends="MySQL"
24422 db_backends="${db_backends} MySQL"
24424 if test -z "${DB_BACKENDS}"; then
24425 DB_BACKENDS="mysql"
24427 DB_BACKENDS="${DB_BACKENDS} mysql"
24430 if test "x$support_batch_insert" = "xyes"; then
24431 saved_LDFLAGS="${LDFLAGS}"
24432 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24433 saved_LIBS="${LIBS}"
24434 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24437 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24438 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24439 $as_echo_n "(cached) " >&6
24441 ac_check_lib_save_LIBS=$LIBS
24442 LIBS="-lmysqlclient_r $LIBS"
24443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444 /* end confdefs.h. */
24446 /* Override any GCC internal prototype to avoid an error.
24447 Use char because int might match the return type of a GCC
24448 builtin and then its argument prototype would still apply. */
24452 char mysql_thread_safe ();
24456 return mysql_thread_safe ();
24461 if ac_fn_c_try_link "$LINENO"; then :
24462 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24464 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24466 rm -f core conftest.err conftest.$ac_objext \
24467 conftest$ac_exeext conftest.$ac_ext
24468 LIBS=$ac_check_lib_save_LIBS
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24471 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24472 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24474 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24478 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24479 if test -z "${batch_insert_db_backends}"; then
24480 batch_insert_db_backends="MySQL"
24482 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24486 LDFLAGS="${saved_LDFLAGS}"
24487 LIBS="${saved_LIBS}"
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 $as_echo "no" >&6; }
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24497 $as_echo "no" >&6; }
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24510 $as_echo_n "checking for SQLite3 support... " >&6; }
24512 # Check whether --with-sqlite3 was given.
24513 if test "${with_sqlite3+set}" = set; then :
24514 withval=$with_sqlite3;
24515 if test "$withval" != "no"; then
24516 if test "$withval" = "yes"; then
24517 if test -f /usr/local/include/sqlite3.h; then
24518 SQLITE_INCDIR=/usr/local/include
24519 if test -d /usr/local/lib64; then
24520 SQLITE_LIBDIR=/usr/local/lib64
24522 SQLITE_LIBDIR=/usr/local/lib
24524 SQLITE_BINDIR=/usr/local/bin
24525 elif test -f /usr/include/sqlite3.h; then
24526 SQLITE_INCDIR=/usr/include
24527 if test -d /usr/lib64; then
24528 SQLITE_LIBDIR=/usr/lib64
24530 SQLITE_LIBDIR=/usr/lib
24532 SQLITE_BINDIR=/usr/bin
24533 elif test -f $prefix/include/sqlite3.h; then
24534 SQLITE_INCDIR=$prefix/include
24535 if test -d $prefix/lib64; then
24536 SQLITE_LIBDIR=$prefix/lib64
24538 SQLITE_LIBDIR=$prefix/lib
24540 SQLITE_BINDIR=$prefix/bin
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24543 $as_echo "no" >&6; }
24544 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24547 if test -f $withval/sqlite3.h; then
24548 SQLITE_INCDIR=$withval
24549 SQLITE_LIBDIR=$withval
24550 SQLITE_BINDIR=$withval
24551 elif test -f $withval/include/sqlite3.h; then
24552 SQLITE_INCDIR=$withval/include
24553 if test -d $withval/lib64; then
24554 SQLITE_LIBDIR=$withval/lib64
24556 SQLITE_LIBDIR=$withval/lib
24558 SQLITE_BINDIR=$withval/bin
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24562 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24565 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24566 if test x$use_libtool != xno; then
24567 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24569 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24571 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24572 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24575 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24578 $as_echo "yes" >&6; }
24580 if test -z "${db_backends}"; then
24581 db_backends="SQLite3"
24583 db_backends="${db_backends} SQLite3"
24585 if test -z "${DB_BACKENDS}"; then
24586 DB_BACKENDS="sqlite3"
24588 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24591 if test "x$support_batch_insert" = "xyes"; then
24592 saved_LDFLAGS="${LDFLAGS}"
24593 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24596 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24597 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24598 $as_echo_n "(cached) " >&6
24600 ac_check_lib_save_LIBS=$LIBS
24601 LIBS="-lsqlite3 $LIBS"
24602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24603 /* end confdefs.h. */
24605 /* Override any GCC internal prototype to avoid an error.
24606 Use char because int might match the return type of a GCC
24607 builtin and then its argument prototype would still apply. */
24611 char sqlite3_threadsafe ();
24615 return sqlite3_threadsafe ();
24620 if ac_fn_c_try_link "$LINENO"; then :
24621 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24623 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24625 rm -f core conftest.err conftest.$ac_objext \
24626 conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24630 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24631 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24633 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24637 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24638 if test -z "${batch_insert_db_backends}"; then
24639 batch_insert_db_backends="SQLite3"
24641 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24645 LDFLAGS="${saved_LDFLAGS}"
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24649 $as_echo "no" >&6; }
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24655 $as_echo "no" >&6; }
24665 if test -z "${batch_insert_db_backends}"; then
24666 batch_insert_db_backends="None"
24669 if test "x${db_backends}" = "x" ; then
24672 echo "You have not specified either --enable-client-only or one of the"
24673 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24674 echo "This is not permitted. Please reconfigure."
24676 echo "Aborting the configuration ..."
24682 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24684 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24685 if test x$use_libtool = xno; then
24686 SHARED_CATALOG_TARGETS=""
24688 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24692 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24694 if test x$use_libtool = xno; then
24697 echo "You have specified two or more of the"
24698 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24699 echo "This is not permitted when not using libtool Please reconfigure."
24701 echo "Aborting the configuration ..."
24707 SHARED_CATALOG_TARGETS=""
24708 for db_type in ${DB_BACKENDS}
24710 if test -z "${SHARED_CATALOG_TARGETS}"; then
24711 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24713 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24719 if test x$use_libtool = xyes; then
24729 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24732 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24733 if test -z "$CCOPTS"; then
24734 CCOPTS='-g -O2 -Wall'
24741 largefile_support="no"
24743 # Check whether --enable-largefile was given.
24744 if test "${enable_largefile+set}" = set; then :
24745 enableval=$enable_largefile;
24748 if test "$enable_largefile" != no; then
24749 if test -n "$ac_tool_prefix"; then
24750 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24751 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24753 $as_echo_n "checking for $ac_word... " >&6; }
24754 if ${ac_cv_prog_GETCONF+:} false; then :
24755 $as_echo_n "(cached) " >&6
24757 if test -n "$GETCONF"; then
24758 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761 for as_dir in $PATH
24764 test -z "$as_dir" && as_dir=.
24765 for ac_exec_ext in '' $ac_executable_extensions; do
24766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24767 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24777 GETCONF=$ac_cv_prog_GETCONF
24778 if test -n "$GETCONF"; then
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24780 $as_echo "$GETCONF" >&6; }
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24783 $as_echo "no" >&6; }
24788 if test -z "$ac_cv_prog_GETCONF"; then
24789 ac_ct_GETCONF=$GETCONF
24790 # Extract the first word of "getconf", so it can be a program name with args.
24791 set dummy getconf; ac_word=$2
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24793 $as_echo_n "checking for $ac_word... " >&6; }
24794 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24795 $as_echo_n "(cached) " >&6
24797 if test -n "$ac_ct_GETCONF"; then
24798 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24801 for as_dir in $PATH
24804 test -z "$as_dir" && as_dir=.
24805 for ac_exec_ext in '' $ac_executable_extensions; do
24806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24807 ac_cv_prog_ac_ct_GETCONF="getconf"
24808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24817 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24818 if test -n "$ac_ct_GETCONF"; then
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24820 $as_echo "$ac_ct_GETCONF" >&6; }
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24823 $as_echo "no" >&6; }
24826 if test "x$ac_ct_GETCONF" = x; then
24829 case $cross_compiling:$ac_tool_warned in
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24833 ac_tool_warned=yes ;;
24835 GETCONF=$ac_ct_GETCONF
24838 GETCONF="$ac_cv_prog_GETCONF"
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24842 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24843 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24844 $as_echo_n "(cached) " >&6
24846 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24847 ac_cv_sys_largefile_CFLAGS=no
24849 # IRIX 6.2 and later require cc -n32.
24850 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24851 if test "$GCC" != yes; then
24852 ac_cv_sys_largefile_CFLAGS=-n32
24855 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h. */
24867 if ac_fn_c_try_link "$LINENO"; then :
24870 ac_cv_sys_largefile_CFLAGS=no
24872 rm -f core conftest.err conftest.$ac_objext \
24873 conftest$ac_exeext conftest.$ac_ext
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24879 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24881 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24882 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24883 $as_echo_n "(cached) " >&6
24885 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24886 ac_cv_sys_largefile_LDFLAGS=no
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24891 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24893 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24894 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24895 $as_echo_n "(cached) " >&6
24897 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24898 ac_cv_sys_largefile_LIBS=no
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24903 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24905 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24908 -D_FILE_OFFSET_BITS=*) ;;
24909 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24910 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24915 case "$CPPFLAGS" in
24916 '') CPPFLAGS="$ac_flag" ;;
24917 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24925 '') CFLAGS="$ac_flag" ;;
24926 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24931 case "$ac_cv_sys_largefile_LDFLAGS" in
24935 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24936 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24939 case "$ac_cv_sys_largefile_LIBS" in
24943 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24944 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24948 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24949 if ${ac_cv_sys_file_offset_bits+:} false; then :
24950 $as_echo_n "(cached) " >&6
24952 ac_cv_sys_file_offset_bits=no
24953 ac_cv_sys_file_offset_bits=64
24954 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24956 -D_FILE_OFFSET_BITS)
24957 ac_cv_sys_file_offset_bits=1 ;;
24958 -D_FILE_OFFSET_BITS=*)
24959 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24965 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24966 if test "$ac_cv_sys_file_offset_bits" != no; then
24968 cat >>confdefs.h <<_ACEOF
24969 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24974 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24975 if ${ac_cv_sys_largefile_source+:} false; then :
24976 $as_echo_n "(cached) " >&6
24978 ac_cv_sys_largefile_source=no
24979 ac_cv_sys_largefile_source=1
24980 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24982 -D_LARGEFILE_SOURCE)
24983 ac_cv_sys_largefile_source=1 ;;
24984 -D_LARGEFILE_SOURCE=*)
24985 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24991 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24992 if test "$ac_cv_sys_largefile_source" != no; then
24994 cat >>confdefs.h <<_ACEOF
24995 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25000 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25001 if ${ac_cv_sys_large_files+:} false; then :
25002 $as_echo_n "(cached) " >&6
25004 ac_cv_sys_large_files=no
25005 ac_cv_sys_large_files=1
25006 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25009 ac_cv_sys_large_files=1 ;;
25011 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25017 $as_echo "$ac_cv_sys_large_files" >&6; }
25018 if test "$ac_cv_sys_large_files" != no; then
25020 cat >>confdefs.h <<_ACEOF
25021 #define _LARGE_FILES $ac_cv_sys_large_files
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25029 $as_echo_n "checking for X... " >&6; }
25032 # Check whether --with-x was given.
25033 if test "${with_x+set}" = set; then :
25037 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25038 if test "x$with_x" = xno; then
25039 # The user explicitly disabled X.
25042 case $x_includes,$x_libraries in #(
25043 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25044 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25045 $as_echo_n "(cached) " >&6
25047 # One or both of the vars are not set, and there is no cached value.
25048 ac_x_includes=no ac_x_libraries=no
25049 rm -f -r conftest.dir
25050 if mkdir conftest.dir; then
25052 cat >Imakefile <<'_ACEOF'
25054 @echo incroot='${INCROOT}'
25056 @echo usrlibdir='${USRLIBDIR}'
25058 @echo libdir='${LIBDIR}'
25060 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25061 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25062 for ac_var in incroot usrlibdir libdir; do
25063 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25065 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25066 for ac_extension in a so sl dylib la dll; do
25067 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25068 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25069 ac_im_usrlibdir=$ac_im_libdir; break
25072 # Screen out bogus values from the imake configuration. They are
25073 # bogus both because they are the default anyway, and because
25074 # using them would break gcc on systems where it needs fixed includes.
25075 case $ac_im_incroot in
25076 /usr/include) ac_x_includes= ;;
25077 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25079 case $ac_im_usrlibdir in
25080 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25081 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25085 rm -f -r conftest.dir
25088 # Standard set of common directories for X headers.
25089 # Check X11 before X11Rn because it is often a symlink to the current release.
25103 /usr/local/X11/include
25104 /usr/local/X11R7/include
25105 /usr/local/X11R6/include
25106 /usr/local/X11R5/include
25107 /usr/local/X11R4/include
25109 /usr/local/include/X11
25110 /usr/local/include/X11R7
25111 /usr/local/include/X11R6
25112 /usr/local/include/X11R5
25113 /usr/local/include/X11R4
25117 /usr/XFree86/include/X11
25121 /usr/unsupported/include
25122 /usr/athena/include
25123 /usr/local/x11r5/include
25124 /usr/lpp/Xamples/include
25126 /usr/openwin/include
25127 /usr/openwin/share/include'
25129 if test "$ac_x_includes" = no; then
25130 # Guess where to find include files, by looking for Xlib.h.
25131 # First, try using that file with no special directory specified.
25132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25133 /* end confdefs.h. */
25134 #include <X11/Xlib.h>
25136 if ac_fn_c_try_cpp "$LINENO"; then :
25137 # We can compile using X headers with no special include directory.
25140 for ac_dir in $ac_x_header_dirs; do
25141 if test -r "$ac_dir/X11/Xlib.h"; then
25142 ac_x_includes=$ac_dir
25147 rm -f conftest.err conftest.i conftest.$ac_ext
25148 fi # $ac_x_includes = no
25150 if test "$ac_x_libraries" = no; then
25151 # Check for the libraries.
25152 # See if we find them without any special options.
25153 # Don't add to $LIBS permanently.
25156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157 /* end confdefs.h. */
25158 #include <X11/Xlib.h>
25167 if ac_fn_c_try_link "$LINENO"; then :
25169 # We can link X programs with no special library path.
25173 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25175 # Don't even attempt the hair of trying to link an X program!
25176 for ac_extension in a so sl dylib la dll; do
25177 if test -r "$ac_dir/libX11.$ac_extension"; then
25178 ac_x_libraries=$ac_dir
25184 rm -f core conftest.err conftest.$ac_objext \
25185 conftest$ac_exeext conftest.$ac_ext
25186 fi # $ac_x_libraries = no
25188 case $ac_x_includes,$ac_x_libraries in #(
25189 no,* | *,no | *\'*)
25190 # Didn't find X, or a directory has "'" in its name.
25191 ac_cv_have_x="have_x=no";; #(
25193 # Record where we found X for the cache.
25194 ac_cv_have_x="have_x=yes\
25195 ac_x_includes='$ac_x_includes'\
25196 ac_x_libraries='$ac_x_libraries'"
25202 eval "$ac_cv_have_x"
25205 if test "$have_x" != yes; then
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25207 $as_echo "$have_x" >&6; }
25210 # If each of the values was on the command line, it overrides each guess.
25211 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25212 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25213 # Update the cache value to reflect the command line values.
25214 ac_cv_have_x="have_x=yes\
25215 ac_x_includes='$x_includes'\
25216 ac_x_libraries='$x_libraries'"
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25218 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25221 if test "$no_x" = yes; then
25222 # Not all programs may use this symbol, but it does not hurt to define it.
25224 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25226 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25228 if test -n "$x_includes"; then
25229 X_CFLAGS="$X_CFLAGS -I$x_includes"
25232 # It would also be nice to do this for all -L options, not just this one.
25233 if test -n "$x_libraries"; then
25234 X_LIBS="$X_LIBS -L$x_libraries"
25235 # For Solaris; some versions of Sun CC require a space after -R and
25236 # others require no space. Words are not sufficient . . . .
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25238 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25239 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25240 ac_xsave_c_werror_flag=$ac_c_werror_flag
25241 ac_c_werror_flag=yes
25242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25243 /* end confdefs.h. */
25253 if ac_fn_c_try_link "$LINENO"; then :
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25255 $as_echo "no" >&6; }
25256 X_LIBS="$X_LIBS -R$x_libraries"
25258 LIBS="$ac_xsave_LIBS -R $x_libraries"
25259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25260 /* end confdefs.h. */
25270 if ac_fn_c_try_link "$LINENO"; then :
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25272 $as_echo "yes" >&6; }
25273 X_LIBS="$X_LIBS -R $x_libraries"
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25276 $as_echo "neither works" >&6; }
25278 rm -f core conftest.err conftest.$ac_objext \
25279 conftest$ac_exeext conftest.$ac_ext
25281 rm -f core conftest.err conftest.$ac_objext \
25282 conftest$ac_exeext conftest.$ac_ext
25283 ac_c_werror_flag=$ac_xsave_c_werror_flag
25284 LIBS=$ac_xsave_LIBS
25287 # Check for system-dependent libraries X programs must link with.
25288 # Do this before checking for the system-independent R6 libraries
25289 # (-lICE), since we may need -lsocket or whatever for X linking.
25291 if test "$ISC" = yes; then
25292 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25294 # Martyn Johnson says this is needed for Ultrix, if the X
25295 # libraries were built with DECnet support. And Karl Berry says
25296 # the Alpha needs dnet_stub (dnet does not exist).
25297 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25299 /* end confdefs.h. */
25301 /* Override any GCC internal prototype to avoid an error.
25302 Use char because int might match the return type of a GCC
25303 builtin and then its argument prototype would still apply. */
25307 char XOpenDisplay ();
25311 return XOpenDisplay ();
25316 if ac_fn_c_try_link "$LINENO"; then :
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25320 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25321 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25322 $as_echo_n "(cached) " >&6
25324 ac_check_lib_save_LIBS=$LIBS
25325 LIBS="-ldnet $LIBS"
25326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25327 /* end confdefs.h. */
25329 /* Override any GCC internal prototype to avoid an error.
25330 Use char because int might match the return type of a GCC
25331 builtin and then its argument prototype would still apply. */
25339 return dnet_ntoa ();
25344 if ac_fn_c_try_link "$LINENO"; then :
25345 ac_cv_lib_dnet_dnet_ntoa=yes
25347 ac_cv_lib_dnet_dnet_ntoa=no
25349 rm -f core conftest.err conftest.$ac_objext \
25350 conftest$ac_exeext conftest.$ac_ext
25351 LIBS=$ac_check_lib_save_LIBS
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25354 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25355 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25356 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25359 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25361 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25362 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25363 $as_echo_n "(cached) " >&6
25365 ac_check_lib_save_LIBS=$LIBS
25366 LIBS="-ldnet_stub $LIBS"
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h. */
25370 /* Override any GCC internal prototype to avoid an error.
25371 Use char because int might match the return type of a GCC
25372 builtin and then its argument prototype would still apply. */
25380 return dnet_ntoa ();
25385 if ac_fn_c_try_link "$LINENO"; then :
25386 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25388 ac_cv_lib_dnet_stub_dnet_ntoa=no
25390 rm -f core conftest.err conftest.$ac_objext \
25391 conftest$ac_exeext conftest.$ac_ext
25392 LIBS=$ac_check_lib_save_LIBS
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25395 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25396 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25397 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25402 rm -f core conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
25404 LIBS="$ac_xsave_LIBS"
25406 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25407 # to get the SysV transport functions.
25408 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25410 # The nsl library prevents programs from opening the X display
25411 # on Irix 5.2, according to T.E. Dickey.
25412 # The functions gethostbyname, getservbyname, and inet_addr are
25413 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25414 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25415 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25419 if test $ac_cv_func_gethostbyname = no; then
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25421 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25422 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25423 $as_echo_n "(cached) " >&6
25425 ac_check_lib_save_LIBS=$LIBS
25427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25428 /* end confdefs.h. */
25430 /* Override any GCC internal prototype to avoid an error.
25431 Use char because int might match the return type of a GCC
25432 builtin and then its argument prototype would still apply. */
25436 char gethostbyname ();
25440 return gethostbyname ();
25445 if ac_fn_c_try_link "$LINENO"; then :
25446 ac_cv_lib_nsl_gethostbyname=yes
25448 ac_cv_lib_nsl_gethostbyname=no
25450 rm -f core conftest.err conftest.$ac_objext \
25451 conftest$ac_exeext conftest.$ac_ext
25452 LIBS=$ac_check_lib_save_LIBS
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25455 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25456 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25457 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25460 if test $ac_cv_lib_nsl_gethostbyname = no; then
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25462 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25463 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25464 $as_echo_n "(cached) " >&6
25466 ac_check_lib_save_LIBS=$LIBS
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h. */
25471 /* Override any GCC internal prototype to avoid an error.
25472 Use char because int might match the return type of a GCC
25473 builtin and then its argument prototype would still apply. */
25477 char gethostbyname ();
25481 return gethostbyname ();
25486 if ac_fn_c_try_link "$LINENO"; then :
25487 ac_cv_lib_bsd_gethostbyname=yes
25489 ac_cv_lib_bsd_gethostbyname=no
25491 rm -f core conftest.err conftest.$ac_objext \
25492 conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25496 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25497 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25498 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25504 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25505 # socket/setsockopt and other routines are undefined under SCO ODT
25506 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25507 # on later versions), says Simon Leinen: it contains gethostby*
25508 # variants that don't use the name server (or something). -lsocket
25509 # must be given before -lnsl if both are needed. We assume that
25510 # if connect needs -lnsl, so does gethostbyname.
25511 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25512 if test "x$ac_cv_func_connect" = xyes; then :
25516 if test $ac_cv_func_connect = no; then
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25518 $as_echo_n "checking for connect in -lsocket... " >&6; }
25519 if ${ac_cv_lib_socket_connect+:} false; then :
25520 $as_echo_n "(cached) " >&6
25522 ac_check_lib_save_LIBS=$LIBS
25523 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25525 /* end confdefs.h. */
25527 /* Override any GCC internal prototype to avoid an error.
25528 Use char because int might match the return type of a GCC
25529 builtin and then its argument prototype would still apply. */
25542 if ac_fn_c_try_link "$LINENO"; then :
25543 ac_cv_lib_socket_connect=yes
25545 ac_cv_lib_socket_connect=no
25547 rm -f core conftest.err conftest.$ac_objext \
25548 conftest$ac_exeext conftest.$ac_ext
25549 LIBS=$ac_check_lib_save_LIBS
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25552 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25553 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25554 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25559 # Guillermo Gomez says -lposix is necessary on A/UX.
25560 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25561 if test "x$ac_cv_func_remove" = xyes; then :
25565 if test $ac_cv_func_remove = no; then
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25567 $as_echo_n "checking for remove in -lposix... " >&6; }
25568 if ${ac_cv_lib_posix_remove+:} false; then :
25569 $as_echo_n "(cached) " >&6
25571 ac_check_lib_save_LIBS=$LIBS
25572 LIBS="-lposix $LIBS"
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25576 /* Override any GCC internal prototype to avoid an error.
25577 Use char because int might match the return type of a GCC
25578 builtin and then its argument prototype would still apply. */
25591 if ac_fn_c_try_link "$LINENO"; then :
25592 ac_cv_lib_posix_remove=yes
25594 ac_cv_lib_posix_remove=no
25596 rm -f core conftest.err conftest.$ac_objext \
25597 conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25601 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25602 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25608 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25609 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25610 if test "x$ac_cv_func_shmat" = xyes; then :
25614 if test $ac_cv_func_shmat = no; then
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25616 $as_echo_n "checking for shmat in -lipc... " >&6; }
25617 if ${ac_cv_lib_ipc_shmat+:} false; then :
25618 $as_echo_n "(cached) " >&6
25620 ac_check_lib_save_LIBS=$LIBS
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h. */
25625 /* Override any GCC internal prototype to avoid an error.
25626 Use char because int might match the return type of a GCC
25627 builtin and then its argument prototype would still apply. */
25640 if ac_fn_c_try_link "$LINENO"; then :
25641 ac_cv_lib_ipc_shmat=yes
25643 ac_cv_lib_ipc_shmat=no
25645 rm -f core conftest.err conftest.$ac_objext \
25646 conftest$ac_exeext conftest.$ac_ext
25647 LIBS=$ac_check_lib_save_LIBS
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25650 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25651 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25658 # Check for libraries that X11R6 Xt/Xaw programs need.
25659 ac_save_LDFLAGS=$LDFLAGS
25660 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25661 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25662 # check for ICE first), but we must link in the order -lSM -lICE or
25663 # we get undefined symbols. So assume we have SM if we have ICE.
25664 # These have to be linked with before -lX11, unlike the other
25665 # libraries we check for below, so use a different variable.
25666 # John Interrante, Karl Berry
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25668 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25669 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25670 $as_echo_n "(cached) " >&6
25672 ac_check_lib_save_LIBS=$LIBS
25673 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h. */
25677 /* Override any GCC internal prototype to avoid an error.
25678 Use char because int might match the return type of a GCC
25679 builtin and then its argument prototype would still apply. */
25683 char IceConnectionNumber ();
25687 return IceConnectionNumber ();
25692 if ac_fn_c_try_link "$LINENO"; then :
25693 ac_cv_lib_ICE_IceConnectionNumber=yes
25695 ac_cv_lib_ICE_IceConnectionNumber=no
25697 rm -f core conftest.err conftest.$ac_objext \
25698 conftest$ac_exeext conftest.$ac_ext
25699 LIBS=$ac_check_lib_save_LIBS
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25702 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25703 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25704 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25707 LDFLAGS=$ac_save_LDFLAGS
25745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25748 cat >>confdefs.h <<_ACEOF
25749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25757 $as_echo_n "checking for ANSI C header files... " >&6; }
25758 if ${ac_cv_header_stdc+:} false; then :
25759 $as_echo_n "(cached) " >&6
25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h. */
25763 #include <stdlib.h>
25764 #include <stdarg.h>
25765 #include <string.h>
25776 if ac_fn_c_try_compile "$LINENO"; then :
25777 ac_cv_header_stdc=yes
25779 ac_cv_header_stdc=no
25781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783 if test $ac_cv_header_stdc = yes; then
25784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h. */
25787 #include <string.h>
25790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25791 $EGREP "memchr" >/dev/null 2>&1; then :
25794 ac_cv_header_stdc=no
25800 if test $ac_cv_header_stdc = yes; then
25801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h. */
25804 #include <stdlib.h>
25807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25808 $EGREP "free" >/dev/null 2>&1; then :
25811 ac_cv_header_stdc=no
25817 if test $ac_cv_header_stdc = yes; then
25818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25819 if test "$cross_compiling" = yes; then :
25822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823 /* end confdefs.h. */
25825 #include <stdlib.h>
25826 #if ((' ' & 0x0FF) == 0x020)
25827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25830 # define ISLOWER(c) \
25831 (('a' <= (c) && (c) <= 'i') \
25832 || ('j' <= (c) && (c) <= 'r') \
25833 || ('s' <= (c) && (c) <= 'z'))
25834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25842 for (i = 0; i < 256; i++)
25843 if (XOR (islower (i), ISLOWER (i))
25844 || toupper (i) != TOUPPER (i))
25849 if ac_fn_c_try_run "$LINENO"; then :
25852 ac_cv_header_stdc=no
25854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25855 conftest.$ac_objext conftest.beam conftest.$ac_ext
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25861 $as_echo "$ac_cv_header_stdc" >&6; }
25862 if test $ac_cv_header_stdc = yes; then
25864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25869 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25870 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25871 $as_echo_n "(cached) " >&6
25873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h. */
25875 #include <sys/types.h>
25879 return makedev(0, 0);
25884 if ac_fn_c_try_link "$LINENO"; then :
25885 ac_cv_header_sys_types_h_makedev=yes
25887 ac_cv_header_sys_types_h_makedev=no
25889 rm -f core conftest.err conftest.$ac_objext \
25890 conftest$ac_exeext conftest.$ac_ext
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25894 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25896 if test $ac_cv_header_sys_types_h_makedev = no; then
25897 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25898 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25900 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25906 if test $ac_cv_header_sys_mkdev_h = no; then
25907 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25908 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25910 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25918 ac_header_dirent=no
25919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25920 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25922 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25923 if eval \${$as_ac_Header+:} false; then :
25924 $as_echo_n "(cached) " >&6
25926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25927 /* end confdefs.h. */
25928 #include <sys/types.h>
25940 if ac_fn_c_try_compile "$LINENO"; then :
25941 eval "$as_ac_Header=yes"
25943 eval "$as_ac_Header=no"
25945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25947 eval ac_res=\$$as_ac_Header
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25949 $as_echo "$ac_res" >&6; }
25950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25951 cat >>confdefs.h <<_ACEOF
25952 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25955 ac_header_dirent=$ac_hdr; break
25959 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25960 if test $ac_header_dirent = dirent.h; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25962 $as_echo_n "checking for library containing opendir... " >&6; }
25963 if ${ac_cv_search_opendir+:} false; then :
25964 $as_echo_n "(cached) " >&6
25966 ac_func_search_save_LIBS=$LIBS
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25970 /* Override any GCC internal prototype to avoid an error.
25971 Use char because int might match the return type of a GCC
25972 builtin and then its argument prototype would still apply. */
25985 for ac_lib in '' dir; do
25986 if test -z "$ac_lib"; then
25987 ac_res="none required"
25990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25992 if ac_fn_c_try_link "$LINENO"; then :
25993 ac_cv_search_opendir=$ac_res
25995 rm -f core conftest.err conftest.$ac_objext \
25997 if ${ac_cv_search_opendir+:} false; then :
26001 if ${ac_cv_search_opendir+:} false; then :
26004 ac_cv_search_opendir=no
26006 rm conftest.$ac_ext
26007 LIBS=$ac_func_search_save_LIBS
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26010 $as_echo "$ac_cv_search_opendir" >&6; }
26011 ac_res=$ac_cv_search_opendir
26012 if test "$ac_res" != no; then :
26013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26019 $as_echo_n "checking for library containing opendir... " >&6; }
26020 if ${ac_cv_search_opendir+:} false; then :
26021 $as_echo_n "(cached) " >&6
26023 ac_func_search_save_LIBS=$LIBS
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26027 /* Override any GCC internal prototype to avoid an error.
26028 Use char because int might match the return type of a GCC
26029 builtin and then its argument prototype would still apply. */
26042 for ac_lib in '' x; do
26043 if test -z "$ac_lib"; then
26044 ac_res="none required"
26047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26049 if ac_fn_c_try_link "$LINENO"; then :
26050 ac_cv_search_opendir=$ac_res
26052 rm -f core conftest.err conftest.$ac_objext \
26054 if ${ac_cv_search_opendir+:} false; then :
26058 if ${ac_cv_search_opendir+:} false; then :
26061 ac_cv_search_opendir=no
26063 rm conftest.$ac_ext
26064 LIBS=$ac_func_search_save_LIBS
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26067 $as_echo "$ac_cv_search_opendir" >&6; }
26068 ac_res=$ac_cv_search_opendir
26069 if test "$ac_res" != no; then :
26070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26077 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26078 if ${ac_cv_header_stat_broken+:} false; then :
26079 $as_echo_n "(cached) " >&6
26081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26082 /* end confdefs.h. */
26083 #include <sys/types.h>
26084 #include <sys/stat.h>
26086 #if defined S_ISBLK && defined S_IFDIR
26087 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26090 #if defined S_ISBLK && defined S_IFCHR
26091 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26094 #if defined S_ISLNK && defined S_IFREG
26095 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26098 #if defined S_ISSOCK && defined S_IFREG
26099 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104 ac_cv_header_stat_broken=no
26106 ac_cv_header_stat_broken=yes
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26111 $as_echo "$ac_cv_header_stat_broken" >&6; }
26112 if test $ac_cv_header_stat_broken = yes; then
26114 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26119 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26120 if ${ac_cv_header_sys_wait_h+:} false; then :
26121 $as_echo_n "(cached) " >&6
26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124 /* end confdefs.h. */
26125 #include <sys/types.h>
26126 #include <sys/wait.h>
26127 #ifndef WEXITSTATUS
26128 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26131 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26139 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26144 if ac_fn_c_try_compile "$LINENO"; then :
26145 ac_cv_header_sys_wait_h=yes
26147 ac_cv_header_sys_wait_h=no
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26152 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26153 if test $ac_cv_header_sys_wait_h = yes; then
26155 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26160 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26161 if ${ac_cv_header_time+:} false; then :
26162 $as_echo_n "(cached) " >&6
26164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26165 /* end confdefs.h. */
26166 #include <sys/types.h>
26167 #include <sys/time.h>
26173 if ((struct tm *) 0)
26179 if ac_fn_c_try_compile "$LINENO"; then :
26180 ac_cv_header_time=yes
26182 ac_cv_header_time=no
26184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26187 $as_echo "$ac_cv_header_time" >&6; }
26188 if test $ac_cv_header_time = yes; then
26190 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26194 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26195 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26197 cat >>confdefs.h <<_ACEOF
26198 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26202 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26207 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26208 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26210 cat >>confdefs.h <<_ACEOF
26211 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26215 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26218 case " $LIBOBJS " in
26219 *" fileblocks.$ac_objext "* ) ;;
26220 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26228 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26229 if ${ac_cv_struct_tm+:} false; then :
26230 $as_echo_n "(cached) " >&6
26232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h. */
26234 #include <sys/types.h>
26241 int *p = &tm.tm_sec;
26247 if ac_fn_c_try_compile "$LINENO"; then :
26248 ac_cv_struct_tm=time.h
26250 ac_cv_struct_tm=sys/time.h
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26255 $as_echo "$ac_cv_struct_tm" >&6; }
26256 if test $ac_cv_struct_tm = sys/time.h; then
26258 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26262 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26263 #include <$ac_cv_struct_tm>
26266 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26268 cat >>confdefs.h <<_ACEOF
26269 #define HAVE_STRUCT_TM_TM_ZONE 1
26275 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26277 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26280 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26282 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26288 cat >>confdefs.h <<_ACEOF
26289 #define HAVE_DECL_TZNAME $ac_have_decl
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26293 $as_echo_n "checking for tzname... " >&6; }
26294 if ${ac_cv_var_tzname+:} false; then :
26295 $as_echo_n "(cached) " >&6
26297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26298 /* end confdefs.h. */
26300 #if !HAVE_DECL_TZNAME
26301 extern char *tzname[];
26307 return tzname[0][0];
26312 if ac_fn_c_try_link "$LINENO"; then :
26313 ac_cv_var_tzname=yes
26315 ac_cv_var_tzname=no
26317 rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26321 $as_echo "$ac_cv_var_tzname" >&6; }
26322 if test $ac_cv_var_tzname = yes; then
26324 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26331 $as_echo_n "checking for utime.h... " >&6; }
26332 if ${ba_cv_header_utime_h+:} false; then :
26333 $as_echo_n "(cached) " >&6
26336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337 /* end confdefs.h. */
26339 #include <sys/types.h>
26352 if ac_fn_c_try_compile "$LINENO"; then :
26354 ba_cv_header_utime_h=yes
26358 ba_cv_header_utime_h=no
26362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26367 $as_echo "$ba_cv_header_utime_h" >&6; }
26368 test $ba_cv_header_utime_h = yes &&
26369 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26373 $as_echo_n "checking for socklen_t... " >&6; }
26374 if ${ba_cv_header_socklen_t+:} false; then :
26375 $as_echo_n "(cached) " >&6
26378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26379 /* end confdefs.h. */
26381 #include <sys/types.h>
26382 #include <sys/socket.h>
26394 if ac_fn_c_try_compile "$LINENO"; then :
26396 ba_cv_header_socklen_t=yes
26400 ba_cv_header_socklen_t=no
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26409 $as_echo "$ba_cv_header_socklen_t" >&6; }
26410 test $ba_cv_header_socklen_t = yes &&
26411 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26415 ac_cpp='$CXXCPP $CPPFLAGS'
26416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26421 $as_echo_n "checking for ioctl_req_t... " >&6; }
26422 if ${ba_cv_header_ioctl_req_t+:} false; then :
26423 $as_echo_n "(cached) " >&6
26426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26427 /* end confdefs.h. */
26429 #include <unistd.h>
26430 #include <sys/types.h>
26431 #include <sys/ioctl.h>
26437 int (*d_ioctl)(int fd, unsigned long int request, ...);
26444 if ac_fn_cxx_try_compile "$LINENO"; then :
26446 ba_cv_header_ioctl_req_t=yes
26450 ba_cv_header_ioctl_req_t=no
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26459 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26460 test $ba_cv_header_ioctl_req_t = yes &&
26461 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26465 ac_cpp='$CPP $CPPFLAGS'
26466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26472 ac_cpp='$CXXCPP $CPPFLAGS'
26473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26478 $as_echo_n "checking for typeof... " >&6; }
26479 if ${ba_cv_have_typeof+:} false; then :
26480 $as_echo_n "(cached) " >&6
26483 if test "$cross_compiling" = yes; then :
26485 ba_cv_have_typeof=no
26489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26490 /* end confdefs.h. */
26492 main(){char *a = 0; a = (typeof a)a;}
26495 if ac_fn_cxx_try_run "$LINENO"; then :
26497 ba_cv_have_typeof=yes
26501 ba_cv_have_typeof=no
26504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26505 conftest.$ac_objext conftest.beam conftest.$ac_ext
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26512 $as_echo "$ba_cv_have_typeof" >&6; }
26513 test $ba_cv_have_typeof = yes &&
26514 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26517 ac_cpp='$CPP $CPPFLAGS'
26518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26524 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26525 if ${ac_cv_c_const+:} false; then :
26526 $as_echo_n "(cached) " >&6
26528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26529 /* end confdefs.h. */
26535 #ifndef __cplusplus
26536 /* Ultrix mips cc rejects this sort of thing. */
26537 typedef int charset[2];
26538 const charset cs = { 0, 0 };
26539 /* SunOS 4.1.1 cc rejects this. */
26540 char const *const *pcpcc;
26542 /* NEC SVR4.0.2 mips cc rejects this. */
26543 struct point {int x, y;};
26544 static struct point const zero = {0,0};
26545 /* AIX XL C 1.02.0.0 rejects this.
26546 It does not let you subtract one const X* pointer from another in
26547 an arm of an if-expression whose if-part is not a constant
26549 const char *g = "string";
26550 pcpcc = &g + (g ? g-g : 0);
26551 /* HPUX 7.0 cc rejects these. */
26553 ppc = (char**) pcpcc;
26554 pcpcc = (char const *const *) ppc;
26555 { /* SCO 3.2v4 cc rejects this sort of thing. */
26558 char const *s = 0 ? (char *) 0 : (char const *) 0;
26563 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26564 int x[] = {25, 17};
26565 const int *foo = &x[0];
26568 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26569 typedef const int *iptr;
26573 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26574 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26575 struct s { int j; const int *ap[3]; } bx;
26576 struct s *b = &bx; b->j = 5;
26578 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26579 const int foo = 10;
26580 if (!foo) return 0;
26582 return !cs[0] && !zero.x;
26589 if ac_fn_c_try_compile "$LINENO"; then :
26594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26597 $as_echo "$ac_cv_c_const" >&6; }
26598 if test $ac_cv_c_const = no; then
26600 $as_echo "#define const /**/" >>confdefs.h
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26606 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26607 if ${ac_cv_c_bigendian+:} false; then :
26608 $as_echo_n "(cached) " >&6
26610 ac_cv_c_bigendian=unknown
26611 # See if we're dealing with a universal compiler.
26612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26613 /* end confdefs.h. */
26614 #ifndef __APPLE_CC__
26615 not a universal capable compiler
26620 if ac_fn_c_try_compile "$LINENO"; then :
26622 # Check for potential -arch flags. It is not universal unless
26623 # there are at least two -arch flags with different values.
26626 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26627 if test -n "$ac_prev"; then
26629 i?86 | x86_64 | ppc | ppc64)
26630 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26633 ac_cv_c_bigendian=universal
26639 elif test "x$ac_word" = "x-arch"; then
26644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645 if test $ac_cv_c_bigendian = unknown; then
26646 # See if sys/param.h defines the BYTE_ORDER macro.
26647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26648 /* end confdefs.h. */
26649 #include <sys/types.h>
26650 #include <sys/param.h>
26655 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26656 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26658 bogus endian macros
26665 if ac_fn_c_try_compile "$LINENO"; then :
26666 # It does; now see whether it defined to BIG_ENDIAN or not.
26667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26668 /* end confdefs.h. */
26669 #include <sys/types.h>
26670 #include <sys/param.h>
26675 #if BYTE_ORDER != BIG_ENDIAN
26683 if ac_fn_c_try_compile "$LINENO"; then :
26684 ac_cv_c_bigendian=yes
26686 ac_cv_c_bigendian=no
26688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26692 if test $ac_cv_c_bigendian = unknown; then
26693 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h. */
26696 #include <limits.h>
26701 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26702 bogus endian macros
26709 if ac_fn_c_try_compile "$LINENO"; then :
26710 # It does; now see whether it defined to _BIG_ENDIAN or not.
26711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26712 /* end confdefs.h. */
26713 #include <limits.h>
26718 #ifndef _BIG_ENDIAN
26726 if ac_fn_c_try_compile "$LINENO"; then :
26727 ac_cv_c_bigendian=yes
26729 ac_cv_c_bigendian=no
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735 if test $ac_cv_c_bigendian = unknown; then
26736 # Compile a test program.
26737 if test "$cross_compiling" = yes; then :
26738 # Try to guess by grepping values from an object file.
26739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h. */
26741 short int ascii_mm[] =
26742 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26743 short int ascii_ii[] =
26744 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26745 int use_ascii (int i) {
26746 return ascii_mm[i] + ascii_ii[i];
26748 short int ebcdic_ii[] =
26749 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26750 short int ebcdic_mm[] =
26751 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26752 int use_ebcdic (int i) {
26753 return ebcdic_mm[i] + ebcdic_ii[i];
26760 return use_ascii (foo) == use_ebcdic (foo);
26765 if ac_fn_c_try_compile "$LINENO"; then :
26766 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26767 ac_cv_c_bigendian=yes
26769 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26770 if test "$ac_cv_c_bigendian" = unknown; then
26771 ac_cv_c_bigendian=no
26773 # finding both strings is unlikely to happen, but who knows?
26774 ac_cv_c_bigendian=unknown
26778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h. */
26782 $ac_includes_default
26787 /* Are we little or big endian? From Harbison&Steele. */
26791 char c[sizeof (long int)];
26794 return u.c[sizeof (long int) - 1] == 1;
26800 if ac_fn_c_try_run "$LINENO"; then :
26801 ac_cv_c_bigendian=no
26803 ac_cv_c_bigendian=yes
26805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26806 conftest.$ac_objext conftest.beam conftest.$ac_ext
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26812 $as_echo "$ac_cv_c_bigendian" >&6; }
26813 case $ac_cv_c_bigendian in #(
26816 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26820 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26824 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26828 as_fn_error $? "unknown endianness
26829 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26834 $as_echo_n "checking how to get filesystem type... " >&6; }
26836 # The order of these tests is important.
26837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26838 /* end confdefs.h. */
26840 #include <sys/statvfs.h>
26841 #include <sys/fstyp.h>
26844 if ac_fn_c_try_cpp "$LINENO"; then :
26845 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26849 rm -f conftest.err conftest.i conftest.$ac_ext
26850 if test $fstype = no; then
26851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26852 /* end confdefs.h. */
26854 #include <sys/statfs.h>
26855 #include <sys/fstyp.h>
26858 if ac_fn_c_try_cpp "$LINENO"; then :
26859 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26863 rm -f conftest.err conftest.i conftest.$ac_ext
26865 if test $fstype = no; then
26866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26867 /* end confdefs.h. */
26869 #include <sys/statfs.h>
26870 #include <sys/vmount.h>
26873 if ac_fn_c_try_cpp "$LINENO"; then :
26874 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26878 rm -f conftest.err conftest.i conftest.$ac_ext
26880 if test $fstype = no; then
26881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26882 /* end confdefs.h. */
26884 #include <mntent.h>
26887 if ac_fn_c_try_cpp "$LINENO"; then :
26888 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26892 rm -f conftest.err conftest.i conftest.$ac_ext
26894 if test $fstype = no; then
26895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26896 /* end confdefs.h. */
26897 #include <sys/mount.h>
26900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26901 $EGREP "f_type;" >/dev/null 2>&1; then :
26902 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26908 if test $fstype = no; then
26909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910 /* end confdefs.h. */
26912 #include <sys/mount.h>
26913 #include <sys/fs_types.h>
26916 if ac_fn_c_try_cpp "$LINENO"; then :
26917 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26921 rm -f conftest.err conftest.i conftest.$ac_ext
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26924 $as_echo "$fstype" >&6; }
26926 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26927 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26929 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26936 ac_cpp='$CXXCPP $CPPFLAGS'
26937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26941 for ac_func in backtrace
26943 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26944 if test "x$ac_cv_func_backtrace" = xyes; then :
26945 cat >>confdefs.h <<_ACEOF
26946 #define HAVE_BACKTRACE 1
26953 ac_cpp='$CPP $CPPFLAGS'
26954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26960 $as_echo_n "checking return type of signal handlers... " >&6; }
26961 if ${ac_cv_type_signal+:} false; then :
26962 $as_echo_n "(cached) " >&6
26964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26965 /* end confdefs.h. */
26966 #include <sys/types.h>
26967 #include <signal.h>
26972 return *(signal (0, 0)) (0) == 1;
26977 if ac_fn_c_try_compile "$LINENO"; then :
26978 ac_cv_type_signal=int
26980 ac_cv_type_signal=void
26982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26985 $as_echo "$ac_cv_type_signal" >&6; }
26987 cat >>confdefs.h <<_ACEOF
26988 #define RETSIGTYPE $ac_cv_type_signal
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26994 $as_echo_n "checking for type of signal functions... " >&6; }
26995 if ${bash_cv_signal_vintage+:} false; then :
26996 $as_echo_n "(cached) " >&6
26999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27000 /* end confdefs.h. */
27001 #include <signal.h>
27007 struct sigaction sa;
27008 sigemptyset(&ss); sigsuspend(&ss);
27009 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27010 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27016 if ac_fn_c_try_link "$LINENO"; then :
27017 bash_cv_signal_vintage="posix"
27020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27021 /* end confdefs.h. */
27022 #include <signal.h>
27027 int mask = sigmask(SIGINT);
27028 sigsetmask(mask); sigblock(mask); sigpause(mask);
27034 if ac_fn_c_try_link "$LINENO"; then :
27035 bash_cv_signal_vintage="4.2bsd"
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h. */
27041 #include <signal.h>
27042 RETSIGTYPE foo() { }
27047 int mask = sigmask(SIGINT);
27048 sigset(SIGINT, foo); sigrelse(SIGINT);
27049 sighold(SIGINT); sigpause(SIGINT);
27055 if ac_fn_c_try_link "$LINENO"; then :
27056 bash_cv_signal_vintage="svr3"
27058 bash_cv_signal_vintage="v7"
27061 rm -f core conftest.err conftest.$ac_objext \
27062 conftest$ac_exeext conftest.$ac_ext
27065 rm -f core conftest.err conftest.$ac_objext \
27066 conftest$ac_exeext conftest.$ac_ext
27069 rm -f core conftest.err conftest.$ac_objext \
27070 conftest$ac_exeext conftest.$ac_ext
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27075 $as_echo "$bash_cv_signal_vintage" >&6; }
27076 if test "$bash_cv_signal_vintage" = "posix"; then
27077 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27079 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27080 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27082 elif test "$bash_cv_signal_vintage" = "svr3"; then
27083 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27087 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27088 if test "x$ac_cv_type_mode_t" = xyes; then :
27092 cat >>confdefs.h <<_ACEOF
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27099 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27100 if ${ac_cv_type_uid_t+:} false; then :
27101 $as_echo_n "(cached) " >&6
27103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27104 /* end confdefs.h. */
27105 #include <sys/types.h>
27108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27109 $EGREP "uid_t" >/dev/null 2>&1; then :
27110 ac_cv_type_uid_t=yes
27112 ac_cv_type_uid_t=no
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27118 $as_echo "$ac_cv_type_uid_t" >&6; }
27119 if test $ac_cv_type_uid_t = no; then
27121 $as_echo "#define uid_t int" >>confdefs.h
27124 $as_echo "#define gid_t int" >>confdefs.h
27128 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27129 if test "x$ac_cv_type_size_t" = xyes; then :
27133 cat >>confdefs.h <<_ACEOF
27134 #define size_t unsigned int
27139 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27140 if test "x$ac_cv_type_pid_t" = xyes; then :
27144 cat >>confdefs.h <<_ACEOF
27150 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27151 if test "x$ac_cv_type_off_t" = xyes; then :
27155 cat >>confdefs.h <<_ACEOF
27156 #define off_t long int
27162 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27163 if test "x$ac_cv_type_intptr_t" = xyes; then :
27165 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27168 for ac_type in 'int' 'long int' 'long long int'; do
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27171 $ac_includes_default
27175 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27176 test_array [0] = 0;
27177 return test_array [0];
27183 if ac_fn_c_try_compile "$LINENO"; then :
27185 cat >>confdefs.h <<_ACEOF
27186 #define intptr_t $ac_type
27191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192 test -z "$ac_type" && break
27198 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27199 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27201 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27204 for ac_type in 'unsigned int' 'unsigned long int' \
27205 'unsigned long long int'; do
27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h. */
27208 $ac_includes_default
27212 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27213 test_array [0] = 0;
27214 return test_array [0];
27220 if ac_fn_c_try_compile "$LINENO"; then :
27222 cat >>confdefs.h <<_ACEOF
27223 #define uintptr_t $ac_type
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229 test -z "$ac_type" && break
27234 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27235 if test "x$ac_cv_type_ino_t" = xyes; then :
27239 cat >>confdefs.h <<_ACEOF
27240 #define ino_t unsigned long
27245 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27246 if test "x$ac_cv_type_dev_t" = xyes; then :
27250 cat >>confdefs.h <<_ACEOF
27251 #define dev_t unsigned long
27256 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27257 if test "x$ac_cv_type_daddr_t" = xyes; then :
27261 cat >>confdefs.h <<_ACEOF
27262 #define daddr_t long
27267 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27268 if test "x$ac_cv_type_major_t" = xyes; then :
27272 cat >>confdefs.h <<_ACEOF
27273 #define major_t int
27278 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27279 if test "x$ac_cv_type_minor_t" = xyes; then :
27283 cat >>confdefs.h <<_ACEOF
27284 #define minor_t int
27289 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27290 if test "x$ac_cv_type_ssize_t" = xyes; then :
27294 cat >>confdefs.h <<_ACEOF
27295 #define ssize_t int
27300 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27301 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27303 cat >>confdefs.h <<_ACEOF
27304 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27308 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27311 case " $LIBOBJS " in
27312 *" fileblocks.$ac_objext "* ) ;;
27313 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27320 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27321 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27323 cat >>confdefs.h <<_ACEOF
27324 #define HAVE_STRUCT_STAT_ST_RDEV 1
27328 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27334 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27335 if ${ac_cv_struct_tm+:} false; then :
27336 $as_echo_n "(cached) " >&6
27338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27339 /* end confdefs.h. */
27340 #include <sys/types.h>
27347 int *p = &tm.tm_sec;
27353 if ac_fn_c_try_compile "$LINENO"; then :
27354 ac_cv_struct_tm=time.h
27356 ac_cv_struct_tm=sys/time.h
27358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27361 $as_echo "$ac_cv_struct_tm" >&6; }
27362 if test $ac_cv_struct_tm = sys/time.h; then
27364 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27369 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27370 if ${ac_cv_c_const+:} false; then :
27371 $as_echo_n "(cached) " >&6
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h. */
27380 #ifndef __cplusplus
27381 /* Ultrix mips cc rejects this sort of thing. */
27382 typedef int charset[2];
27383 const charset cs = { 0, 0 };
27384 /* SunOS 4.1.1 cc rejects this. */
27385 char const *const *pcpcc;
27387 /* NEC SVR4.0.2 mips cc rejects this. */
27388 struct point {int x, y;};
27389 static struct point const zero = {0,0};
27390 /* AIX XL C 1.02.0.0 rejects this.
27391 It does not let you subtract one const X* pointer from another in
27392 an arm of an if-expression whose if-part is not a constant
27394 const char *g = "string";
27395 pcpcc = &g + (g ? g-g : 0);
27396 /* HPUX 7.0 cc rejects these. */
27398 ppc = (char**) pcpcc;
27399 pcpcc = (char const *const *) ppc;
27400 { /* SCO 3.2v4 cc rejects this sort of thing. */
27403 char const *s = 0 ? (char *) 0 : (char const *) 0;
27408 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27409 int x[] = {25, 17};
27410 const int *foo = &x[0];
27413 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27414 typedef const int *iptr;
27418 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27419 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27420 struct s { int j; const int *ap[3]; } bx;
27421 struct s *b = &bx; b->j = 5;
27423 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27424 const int foo = 10;
27425 if (!foo) return 0;
27427 return !cs[0] && !zero.x;
27434 if ac_fn_c_try_compile "$LINENO"; then :
27439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27442 $as_echo "$ac_cv_c_const" >&6; }
27443 if test $ac_cv_c_const = no; then
27445 $as_echo "#define const /**/" >>confdefs.h
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27450 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27451 if ${ac_cv_c_restrict+:} false; then :
27452 $as_echo_n "(cached) " >&6
27454 ac_cv_c_restrict=no
27455 # The order here caters to the fact that C++ does not require restrict.
27456 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h. */
27459 typedef int * int_ptr;
27460 int foo (int_ptr $ac_kw ip) {
27467 int * $ac_kw t = s;
27474 if ac_fn_c_try_compile "$LINENO"; then :
27475 ac_cv_c_restrict=$ac_kw
27477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478 test "$ac_cv_c_restrict" != no && break
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27483 $as_echo "$ac_cv_c_restrict" >&6; }
27485 case $ac_cv_c_restrict in
27487 no) $as_echo "#define restrict /**/" >>confdefs.h
27489 *) cat >>confdefs.h <<_ACEOF
27490 #define restrict $ac_cv_c_restrict
27496 # The cast to long int works around a bug in the HP C Compiler
27497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27499 # This bug is HP SR number 8606223364.
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27501 $as_echo_n "checking size of char... " >&6; }
27502 if ${ac_cv_sizeof_char+:} false; then :
27503 $as_echo_n "(cached) " >&6
27505 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27508 if test "$ac_cv_type_char" = yes; then
27509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27511 as_fn_error 77 "cannot compute sizeof (char)
27512 See \`config.log' for more details" "$LINENO" 5; }
27514 ac_cv_sizeof_char=0
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27520 $as_echo "$ac_cv_sizeof_char" >&6; }
27524 cat >>confdefs.h <<_ACEOF
27525 #define SIZEOF_CHAR $ac_cv_sizeof_char
27529 # The cast to long int works around a bug in the HP C Compiler
27530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27532 # This bug is HP SR number 8606223364.
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27534 $as_echo_n "checking size of short int... " >&6; }
27535 if ${ac_cv_sizeof_short_int+:} false; then :
27536 $as_echo_n "(cached) " >&6
27538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27541 if test "$ac_cv_type_short_int" = yes; then
27542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27544 as_fn_error 77 "cannot compute sizeof (short int)
27545 See \`config.log' for more details" "$LINENO" 5; }
27547 ac_cv_sizeof_short_int=0
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27553 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27557 cat >>confdefs.h <<_ACEOF
27558 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27562 # The cast to long int works around a bug in the HP C Compiler
27563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27565 # This bug is HP SR number 8606223364.
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27567 $as_echo_n "checking size of int... " >&6; }
27568 if ${ac_cv_sizeof_int+:} false; then :
27569 $as_echo_n "(cached) " >&6
27571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27574 if test "$ac_cv_type_int" = yes; then
27575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27577 as_fn_error 77 "cannot compute sizeof (int)
27578 See \`config.log' for more details" "$LINENO" 5; }
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27586 $as_echo "$ac_cv_sizeof_int" >&6; }
27590 cat >>confdefs.h <<_ACEOF
27591 #define SIZEOF_INT $ac_cv_sizeof_int
27595 # The cast to long int works around a bug in the HP C Compiler
27596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27598 # This bug is HP SR number 8606223364.
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27600 $as_echo_n "checking size of long int... " >&6; }
27601 if ${ac_cv_sizeof_long_int+:} false; then :
27602 $as_echo_n "(cached) " >&6
27604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27607 if test "$ac_cv_type_long_int" = yes; then
27608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27610 as_fn_error 77 "cannot compute sizeof (long int)
27611 See \`config.log' for more details" "$LINENO" 5; }
27613 ac_cv_sizeof_long_int=0
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27619 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27623 cat >>confdefs.h <<_ACEOF
27624 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27628 # The cast to long int works around a bug in the HP C Compiler
27629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27631 # This bug is HP SR number 8606223364.
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27633 $as_echo_n "checking size of long long int... " >&6; }
27634 if ${ac_cv_sizeof_long_long_int+:} false; then :
27635 $as_echo_n "(cached) " >&6
27637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27640 if test "$ac_cv_type_long_long_int" = yes; then
27641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27643 as_fn_error 77 "cannot compute sizeof (long long int)
27644 See \`config.log' for more details" "$LINENO" 5; }
27646 ac_cv_sizeof_long_long_int=0
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27652 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27656 cat >>confdefs.h <<_ACEOF
27657 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27661 # The cast to long int works around a bug in the HP C Compiler
27662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27664 # This bug is HP SR number 8606223364.
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27666 $as_echo_n "checking size of int *... " >&6; }
27667 if ${ac_cv_sizeof_int_p+:} false; then :
27668 $as_echo_n "(cached) " >&6
27670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27673 if test "$ac_cv_type_int_p" = yes; then
27674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27676 as_fn_error 77 "cannot compute sizeof (int *)
27677 See \`config.log' for more details" "$LINENO" 5; }
27679 ac_cv_sizeof_int_p=0
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27685 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27689 cat >>confdefs.h <<_ACEOF
27690 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27696 $as_echo_n "checking for u_int type... " >&6; }
27697 if ${ac_cv_have_u_int+:} false; then :
27698 $as_echo_n "(cached) " >&6
27701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27702 /* end confdefs.h. */
27704 #include <sys/types.h>
27716 if ac_fn_c_try_compile "$LINENO"; then :
27718 ac_cv_have_u_int="yes"
27722 ac_cv_have_u_int="no"
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27731 $as_echo "$ac_cv_have_u_int" >&6; }
27732 if test "x$ac_cv_have_u_int" = "xyes" ; then
27733 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27739 $as_echo_n "checking for intmax_t type... " >&6; }
27740 if ${ac_cv_have_intmax_t+:} false; then :
27741 $as_echo_n "(cached) " >&6
27744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27745 /* end confdefs.h. */
27747 #include <sys/types.h>
27759 if ac_fn_c_try_compile "$LINENO"; then :
27761 ac_cv_have_intmax_t="yes"
27765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27766 /* end confdefs.h. */
27768 #include <stdint.h>
27780 if ac_fn_c_try_compile "$LINENO"; then :
27782 ac_cv_have_intmax_t="yes"
27786 ac_cv_have_intmax_t="no"
27790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27799 $as_echo "$ac_cv_have_intmax_t" >&6; }
27800 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27801 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27807 $as_echo_n "checking for u_intmax_t type... " >&6; }
27808 if ${ac_cv_have_u_intmax_t+:} false; then :
27809 $as_echo_n "(cached) " >&6
27812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27813 /* end confdefs.h. */
27815 #include <sys/types.h>
27821 u_intmax_t a; a = 1;
27827 if ac_fn_c_try_compile "$LINENO"; then :
27829 ac_cv_have_u_intmax_t="yes"
27833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27834 /* end confdefs.h. */
27836 #include <stdint.h>
27842 u_intmax_t a; a = 1;
27848 if ac_fn_c_try_compile "$LINENO"; then :
27850 ac_cv_have_u_intmax_t="yes"
27854 ac_cv_have_u_intmax_t="no"
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27867 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27868 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27869 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27875 $as_echo_n "checking for intXX_t types... " >&6; }
27876 if ${ac_cv_have_intxx_t+:} false; then :
27877 $as_echo_n "(cached) " >&6
27880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27881 /* end confdefs.h. */
27883 #include <sys/types.h>
27889 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27895 if ac_fn_c_try_compile "$LINENO"; then :
27897 ac_cv_have_intxx_t="yes"
27901 ac_cv_have_intxx_t="no"
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27910 $as_echo "$ac_cv_have_intxx_t" >&6; }
27911 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27912 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27918 $as_echo_n "checking for int64_t type... " >&6; }
27919 if ${ac_cv_have_int64_t+:} false; then :
27920 $as_echo_n "(cached) " >&6
27923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27924 /* end confdefs.h. */
27926 #include <sys/types.h>
27938 if ac_fn_c_try_compile "$LINENO"; then :
27940 ac_cv_have_int64_t="yes"
27944 ac_cv_have_int64_t="no"
27948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27953 $as_echo "$ac_cv_have_int64_t" >&6; }
27954 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27955 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27961 $as_echo_n "checking for u_intXX_t types... " >&6; }
27962 if ${ac_cv_have_u_intxx_t+:} false; then :
27963 $as_echo_n "(cached) " >&6
27966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27967 /* end confdefs.h. */
27969 #include <sys/types.h>
27975 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27981 if ac_fn_c_try_compile "$LINENO"; then :
27983 ac_cv_have_u_intxx_t="yes"
27987 ac_cv_have_u_intxx_t="no"
27991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27996 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27997 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27998 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28004 $as_echo_n "checking for u_int64_t types... " >&6; }
28005 if ${ac_cv_have_u_int64_t+:} false; then :
28006 $as_echo_n "(cached) " >&6
28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h. */
28012 #include <sys/types.h>
28018 u_int64_t a; a = 1;
28024 if ac_fn_c_try_compile "$LINENO"; then :
28026 ac_cv_have_u_int64_t="yes"
28030 ac_cv_have_u_int64_t="no"
28034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28039 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28040 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28041 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28046 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28047 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28050 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28052 /* end confdefs.h. */
28054 #include <sys/bitypes.h>
28060 int8_t a; int16_t b; int32_t c;
28061 u_int8_t e; u_int16_t f; u_int32_t g;
28062 a = b = c = e = f = g = 1;
28068 if ac_fn_c_try_compile "$LINENO"; then :
28070 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28072 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28074 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28077 $as_echo "yes" >&6; }
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28082 $as_echo "no" >&6; }
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28089 if test -z "$have_u_intxx_t" ; then
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28091 $as_echo_n "checking for uintXX_t types... " >&6; }
28092 if ${ac_cv_have_uintxx_t+:} false; then :
28093 $as_echo_n "(cached) " >&6
28096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28097 /* end confdefs.h. */
28099 #include <sys/types.h>
28105 uint8_t a; uint16_t b;
28106 uint32_t c; a = b = c = 1;
28112 if ac_fn_c_try_compile "$LINENO"; then :
28114 ac_cv_have_uintxx_t="yes"
28118 ac_cv_have_uintxx_t="no"
28122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28127 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28128 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28129 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28134 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28135 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28138 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28140 /* end confdefs.h. */
28142 #include <sys/bitypes.h>
28148 int64_t a; u_int64_t b;
28155 if ac_fn_c_try_compile "$LINENO"; then :
28157 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28159 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28162 $as_echo "yes" >&6; }
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28167 $as_echo "no" >&6; }
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28174 if (test -z "$have_uintxx_t" && \
28175 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28178 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28180 /* end confdefs.h. */
28182 #include <sys/bitypes.h>
28188 uint8_t a; uint16_t b;
28189 uint32_t c; a = b = c = 1;
28195 if ac_fn_c_try_compile "$LINENO"; then :
28197 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28200 $as_echo "yes" >&6; }
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28205 $as_echo "no" >&6; }
28209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28230 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28231 cat >>confdefs.h <<_ACEOF
28232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28236 echo 'configure: cannot find needed function.'; exit 1
28242 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28245 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28247 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28252 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28255 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28257 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28262 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28263 if test "x$ac_cv_func_closefrom" = xyes; then :
28265 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28269 for ac_func in getpagesize
28271 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28272 if test "x$ac_cv_func_getpagesize" = xyes; then :
28273 cat >>confdefs.h <<_ACEOF
28274 #define HAVE_GETPAGESIZE 1
28277 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28282 for ac_func in malloc_trim
28284 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28285 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28286 cat >>confdefs.h <<_ACEOF
28287 #define HAVE_MALLOC_TRIM 1
28290 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28296 for ac_func in fchdir
28298 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28299 if test "x$ac_cv_func_fchdir" = xyes; then :
28300 cat >>confdefs.h <<_ACEOF
28301 #define HAVE_FCHDIR 1
28303 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28308 for ac_func in strtoll
28310 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28311 if test "x$ac_cv_func_strtoll" = xyes; then :
28312 cat >>confdefs.h <<_ACEOF
28313 #define HAVE_STRTOLL 1
28315 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28320 for ac_func in posix_fadvise
28322 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28323 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28324 cat >>confdefs.h <<_ACEOF
28325 #define HAVE_POSIX_FADVISE 1
28331 for ac_func in posix_fallocate
28333 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28334 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28335 cat >>confdefs.h <<_ACEOF
28336 #define HAVE_POSIX_FALLOCATE 1
28342 for ac_func in fdatasync
28344 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28345 if test "x$ac_cv_func_fdatasync" = xyes; then :
28346 cat >>confdefs.h <<_ACEOF
28347 #define HAVE_FDATASYNC 1
28354 for ac_func in chflags
28356 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28357 if test "x$ac_cv_func_chflags" = xyes; then :
28358 cat >>confdefs.h <<_ACEOF
28359 #define HAVE_CHFLAGS 1
28366 for ac_func in snprintf vsnprintf gethostid fseeko
28368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28371 cat >>confdefs.h <<_ACEOF
28372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28380 $as_echo_n "checking for va_copy... " >&6; }
28381 if ${ba_cv_va_copy+:} false; then :
28382 $as_echo_n "(cached) " >&6
28385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28386 /* end confdefs.h. */
28388 #include <stdarg.h>
28389 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28390 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28396 call_use_va_copy(1,2,3)
28402 if ac_fn_c_try_link "$LINENO"; then :
28412 rm -f core conftest.err conftest.$ac_objext \
28413 conftest$ac_exeext conftest.$ac_ext
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28418 $as_echo "$ba_cv_va_copy" >&6; }
28419 test $ba_cv_va_copy = yes &&
28420 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28423 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28428 cat >>confdefs.h <<_ACEOF
28429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28436 # If resolver functions are not in libc check for -lnsl or -lresolv.
28437 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28438 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28440 $as_echo "using libc's resolver" >&6; }
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28443 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28444 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28445 $as_echo_n "(cached) " >&6
28447 ac_check_lib_save_LIBS=$LIBS
28449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28450 /* end confdefs.h. */
28452 /* Override any GCC internal prototype to avoid an error.
28453 Use char because int might match the return type of a GCC
28454 builtin and then its argument prototype would still apply. */
28458 char gethostbyname_r ();
28462 return gethostbyname_r ();
28467 if ac_fn_c_try_link "$LINENO"; then :
28468 ac_cv_lib_nsl_gethostbyname_r=yes
28470 ac_cv_lib_nsl_gethostbyname_r=no
28472 rm -f core conftest.err conftest.$ac_objext \
28473 conftest$ac_exeext conftest.$ac_ext
28474 LIBS=$ac_check_lib_save_LIBS
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28477 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28478 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28479 cat >>confdefs.h <<_ACEOF
28480 #define HAVE_LIBNSL 1
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28488 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28489 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28490 $as_echo_n "(cached) " >&6
28492 ac_check_lib_save_LIBS=$LIBS
28493 LIBS="-lresolv $LIBS"
28494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28495 /* end confdefs.h. */
28497 /* Override any GCC internal prototype to avoid an error.
28498 Use char because int might match the return type of a GCC
28499 builtin and then its argument prototype would still apply. */
28503 char gethostbyname_r ();
28507 return gethostbyname_r ();
28512 if ac_fn_c_try_link "$LINENO"; then :
28513 ac_cv_lib_resolv_gethostbyname_r=yes
28515 ac_cv_lib_resolv_gethostbyname_r=no
28517 rm -f core conftest.err conftest.$ac_objext \
28518 conftest$ac_exeext conftest.$ac_ext
28519 LIBS=$ac_check_lib_save_LIBS
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28522 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28523 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28524 cat >>confdefs.h <<_ACEOF
28525 #define HAVE_LIBRESOLV 1
28528 LIBS="-lresolv $LIBS"
28535 for ac_func in inet_pton
28537 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28538 if test "x$ac_cv_func_inet_pton" = xyes; then :
28539 cat >>confdefs.h <<_ACEOF
28540 #define HAVE_INET_PTON 1
28542 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28547 for ac_func in inet_ntop
28549 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28550 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28551 cat >>confdefs.h <<_ACEOF
28552 #define HAVE_INET_NTOP 1
28554 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28559 for ac_func in gethostbyname2
28561 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28562 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28563 cat >>confdefs.h <<_ACEOF
28564 #define HAVE_GETHOSTBYNAME2 1
28566 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28571 for ac_func in getnameinfo
28573 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28574 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28575 cat >>confdefs.h <<_ACEOF
28576 #define HAVE_GETNAMEINFO 1
28578 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28586 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28587 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28588 $as_echo_n "(cached) " >&6
28591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28592 /* end confdefs.h. */
28594 #include <sys/socket.h>
28600 struct sockaddr s; s.sa_len;
28606 if ac_fn_c_try_compile "$LINENO"; then :
28608 ac_cv_struct_sockaddr_sa_len=yes
28611 ac_cv_struct_sockaddr_sa_len=no
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28620 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28622 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28624 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28629 $as_echo_n "checking for working getaddrinfo... " >&6; }
28630 if ${ac_cv_working_getaddrinfo+:} false; then :
28631 $as_echo_n "(cached) " >&6
28634 if test "$cross_compiling" = yes; then :
28636 ac_cv_working_getaddrinfo="yes"
28640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641 /* end confdefs.h. */
28644 #include <string.h>
28645 #include <sys/types.h>
28646 #include <sys/socket.h>
28649 struct addrinfo hints, *ai;
28652 memset(&hints, 0, sizeof(hints));
28653 hints.ai_family = AF_UNSPEC;
28654 hints.ai_socktype = SOCK_STREAM;
28655 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28659 if (ai->ai_addr->sa_family != AF_INET) {
28666 if ac_fn_c_try_run "$LINENO"; then :
28668 ac_cv_working_getaddrinfo="yes"
28672 ac_cv_working_getaddrinfo="no"
28675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28676 conftest.$ac_objext conftest.beam conftest.$ac_ext
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28683 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28684 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28685 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28687 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28692 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28693 if test "$ac_cv_func_gai_strerror" != "yes"; then
28694 ac_cv_working_getaddrinfo="no"
28697 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28702 for ac_func in strftime
28704 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28705 if test "x$ac_cv_func_strftime" = xyes; then :
28706 cat >>confdefs.h <<_ACEOF
28707 #define HAVE_STRFTIME 1
28711 # strftime is in -lintl on SCO UNIX.
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28713 $as_echo_n "checking for strftime in -lintl... " >&6; }
28714 if ${ac_cv_lib_intl_strftime+:} false; then :
28715 $as_echo_n "(cached) " >&6
28717 ac_check_lib_save_LIBS=$LIBS
28718 LIBS="-lintl $LIBS"
28719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28720 /* end confdefs.h. */
28722 /* Override any GCC internal prototype to avoid an error.
28723 Use char because int might match the return type of a GCC
28724 builtin and then its argument prototype would still apply. */
28732 return strftime ();
28737 if ac_fn_c_try_link "$LINENO"; then :
28738 ac_cv_lib_intl_strftime=yes
28740 ac_cv_lib_intl_strftime=no
28742 rm -f core conftest.err conftest.$ac_objext \
28743 conftest$ac_exeext conftest.$ac_ext
28744 LIBS=$ac_check_lib_save_LIBS
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28747 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28748 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28749 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28751 LIBS="-lintl $LIBS"
28757 for ac_func in vprintf
28759 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28760 if test "x$ac_cv_func_vprintf" = xyes; then :
28761 cat >>confdefs.h <<_ACEOF
28762 #define HAVE_VPRINTF 1
28765 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28766 if test "x$ac_cv_func__doprnt" = xyes; then :
28768 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28777 # for constant arguments. Useless!
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28779 $as_echo_n "checking for working alloca.h... " >&6; }
28780 if ${ac_cv_working_alloca_h+:} false; then :
28781 $as_echo_n "(cached) " >&6
28783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28784 /* end confdefs.h. */
28785 #include <alloca.h>
28789 char *p = (char *) alloca (2 * sizeof (int));
28795 if ac_fn_c_try_link "$LINENO"; then :
28796 ac_cv_working_alloca_h=yes
28798 ac_cv_working_alloca_h=no
28800 rm -f core conftest.err conftest.$ac_objext \
28801 conftest$ac_exeext conftest.$ac_ext
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28804 $as_echo "$ac_cv_working_alloca_h" >&6; }
28805 if test $ac_cv_working_alloca_h = yes; then
28807 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28812 $as_echo_n "checking for alloca... " >&6; }
28813 if ${ac_cv_func_alloca_works+:} false; then :
28814 $as_echo_n "(cached) " >&6
28816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28817 /* end confdefs.h. */
28819 # define alloca __builtin_alloca
28822 # include <malloc.h>
28823 # define alloca _alloca
28825 # ifdef HAVE_ALLOCA_H
28826 # include <alloca.h>
28831 # ifndef alloca /* predefined by HP cc +Olibcalls */
28832 void *alloca (size_t);
28842 char *p = (char *) alloca (1);
28848 if ac_fn_c_try_link "$LINENO"; then :
28849 ac_cv_func_alloca_works=yes
28851 ac_cv_func_alloca_works=no
28853 rm -f core conftest.err conftest.$ac_objext \
28854 conftest$ac_exeext conftest.$ac_ext
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28857 $as_echo "$ac_cv_func_alloca_works" >&6; }
28859 if test $ac_cv_func_alloca_works = yes; then
28861 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28864 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28865 # that cause trouble. Some versions do not even contain alloca or
28866 # contain a buggy version. If you still want to use their alloca,
28867 # use ar to extract alloca.o from them instead of compiling alloca.c.
28869 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28871 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28875 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28876 if ${ac_cv_os_cray+:} false; then :
28877 $as_echo_n "(cached) " >&6
28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h. */
28881 #if defined CRAY && ! defined CRAY2
28888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28889 $EGREP "webecray" >/dev/null 2>&1; then :
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28898 $as_echo "$ac_cv_os_cray" >&6; }
28899 if test $ac_cv_os_cray = yes; then
28900 for ac_func in _getb67 GETB67 getb67; do
28901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28905 cat >>confdefs.h <<_ACEOF
28906 #define CRAY_STACKSEG_END $ac_func
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28916 $as_echo_n "checking stack direction for C alloca... " >&6; }
28917 if ${ac_cv_c_stack_direction+:} false; then :
28918 $as_echo_n "(cached) " >&6
28920 if test "$cross_compiling" = yes; then :
28921 ac_cv_c_stack_direction=0
28923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28924 /* end confdefs.h. */
28925 $ac_includes_default
28927 find_stack_direction (int *addr, int depth)
28929 int dir, dummy = 0;
28932 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28933 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28934 return dir + dummy;
28938 main (int argc, char **argv)
28940 return find_stack_direction (0, argc + !argv + 20) < 0;
28943 if ac_fn_c_try_run "$LINENO"; then :
28944 ac_cv_c_stack_direction=1
28946 ac_cv_c_stack_direction=-1
28948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28949 conftest.$ac_objext conftest.beam conftest.$ac_ext
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28954 $as_echo "$ac_cv_c_stack_direction" >&6; }
28955 cat >>confdefs.h <<_ACEOF
28956 #define STACK_DIRECTION $ac_cv_c_stack_direction
28962 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28963 # -lseq on Dynix/PTX, -lgen on Unixware.
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28965 $as_echo_n "checking for library containing getmntent... " >&6; }
28966 if ${ac_cv_search_getmntent+:} false; then :
28967 $as_echo_n "(cached) " >&6
28969 ac_func_search_save_LIBS=$LIBS
28970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28971 /* end confdefs.h. */
28973 /* Override any GCC internal prototype to avoid an error.
28974 Use char because int might match the return type of a GCC
28975 builtin and then its argument prototype would still apply. */
28983 return getmntent ();
28988 for ac_lib in '' sun seq gen; do
28989 if test -z "$ac_lib"; then
28990 ac_res="none required"
28993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28995 if ac_fn_c_try_link "$LINENO"; then :
28996 ac_cv_search_getmntent=$ac_res
28998 rm -f core conftest.err conftest.$ac_objext \
29000 if ${ac_cv_search_getmntent+:} false; then :
29004 if ${ac_cv_search_getmntent+:} false; then :
29007 ac_cv_search_getmntent=no
29009 rm conftest.$ac_ext
29010 LIBS=$ac_func_search_save_LIBS
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29013 $as_echo "$ac_cv_search_getmntent" >&6; }
29014 ac_res=$ac_cv_search_getmntent
29015 if test "$ac_res" != no; then :
29016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29017 ac_cv_func_getmntent=yes
29019 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29022 ac_cv_func_getmntent=no
29026 for ac_func in getmntinfo
29028 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29029 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29030 cat >>confdefs.h <<_ACEOF
29031 #define HAVE_GETMNTINFO 1
29033 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29039 $as_echo_n "checking whether closedir returns void... " >&6; }
29040 if ${ac_cv_func_closedir_void+:} false; then :
29041 $as_echo_n "(cached) " >&6
29043 if test "$cross_compiling" = yes; then :
29044 ac_cv_func_closedir_void=yes
29046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29047 /* end confdefs.h. */
29048 $ac_includes_default
29049 #include <$ac_header_dirent>
29050 #ifndef __cplusplus
29057 return closedir (opendir (".")) != 0;
29062 if ac_fn_c_try_run "$LINENO"; then :
29063 ac_cv_func_closedir_void=no
29065 ac_cv_func_closedir_void=yes
29067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29068 conftest.$ac_objext conftest.beam conftest.$ac_ext
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29073 $as_echo "$ac_cv_func_closedir_void" >&6; }
29074 if test $ac_cv_func_closedir_void = yes; then
29076 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29081 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29082 if ${ac_cv_func_setpgrp_void+:} false; then :
29083 $as_echo_n "(cached) " >&6
29085 if test "$cross_compiling" = yes; then :
29086 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29089 /* end confdefs.h. */
29090 $ac_includes_default
29094 /* If this system has a BSD-style setpgrp which takes arguments,
29095 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29096 exit successfully. */
29097 return setpgrp (1,1) != -1;
29102 if ac_fn_c_try_run "$LINENO"; then :
29103 ac_cv_func_setpgrp_void=no
29105 ac_cv_func_setpgrp_void=yes
29107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29108 conftest.$ac_objext conftest.beam conftest.$ac_ext
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29113 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29114 if test $ac_cv_func_setpgrp_void = yes; then
29116 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29119 # AC_FUNC_FNMATCH dnl use local version
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29122 $as_echo_n "checking for gettext in -lintl... " >&6; }
29123 if ${ac_cv_lib_intl_gettext+:} false; then :
29124 $as_echo_n "(cached) " >&6
29126 ac_check_lib_save_LIBS=$LIBS
29127 LIBS="-lintl $LIBS"
29128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29129 /* end confdefs.h. */
29131 /* Override any GCC internal prototype to avoid an error.
29132 Use char because int might match the return type of a GCC
29133 builtin and then its argument prototype would still apply. */
29146 if ac_fn_c_try_link "$LINENO"; then :
29147 ac_cv_lib_intl_gettext=yes
29149 ac_cv_lib_intl_gettext=no
29151 rm -f core conftest.err conftest.$ac_objext \
29152 conftest$ac_exeext conftest.$ac_ext
29153 LIBS=$ac_check_lib_save_LIBS
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29156 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29157 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29158 LIBS="$LIBS -lintl"
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29163 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29164 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29165 $as_echo_n "(cached) " >&6
29167 ac_check_lib_save_LIBS=$LIBS
29169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29170 /* end confdefs.h. */
29172 /* Override any GCC internal prototype to avoid an error.
29173 Use char because int might match the return type of a GCC
29174 builtin and then its argument prototype would still apply. */
29182 return getpwnam ();
29187 if ac_fn_c_try_link "$LINENO"; then :
29188 ac_cv_lib_sun_getpwnam=yes
29190 ac_cv_lib_sun_getpwnam=no
29192 rm -f core conftest.err conftest.$ac_objext \
29193 conftest$ac_exeext conftest.$ac_ext
29194 LIBS=$ac_check_lib_save_LIBS
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29197 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29198 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29199 cat >>confdefs.h <<_ACEOF
29200 #define HAVE_LIBSUN 1
29208 for ac_header in zlib.h
29210 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29211 if test "x$ac_cv_header_zlib_h" = xyes; then :
29212 cat >>confdefs.h <<_ACEOF
29213 #define HAVE_ZLIB_H 1
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29221 $as_echo_n "checking for deflate in -lz... " >&6; }
29222 if ${ac_cv_lib_z_deflate+:} false; then :
29223 $as_echo_n "(cached) " >&6
29225 ac_check_lib_save_LIBS=$LIBS
29227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29228 /* end confdefs.h. */
29230 /* Override any GCC internal prototype to avoid an error.
29231 Use char because int might match the return type of a GCC
29232 builtin and then its argument prototype would still apply. */
29245 if ac_fn_c_try_link "$LINENO"; then :
29246 ac_cv_lib_z_deflate=yes
29248 ac_cv_lib_z_deflate=no
29250 rm -f core conftest.err conftest.$ac_objext \
29251 conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29255 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29256 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29261 if test x$ZLIBS = x-lz; then
29262 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29271 # Check whether --enable-afs was given.
29272 if test "${enable_afs+set}" = set; then :
29273 enableval=$enable_afs;
29274 if test x$enableval = xyes; then
29276 elif test x$enableval = xno; then
29285 if test x$support_afs = xyes -o x$support_afs = xauto; then
29287 # Check whether --with-afsdir was given.
29288 if test "${with_afsdir+set}" = set; then :
29289 withval=$with_afsdir; with_afsdir=$withval
29294 if test x$with_afsdir = x; then
29295 for root in /usr /usr/local; do
29296 if test -d ${root}/include/afs/ ; then
29297 with_afsdir=${root}
29300 if test -d ${root}/include/openafs/afs/ ; then
29301 with_afsdir=${root}
29307 if test -d ${with_afsdir}/include/afs/ ; then
29308 AFS_CFLAGS="-I${with_afsdir}/include"
29310 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29311 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29315 saved_CFLAGS="${CFLAGS}"
29316 saved_CPPFLAGS="${CPPFLAGS}"
29317 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29318 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29320 for ac_header in afs/afsint.h
29322 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29323 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29324 cat >>confdefs.h <<_ACEOF
29325 #define HAVE_AFS_AFSINT_H 1
29332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29333 /* end confdefs.h. */
29335 #include <afs/afsint.h>
29336 #include <afs/venus.h>
29339 if ac_fn_c_try_cpp "$LINENO"; then :
29341 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29345 rm -f conftest.err conftest.i conftest.$ac_ext
29347 CFLAGS="${saved_CFLAGS}"
29348 CPPFLAGS="${saved_CPPFLAGS}"
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29351 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29352 for dir in ${with_afsdir}/lib \
29353 ${with_afsdir}/lib/afs \
29354 ${with_afsdir}/lib/openafs \
29355 ${with_afsdir}/lib64 \
29356 ${with_afsdir}/lib64/afs \
29357 ${with_afsdir}/lib64/openafs
29359 for arch_type in .a .so
29361 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29363 if test $pkg = 0; then
29365 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29371 if test $have_afs = yes; then
29372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29373 $as_echo "yes" >&6; }
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29376 $as_echo "no" >&6; }
29379 if test x$support_afs = xyes -a $have_afs != yes; then
29380 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29381 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29383 if test $have_afs = yes; then
29385 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29388 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29397 # Check whether --enable-lzo was given.
29398 if test "${enable_lzo+set}" = set; then :
29399 enableval=$enable_lzo;
29400 if test x$enableval = xno; then
29413 if test x$support_lzo = xyes; then
29415 # Check whether --with-lzo was given.
29416 if test "${with_lzo+set}" = set; then :
29418 case "$with_lzo" in
29423 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29424 LZO_INC="-I${with_lzo}/include"
29425 LZO_LDFLAGS="-L${with_lzo}/lib"
29426 with_lzo="${with_lzo}/include"
29428 with_lzo="/usr/include"
29431 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29432 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29436 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29438 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29444 echo "lzoconf.h not found. lzo turned off ..."
29456 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29457 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29459 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29460 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29463 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29464 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29465 $as_echo_n "(cached) " >&6
29467 ac_check_lib_save_LIBS=$LIBS
29468 LIBS="-llzo2 $LIBS"
29469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29470 /* end confdefs.h. */
29472 /* Override any GCC internal prototype to avoid an error.
29473 Use char because int might match the return type of a GCC
29474 builtin and then its argument prototype would still apply. */
29478 char lzo1x_1_compress ();
29482 return lzo1x_1_compress ();
29487 if ac_fn_c_try_link "$LINENO"; then :
29488 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29490 ac_cv_lib_lzo2_lzo1x_1_compress=no
29492 rm -f core conftest.err conftest.$ac_objext \
29493 conftest$ac_exeext conftest.$ac_ext
29494 LIBS=$ac_check_lib_save_LIBS
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29497 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29498 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29502 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29526 # Check whether --enable-acl was given.
29527 if test "${enable_acl+set}" = set; then :
29528 enableval=$enable_acl;
29529 if test x$enableval = xyes; then
29531 elif test x$enableval = xno; then
29540 have_extended_acl=no
29541 if test x$support_acl = xyes -o x$support_acl = xauto; then
29542 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29543 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29545 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29551 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29552 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29560 if test $have_acl = no; then
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29562 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29563 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29564 $as_echo_n "(cached) " >&6
29566 ac_check_lib_save_LIBS=$LIBS
29568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29569 /* end confdefs.h. */
29571 /* Override any GCC internal prototype to avoid an error.
29572 Use char because int might match the return type of a GCC
29573 builtin and then its argument prototype would still apply. */
29577 char acl_get_file ();
29581 return acl_get_file ();
29586 if ac_fn_c_try_link "$LINENO"; then :
29587 ac_cv_lib_acl_acl_get_file=yes
29589 ac_cv_lib_acl_acl_get_file=no
29591 rm -f core conftest.err conftest.$ac_objext \
29592 conftest$ac_exeext conftest.$ac_ext
29593 LIBS=$ac_check_lib_save_LIBS
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29596 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29597 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29600 if test $have_afs = yes; then
29601 if test -d /usr/lib64/; then
29602 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29604 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29607 FDLIBS="-lacl $FDLIBS"
29615 if test $have_acl = no -a \
29616 x${HAVE_OSF1_OS_TRUE} = x; then
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29618 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29619 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29620 $as_echo_n "(cached) " >&6
29622 ac_check_lib_save_LIBS=$LIBS
29623 LIBS="-lpacl $LIBS"
29624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29625 /* end confdefs.h. */
29627 /* Override any GCC internal prototype to avoid an error.
29628 Use char because int might match the return type of a GCC
29629 builtin and then its argument prototype would still apply. */
29633 char acl_get_file ();
29637 return acl_get_file ();
29642 if ac_fn_c_try_link "$LINENO"; then :
29643 ac_cv_lib_pacl_acl_get_file=yes
29645 ac_cv_lib_pacl_acl_get_file=no
29647 rm -f core conftest.err conftest.$ac_objext \
29648 conftest$ac_exeext conftest.$ac_ext
29649 LIBS=$ac_check_lib_save_LIBS
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29652 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29653 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29656 FDLIBS="-lpacl $FDLIBS"
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29663 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29664 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29665 if test $? = 0; then
29667 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670 $as_echo "yes" >&6; }
29672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29673 $as_echo "no" >&6; }
29677 if test $have_acl = yes -a \
29678 x${HAVE_DARWIN_OS_TRUE} = x; then
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29680 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29681 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29682 if test $? = 0; then
29684 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29687 $as_echo "yes" >&6; }
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29690 $as_echo "no" >&6; }
29694 if test $have_acl = yes -a \
29695 x${HAVE_FREEBSD_OS_TRUE} = x; then
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29697 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29698 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29699 if test $? = 0; then
29701 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29704 $as_echo "yes" >&6; }
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29707 $as_echo "no" >&6; }
29711 if test $have_acl = no -a \
29712 x${HAVE_SUN_OS_TRUE} = x; then
29713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29714 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29715 if ${ac_cv_lib_sec_acltotext+:} false; then :
29716 $as_echo_n "(cached) " >&6
29718 ac_check_lib_save_LIBS=$LIBS
29720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29721 /* end confdefs.h. */
29723 /* Override any GCC internal prototype to avoid an error.
29724 Use char because int might match the return type of a GCC
29725 builtin and then its argument prototype would still apply. */
29733 return acltotext ();
29738 if ac_fn_c_try_link "$LINENO"; then :
29739 ac_cv_lib_sec_acltotext=yes
29741 ac_cv_lib_sec_acltotext=no
29743 rm -f core conftest.err conftest.$ac_objext \
29744 conftest$ac_exeext conftest.$ac_ext
29745 LIBS=$ac_check_lib_save_LIBS
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29748 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29749 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29752 FDLIBS="-lsec $FDLIBS"
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29755 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29756 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29757 $as_echo_n "(cached) " >&6
29759 ac_check_lib_save_LIBS=$LIBS
29761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29762 /* end confdefs.h. */
29764 /* Override any GCC internal prototype to avoid an error.
29765 Use char because int might match the return type of a GCC
29766 builtin and then its argument prototype would still apply. */
29770 char acl_totext ();
29774 return acl_totext ();
29779 if ac_fn_c_try_link "$LINENO"; then :
29780 ac_cv_lib_sec_acl_totext=yes
29782 ac_cv_lib_sec_acl_totext=no
29784 rm -f core conftest.err conftest.$ac_objext \
29785 conftest$ac_exeext conftest.$ac_ext
29786 LIBS=$ac_check_lib_save_LIBS
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29789 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29790 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29792 have_extended_acl=yes
29803 if test $have_acl = no -a \
29804 x${HAVE_AIX_OS_TRUE} = x; then
29805 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29806 if test "x$ac_cv_func_acl_get" = xyes; then :
29810 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29811 if test "x$ac_cv_func_aclx_get" = xyes; then :
29813 have_extended_acl=yes
29824 if test x$support_acl = xyes -a $have_acl != yes; then
29825 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29826 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29828 if test $have_acl = yes; then
29830 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29834 if test $have_extended_acl = yes; then
29836 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29843 # Check whether --enable-xattr was given.
29844 if test "${enable_xattr+set}" = set; then :
29845 enableval=$enable_xattr;
29846 if test x$enableval = xyes; then
29848 elif test x$enableval = xno; then
29857 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29858 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29859 x${HAVE_NETBSD_OS_TRUE} = x -o \
29860 x${HAVE_OPENBSD_OS_TRUE} = x; then
29861 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29862 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29864 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29869 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29870 if test "x$ac_cv_header_libutil_h" = xyes; then :
29872 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29877 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29882 cat >>confdefs.h <<_ACEOF
29883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29888 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29891 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29894 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29902 if test $have_xattr = no; then
29903 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29907 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29908 cat >>confdefs.h <<_ACEOF
29909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29914 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29917 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29920 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29929 if test $have_xattr = yes; then
29930 have_extattr_string_in_libc=no
29931 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29935 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29936 cat >>confdefs.h <<_ACEOF
29937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29940 have_extattr_string_in_libc=yes
29942 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29945 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29953 if test $have_extattr_string_in_libc = no; then
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29955 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29956 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29957 $as_echo_n "(cached) " >&6
29959 ac_check_lib_save_LIBS=$LIBS
29960 LIBS="-lutil $LIBS"
29961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29962 /* end confdefs.h. */
29964 /* Override any GCC internal prototype to avoid an error.
29965 Use char because int might match the return type of a GCC
29966 builtin and then its argument prototype would still apply. */
29970 char extattr_namespace_to_string extattr_string_to_namespace ();
29974 return extattr_namespace_to_string extattr_string_to_namespace ();
29979 if ac_fn_c_try_link "$LINENO"; then :
29980 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29982 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29984 rm -f core conftest.err conftest.$ac_objext \
29985 conftest$ac_exeext conftest.$ac_ext
29986 LIBS=$ac_check_lib_save_LIBS
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29989 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29990 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29993 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29996 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29998 FDLIBS="-lutil $FDLIBS"
30007 if test $have_xattr = no -a \
30008 x${HAVE_AIX_OS_TRUE} = x; then
30009 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30010 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30012 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30017 for ac_func in llistea lgetea lsetea
30019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30022 cat >>confdefs.h <<_ACEOF
30023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30028 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30031 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30034 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30042 if test $have_xattr = no; then
30043 for ac_func in listea getea setea
30045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30046 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30047 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30048 cat >>confdefs.h <<_ACEOF
30049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30054 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30057 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30060 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30070 if test $have_xattr = no -a \
30071 x${HAVE_OSF1_OS_TRUE} = x; then
30072 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30073 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30075 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30080 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30084 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30085 cat >>confdefs.h <<_ACEOF
30086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30091 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30094 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30097 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30100 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30103 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30112 if test $have_xattr = no -a \
30113 x${HAVE_SUN_OS_TRUE} = x; then
30114 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30115 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30117 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30122 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30123 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30125 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30130 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30131 if test "x$ac_cv_header_attr_h" = xyes; then :
30133 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30139 for ac_func in openat fstatat unlinkat fchownat futimesat
30141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30142 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30143 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30144 cat >>confdefs.h <<_ACEOF
30145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30150 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30153 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30156 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30159 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30162 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30170 if test $have_xattr = yes; then
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30172 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30173 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30174 $as_echo_n "(cached) " >&6
30176 ac_check_lib_save_LIBS=$LIBS
30177 LIBS="-lnvpair $LIBS"
30178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30179 /* end confdefs.h. */
30181 /* Override any GCC internal prototype to avoid an error.
30182 Use char because int might match the return type of a GCC
30183 builtin and then its argument prototype would still apply. */
30187 char nvlist_next_nvpair ();
30191 return nvlist_next_nvpair ();
30196 if ac_fn_c_try_link "$LINENO"; then :
30197 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30199 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30201 rm -f core conftest.err conftest.$ac_objext \
30202 conftest$ac_exeext conftest.$ac_ext
30203 LIBS=$ac_check_lib_save_LIBS
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30206 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30207 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30210 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30212 FDLIBS="-lnvpair $FDLIBS"
30220 if test $have_xattr = no; then
30221 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30222 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30224 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30229 for ac_func in llistxattr lgetxattr lsetxattr
30231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30234 cat >>confdefs.h <<_ACEOF
30235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30240 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30243 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30246 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30254 if test $have_xattr = no; then
30255 for ac_func in listxattr getxattr setxattr
30257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30259 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30260 cat >>confdefs.h <<_ACEOF
30261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30266 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30269 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30272 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30282 if test x$support_xattr = xyes -a $have_xattr != yes; then
30283 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30284 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30286 if test $have_xattr = yes; then
30288 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30296 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30297 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30298 $as_echo_n "(cached) " >&6
30300 ac_check_lib_save_LIBS=$LIBS
30301 LIBS="-lpthread $LIBS"
30302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30303 /* end confdefs.h. */
30305 /* Override any GCC internal prototype to avoid an error.
30306 Use char because int might match the return type of a GCC
30307 builtin and then its argument prototype would still apply. */
30311 char pthread_create ();
30315 return pthread_create ();
30320 if ac_fn_c_try_link "$LINENO"; then :
30321 ac_cv_lib_pthread_pthread_create=yes
30323 ac_cv_lib_pthread_pthread_create=no
30325 rm -f core conftest.err conftest.$ac_objext \
30326 conftest$ac_exeext conftest.$ac_ext
30327 LIBS=$ac_check_lib_save_LIBS
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30330 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30331 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30332 PTHREAD_LIB="-lpthread"
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30336 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30337 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30338 $as_echo_n "(cached) " >&6
30340 ac_check_lib_save_LIBS=$LIBS
30341 LIBS="-lpthreads $LIBS"
30342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30343 /* end confdefs.h. */
30345 /* Override any GCC internal prototype to avoid an error.
30346 Use char because int might match the return type of a GCC
30347 builtin and then its argument prototype would still apply. */
30351 char pthread_create ();
30355 return pthread_create ();
30360 if ac_fn_c_try_link "$LINENO"; then :
30361 ac_cv_lib_pthreads_pthread_create=yes
30363 ac_cv_lib_pthreads_pthread_create=no
30365 rm -f core conftest.err conftest.$ac_objext \
30366 conftest$ac_exeext conftest.$ac_ext
30367 LIBS=$ac_check_lib_save_LIBS
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30370 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30371 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30372 PTHREAD_LIB="-lpthreads"
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30376 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30377 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30378 $as_echo_n "(cached) " >&6
30380 ac_check_lib_save_LIBS=$LIBS
30382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30383 /* end confdefs.h. */
30385 /* Override any GCC internal prototype to avoid an error.
30386 Use char because int might match the return type of a GCC
30387 builtin and then its argument prototype would still apply. */
30391 char pthread_create ();
30395 return pthread_create ();
30400 if ac_fn_c_try_link "$LINENO"; then :
30401 ac_cv_lib_c_r_pthread_create=yes
30403 ac_cv_lib_c_r_pthread_create=no
30405 rm -f core conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
30407 LIBS=$ac_check_lib_save_LIBS
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30410 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30411 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30412 PTHREAD_LIB="-lc_r"
30415 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30416 if test "x$ac_cv_func_pthread_create" = xyes; then :
30433 for ac_header in sys/prctl.h sys/capability.h
30435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30436 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30438 cat >>confdefs.h <<_ACEOF
30439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30446 for ac_func in prctl setreuid
30448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30449 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30450 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30451 cat >>confdefs.h <<_ACEOF
30452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30459 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30460 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30461 $as_echo_n "(cached) " >&6
30463 ac_check_lib_save_LIBS=$LIBS
30465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30466 /* end confdefs.h. */
30468 /* Override any GCC internal prototype to avoid an error.
30469 Use char because int might match the return type of a GCC
30470 builtin and then its argument prototype would still apply. */
30474 char cap_set_proc ();
30478 return cap_set_proc ();
30483 if ac_fn_c_try_link "$LINENO"; then :
30484 ac_cv_lib_cap_cap_set_proc=yes
30486 ac_cv_lib_cap_cap_set_proc=no
30488 rm -f core conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
30490 LIBS=$ac_check_lib_save_LIBS
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30493 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30494 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30500 if test x$CAP_LIBS = x-lcap; then
30502 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30508 $as_echo "#define FDLIBS 1" >>confdefs.h
30511 CFLAGS=${CFLAGS--O}
30513 if test x$have_gcc = xyes ; then
30514 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30515 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30517 LDFLAGS=${LDFLAGS--O}
30518 CPPFLAGS="$CPPFLAGS"
30547 COMPRESS_MANPAGES=yes
30549 case "$DISTNAME" in
30552 PSCMD="ps -e -o pid,comm"
30553 PFILES="${PFILES} platforms/aix/Makefile"
30554 TAPEDRIVE="/dev/rmt0.1"
30558 PTHREAD_LIB="-lpthread -lexc"
30559 if test "${CC}" = "gcc" ; then
30566 TAPEDRIVE="/dev/nrmt0"
30569 DISTVER=`uname -a |awk '{print $3}'`
30570 TAPEDRIVE="/dev/nrmt0"
30571 PTHREAD_LIB="-pthread"
30572 CFLAGS="${CFLAGS} -pthread"
30573 PSCMD="ps -ax -o pid,command"
30576 PFILES="${PFILES} \
30577 platforms/bsdi/Makefile \
30578 platforms/bsdi/bacula-fd \
30579 platforms/bsdi/bacula-sd \
30580 platforms/bsdi/bacula-dir"
30581 largefile_support="yes"
30584 DISTVER=`uname -a |awk '{print $3}'`
30585 TAPEDRIVE="/dev/nrst0"
30587 WCFLAGS="-mwindows"
30588 WLDFLAGS="-mwindows"
30592 TAPEDRIVE="/dev/nst0"
30593 PSCMD="ps -e -o pid,command"
30595 PFILES="${PFILES} \
30596 platforms/darwin/Makefile"
30600 TAPEDRIVE="/dev/nst0"
30601 PSCMD="ps -e -o pid,command"
30603 PFILES="${PFILES} \
30604 platforms/osx/Makefile"
30607 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30610 DISTVER=`cat /etc/debian_version`
30611 if test -f /etc/lsb-release ; then
30613 if test "x$DISTRIB_ID" != "x" ; then
30614 DISTNAME=$DISTRIB_ID
30616 if test "x$DISTRIB_RELEASE" != "x" ; then
30617 DISTVER=$DISTRIB_RELEASE
30620 if test "$DISTNAME" = "Ubuntu" ; then
30623 TAPEDRIVE="/dev/nst0"
30624 PSCMD="ps -e -o pid,command"
30625 if test "$DISTNAME" = "ubuntu" ; then
30626 PFILES="${PFILES} \
30627 platforms/ubuntu/Makefile \
30628 platforms/ubuntu/bacula-fd \
30629 platforms/ubuntu/bacula-sd \
30630 platforms/ubuntu/bacula-dir"
30632 PFILES="${PFILES} \
30633 platforms/debian/Makefile \
30634 platforms/debian/bacula-fd \
30635 platforms/debian/bacula-sd \
30636 platforms/debian/bacula-dir"
30640 DISTVER=`uname -a |awk '{print $3}'`
30641 VER=`echo $DISTVER | cut -c 1`
30642 if test x$VER = x4 ; then
30643 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30644 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30648 TAPEDRIVE="/dev/nrsa0"
30649 PSCMD="ps -ax -o pid,command"
30650 PFILES="${PFILES} \
30651 platforms/freebsd/Makefile \
30652 platforms/freebsd/bacula-fd \
30653 platforms/freebsd/bacula-sd \
30654 platforms/freebsd/bacula-dir"
30655 largefile_support="yes"
30659 TAPEDRIVE="/dev/nst0"
30660 PSCMD="ps -e -o pid,command"
30661 PFILES="${PFILES} \
30662 platforms/hurd/Makefile \
30663 platforms/hurd/bacula-fd \
30664 platforms/hurd/bacula-sd \
30665 platforms/hurd/bacula-dir"
30668 PSCMD="UNIX95=1; ps -e -o pid,comm"
30669 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30671 TAPEDRIVE="/dev/rmt/0hnb"
30672 PTHREAD_LIB="-lpthread"
30673 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30678 TAPEDRIVE="/dev/rmt/0cbn"
30679 PSCMD="ps -e -o pid,comm"
30680 PFILES="${PFILES} \
30681 platforms/irix/Makefile \
30682 platforms/irix/bacula-fd \
30683 platforms/irix/bacula-sd \
30684 platforms/irix/bacula-dir"
30687 DISTVER=`uname -a |awk '{print $3}'`
30690 TAPEDRIVE="/dev/nrst0"
30691 PSCMD="ps -ax -o pid,command"
30692 PTHREAD_LIB="-pthread"
30693 CFLAGS="${CFLAGS} -pthread"
30696 DISTVER=`uname -a |awk '{print $3}'`
30699 TAPEDRIVE="/dev/nrst0"
30700 PSCMD="ps -ax -o pid,command"
30701 PTHREAD_LIB="-pthread"
30702 CFLAGS="${CFLAGS} -pthread"
30703 PFILES="${PFILES} \
30704 platforms/openbsd/Makefile \
30705 platforms/openbsd/bacula-fd \
30706 platforms/openbsd/bacula-sd \
30707 platforms/openbsd/bacula-dir"
30710 if test -f /etc/whitebox-release ; then
30711 f=/etc/whitebox-release
30713 f=/etc/redhat-release
30715 if test `cat $f | grep release |\
30716 cut -f 3 -d ' '`x = "Enterprise"x ; then
30717 DISTVER="Enterprise "`cat $f | grep release |\
30720 DISTVER=`cat /etc/redhat-release | grep release |\
30723 TAPEDRIVE="/dev/nst0"
30724 PSCMD="ps -e -o pid,command"
30725 PFILES="${PFILES} \
30726 platforms/redhat/Makefile \
30727 platforms/redhat/bacula-fd \
30728 platforms/redhat/bacula-sd \
30729 platforms/redhat/bacula-dir
30733 DISTVER=`cat /etc/mandrake-release | grep release |\
30735 TAPEDRIVE="/dev/nst0"
30736 PSCMD="ps -e -o pid,command"
30737 PFILES="${PFILES} \
30738 platforms/mandrake/Makefile \
30739 platforms/mandrake/bacula-fd \
30740 platforms/mandrake/bacula-sd \
30741 platforms/mandrake/bacula-dir \
30745 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30746 TAPEDRIVE="/dev/nst0"
30747 PSCMD="ps -e -o pid,command"
30748 PFILES="${PFILES} \
30749 platforms/gentoo/Makefile \
30750 platforms/gentoo/bacula-init \
30751 platforms/gentoo/bacula-fd \
30752 platforms/gentoo/bacula-sd \
30753 platforms/gentoo/bacula-dir"
30756 DISTVER=`cat /etc/slackware-version`
30757 TAPEDRIVE="/dev/nst0"
30758 PSCMD="ps -e -o pid,command"
30759 PFILES="${PFILES} \
30760 platforms/slackware/Makefile \
30761 platforms/slackware/rc.bacula-fd \
30762 platforms/slackware/rc.bacula-sd \
30763 platforms/slackware/rc.bacula-dir\
30764 platforms/slackware/functions.bacula"
30768 TAPEDRIVE="/dev/rmt/0cbn"
30769 PSCMD="ps -e -o pid,comm"
30770 PFILES="${PFILES} \
30771 platforms/solaris/Makefile \
30772 platforms/solaris/bacula-fd \
30773 platforms/solaris/bacula-sd \
30774 platforms/solaris/bacula-dir"
30778 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30780 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30784 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30790 LIBS="$LIBS -lresolv -lrt"
30793 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30795 TAPEDRIVE="/dev/nst0"
30796 PSCMD="ps -e -o pid,command"
30797 PFILES="${PFILES} \
30798 platforms/suse/Makefile \
30799 platforms/suse/bacula-fd \
30800 platforms/suse/bacula-sd \
30801 platforms/suse/bacula-dir \
30802 platforms/suse/bacula"
30807 TAPEDRIVE="/dev/nst0"
30808 PSCMD="ps -e -o pid,command"
30809 PFILES="${PFILES} \
30810 platforms/suse/Makefile \
30811 platforms/suse/bacula-fd \
30812 platforms/suse/bacula-sd \
30813 platforms/suse/bacula-dir"
30817 TAPEDRIVE="/dev/nst0"
30820 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30825 $as_echo_n "checking for systemd support... " >&6; }
30827 # Check whether --with-systemd was given.
30828 if test "${with_systemd+set}" = set; then :
30829 withval=$with_systemd;
30830 if test "$withval" != "no"; then
30831 if test "$withval" = "yes"; then
30832 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30834 SYSTEMD_UNITDIR="${withval}"
30837 PFILES="${PFILES} \
30838 platforms/systemd/Makefile \
30839 platforms/systemd/bacula-dir.service \
30840 platforms/systemd/bacula-fd.service \
30841 platforms/systemd/bacula-sd.service"
30843 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30846 $as_echo "yes" >&6; }
30847 support_systemd="yes"
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30851 support_systemd="no"
30856 support_systemd="no"
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30858 $as_echo "no" >&6; }
30867 LIBS="$PTHREAD_LIB $LIBS"
30869 cat >>confdefs.h <<_ACEOF
30873 cat >>confdefs.h <<_ACEOF
30885 MCOMMON=./autoconf/Make.common
30888 if test "x${subsysdir}" = "x${sbindir}" ; then
30891 echo "You have set both --sbindir and --with-subsys-dir"
30892 echo " equal to: ${subsysdir} "
30893 echo "This is not permitted. Please reconfigure."
30895 echo "Aborting configuration ..."
30902 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"
30904 ac_config_commands="$ac_config_commands default"
30906 cat >confcache <<\_ACEOF
30907 # This file is a shell script that caches the results of configure
30908 # tests run on this system so they can be shared between configure
30909 # scripts and configure runs, see configure's option --config-cache.
30910 # It is not useful on other systems. If it contains results you don't
30911 # want to keep, you may remove or edit it.
30913 # config.status only pays attention to the cache file if you give it
30914 # the --recheck option to rerun configure.
30916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30918 # following values.
30922 # The following way of writing the cache mishandles newlines in values,
30923 # but we know of no workaround that is simple, portable, and efficient.
30924 # So, we kill variables containing newlines.
30925 # Ultrix sh set writes to stderr and can't be redirected directly,
30926 # and sets the high bit in the cache file unless we assign to the vars.
30928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30929 eval ac_val=\$$ac_var
30933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30937 _ | IFS | as_nl) ;; #(
30938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30939 *) { eval $ac_var=; unset $ac_var;} ;;
30945 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30946 *${as_nl}ac_space=\ *)
30947 # `set' does not quote correctly, so add quotes: double-quote
30948 # substitution turns \\\\ into \\, and sed turns \\ into \.
30951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30954 # `set' quotes correctly as required by POSIX, so do not add quotes.
30955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30969 if test -w "$cache_file"; then
30970 if test "x$cache_file" != "x/dev/null"; then
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30972 $as_echo "$as_me: updating cache $cache_file" >&6;}
30973 if test ! -f "$cache_file" || test -h "$cache_file"; then
30974 cat confcache >"$cache_file"
30976 case $cache_file in #(
30978 mv -f confcache "$cache_file"$$ &&
30979 mv -f "$cache_file"$$ "$cache_file" ;; #(
30981 mv -f confcache "$cache_file" ;;
30986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30993 # Let make expand exec_prefix.
30994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30996 DEFS=-DHAVE_CONFIG_H
31001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31002 # 1. Remove the extension, and $U if already installed.
31003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31004 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31006 # will be set to the directory where LIBOBJS objects are built.
31007 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31008 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31010 LIBOBJS=$ac_libobjs
31012 LTLIBOBJS=$ac_ltlibobjs
31017 : "${CONFIG_STATUS=./config.status}"
31019 ac_clean_files_save=$ac_clean_files
31020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31026 # Generated by $as_me.
31027 # Run this file to recreate the current configuration.
31028 # Compiler output produced by configure, useful for debugging
31029 # configure, is in config.log if it exists.
31032 ac_cs_recheck=false
31035 SHELL=\${CONFIG_SHELL-$SHELL}
31038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31039 ## -------------------- ##
31040 ## M4sh Initialization. ##
31041 ## -------------------- ##
31043 # Be more Bourne compatible
31044 DUALCASE=1; export DUALCASE # for MKS sh
31045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31049 # is contrary to our usage. Disable this feature.
31050 alias -g '${1+"$@"}'='"$@"'
31051 setopt NO_GLOB_SUBST
31053 case `(set -o) 2>/dev/null` in #(
31065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31069 # Prefer a ksh shell builtin over an external printf program on Solaris,
31070 # but without wasting forks for bash or zsh.
31071 if test -z "$BASH_VERSION$ZSH_VERSION" \
31072 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31073 as_echo='print -r --'
31074 as_echo_n='print -rn --'
31075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31076 as_echo='printf %s\n'
31077 as_echo_n='printf %s'
31079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31081 as_echo_n='/usr/ucb/echo -n'
31083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31084 as_echo_n_body='eval
31088 expr "X$arg" : "X\\(.*\\)$as_nl";
31089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31093 export as_echo_n_body
31094 as_echo_n='sh -c $as_echo_n_body as_echo'
31096 export as_echo_body
31097 as_echo='sh -c $as_echo_body as_echo'
31100 # The user is always right.
31101 if test "${PATH_SEPARATOR+set}" != set; then
31103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31111 # We need space, tab and new line, in precisely that order. Quoting is
31112 # there to prevent editors from complaining about space-tab.
31113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31114 # splitting by setting IFS to empty value.)
31117 # Find who we are. Look in the path if we contain no directory separator.
31120 *[\\/]* ) as_myself=$0 ;;
31121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31122 for as_dir in $PATH
31125 test -z "$as_dir" && as_dir=.
31126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31132 # We did not find ourselves, most probably we were run as `sh COMMAND'
31133 # in which case we are not to be found in the path.
31134 if test "x$as_myself" = x; then
31137 if test ! -f "$as_myself"; then
31138 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31142 # Unset variables that we do not need and which cause bugs (e.g. in
31143 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31144 # suppresses any "Segmentation fault" message there. '((' could
31145 # trigger a bug in pdksh 5.2.14.
31146 for as_var in BASH_ENV ENV MAIL MAILPATH
31147 do eval test x\${$as_var+set} = xset \
31148 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31165 # ----------------------------------------
31166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31168 # script with STATUS, using 1 if that was 0.
31171 as_status=$1; test $as_status -eq 0 && as_status=1
31173 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31174 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31176 $as_echo "$as_me: error: $2" >&2
31177 as_fn_exit $as_status
31181 # as_fn_set_status STATUS
31182 # -----------------------
31183 # Set $? to STATUS, without forking.
31184 as_fn_set_status ()
31187 } # as_fn_set_status
31189 # as_fn_exit STATUS
31190 # -----------------
31191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31195 as_fn_set_status $1
31201 # Portably unset VAR.
31204 { eval $1=; unset $1;}
31206 as_unset=as_fn_unset
31207 # as_fn_append VAR VALUE
31208 # ----------------------
31209 # Append the text in VALUE to the end of the definition contained in VAR. Take
31210 # advantage of any shell optimizations that allow amortized linear growth over
31211 # repeated appends, instead of the typical quadratic growth present in naive
31213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31214 eval 'as_fn_append ()
31225 # as_fn_arith ARG...
31226 # ------------------
31227 # Perform arithmetic evaluation on the ARGs, and store the result in the
31228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31229 # must be portable across $(()) and expr.
31230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31231 eval 'as_fn_arith ()
31238 as_val=`expr "$@" || test $? -eq 1`
31243 if expr a : '\(a\)' >/dev/null 2>&1 &&
31244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31251 as_basename=basename
31256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31262 as_me=`$as_basename -- "$0" ||
31263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31264 X"$0" : 'X\(//\)$' \| \
31265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31267 sed '/^.*\/\([^/][^/]*\)\/*$/{
31281 # Avoid depending upon Character Ranges.
31282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31285 as_cr_digits='0123456789'
31286 as_cr_alnum=$as_cr_Letters$as_cr_digits
31288 ECHO_C= ECHO_N= ECHO_T=
31289 case `echo -n x` in #(((((
31291 case `echo 'xy\c'` in
31292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31294 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31301 rm -f conf$$ conf$$.exe conf$$.file
31302 if test -d conf$$.dir; then
31303 rm -f conf$$.dir/conf$$.file
31306 mkdir conf$$.dir 2>/dev/null
31308 if (echo >conf$$.file) 2>/dev/null; then
31309 if ln -s conf$$.file conf$$ 2>/dev/null; then
31311 # ... but there are two gotchas:
31312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31314 # In both cases, we have to default to `cp -pR'.
31315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31317 elif ln conf$$.file conf$$ 2>/dev/null; then
31325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31326 rmdir conf$$.dir 2>/dev/null
31331 # Create "$as_dir" as a directory, including parents if necessary.
31336 -*) as_dir=./$as_dir;;
31338 test -d "$as_dir" || eval $as_mkdir_p || {
31342 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31343 *) as_qdir=$as_dir;;
31345 as_dirs="'$as_qdir' $as_dirs"
31346 as_dir=`$as_dirname -- "$as_dir" ||
31347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31348 X"$as_dir" : 'X\(//\)[^/]' \| \
31349 X"$as_dir" : 'X\(//\)$' \| \
31350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31351 $as_echo X"$as_dir" |
31352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31356 /^X\(\/\/\)[^/].*/{
31369 test -d "$as_dir" && break
31371 test -z "$as_dirs" || eval "mkdir $as_dirs"
31372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31376 if mkdir -p . 2>/dev/null; then
31377 as_mkdir_p='mkdir -p "$as_dir"'
31379 test -d ./-p && rmdir ./-p
31384 # as_fn_executable_p FILE
31385 # -----------------------
31386 # Test if FILE is an executable regular file.
31387 as_fn_executable_p ()
31389 test -f "$1" && test -x "$1"
31390 } # as_fn_executable_p
31391 as_test_x='test -x'
31392 as_executable_p=as_fn_executable_p
31394 # Sed expression to map a string onto a valid CPP name.
31395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31397 # Sed expression to map a string onto a valid variable name.
31398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31402 ## ----------------------------------- ##
31403 ## Main body of $CONFIG_STATUS script. ##
31404 ## ----------------------------------- ##
31406 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31409 # Save the log message, to keep $0 and so on meaningful, and to
31410 # report actual input values of CONFIG_FILES etc. instead of their
31411 # values after options handling.
31413 This file was extended by bacula $as_me 7.2.1, which was
31414 generated by GNU Autoconf 2.69. Invocation command line was
31416 CONFIG_FILES = $CONFIG_FILES
31417 CONFIG_HEADERS = $CONFIG_HEADERS
31418 CONFIG_LINKS = $CONFIG_LINKS
31419 CONFIG_COMMANDS = $CONFIG_COMMANDS
31422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31427 case $ac_config_files in *"
31428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31431 case $ac_config_headers in *"
31432 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31437 # Files that config.status was made for.
31438 config_files="$ac_config_files"
31439 config_headers="$ac_config_headers"
31440 config_commands="$ac_config_commands"
31444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31446 \`$as_me' instantiates files and other configuration actions
31447 from templates according to the current configuration. Unless the files
31448 and actions are specified as TAGs, all are instantiated by default.
31450 Usage: $0 [OPTION]... [TAG]...
31452 -h, --help print this help, then exit
31453 -V, --version print version number and configuration settings, then exit
31454 --config print configuration, then exit
31455 -q, --quiet, --silent
31456 do not print progress messages
31457 -d, --debug don't remove temporary files
31458 --recheck update $as_me by reconfiguring in the same conditions
31459 --file=FILE[:TEMPLATE]
31460 instantiate the configuration file FILE
31461 --header=FILE[:TEMPLATE]
31462 instantiate the configuration header FILE
31464 Configuration files:
31467 Configuration headers:
31470 Configuration commands:
31473 Report bugs to the package provider."
31476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31477 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31479 bacula config.status 7.2.1
31480 configured by $0, generated by GNU Autoconf 2.69,
31481 with options \\"\$ac_cs_config\\"
31483 Copyright (C) 2012 Free Software Foundation, Inc.
31484 This config.status script is free software; the Free Software Foundation
31485 gives unlimited permission to copy, distribute and modify it."
31491 test -n "\$AWK" || AWK=awk
31494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31495 # The default lists apply if the user does not specify any file.
31501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31518 # Handling of the options.
31519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31522 $as_echo "$ac_cs_version"; exit ;;
31523 --config | --confi | --conf | --con | --co | --c )
31524 $as_echo "$ac_cs_config"; exit ;;
31525 --debug | --debu | --deb | --de | --d | -d )
31527 --file | --fil | --fi | --f )
31530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31531 '') as_fn_error $? "missing file argument" ;;
31533 as_fn_append CONFIG_FILES " '$ac_optarg'"
31534 ac_need_defaults=false;;
31535 --header | --heade | --head | --hea )
31538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31540 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31541 ac_need_defaults=false;;
31543 # Conflict between --help and --header
31544 as_fn_error $? "ambiguous option: \`$1'
31545 Try \`$0 --help' for more information.";;
31546 --help | --hel | -h )
31547 $as_echo "$ac_cs_usage"; exit ;;
31548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31552 # This is an error.
31553 -*) as_fn_error $? "unrecognized option: \`$1'
31554 Try \`$0 --help' for more information." ;;
31556 *) as_fn_append ac_config_targets " $1"
31557 ac_need_defaults=false ;;
31563 ac_configure_extra_args=
31565 if $ac_cs_silent; then
31567 ac_configure_extra_args="$ac_configure_extra_args --silent"
31571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31572 if \$ac_cs_recheck; then
31573 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31575 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31576 CONFIG_SHELL='$SHELL'
31577 export CONFIG_SHELL
31582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31587 ## Running $as_me. ##
31593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31599 # The HP-UX ksh and POSIX shell print the target directory to stdout
31600 # if CDPATH is set.
31601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31603 sed_quote_subst='$sed_quote_subst'
31604 double_quote_subst='$double_quote_subst'
31605 delay_variable_subst='$delay_variable_subst'
31606 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31607 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31608 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31609 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31610 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31611 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31612 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31613 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31614 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31615 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31616 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31617 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31618 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31619 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31620 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31621 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31622 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31623 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31624 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31625 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31626 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31627 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31628 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31629 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31630 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31631 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31632 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31633 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31634 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31635 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31636 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31637 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31638 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31639 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31644 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31645 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31646 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31647 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31648 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31649 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31650 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31651 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31652 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31653 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31654 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31655 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31656 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31657 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31658 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31659 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31660 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31662 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"`'
31663 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31664 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31665 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31666 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31667 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31668 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31669 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31670 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31671 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31672 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31673 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31674 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31675 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31676 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31677 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31678 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31679 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31680 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31681 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31682 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31683 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31684 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31685 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31686 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31687 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31688 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31689 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31690 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31691 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31692 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31693 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31694 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31695 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31696 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31697 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31698 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31699 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31700 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31701 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31702 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31703 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31704 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31705 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31706 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31707 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31708 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31709 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31710 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31711 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31712 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31713 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31714 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31715 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31716 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31717 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31718 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31719 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31720 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31721 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31722 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31723 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31724 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31725 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31726 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31727 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31728 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31729 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31730 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31731 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31732 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31733 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31734 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31735 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31736 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31737 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31738 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31739 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31740 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31741 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31742 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31743 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31744 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31745 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31747 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31748 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31750 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31752 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31753 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31754 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31755 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31756 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31757 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31758 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31759 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31762 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31765 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31766 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31767 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31771 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31772 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31773 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31774 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31775 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31776 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31777 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31778 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31779 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31780 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31781 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31782 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31783 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31784 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31785 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31786 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31787 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31788 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31789 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31792 LTCFLAGS='$LTCFLAGS'
31793 compiler='$compiler_DEFAULT'
31795 # A function that is used when there is no print builtin or printf.
31796 func_fallback_echo ()
31798 eval 'cat <<_LTECHO_EOF
31803 # Quote evaled strings.
31818 deplibs_check_method \
31823 sharedlib_from_linklib_cmd \
31826 archiver_list_spec \
31832 lt_cv_sys_global_symbol_pipe \
31833 lt_cv_sys_global_symbol_to_cdecl \
31834 lt_cv_sys_global_symbol_to_c_name_address \
31835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31836 nm_file_list_spec \
31837 lt_prog_compiler_no_builtin_flag \
31838 lt_prog_compiler_pic \
31839 lt_prog_compiler_wl \
31840 lt_prog_compiler_static \
31841 lt_cv_prog_compiler_c_o \
31850 export_dynamic_flag_spec \
31851 whole_archive_flag_spec \
31852 compiler_needs_object \
31854 allow_undefined_flag \
31855 no_undefined_flag \
31856 hardcode_libdir_flag_spec \
31857 hardcode_libdir_separator \
31861 variables_saved_for_relink \
31863 library_names_spec \
31865 install_override_mode \
31869 compiler_lib_search_dirs \
31874 compiler_lib_search_path \
31878 lt_prog_compiler_no_builtin_flag_CXX \
31879 lt_prog_compiler_pic_CXX \
31880 lt_prog_compiler_wl_CXX \
31881 lt_prog_compiler_static_CXX \
31882 lt_cv_prog_compiler_c_o_CXX \
31883 export_dynamic_flag_spec_CXX \
31884 whole_archive_flag_spec_CXX \
31885 compiler_needs_object_CXX \
31887 allow_undefined_flag_CXX \
31888 no_undefined_flag_CXX \
31889 hardcode_libdir_flag_spec_CXX \
31890 hardcode_libdir_separator_CXX \
31891 exclude_expsyms_CXX \
31892 include_expsyms_CXX \
31893 file_list_spec_CXX \
31894 compiler_lib_search_dirs_CXX \
31895 predep_objects_CXX \
31896 postdep_objects_CXX \
31899 compiler_lib_search_path_CXX; do
31900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31901 *[\\\\\\\`\\"\\\$]*)
31902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31910 # Double-quote double-evaled strings.
31911 for var in reload_cmds \
31912 old_postinstall_cmds \
31913 old_postuninstall_cmds \
31915 extract_expsyms_cmds \
31916 old_archive_from_new_cmds \
31917 old_archive_from_expsyms_cmds \
31919 archive_expsym_cmds \
31921 module_expsym_cmds \
31922 export_symbols_cmds \
31926 postuninstall_cmds \
31928 sys_lib_search_path_spec \
31929 sys_lib_dlsearch_path_spec \
31931 old_archive_cmds_CXX \
31932 old_archive_from_new_cmds_CXX \
31933 old_archive_from_expsyms_cmds_CXX \
31935 archive_expsym_cmds_CXX \
31937 module_expsym_cmds_CXX \
31938 export_symbols_cmds_CXX \
31940 postlink_cmds_CXX; do
31941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31942 *[\\\\\\\`\\"\\\$]*)
31943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31951 ac_aux_dir='$ac_aux_dir'
31952 xsi_shell='$xsi_shell'
31953 lt_shell_append='$lt_shell_append'
31955 # See if we are running on zsh, and set the options which allow our
31956 # commands through without removal of \ escapes INIT.
31957 if test -n "\${ZSH_VERSION+set}" ; then
31958 setopt NO_GLOB_SUBST
31964 TIMESTAMP='$TIMESTAMP'
31972 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31973 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31975 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31976 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31977 LINGUAS="${LINGUAS-%UNSET%}"
31982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31984 # Handling of arguments.
31985 for ac_config_target in $ac_config_targets
31987 case $ac_config_target in
31988 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31989 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31990 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31991 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31993 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31994 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31995 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31996 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31997 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31998 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31999 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32000 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32001 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32002 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32003 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32004 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32005 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32006 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32007 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32008 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32009 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32010 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32011 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32012 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32013 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32014 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32015 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32016 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32017 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32018 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32019 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32020 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32021 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32022 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32023 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32024 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32025 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32026 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32027 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32028 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32029 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32030 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32031 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32032 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32033 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32034 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32035 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32036 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32037 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32038 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32039 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32040 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32041 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32042 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32043 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32044 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32045 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32046 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32047 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32048 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32049 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32050 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32051 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32052 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32053 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32054 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32055 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32056 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32057 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32058 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32059 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32060 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32061 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32062 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32063 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32064 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32065 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32066 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32067 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32068 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32069 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32070 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32071 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32072 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32073 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32074 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32075 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32076 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32077 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32078 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32079 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32080 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32081 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32082 "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32083 "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32084 "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32085 "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32086 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32087 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32088 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32089 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32090 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32091 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32092 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32093 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32094 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32095 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32096 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32098 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32103 # If the user did not use the arguments to specify the items to instantiate,
32104 # then the envvar interface is used. Set only those that are not.
32105 # We use the long form for the default assignment because of an extremely
32106 # bizarre bug on SunOS 4.1.3.
32107 if $ac_need_defaults; then
32108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32109 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32110 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32113 # Have a temporary directory for convenience. Make it in the build tree
32114 # simply because there is no reason against having it here, and in addition,
32115 # creating and moving files from /tmp can sometimes cause problems.
32116 # Hook for its removal unless debugging.
32117 # Note that there is a small window in which the directory will not be cleaned:
32118 # after its creation but before its name has been assigned to `$tmp'.
32122 trap 'exit_status=$?
32123 : "${ac_tmp:=$tmp}"
32124 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32126 trap 'as_fn_exit 1' 1 2 13 15
32128 # Create a (secure) tmp directory for tmp files.
32131 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32135 tmp=./conf$$-$RANDOM
32136 (umask 077 && mkdir "$tmp")
32137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32140 # Set up the scripts for CONFIG_FILES section.
32141 # No need to generate them if there are no CONFIG_FILES.
32142 # This happens for instance with `./config.status config.h'.
32143 if test -n "$CONFIG_FILES"; then
32145 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32146 ac_cs_awk_getline=:
32147 ac_cs_awk_pipe_init=
32148 ac_cs_awk_read_file='
32149 while ((getline aline < (F[key])) > 0)
32152 ac_cs_awk_pipe_fini=
32154 ac_cs_awk_getline=false
32155 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32156 ac_cs_awk_read_file='
32158 print "cat " F[key] " &&"
32159 '$ac_cs_awk_pipe_init
32160 # The final `:' finishes the AND list.
32161 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32163 ac_cr=`echo X | tr X '\015'`
32164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32165 # But we know of no other shell where ac_cr would be empty at this
32166 # point, so we can use a bashism as a fallback.
32167 if test "x$ac_cr" = x; then
32168 eval ac_cr=\$\'\\r\'
32170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32174 ac_cs_awk_cr=$ac_cr
32177 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32180 # Create commands to substitute file output variables.
32182 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32183 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32184 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32187 } >conf$$files.sh &&
32188 . ./conf$$files.sh ||
32189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32190 rm -f conf$$files.sh
32193 echo "cat >conf$$subs.awk <<_ACEOF" &&
32194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32196 } >conf$$subs.sh ||
32197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32200 for ac_last_try in false false false false false :; do
32201 . ./conf$$subs.sh ||
32202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32205 if test $ac_delim_n = $ac_delim_num; then
32207 elif $ac_last_try; then
32208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32213 rm -f conf$$subs.sh
32215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32216 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32220 s/^/S["/; s/!.*/"]=/
32230 s/\(.\{148\}\)..*/\1/
32232 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32244 s/\(.\{148\}\)..*/\1/
32246 s/["\\]/\\&/g; s/^/"/; s/$/"/
32250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32255 ' <conf$$subs.awk | sed '
32260 ' >>$CONFIG_STATUS || ac_write_fail=1
32261 rm -f conf$$subs.awk
32262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32264 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32265 for (key in S) S_is_set[key] = 1
32267 \$ac_cs_awk_pipe_init
32271 nfields = split(line, field, "@")
32273 len = length(field[1])
32274 for (i = 2; i < nfields; i++) {
32276 keylen = length(key)
32277 if (S_is_set[key]) {
32279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32280 len += length(value) + length(field[++i])
32285 if (nfields == 3 && !substed) {
32287 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32288 \$ac_cs_awk_read_file
32294 \$ac_cs_awk_pipe_fini
32297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32298 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32299 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32302 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32303 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32306 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32307 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32308 # trailing colons and then remove the whole line if VPATH becomes empty
32309 # (actually we leave an empty line to preserve line numbers).
32310 if test "x$srcdir" = x.; then
32311 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32330 fi # test -n "$CONFIG_FILES"
32332 # Set up the scripts for CONFIG_HEADERS section.
32333 # No need to generate them if there are no CONFIG_HEADERS.
32334 # This happens for instance with `./config.status Makefile'.
32335 if test -n "$CONFIG_HEADERS"; then
32336 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32340 # Transform confdefs.h into an awk script `defines.awk', embedded as
32341 # here-document in config.status, that substitutes the proper values into
32342 # config.h.in to produce config.h.
32344 # Create a delimiter string that does not exist in confdefs.h, to ease
32345 # handling of long lines.
32347 for ac_last_try in false false :; do
32348 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32349 if test -z "$ac_tt"; then
32351 elif $ac_last_try; then
32352 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32358 # For the awk script, D is an array of macro values keyed by name,
32359 # likewise P contains macro parameters if any. Preserve backslash
32360 # newline sequences.
32362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32364 s/.\{148\}/&'"$ac_delim"'/g
32367 s/^[ ]*#[ ]*define[ ][ ]*/ /
32374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32381 D["\1"]=" \3\\\\\\n"\\/p
32383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32388 s/.\{148\}/&'"$ac_delim"'/g
32393 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32396 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32398 ' <confdefs.h | sed '
32399 s/'"$ac_delim"'/"\\\
32400 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32403 for (key in D) D_is_set[key] = 1
32406 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32408 split(line, arg, " ")
32409 if (arg[1] == "#") {
32413 defundef = substr(arg[1], 2)
32416 split(mac1, mac2, "(") #)
32418 prefix = substr(line, 1, index(line, defundef) - 1)
32419 if (D_is_set[macro]) {
32420 # Preserve the white space surrounding the "#".
32421 print prefix "define", macro P[macro] D[macro]
32424 # Replace #undef with comments. This is necessary, for example,
32425 # in the case of _POSIX_SOURCE, which is predefined and required
32426 # on some systems where configure will not decide to define it.
32427 if (defundef == "undef") {
32428 print "/*", prefix defundef, macro, "*/"
32436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32437 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32438 fi # test -n "$CONFIG_HEADERS"
32441 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32446 :[FHLC]) ac_mode=$ac_tag; continue;;
32448 case $ac_mode$ac_tag in
32450 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32451 :[FH]-) ac_tag=-:-;;
32452 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32469 -) ac_f="$ac_tmp/stdin";;
32470 *) # Look for the file first in the build tree, then in the source tree
32471 # (if the path is not absolute). The absolute path cannot be DOS-style,
32472 # because $ac_f cannot contain `:'.
32476 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32478 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32480 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32481 as_fn_append ac_file_inputs " '$ac_f'"
32484 # Let's still pretend it is `configure' which instantiates (i.e., don't
32485 # use $as_me), people would be surprised to read:
32486 # /* config.h. Generated by config.status. */
32487 configure_input='Generated from '`
32488 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32490 if test x"$ac_file" != x-; then
32491 configure_input="$ac_file. $configure_input"
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32493 $as_echo "$as_me: creating $ac_file" >&6;}
32495 # Neutralize special characters interpreted by sed in replacement strings.
32496 case $configure_input in #(
32497 *\&* | *\|* | *\\* )
32498 ac_sed_conf_input=`$as_echo "$configure_input" |
32499 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32500 *) ac_sed_conf_input=$configure_input;;
32504 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32510 ac_dir=`$as_dirname -- "$ac_file" ||
32511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32512 X"$ac_file" : 'X\(//\)[^/]' \| \
32513 X"$ac_file" : 'X\(//\)$' \| \
32514 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32515 $as_echo X"$ac_file" |
32516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32520 /^X\(\/\/\)[^/].*/{
32533 as_dir="$ac_dir"; as_fn_mkdir_p
32537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32540 # A ".." for each directory in $ac_dir_suffix.
32541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32542 case $ac_top_builddir_sub in
32543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32547 ac_abs_top_builddir=$ac_pwd
32548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32549 # for backward compatibility:
32550 ac_top_builddir=$ac_top_build_prefix
32553 .) # We are building in place.
32555 ac_top_srcdir=$ac_top_builddir_sub
32556 ac_abs_top_srcdir=$ac_pwd ;;
32557 [\\/]* | ?:[\\/]* ) # Absolute name.
32558 ac_srcdir=$srcdir$ac_dir_suffix;
32559 ac_top_srcdir=$srcdir
32560 ac_abs_top_srcdir=$srcdir ;;
32561 *) # Relative name.
32562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32563 ac_top_srcdir=$ac_top_build_prefix$srcdir
32564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32576 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32577 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32582 # If the template does not know about datarootdir, expand it.
32583 # FIXME: This hack should be removed a few years after 2.60.
32584 ac_datarootdir_hack=; ac_datarootdir_seen=
32595 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32596 *datarootdir*) ac_datarootdir_seen=yes;;
32597 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32599 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32602 ac_datarootdir_hack='
32603 s&@datadir@&$datadir&g
32604 s&@docdir@&$docdir&g
32605 s&@infodir@&$infodir&g
32606 s&@localedir@&$localedir&g
32607 s&@mandir@&$mandir&g
32608 s&\\\${datarootdir}&$datarootdir&g' ;;
32612 # Neutralize VPATH when `$srcdir' = `.'.
32613 # Shell code in configure.ac might set extrasub.
32614 # FIXME: do we really want to maintain this feature?
32615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32616 ac_sed_extra="$ac_vpsub
32619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32622 s|@configure_input@|$ac_sed_conf_input|;t t
32623 s&@top_builddir@&$ac_top_builddir_sub&;t t
32624 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32625 s&@srcdir@&$ac_srcdir&;t t
32626 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32627 s&@top_srcdir@&$ac_top_srcdir&;t t
32628 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32629 s&@builddir@&$ac_builddir&;t t
32630 s&@abs_builddir@&$ac_abs_builddir&;t t
32631 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32632 s&@INSTALL@&$ac_INSTALL&;t t
32633 $ac_datarootdir_hack
32635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32636 if $ac_cs_awk_getline; then
32637 $AWK -f "$ac_tmp/subs.awk"
32639 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32641 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32644 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32646 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32648 which seems to be undefined. Please make sure it is defined" >&5
32649 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32650 which seems to be undefined. Please make sure it is defined" >&2;}
32652 rm -f "$ac_tmp/stdin"
32654 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32655 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32663 if test x"$ac_file" != x-; then
32665 $as_echo "/* $configure_input */" \
32666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32667 } >"$ac_tmp/config.h" \
32668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32669 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32671 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32674 mv "$ac_tmp/config.h" "$ac_file" \
32675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32678 $as_echo "/* $configure_input */" \
32679 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32680 || as_fn_error $? "could not create -" "$LINENO" 5
32684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32685 $as_echo "$as_me: executing $ac_file commands" >&6;}
32690 case $ac_file$ac_mode in
32693 # See if we are running on zsh, and set the options which allow our
32694 # commands through without removal of \ escapes.
32695 if test -n "${ZSH_VERSION+set}" ; then
32696 setopt NO_GLOB_SUBST
32699 cfgfile="${ofile}T"
32700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32703 cat <<_LT_EOF >> "$cfgfile"
32706 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32707 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32712 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32714 # Written by Gordon Matzigkeit, 1996
32716 # This file is part of GNU Libtool.
32718 # GNU Libtool is free software; you can redistribute it and/or
32719 # modify it under the terms of the GNU General Public License as
32720 # published by the Free Software Foundation; either version 2 of
32721 # the License, or (at your option) any later version.
32723 # As a special exception to the GNU General Public License,
32724 # if you distribute this file as part of a program or library that
32725 # is built using GNU Libtool, you may include this file under the
32726 # same distribution terms that you use for the rest of that program.
32728 # GNU Libtool is distributed in the hope that it will be useful,
32729 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32730 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32731 # GNU General Public License for more details.
32733 # You should have received a copy of the GNU General Public License
32734 # along with GNU Libtool; see the file COPYING. If not, a copy
32735 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32736 # obtained by writing to the Free Software Foundation, Inc.,
32737 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32740 # The names of the tagged configurations supported by this script.
32741 available_tags="CXX "
32743 # ### BEGIN LIBTOOL CONFIG
32745 # Which release of libtool.m4 was used?
32746 macro_version=$macro_version
32747 macro_revision=$macro_revision
32749 # Whether or not to build shared libraries.
32750 build_libtool_libs=$enable_shared
32752 # Whether or not to build static libraries.
32753 build_old_libs=$enable_static
32755 # What type of objects to build.
32758 # Whether or not to optimize for fast installation.
32759 fast_install=$enable_fast_install
32761 # Shell to use when invoking shell scripts.
32764 # An echo program that protects backslashes.
32767 # The PATH separator for the build system.
32768 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32771 host_alias=$host_alias
32775 # The build system.
32776 build_alias=$build_alias
32780 # A sed program that does not truncate output.
32783 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32784 Xsed="\$SED -e 1s/^X//"
32786 # A grep program that handles long lines.
32792 # A literal string matcher.
32795 # A BSD- or MS-compatible name lister.
32798 # Whether we need soft or hard links.
32801 # What is the maximum length of a command?
32802 max_cmd_len=$max_cmd_len
32804 # Object file suffix (normally "o").
32807 # Executable file suffix (normally "").
32810 # whether the shell understands "unset".
32813 # turn spaces into newlines.
32816 # turn newlines into spaces.
32819 # convert \$build file names to \$host format.
32820 to_host_file_cmd=$lt_cv_to_host_file_cmd
32822 # convert \$build files to toolchain format.
32823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32825 # An object symbol dumper.
32826 OBJDUMP=$lt_OBJDUMP
32828 # Method to check whether dependent libraries are shared objects.
32829 deplibs_check_method=$lt_deplibs_check_method
32831 # Command to use when deplibs_check_method = "file_magic".
32832 file_magic_cmd=$lt_file_magic_cmd
32834 # How to find potential files when deplibs_check_method = "file_magic".
32835 file_magic_glob=$lt_file_magic_glob
32837 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32838 want_nocaseglob=$lt_want_nocaseglob
32840 # DLL creation program.
32841 DLLTOOL=$lt_DLLTOOL
32843 # Command to associate shared and link libraries.
32844 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32849 # Flags to create an archive.
32850 AR_FLAGS=$lt_AR_FLAGS
32852 # How to feed a file listing to the archiver.
32853 archiver_list_spec=$lt_archiver_list_spec
32855 # A symbol stripping program.
32858 # Commands used to install an old-style archive.
32860 old_postinstall_cmds=$lt_old_postinstall_cmds
32861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32863 # Whether to use a lock for old archive extraction.
32864 lock_old_archive_extraction=$lock_old_archive_extraction
32869 # LTCC compiler flags.
32870 LTCFLAGS=$lt_CFLAGS
32872 # Take the output of nm and produce a listing of raw symbols and C names.
32873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32875 # Transform the output of nm in a proper C declaration.
32876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32878 # Transform the output of nm in a C name address pair.
32879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32881 # Transform the output of nm in a C name address pair when lib prefix is needed.
32882 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32884 # Specify filename containing input files for \$NM.
32885 nm_file_list_spec=$lt_nm_file_list_spec
32887 # The root where to search for dependent libraries,and in which our libraries should be installed.
32888 lt_sysroot=$lt_sysroot
32890 # The name of the directory that contains temporary libtool files.
32893 # Used to examine libraries when file_magic_cmd begins with "file".
32894 MAGIC_CMD=$MAGIC_CMD
32896 # Must we lock files when doing compilation?
32897 need_locks=$lt_need_locks
32900 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32903 DSYMUTIL=$lt_DSYMUTIL
32905 # Tool to change global to local symbols on Mac OS X.
32908 # Tool to manipulate fat objects and archives on Mac OS X.
32911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32915 OTOOL64=$lt_OTOOL64
32917 # Old archive suffix (normally "a").
32920 # Shared library suffix (normally ".so").
32921 shrext_cmds=$lt_shrext_cmds
32923 # The commands to extract the exported symbol list from a shared archive.
32924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32926 # Variables whose values should be saved in libtool wrapper scripts and
32927 # restored at link time.
32928 variables_saved_for_relink=$lt_variables_saved_for_relink
32930 # Do we need the "lib" prefix for modules?
32931 need_lib_prefix=$need_lib_prefix
32933 # Do we need a version for libraries?
32934 need_version=$need_version
32936 # Library versioning type.
32937 version_type=$version_type
32939 # Shared library runtime path variable.
32940 runpath_var=$runpath_var
32942 # Shared library path variable.
32943 shlibpath_var=$shlibpath_var
32945 # Is shlibpath searched before the hard-coded library search path?
32946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32948 # Format of library name prefix.
32949 libname_spec=$lt_libname_spec
32951 # List of archive names. First name is the real one, the rest are links.
32952 # The last name is the one that the linker finds with -lNAME
32953 library_names_spec=$lt_library_names_spec
32955 # The coded name of the library, if different from the real name.
32956 soname_spec=$lt_soname_spec
32958 # Permission mode override for installation of shared libraries.
32959 install_override_mode=$lt_install_override_mode
32961 # Command to use after installation of a shared archive.
32962 postinstall_cmds=$lt_postinstall_cmds
32964 # Command to use after uninstallation of a shared archive.
32965 postuninstall_cmds=$lt_postuninstall_cmds
32967 # Commands used to finish a libtool library installation in a directory.
32968 finish_cmds=$lt_finish_cmds
32970 # As "finish_cmds", except a single script fragment to be evaled but
32972 finish_eval=$lt_finish_eval
32974 # Whether we should hardcode library paths into libraries.
32975 hardcode_into_libs=$hardcode_into_libs
32977 # Compile-time system search path for libraries.
32978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32980 # Run-time system search path for libraries.
32981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32983 # Whether dlopen is supported.
32984 dlopen_support=$enable_dlopen
32986 # Whether dlopen of programs is supported.
32987 dlopen_self=$enable_dlopen_self
32989 # Whether dlopen of statically linked programs is supported.
32990 dlopen_self_static=$enable_dlopen_self_static
32992 # Commands to strip libraries.
32993 old_striplib=$lt_old_striplib
32994 striplib=$lt_striplib
32997 # The linker used to build libraries.
33000 # How to create reloadable object files.
33001 reload_flag=$lt_reload_flag
33002 reload_cmds=$lt_reload_cmds
33004 # Commands used to build an old-style archive.
33005 old_archive_cmds=$lt_old_archive_cmds
33007 # A language specific compiler.
33010 # Is the compiler the GNU compiler?
33013 # Compiler flag to turn off builtin functions.
33014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33016 # Additional compiler flags for building library objects.
33017 pic_flag=$lt_lt_prog_compiler_pic
33019 # How to pass a linker flag through the compiler.
33020 wl=$lt_lt_prog_compiler_wl
33022 # Compiler flag to prevent dynamic linking.
33023 link_static_flag=$lt_lt_prog_compiler_static
33025 # Does compiler simultaneously support -c and -o options?
33026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33028 # Whether or not to add -lc for building shared libraries.
33029 build_libtool_need_lc=$archive_cmds_need_lc
33031 # Whether or not to disallow shared libs when runtime libs are static.
33032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33034 # Compiler flag to allow reflexive dlopens.
33035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33037 # Compiler flag to generate shared objects directly from archives.
33038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33040 # Whether the compiler copes with passing no objects directly.
33041 compiler_needs_object=$lt_compiler_needs_object
33043 # Create an old-style archive from a shared archive.
33044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33046 # Create a temporary old-style archive to link instead of a shared archive.
33047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33049 # Commands used to build a shared archive.
33050 archive_cmds=$lt_archive_cmds
33051 archive_expsym_cmds=$lt_archive_expsym_cmds
33053 # Commands used to build a loadable module if different from building
33054 # a shared archive.
33055 module_cmds=$lt_module_cmds
33056 module_expsym_cmds=$lt_module_expsym_cmds
33058 # Whether we are building with GNU ld or not.
33059 with_gnu_ld=$lt_with_gnu_ld
33061 # Flag that allows shared libraries with undefined symbols to be built.
33062 allow_undefined_flag=$lt_allow_undefined_flag
33064 # Flag that enforces no undefined symbols.
33065 no_undefined_flag=$lt_no_undefined_flag
33067 # Flag to hardcode \$libdir into a binary during linking.
33068 # This must work even if \$libdir does not exist
33069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33071 # Whether we need a single "-rpath" flag with a separated argument.
33072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33075 # DIR into the resulting binary.
33076 hardcode_direct=$hardcode_direct
33078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33079 # DIR into the resulting binary and the resulting library dependency is
33080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33081 # library is relocated.
33082 hardcode_direct_absolute=$hardcode_direct_absolute
33084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33085 # into the resulting binary.
33086 hardcode_minus_L=$hardcode_minus_L
33088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33089 # into the resulting binary.
33090 hardcode_shlibpath_var=$hardcode_shlibpath_var
33092 # Set to "yes" if building a shared library automatically hardcodes DIR
33093 # into the library and all subsequent libraries and executables linked
33095 hardcode_automatic=$hardcode_automatic
33097 # Set to yes if linker adds runtime paths of dependent libraries
33098 # to runtime path list.
33099 inherit_rpath=$inherit_rpath
33101 # Whether libtool must link a program against all its dependency libraries.
33102 link_all_deplibs=$link_all_deplibs
33104 # Set to "yes" if exported symbols are required.
33105 always_export_symbols=$always_export_symbols
33107 # The commands to list exported symbols.
33108 export_symbols_cmds=$lt_export_symbols_cmds
33110 # Symbols that should not be listed in the preloaded symbols.
33111 exclude_expsyms=$lt_exclude_expsyms
33113 # Symbols that must always be exported.
33114 include_expsyms=$lt_include_expsyms
33116 # Commands necessary for linking programs (against libraries) with templates.
33117 prelink_cmds=$lt_prelink_cmds
33119 # Commands necessary for finishing linking programs.
33120 postlink_cmds=$lt_postlink_cmds
33122 # Specify filename containing input files.
33123 file_list_spec=$lt_file_list_spec
33125 # How to hardcode a shared library path into an executable.
33126 hardcode_action=$hardcode_action
33128 # The directories searched by this compiler when creating a shared library.
33129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33131 # Dependencies to place before and after the objects being linked to
33132 # create a shared library.
33133 predep_objects=$lt_predep_objects
33134 postdep_objects=$lt_postdep_objects
33135 predeps=$lt_predeps
33136 postdeps=$lt_postdeps
33138 # The library search path used internally by the compiler when linking
33139 # a shared library.
33140 compiler_lib_search_path=$lt_compiler_lib_search_path
33142 # ### END LIBTOOL CONFIG
33148 cat <<\_LT_EOF >> "$cfgfile"
33149 # AIX sometimes has problems with the GCC collect2 program. For some
33150 # reason, if we set the COLLECT_NAMES environment variable, the problems
33151 # vanish in a puff of smoke.
33152 if test "X${COLLECT_NAMES+set}" != Xset; then
33154 export COLLECT_NAMES
33161 ltmain="$ac_aux_dir/ltmain.sh"
33164 # We use sed instead of cat because bash on DJGPP gets confused if
33165 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33166 # text mode, it properly converts lines to CR/LF. This bash problem
33167 # is reportedly fixed, but why not run on old versions too?
33168 sed '$q' "$ltmain" >> "$cfgfile" \
33169 || (rm -f "$cfgfile"; exit 1)
33171 if test x"$xsi_shell" = xyes; then
33172 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33176 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33177 \ * ) func_dirname_result="${3}" ;;\
33179 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33180 && mv -f "$cfgfile.tmp" "$cfgfile" \
33181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33182 test 0 -eq $? || _lt_function_replace_fail=:
33185 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33188 \ func_basename_result="${1##*/}"\
33189 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33190 && mv -f "$cfgfile.tmp" "$cfgfile" \
33191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33192 test 0 -eq $? || _lt_function_replace_fail=:
33195 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33196 func_dirname_and_basename ()\
33199 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33200 \ * ) func_dirname_result="${3}" ;;\
33202 \ func_basename_result="${1##*/}"\
33203 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33204 && mv -f "$cfgfile.tmp" "$cfgfile" \
33205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33206 test 0 -eq $? || _lt_function_replace_fail=:
33209 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33212 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33213 \ # positional parameters, so assign one to ordinary parameter first.\
33214 \ func_stripname_result=${3}\
33215 \ func_stripname_result=${func_stripname_result#"${1}"}\
33216 \ func_stripname_result=${func_stripname_result%"${2}"}\
33217 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33218 && mv -f "$cfgfile.tmp" "$cfgfile" \
33219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33220 test 0 -eq $? || _lt_function_replace_fail=:
33223 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33224 func_split_long_opt ()\
33226 \ func_split_long_opt_name=${1%%=*}\
33227 \ func_split_long_opt_arg=${1#*=}\
33228 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33229 && mv -f "$cfgfile.tmp" "$cfgfile" \
33230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33231 test 0 -eq $? || _lt_function_replace_fail=:
33234 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33235 func_split_short_opt ()\
33237 \ func_split_short_opt_arg=${1#??}\
33238 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33239 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33240 && mv -f "$cfgfile.tmp" "$cfgfile" \
33241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33242 test 0 -eq $? || _lt_function_replace_fail=:
33245 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33249 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33250 \ *) func_lo2o_result=${1} ;;\
33252 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33253 && mv -f "$cfgfile.tmp" "$cfgfile" \
33254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33255 test 0 -eq $? || _lt_function_replace_fail=:
33258 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33261 func_xform_result=${1%.*}.lo\
33262 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33263 && mv -f "$cfgfile.tmp" "$cfgfile" \
33264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33265 test 0 -eq $? || _lt_function_replace_fail=:
33268 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33271 func_arith_result=$(( $* ))\
33272 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33273 && mv -f "$cfgfile.tmp" "$cfgfile" \
33274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33275 test 0 -eq $? || _lt_function_replace_fail=:
33278 sed -e '/^func_len ()$/,/^} # func_len /c\
33281 func_len_result=${#1}\
33282 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33283 && mv -f "$cfgfile.tmp" "$cfgfile" \
33284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33285 test 0 -eq $? || _lt_function_replace_fail=:
33289 if test x"$lt_shell_append" = xyes; then
33290 sed -e '/^func_append ()$/,/^} # func_append /c\
33293 eval "${1}+=\\${2}"\
33294 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33295 && mv -f "$cfgfile.tmp" "$cfgfile" \
33296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33297 test 0 -eq $? || _lt_function_replace_fail=:
33300 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33301 func_append_quoted ()\
33303 \ func_quote_for_eval "${2}"\
33304 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33305 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33306 && mv -f "$cfgfile.tmp" "$cfgfile" \
33307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33308 test 0 -eq $? || _lt_function_replace_fail=:
33311 # Save a `func_append' function call where possible by direct use of '+='
33312 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33313 && mv -f "$cfgfile.tmp" "$cfgfile" \
33314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33315 test 0 -eq $? || _lt_function_replace_fail=:
33317 # Save a `func_append' function call even when '+=' is not available
33318 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33319 && mv -f "$cfgfile.tmp" "$cfgfile" \
33320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321 test 0 -eq $? || _lt_function_replace_fail=:
33324 if test x"$_lt_function_replace_fail" = x":"; then
33325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33326 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33330 mv -f "$cfgfile" "$ofile" ||
33331 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33335 cat <<_LT_EOF >> "$ofile"
33337 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33339 # The linker used to build libraries.
33342 # How to create reloadable object files.
33343 reload_flag=$lt_reload_flag_CXX
33344 reload_cmds=$lt_reload_cmds_CXX
33346 # Commands used to build an old-style archive.
33347 old_archive_cmds=$lt_old_archive_cmds_CXX
33349 # A language specific compiler.
33350 CC=$lt_compiler_CXX
33352 # Is the compiler the GNU compiler?
33355 # Compiler flag to turn off builtin functions.
33356 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33358 # Additional compiler flags for building library objects.
33359 pic_flag=$lt_lt_prog_compiler_pic_CXX
33361 # How to pass a linker flag through the compiler.
33362 wl=$lt_lt_prog_compiler_wl_CXX
33364 # Compiler flag to prevent dynamic linking.
33365 link_static_flag=$lt_lt_prog_compiler_static_CXX
33367 # Does compiler simultaneously support -c and -o options?
33368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33370 # Whether or not to add -lc for building shared libraries.
33371 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33373 # Whether or not to disallow shared libs when runtime libs are static.
33374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33376 # Compiler flag to allow reflexive dlopens.
33377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33379 # Compiler flag to generate shared objects directly from archives.
33380 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33382 # Whether the compiler copes with passing no objects directly.
33383 compiler_needs_object=$lt_compiler_needs_object_CXX
33385 # Create an old-style archive from a shared archive.
33386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33388 # Create a temporary old-style archive to link instead of a shared archive.
33389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33391 # Commands used to build a shared archive.
33392 archive_cmds=$lt_archive_cmds_CXX
33393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33395 # Commands used to build a loadable module if different from building
33396 # a shared archive.
33397 module_cmds=$lt_module_cmds_CXX
33398 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33400 # Whether we are building with GNU ld or not.
33401 with_gnu_ld=$lt_with_gnu_ld_CXX
33403 # Flag that allows shared libraries with undefined symbols to be built.
33404 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33406 # Flag that enforces no undefined symbols.
33407 no_undefined_flag=$lt_no_undefined_flag_CXX
33409 # Flag to hardcode \$libdir into a binary during linking.
33410 # This must work even if \$libdir does not exist
33411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33413 # Whether we need a single "-rpath" flag with a separated argument.
33414 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33417 # DIR into the resulting binary.
33418 hardcode_direct=$hardcode_direct_CXX
33420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33421 # DIR into the resulting binary and the resulting library dependency is
33422 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33423 # library is relocated.
33424 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33426 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33427 # into the resulting binary.
33428 hardcode_minus_L=$hardcode_minus_L_CXX
33430 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33431 # into the resulting binary.
33432 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33434 # Set to "yes" if building a shared library automatically hardcodes DIR
33435 # into the library and all subsequent libraries and executables linked
33437 hardcode_automatic=$hardcode_automatic_CXX
33439 # Set to yes if linker adds runtime paths of dependent libraries
33440 # to runtime path list.
33441 inherit_rpath=$inherit_rpath_CXX
33443 # Whether libtool must link a program against all its dependency libraries.
33444 link_all_deplibs=$link_all_deplibs_CXX
33446 # Set to "yes" if exported symbols are required.
33447 always_export_symbols=$always_export_symbols_CXX
33449 # The commands to list exported symbols.
33450 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33452 # Symbols that should not be listed in the preloaded symbols.
33453 exclude_expsyms=$lt_exclude_expsyms_CXX
33455 # Symbols that must always be exported.
33456 include_expsyms=$lt_include_expsyms_CXX
33458 # Commands necessary for linking programs (against libraries) with templates.
33459 prelink_cmds=$lt_prelink_cmds_CXX
33461 # Commands necessary for finishing linking programs.
33462 postlink_cmds=$lt_postlink_cmds_CXX
33464 # Specify filename containing input files.
33465 file_list_spec=$lt_file_list_spec_CXX
33467 # How to hardcode a shared library path into an executable.
33468 hardcode_action=$hardcode_action_CXX
33470 # The directories searched by this compiler when creating a shared library.
33471 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33473 # Dependencies to place before and after the objects being linked to
33474 # create a shared library.
33475 predep_objects=$lt_predep_objects_CXX
33476 postdep_objects=$lt_postdep_objects_CXX
33477 predeps=$lt_predeps_CXX
33478 postdeps=$lt_postdeps_CXX
33480 # The library search path used internally by the compiler when linking
33481 # a shared library.
33482 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33484 # ### END LIBTOOL TAG CONFIG: CXX
33489 for ac_file in $CONFIG_FILES; do
33490 # Support "outfile[:infile[:infile...]]"
33492 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33494 # PO directories have a Makefile.in generated from Makefile.in.in.
33495 case "$ac_file" in */Makefile.in)
33496 # Adjust a relative srcdir.
33497 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33498 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33499 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33500 # In autoconf-2.13 it is called $ac_given_srcdir.
33501 # In autoconf-2.50 it is called $srcdir.
33502 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33503 case "$ac_given_srcdir" in
33504 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33505 /*) top_srcdir="$ac_given_srcdir" ;;
33506 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33508 # Treat a directory as a PO directory if and only if it has a
33509 # POTFILES.in file. This allows packages to have multiple PO
33510 # directories under different names or in different locations.
33511 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33512 rm -f "$ac_dir/POTFILES"
33513 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33514 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33515 POMAKEFILEDEPS="POTFILES.in"
33516 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33517 # on $ac_dir but don't depend on user-specified configuration
33519 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33520 # The LINGUAS file contains the set of available languages.
33521 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33522 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33524 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33525 # Hide the ALL_LINGUAS assigment from automake.
33526 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33527 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33529 # The set of available languages was given in configure.in.
33530 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33533 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33534 # Compute UPDATEPOFILES
33535 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33536 # Compute DUMMYPOFILES
33537 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33539 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33540 case "$ac_given_srcdir" in
33542 *) srcdirpre='$(srcdir)/' ;;
33548 for lang in $ALL_LINGUAS; do
33549 POFILES="$POFILES $srcdirpre$lang.po"
33550 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33551 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33552 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33554 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33555 # environment variable.
33557 if test -n "$ALL_LINGUAS"; then
33558 for presentlang in $ALL_LINGUAS; do
33560 if test "%UNSET%" != "$LINGUAS"; then
33561 desiredlanguages="$LINGUAS"
33563 desiredlanguages="$ALL_LINGUAS"
33565 for desiredlang in $desiredlanguages; do
33566 # Use the presentlang catalog if desiredlang is
33567 # a. equal to presentlang, or
33568 # b. a variant of presentlang (because in this case,
33569 # presentlang can be used as a fallback for messages
33570 # which are not translated in the desiredlang catalog).
33571 case "$desiredlang" in
33572 "$presentlang"*) useit=yes;;
33575 if test $useit = yes; then
33576 INST_LINGUAS="$INST_LINGUAS $presentlang"
33581 if test -n "$INST_LINGUAS"; then
33582 for lang in $INST_LINGUAS; do
33583 CATALOGS="$CATALOGS $lang.gmo"
33586 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33587 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"
33588 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33589 if test -f "$f"; then
33591 *.orig | *.bak | *~) ;;
33592 *) cat "$f" >> "$ac_dir/Makefile" ;;
33609 ac_clean_files=$ac_clean_files_save
33611 test $ac_write_fail = 0 ||
33612 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33615 # configure is writing to config.log, and then calls config.status.
33616 # config.status does its own redirection, appending to config.log.
33617 # Unfortunately, on DOS this fails, as config.log is still kept open
33618 # by configure, so config.status won't be able to write to it; its
33619 # output is simply discarded. So we exec the FD to /dev/null,
33620 # effectively closing config.log, so it can be properly (re)opened and
33621 # appended to by config.status. When coming back to configure, we
33622 # need to make the FD available again.
33623 if test "$no_create" != yes; then
33625 ac_config_status_args=
33626 test "$silent" = yes &&
33627 ac_config_status_args="$ac_config_status_args --quiet"
33629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33632 # would make configure fail if this is the last instruction.
33633 $ac_cs_success || as_fn_exit 1
33635 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33637 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33641 if test "${support_bat}" = "yes" ; then
33642 if test "x$QMAKE" = "xnone"; then
33643 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33647 echo "Creating bat Makefile"
33653 ${MAKE:-make} clean
33657 if test X"$GCC" = "Xyes" ; then
33658 echo "Doing make of dependencies"
33659 ${MAKE:-make} depend
33663 chmod 755 install_conf_file build-depkgs-qt-console
33667 chmod 755 bacula btraceback mtx-changer
33668 chmod 755 dvd-handler dvd-simulator
33669 chmod 755 bconsole disk-changer devel_bacula logrotate
33673 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33674 chmod 755 $c/update_postgresql_tables_10_to_11
33675 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33676 chmod 755 $c/update_postgresql_tables_11_to_12
33681 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33682 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33684 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33685 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33687 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33688 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33690 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33691 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33693 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33694 chmod 755 $c/sqlite
33697 chmod 755 $c/install-default-backend
33699 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33700 largefile_support="yes"
33703 if test X"$GCC" = "Xyes" ; then
33704 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33705 if test "x${CCVERSION}" = "x" ; then
33706 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33708 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33709 if test x"${CXXVERSION}" = x ; then
33710 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33714 # clean up any old junk
33718 ${MAKE:-make} clean
33721 Configuration on `date`:
33723 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33724 Bacula version: ${BACULA} ${VERSION} (${DATE})
33725 Source code location: ${srcdir}
33726 Install binaries: ${sbindir}
33727 Install libraries: ${libdir}
33728 Install config files: ${sysconfdir}
33729 Scripts directory: ${scriptdir}
33730 Archive directory: ${archivedir}
33731 Working directory: ${working_dir}
33732 PID directory: ${piddir}
33733 Subsys directory: ${subsysdir}
33734 Man directory: ${mandir}
33735 Data directory: ${datarootdir}
33736 Plugin directory: ${plugindir}
33737 C Compiler: ${CC} ${CCVERSION}
33738 C++ Compiler: ${CXX} ${CXXVERSION}
33739 Compiler flags: ${WCFLAGS} ${CFLAGS}
33740 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33742 Statically Linked Tools: ${support_static_tools}
33743 Statically Linked FD: ${support_static_fd}
33744 Statically Linked SD: ${support_static_sd}
33745 Statically Linked DIR: ${support_static_dir}
33746 Statically Linked CONS: ${support_static_cons}
33747 Database backends: ${db_backends}
33748 Database port: ${db_port}
33749 Database name: ${db_name}
33750 Database user: ${db_user}
33751 Database SSL options: ${db_ssl_options}
33753 Job Output Email: ${job_email}
33754 Traceback Email: ${dump_email}
33755 SMTP Host Address: ${smtp_host}
33757 Director Port: ${dir_port}
33758 File daemon Port: ${fd_port}
33759 Storage daemon Port: ${sd_port}
33761 Director User: ${dir_user}
33762 Director Group: ${dir_group}
33763 Storage Daemon User: ${sd_user}
33764 Storage DaemonGroup: ${sd_group}
33765 File Daemon User: ${fd_user}
33766 File Daemon Group: ${fd_group}
33768 Large file support: $largefile_support
33769 Bacula conio support: ${got_conio} ${CONS_LIBS}
33770 readline support: ${got_readline} ${PRTREADLINE_SRC}
33771 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33772 TLS support: ${support_tls}
33773 Encryption support: ${support_crypto}
33774 ZLIB support: ${have_zlib}
33775 LZO support: ${have_lzo}
33776 enable-smartalloc: ${support_smartalloc}
33777 enable-lockmgr: ${support_lockmgr}
33778 bat support: ${support_bat}
33779 client-only: ${build_client_only}
33780 build-dird: ${build_dird}
33781 build-stored: ${build_stored}
33782 Plugin support: ${have_plugins}
33783 AFS support: ${have_afs}
33784 ACL support: ${have_acl}
33785 XATTR support: ${have_xattr}
33786 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33787 Batch insert enabled: ${batch_insert_db_backends}
33791 # create a small shell script useful for support with
33792 # configure options and config.out info
33793 cat > scripts/bacula_config << EOF
33796 $ $0 $ac_configure_args
33798 cat config.out >> scripts/bacula_config
33799 echo __EOC__ >> scripts/bacula_config
33800 chmod 755 scripts/bacula_config